/* Custom properties and resets */
:root {
    --primary-color: #ffb347;
    --primary-gradient: linear-gradient(45deg, #ffb347, #ffcc33);
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --button-passive-color: rgba(255, 255, 255, 0.05);
    --button-font-color: #ffffff;
    --title-font-color: #ffb347;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-minor: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffcc33;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
}

/* Hamburger Menu Toggle (Checkbox Hack) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-main);
    height: 2px;
    width: 100%;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.nav-toggle-label span {
    top: 14px;
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

.nav-toggle-label span::after {
    content: '';
    top: 8px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--button-font-color) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
}

.btn-secondary {
    background: var(--button-passive-color, rgba(255, 255, 255, 0.05));
    color: var(--button-font-color);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--button-font-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    padding-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(18,18,18,0.3) 0%, rgba(18,18,18,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.center-text {
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Featured Content */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    min-height: 200px;
}

.content-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 179, 71, 0.3);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image {
    transform: scale(1.05);
}

.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.btn-favorite:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.btn-favorite.is-favorite {
    color: #ff4d4d;
}

.card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.card-info {
    padding: 1.2rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* About Us */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Plans */
.plans-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.featured-plan {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.2);
    transform: scale(1.05);
}

.featured-plan:hover {
    transform: scale(1.05) translateY(-5px);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}

