/* style.css — премиум-стриминг Лиги чемпионов */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&family=Barlow+Condensed:wght@500;600;700&display=swap');

:root {
    --asphalt: #050a1e;        /* глубина ночного неба */
    --concrete: #0a1130;       /* стадионные трибуны */
    --panel: #101a3d;          /* панели карточек */
    --gold: #4f8dff;           /* искристый синий звёзд */
    --gold-dim: #2b5fc7;
    --steel: #1a2450;
    --ice: #dfe7ff;            /* серебристый лёд */
    --smoke: #eef1fa;
    --dim: #8b95b8;
    --silver: #c8d2ee;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--asphalt);
    background-image:
        radial-gradient(ellipse 1000px 500px at 50% -10%, rgba(79, 141, 255, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 700px 400px at 85% 20%, rgba(120, 160, 255, 0.07) 0%, transparent 60%),
        radial-gradient(circle 2px at 12% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(circle 1.5px at 34% 12%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(circle 2px at 58% 8%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(circle 1.5px at 78% 26%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(circle 1.5px at 92% 44%, rgba(255,255,255,0.3) 0%, transparent 100%),
        linear-gradient(180deg, #061030 0%, var(--asphalt) 55%);
    color: var(--smoke);
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Навбар — стеклянная панель */
.navbar {
    padding: 20px 28px;
    margin: 16px 0 36px;
    border-radius: 16px;
    background: rgba(16, 26, 61, 0.55);
    border: 1px solid rgba(140, 170, 255, 0.14);
    box-shadow: 0 12px 40px rgba(2, 6, 25, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--smoke);
}

.logo span { color: var(--gold); }



.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 999px;
    background: rgba(79, 141, 255, 0.18);
    filter: blur(12px);
    pointer-events: none;
    animation: pulse-live 2.2s infinite ease-in-out;
    z-index: 1;
}

/* Красная точка LIVE */
.logo::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #ff3b3b;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.65);
    animation: pulse-dot 1.4s infinite cubic-bezier(0.2, 0, 0.8, 1);
    z-index: 2;
}


@keyframes pulse-live {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.55;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.12);
        opacity: 0.85;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.55;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        transform: translateY(-50%) scale(0.9);
        box-shadow: 0 0 8px rgba(255, 59, 59, 0.45);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50%) scale(1.15);
        box-shadow: 0 0 22px rgba(255, 59, 59, 0.85);
        opacity: 1;
    }
}




.badge-live {
    background: linear-gradient(135deg, rgba(79, 141, 255, 0.22), rgba(79, 141, 255, 0.08));
    border: 1px solid rgba(79, 141, 255, 0.55);
    color: var(--ice);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    box-shadow: 0 0 18px rgba(79, 141, 255, 0.3);
}

/* Заголовок */
.hero-header { margin: 60px 0 36px; }

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--smoke);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.05;
}

.hero-title span {
    background: linear-gradient(100deg, #7fb0ff 0%, #dfe7ff 50%, #4f8dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--dim);
    font-size: 16px;
    max-width: 640px;
    line-height: 1.6;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--gold), transparent) 1;
    padding-left: 16px;
}

/* Сетка */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
}

/* Карточка матча — стеклянный экран стадиона */
.episode-card {
    background: linear-gradient(160deg, rgba(26, 36, 80, 0.75) 0%, rgba(13, 20, 48, 0.9) 100%);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(140, 170, 255, 0.12);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(2, 6, 25, 0.4);
}

/* светящаяся дуга звёздного шара сверху */
.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.45;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.card-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #060c22;
    overflow: hidden;
}

.card-image-stub {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(79, 141, 255, 0.25) 0%, transparent 55%),
        linear-gradient(160deg, #122052 0%, #0c1434 55%, #080f28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.episode-card:hover .card-image-stub {
    transform: scale(1.09);
    filter: brightness(1.15) saturate(1.1);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background: linear-gradient(180deg, rgba(16, 26, 61, 0) 0%, rgba(13, 20, 48, 1) 32%);
    margin-top: -38px;
}

.ep-meta {
    font-size: 10px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.episode-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.25;
    color: var(--smoke);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.episode-desc {
    font-size: 13px;
    color: var(--dim);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

/* Кнопка внутри карточки */
.play-btn {
    margin-top: auto;
    background: rgba(140, 170, 255, 0.08);
    border: 1px solid rgba(140, 170, 255, 0.22);
    color: var(--ice);
    padding: 11px;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.episode-card:hover {
    border-color: rgba(79, 141, 255, 0.55);
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(2, 6, 25, 0.7), 0 0 35px rgba(79, 141, 255, 0.18);
}

.episode-card:hover::before { opacity: 1; }

.episode-card:hover .play-btn {
    background: linear-gradient(135deg, #5f9aff, #2b5fc7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(79, 141, 255, 0.45);
}

/* Звёздная пыль вместо зерна плёнки */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1, 0 0 0 0 1, 0 0 0 0 1, 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: 9999;
}

/* FAQ */
.faq-section {
    margin-top: 50px;
    padding: 36px 24px;
    background: linear-gradient(160deg, rgba(26, 36, 80, 0.55), rgba(10, 17, 48, 0.85));
    border-radius: 18px;
    border: 1px solid rgba(140, 170, 255, 0.12);
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--smoke);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(140, 170, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(79, 141, 255, 0.45);
    background: rgba(79, 141, 255, 0.08);
    box-shadow: 0 0 24px rgba(79, 141, 255, 0.12);
}

.faq-question {
    font-size: 16px;
    font-weight: 800;
    color: var(--smoke);
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover { color: var(--ice); }

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: bold;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
    color: var(--silver);
}

.faq-answer {
    font-size: 14px;
    color: var(--dim);
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 260px;
    padding-top: 12px;
    opacity: 1;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-header { margin: 32px 0 26px; }
    .episodes-grid { grid-template-columns: 1fr; gap: 20px; }
    .navbar { margin: 10px 0 26px; }

    .faq-section { padding: 22px 16px; }
    .section-title { font-size: clamp(20px, 5vw, 30px); }
    .faq-list { grid-template-columns: 1fr; }
    .faq-item { padding: 16px; }
    .faq-question { font-size: 15px; }
    .faq-answer { font-size: 13px; }
}