@charset "UTF-8";

/*
 * Dashboard shell layer: pieces the Tailwind utilities cannot express
 * (keyframes, conic gradients) plus the overrides that let the existing
 * player/channel components live inside the new layout.
 */

.glass-card {
    background: rgba(20, 24, 32, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 214, 10, 0.1);
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.live-pulse {
    animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

/* ===== Hero banner =====
   pap-hero.png keeps the left third dark on purpose. The wash only
   protects type contrast; it no longer has to hide a foreign promo. */

.hero-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #0A0D12;
}

.hero-banner-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 10s ease;
}

.hero-banner:hover .hero-banner-art {
    transform: scale(1.05);
}

.hero-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(10, 13, 18, 0.78) 0%,
            rgba(10, 13, 18, 0.42) 42%,
            rgba(10, 13, 18, 0.12) 68%,
            transparent 88%),
        linear-gradient(180deg,
            rgba(10, 13, 18, 0.15) 0%,
            transparent 35%,
            rgba(10, 13, 18, 0.25) 78%,
            #0A0D12 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    max-width: 36rem;
    min-height: 400px;
    padding: 22px 16px 24px;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #FF8F00;
    color: #0A0D12;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0A0D12;
}

.hero-kicker-label {
    color: #FFD60A;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h2 {
    margin: 0;
    max-width: 18ch;
    color: #F8FAFC;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.hero-copy p {
    margin: 0;
    max-width: 34rem;
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-actions button,
.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.hero-actions button {
    background: #FFD60A;
    color: #0A0D12;
}

.hero-actions a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #F8FAFC;
    backdrop-filter: blur(12px);
}

.hero-actions button:hover { filter: brightness(1.1); }
.hero-actions a:hover { background: rgba(255, 255, 255, 0.2); }
.hero-actions button:active,
.hero-actions a:active { transform: scale(0.97); }

@media (max-width: 767.98px) {
    .hero-banner,
    .hero-copy {
        min-height: 0;
    }

    .hero-copy {
        padding: 20px 16px 22px;
        gap: 10px;
    }

    .hero-banner-art {
        object-position: 70% 42%;
    }

    .hero-wash {
        background:
            linear-gradient(180deg,
                rgba(10, 13, 18, 0.2) 0%,
                rgba(10, 13, 18, 0.55) 48%,
                #0A0D12 100%);
    }

    .hero-copy h2 {
        font-size: 22px;
        max-width: none;
    }

    .hero-copy p {
        font-size: 14px;
    }

    .hero-actions button,
    .hero-actions a {
        font-size: 16px;
        padding: 10px 18px;
    }
}

@media (min-width: 768px) {
    .hero-banner,
    .hero-copy {
        min-height: 460px;
    }

    .hero-copy {
        padding: 32px 28px;
        gap: 14px;
        max-width: 40rem;
    }

    .hero-copy h2 {
        font-size: 40px;
        line-height: 1.15;
    }

    .hero-copy p {
        font-size: 18px;
        line-height: 1.55;
    }
}

@media (min-width: 1280px) {
    .hero-banner-art {
        object-position: center 38%;
    }

    .hero-copy h2 {
        font-size: 48px;
        line-height: 1.12;
    }
}

/* ===== Dashboard sidebar ===== */

.sidebar-link {
    position: relative;
}

.sidebar-link.active {
    background: rgba(255, 214, 10, 0.1);
    color: var(--brand-yellow);
    border-left: 4px solid var(--brand-yellow);
}

.sidebar-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ===== Player frame ===== */

.player-container {
    position: relative;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 1;
}

.player-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.12);
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 2;
}

.player-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #FFD60A 25%,
        transparent 50%,
        #FF8F00 75%,
        transparent 100%
    );
    animation: rotateBorder 6s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.player-inner:hover::before {
    animation-duration: 3s;
}

.player-inner::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0A0D12;
    border-radius: 14px;
    z-index: 1;
    pointer-events: none;
}

.player-inner > * {
    position: relative;
    z-index: 2;
}

.player-ambient-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: ambilightBreath 8s ease-in-out infinite alternate;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ambilightBreath {
    0% {
        transform: scale(1);
        opacity: 0.8;
        background: radial-gradient(circle, rgba(255, 214, 10, 0.16) 0%, transparent 70%);
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
        background: radial-gradient(circle, rgba(255, 107, 156, 0.14) 0%, transparent 70%);
    }
    100% {
        transform: scale(0.96);
        opacity: 0.7;
        background: radial-gradient(circle, rgba(255, 143, 0, 0.14) 0%, transparent 70%);
    }
}

/* The rotating frame now draws the border, so drop the old decorative shell. */
.video-section {
    background: transparent;
    border: none;
    border-radius: 16px;
    box-shadow: none;
    margin-bottom: 0;
}

.video-section:hover {
    box-shadow: none;
    border-color: transparent;
}

.video-section::before {
    display: none;
}

/* ===== Theater controls ===== */

.control-toggle {
    transition: all 0.25s ease;
}

.control-toggle.active {
    border-color: rgba(255, 214, 10, 0.5);
    color: var(--brand-yellow);
    background: rgba(255, 214, 10, 0.08);
}

body.disable-ambient-glow .player-ambient-glow {
    opacity: 0 !important;
}

body.lights-out #dashboardSidebar,
body.lights-out .dashboard-topbar,
body.lights-out .trending-section,
body.lights-out .categories-section,
body.lights-out .grid-section,
body.lights-out .promo-section,
body.lights-out .blog-preview-section,
body.lights-out .seo-footer,
body.lights-out .sponsors-carousel {
    opacity: 0.12 !important;
    pointer-events: none;
    filter: blur(1px);
    transition: all 0.6s ease;
}

body.theater-mode .trending-section,
body.theater-mode .categories-section,
body.theater-mode .promo-section,
body.theater-mode .grid-section,
body.theater-mode .blog-preview-section,
body.theater-mode .seo-footer,
body.theater-mode .sponsors-carousel {
    display: none;
}

/* ===== Trending rail & channel grid cards ===== */

.trending-card {
    flex: 0 0 auto;
    width: 210px;
    background: rgba(20, 24, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-yellow);
    box-shadow: 0 12px 25px rgba(255, 214, 10, 0.16);
}

.trending-card-thumb {
    position: relative;
    height: 96px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trending-card-thumb img {
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

.trending-card-live {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.trending-card-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 1.6s ease-in-out infinite;
}

.trending-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trending-card-meta {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.grid-card {
    background: rgba(20, 24, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grid-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-yellow);
    box-shadow: 0 12px 25px rgba(255, 214, 10, 0.18);
    background: rgba(28, 34, 48, 0.85);
}

.grid-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    pointer-events: none;
}

.grid-card:hover::after {
    left: 150%;
}

.grid-card-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 6px;
}

.grid-card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.grid-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.grid-card-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--brand-yellow);
    background: rgba(255, 214, 10, 0.1);
    border: 1px solid rgba(255, 214, 10, 0.2);
    padding: 2px 8px;
    border-radius: 999px;
}

.channel-tab.active,
.filter-chip.active {
    background: var(--gradient-accent);
    color: #0A0D12;
}

/* ===== Adapt the existing channel/match aside to the player row ===== */

@media (min-width: 769px) {
    .channels-section {
        position: static;
        top: auto;
        height: auto;
        align-self: stretch;
        max-height: 760px;
        border-radius: 18px;
        padding: 18px;
    }
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--brand-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Category cards ===== */

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: rgba(255, 214, 10, 0.4);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
}

/* main gets its spacing from the dashboard layout now */
main {
    padding: 0;
}