.plan-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.plan-card li::before {
    content: 'â';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Horizontal Content List */
.horizontal-list-container {
    margin-bottom: 2.5rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.list-header h3 {
    font-size: 2rem;
    margin: 0;
}

.show-more-link {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.horizontal-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    -webkit-overflow-scrolling: touch;
}

.horizontal-list .content-card {
    flex: 0 0 320px;
    width: 320px;
    background: rgba(255, 255, 255, 0.05);
}

.horizontal-list::-webkit-scrollbar {
    height: 6px;
}

.horizontal-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Content Chip */
.content-chip {
    flex: 0 0 320px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    position: relative;
}

.content-chip:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.chip-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}

.chip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chip-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.chip-info {
    padding: 1.2rem;
}

.chip-title {
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.chip-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    white-space: normal;
    word-break: break-word;
}

/* Devices */
.device-images {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.device-img {
    max-width: 300px;
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Media Queries */

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        flex-shrink: 0;
        margin-left: auto; /* Push to right */
        position: relative;
        z-index: 1001;
    }

    .logo {
        max-width: 150px; /* Even smaller for iPhone SE */
        height: auto;
        max-height: 35px;
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        overflow: hidden;
        transition: height 0.4s ease-in-out;
        z-index: 999;
        border-bottom: 0 solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .nav-links .btn-primary {
        margin: 1.5rem 0;
        width: 80%;
        border-radius: 30px;
    }

    .nav-toggle:checked ~ .nav-links {
        height: calc(100vh - var(--nav-height));
        border-bottom-width: 1px;
        padding-top: 1rem;
    }

    .nav-toggle:checked ~ .nav-links a {
        opacity: 1;
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .device-images {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .playback-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .btn-large {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .content-chip {
        flex: 0 0 280px;
    }

    .plan-card {
        padding: 2rem 1.5rem;
    }

    .featured-plan {
        transform: none;
    }
    
    .featured-plan:hover {
        transform: translateY(-5px);
    }
}

/* Authentication & Form Layouts */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--bg-dark);
}

.auth-card {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

.auth-logo {
    height: 45px;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--text-main);
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
}

.btn-google {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: white;
    color: #444;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f1f1f1;
}

.error-message {
    color: #ff4d4d;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Player Specific */
.video-wrapper { position: relative; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.countdown-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 100; }
.countdown-content { text-align: center; }
.countdown-timer { font-size: 6rem; font-weight: bold; color: var(--primary-color); margin: 1.5rem 0; }
.playback-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.nav-group h4 { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.playback-nav .content-chip { flex: 1; max-width: none; }

.card-link, .chip-link { text-decoration: none; color: inherit; display: block; height: 100%; }

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Vertical Episode Listings for Show Library Page */
.episodes-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.episodes-header-row h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-main);
}

.season-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-dropdown-wrapper label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.season-select {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.season-select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
}

.season-select option {
    background: #111;
    color: var(--text-main);
}

.episode-list {
    display: flex;
    flex-direction: column;
}

.episode-line {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 220px;
    box-sizing: border-box;
    gap: 2rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 12px;
}

.episode-line:hover {
    background: rgba(255, 255, 255, 0.03);
}

.episode-line.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.episode-number-col {
    flex: 0 0 45px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
}

.episode-thumbnail-col {
    flex: 0 0 320px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.episode-thumbnail-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 180px;
    padding: 4px 0;
    position: relative;
}

.episode-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
}

.episode-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-duration {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
}

.episode-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.3rem;
    padding-right: 140px; /* Make space for Watch Episode button when active */
}

/* Favorite heart icon as overlay on thumbnail */
.episode-line-fav {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 1;
    transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
    z-index: 10;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.episode-line-fav:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

/* Watch Episode Button on Active Chip */
.watch-episode-btn {
    display: none;
    position: absolute;
    right: 0;
    bottom: 4px;
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.episode-line.active .watch-episode-btn {
    display: block;
}

/* Redesign layouts for full-width grid and hiding side panel */
.details-column {
    display: none !important;
}

.library-layout {
    grid-template-columns: 1fr !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .episode-line {
        flex-direction: column;
        height: auto;
        min-height: 0;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        padding-bottom: 4.5rem;
    }
    
    .episode-number-col {
        height: auto;
        justify-content: flex-start;
        align-self: flex-start;
    }
    
    .episode-thumbnail-col {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .episode-info-col {
        height: auto;
    }
    
    .episode-description {
        padding-right: 0;
        -webkit-line-clamp: 4;
    }
    
    .watch-episode-btn {
        right: 0;
        bottom: -3.5rem;
    }
}
/* Electronic Programming Guide (EPG) */
.epg-wrapper { overflow-x: auto; overflow-y: hidden; position: relative; width: 100%; max-width: 100%; box-sizing: border-box; height: 140px; background: #000; border-radius: 8px; margin-top: 1.5rem; border: 1px solid rgba(255,255,255,0.1); }
.epg-inner { position: relative; height: 100%; min-width: 100%; }
.epg-timeline { position: absolute; top: 0; left: 0; right: 0; height: 35px; border-bottom: 1px solid rgba(255,255,255,0.1); background: #111; display: flex; align-items: center; }
.epg-time-marker { position: absolute; top: 0; font-size: 0.8rem; color: #aaa; padding-left: 5px; height: 100%; display: flex; align-items: center; border-left: 1px solid rgba(255,255,255,0.1); }
.epg-programs-row { position: absolute; top: 35px; left: 0; right: 0; bottom: 0; }
.epg-program { position: absolute; top: 10px; height: 80px; background: #222; border: 1px solid #333; border-radius: 6px; padding: 10px; overflow: hidden; white-space: nowrap; transition: background 0.2s; cursor: default; }
.epg-program:hover { background: #333; z-index: 2; }
.epg-program-live { background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), rgba(255, 179, 71, 0.2)); border-color: rgba(255, 59, 59, 0.5); }
.epg-program-title { font-weight: bold; font-size: 1rem; color: #fff; text-overflow: ellipsis; overflow: hidden; }
.epg-program-time { font-size: 0.8rem; color: #aaa; margin-top: 4px; }
.epg-current-time-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff3b3b; z-index: 10; pointer-events: none; }
.epg-current-time-line::before { content: ''; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; background: #ff3b3b; border-radius: 50%; }
.epg-loading, .epg-error { text-align: center; padding: 2rem; color: #fff; background: #000; border-radius: 8px; margin-top: 1.5rem; }
