:root {
    --bg-color: #0b0d12;
    --card-bg: #1a1d24;
    --primary: #5b21b6;
    --primary-hover: #6d28d9;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #2a2d35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: var(--text-main);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.section {
    padding: 40px 5%;
}

.section-title {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 600;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border-color);
}

.logo-wordmark {
    font-size: 24px;
    font-weight: 700;
}

.logo-wordmark span {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.session-badge {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-outline,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.hero {
    display: flex;
    padding: 60px 5%;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
    max-width: 80%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
    padding: 12px 24px;
}

.hero-footnote {
    font-size: 12px !important;
    margin-top: 16px;
    color: var(--text-muted) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-footnote i {
    color: var(--primary);
}

.hero-image {
    flex: 1.2;
    background: linear-gradient(135deg, #141827 0%, #1c2438 100%);
    min-height: 420px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-image.hero-image-hidden {
    opacity: 0;
}

.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.45s ease;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 10, 18, 0.08) 0%, rgba(7, 10, 18, 0.76) 100%),
        linear-gradient(90deg, rgba(11, 13, 18, 0.16) 0%, rgba(11, 13, 18, 0.04) 100%);
}

.hero-panel {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1;
    padding: 20px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.48), rgba(8, 10, 16, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-live-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    padding: 4px 10px;
    margin-bottom: 12px;
}

.hero-channel-name {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-panel h3 {
    font-size: 34px;
    line-height: 1.08;
    margin-bottom: 8px;
    max-width: 640px;
}

.hero-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 12px;
}

.hero-panel p {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.55;
    max-width: 640px;
    margin-bottom: 0;
}

#hero-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    color: #f5f7fb;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
    background: #fff;
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.live-header a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.live-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.live-cards::-webkit-scrollbar {
    height: 10px;
}

.live-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.live-cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    border: 2px solid rgba(11, 13, 18, 0.9);
}

.live-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
}

.live-card {
    flex: 0 0 248px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.live-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff4d5e;
    box-shadow: 0 0 0 6px rgba(255, 77, 94, 0.12);
}

.live-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.live-channel-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.live-card h4 {
    font-size: 15px;
    margin-bottom: 10px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-card p {
    font-size: 12px;
    color: var(--text-muted);
}

.live-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--card-bg);
    color: var(--text-main);
    min-height: 120px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.category-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.category-card button {
    appearance: none;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(26,29,36,0.94) 100%);
}

.category-card i,
.category-card h4,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card i {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 24px;
    color: var(--text-main);
}

.category-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-item i {
    font-size: 28px;
    color: var(--text-muted);
}

.feature-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.pricing-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}

.price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-card button {
    width: 100%;
    padding: 12px;
}

.trust-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-around;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-item i {
    font-size: 24px;
    color: var(--text-muted);
}

.trust-item h4 {
    font-size: 12px;
}

.trust-item p {
    font-size: 12px;
    color: var(--text-muted);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 5%;
    margin-top: 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 24px;
    font-size: 13px;
}

footer h4 {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: var(--text-muted);
}

.footer-bottom {
    padding: 24px 5%;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 16px;
    font-size: 18px;
}

.is-empty {
    background: var(--card-bg);
    min-height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
}

.category-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.category-modal.open {
    display: block;
}

.category-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 14, 0.72);
    backdrop-filter: blur(6px);
}

.category-modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1080px, calc(100vw - 32px));
    max-height: min(84vh, 860px);
    overflow: auto;
    background: #0d111a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.category-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.category-modal-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-right: 48px;
}

.category-modal-kicker {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.category-modal-header h3 {
    font-size: 30px;
    line-height: 1.1;
}

.category-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-modal-item {
    display: block;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    overflow: hidden;
}

.category-modal-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.22), rgba(26, 29, 36, 0.5));
}

.category-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-modal-thumb-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.25), rgba(26, 29, 36, 0.65));
}

.category-modal-body {
    padding: 14px 14px 16px;
}

.category-modal-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
    margin-bottom: 12px;
}

.category-modal-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-modal-meta {
    font-size: 12px;
    color: var(--text-muted);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .category-grid,
    .features-grid,
    .pricing-grid,
    footer {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    nav,
    .hero,
    .live-header,
    .trust-bar,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links,
    .nav-actions {
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-image {
        width: 100%;
    }

    .hero-panel {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 18px;
    }

    .category-grid,
    .features-grid,
    .pricing-grid,
    footer {
        grid-template-columns: 1fr;
    }

    .hero-meta-row {
        gap: 8px;
    }

    .trust-bar {
        gap: 16px;
    }

    .category-modal-card {
        width: calc(100vw - 20px);
        padding: 20px;
    }

    .category-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-modal-grid {
        grid-template-columns: 1fr;
    }
}
