﻿  #content{
            margin-top:8vw;
        }
        .header {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 0 1rem;
        }

        @media (min-width: 768px) {
            .header {
                flex-direction: row;
            }
        }

        .header h1 {
            font-size: 1.875rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 0.5rem;
        }

        @media (min-width: 768px) {
            .header h1 {
                margin-bottom: 0;
            }
        }

        .header #date-time {
            font-size: 1.2rem;
            color: #ffffff;
            text-align: center;
        }

        .loading-overlay {
            padding: 10px;
            text-align: center;
            color: #fff;
            font-size: 1.2rem;
        }
        
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #ffffff33;
            border-radius: 50%;
            border-top-color: #fd2b6e;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
            vertical-align: middle;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .wrapper_epg{
            display:flex;
            flex-direction:row;
            flex-wrap:wrap;
            max-width:1920px;
            margin:auto;
        }
        .wrapper_inner_epg{
            width:70%;
            position:relative;
        }

        /* Day Selector Styles */
        .day-selector {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .day-selector button {
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            font-weight: 600;
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
            cursor: pointer;
            border: none;
            outline: none;
            min-width: 5rem;
        }

        .day-selector button.active {
            background-color: #fd2b6e;
            color: #fff;
        }

        .day-selector button:not(.active) {
            background-color: #333333;
            color: #e2e8f0;
        }

        .day-selector button:not(.active):hover {
            background-color: #6a7281;
        }

        /* EPG Grid Styles */
        .epg-grid-container {
            position: relative;
            overflow-x: auto;
            border-radius: 0.75rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            margin: auto;
            cursor: grab;
            overflow-y: hidden;
        }

        .epg-grid-container.dragging {
            cursor: grabbing;
        }

        .epg-grid-container::-webkit-scrollbar {
            height: 8px;
            background-color: #1a202c;
        }

        .epg-grid-container::-webkit-scrollbar-thumb {
            background-color: #4a5568;
            border-radius: 4px;
        }

        .epg-grid-container::-webkit-scrollbar-track {
            background-color: #1a202c;
        }

        .epg-main-grid {
            grid-template-columns: 12rem repeat(24, 180px);
            display: grid;
            width: max-content;
            position: relative;
            align-items: center;
            height: 80vh;
        }

        .time-header-cell {
            position: sticky;
            top: 0;
            left: 0;
            z-index: 26;
            background-color: #333333;
            height: 100%; 
            padding: 0.7rem;
            font-size: 1.2rem;
            text-align: center;
            align-content: center;
            border: 4px solid black;
            border-radius: .5rem;
            align-self: flex-start;
        }

        .time-header-cell.corner {
            z-index: 30;
            border-left: none;
            border: 4px solid #000000;
            border-radius: 0;
            border-right: 8px solid #000000;
        }

        .channel-header-cell {
            position: sticky;
            left: 0;
            z-index: 28;
            background-color: #333333;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 600;
            border: 4px solid #000000;
            border-right: 8px solid #000000;
            max-height: 100%;
            height: 100%;
        }
        .plus-before::before {
            right: 10px;
        }

        .channel-header-cell:last-child {
            border-bottom: none;
        }

        .channel-header-cell img {
            max-width: 70%;
            max-height: 50%;
            object-fit: contain;
        }

        .program-row {
            position: relative;
            grid-column-start: 2;
            grid-column-end: 26;
            overflow: hidden;
            height: 100%;
        }

        .program-row:last-child {
            border-bottom: none;
        }

        .program {
            border: 4px solid #000000;
            position: absolute;
            top: 0;
            bottom: 0;
            padding: 0.5rem;
            background-color: #333333;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
            display: flex;
            align-items: center;
            font-size: 0.875rem;
            font-weight: 500;
            box-sizing: border-box;
            max-height: 6rem;
            line-height: 1.2rem;
            transition: all .5s ease-in-out;
            min-height: 100%;
        }

        .program.isLive {
            background-color: #fd2b6e;
        }

        .programTitle {
            width: 100%;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            margin-top: 0;
            font-size: 1rem;
            margin-bottom:0;
        }

        .programTime {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            width: 100%;
            display: block;
        }

        #time-indicator {
            position: absolute;
            top: 3px;
            bottom: 0;
            width: 2px;
            background-color: #fd2b6e;
            z-index: 25;
            transition: left 60s linear;
            z-index: 27;
            box-shadow: 0px 0px 3px #000000;
        }

        #time-indicator-header {
            position: absolute;
            top: 0px;
            background-color: #fd2b6e;
            z-index: 31;
            height: 64px;
            border-radius: .5rem;
            padding-left: .5rem;
            padding-right: .5rem;
            justify-self: center;
            align-content: center;
            letter-spacing: 1px;
            transform: translateX(-50%);
            box-shadow: 0px 0px 3px #000000;
        }

        .img_size {
            width: 200px;
            height: auto;
            object-fit: contain;
            margin-right: .5rem;
            border-radius: 10px;
            max-height: 70px;
        }

        .hidden {
            display: none;
        }

        #dynamic-tooltip {
            position: absolute;
            padding: 10px;
            border-radius: 10px;
            z-index: 9999;
            line-height: 1.5rem;
        }

        .info_wrapper {
            width: 100%;
        }

        .img_size_tt {
            height: auto;
            object-fit: contain;
            border-radius: 5px;
            min-width: 100%;
            width: 200px;
            margin-bottom: .5rem;
        }

        .program-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .program-modal-content {
            background-color: #33333382;
            border-radius: 10px;
            padding: 20px;
            max-width: 90%;
            width: 400px;
            text-align: center;
            position: relative;
            backdrop-filter: blur(20px);
        }

        .program-modal-close {
            position: absolute;
            right: 10px;
            top: 0px;
            font-size: 2rem;
            cursor: pointer;
        }

        .program-modal-content .img_size_tt {
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .live-modal-button {
            display: inline-block;
            padding: 10px 20px;
            margin-top: 15px;
            background-color: #fd2b6e;
            color: white;
            font-weight: bold;
            border-radius: 6px;
            text-decoration: none;
        }

        .program-modal.hidden {
            display: none;
        }

        .program-modal-body h2,
        .program-modal-body p {
            color: #000000;
            font-size: 1.2rem;
        }

        .day-selector button {
            font-size: 1.2rem;
            font-weight: 600;
        }
        .dynamic-tooltip span, .dynamic-tooltip span{
            display:block;
            font-family: 'Cera-Ant1-black';
        }
        .grid__col-md-4{
            width:30%;
        }
        #go-to-now-container {
            display: block;
            margin: 10px 0 10px 4px;
        }

        #go-to-now {
            background-color: #fd2b6e;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 6px 12px;
            cursor: pointer;
            visibility:hidden;
            opacity: 1;
            transition: visibility 0.2s ease;
        }
        @media(max-width: 992px){
            #content {
                margin-top: 14vw;
            }
            .wrapper_inner_epg {
                width: 90%;
                margin: auto;
            }
            .grid__col-md-4 {
                width: 100%;
            }
        }

        @media (max-width: 576px) {
            #content {
                margin-top: 24vw;
            }
            .epg-main-grid {
                height: 90vh;
                grid-template-rows: 50px repeat(9, 1fr) !important;
            }
            .time-header-cell{
                font-size:1rem;
            }
            #time-indicator-header{
                height:42px;
            }
            .img_size {
                width: 80px;
                max-height:30px;
            }
            .day-selector button {
                min-width: 4rem;
                font-size: 1rem;
            }
            .programTime{
                margin-top:.2rem;
                font-size:.8rem;
            }
            .programTitle{
                margin-bottom:.2rem;
                font-size:.8rem;
            }
            .channel-header-cell img {
                max-height: 100%;
            }
            .plus-before::before {
                width: 10px;
                height: 10px;
                top: 5px;
                right: 5px!important;
            }
        }
        .top-margin {
            margin-top:80px;
        }