/* style.css — гламурная версия для сериала «Красота» */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --night: #0d060c;          /* глубокий зал, почти чёрный бархат */
    --curtain: #2a0f1d;        /* бордовый бархат занавеса */
    --panel: #1d0f18;          /* карточки */
    --gold: #f0c86a;           /* золото короны */
    --gold-bright: #ffe9b0;    /* блик на золоте */
    --gold-deep: #b8862e;
    --rose: #ff9ec2;           /* неоновая пудровая роза */
    --rose-deep: #d4527f;
    --champagne: #fdf6e8;      /* кремовый свет рампы */
    --smoke: #f0e4d0;
    --dim: #b39a90;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--night);
    background-image:
        radial-gradient(ellipse 1000px 500px at 75% -10%, rgba(240, 200, 106, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 800px 420px at 10% 0%, rgba(255, 158, 194, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 1200px 600px at 50% 110%, rgba(212, 82, 127, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% -10%, #241019 0%, transparent 55%);
    color: var(--smoke);
    font-family: 'Jost', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Лучи софитов, падающие сверху сцены */
body::before {
    content: '';
    position: fixed;
    top: -18%;
    left: 8%;
    width: 34%;
    height: 75vh;
    background: linear-gradient(180deg, rgba(240, 200, 106, 0.09) 0%, transparent 75%);
    transform: rotate(14deg);
    border-radius: 0 0 60% 60%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: sweepL 14s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: -18%;
    right: 6%;
    width: 30%;
    height: 70vh;
    background: linear-gradient(180deg, rgba(255, 158, 194, 0.07) 0%, transparent 75%);
    transform: rotate(-16deg);
    border-radius: 0 0 60% 60%;
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
    animation: sweepR 16s ease-in-out infinite alternate;
}

@keyframes sweepL {
    from { transform: rotate(14deg) translateX(0); opacity: 0.7; }
    to   { transform: rotate(9deg) translateX(30px); opacity: 1; }
}

@keyframes sweepR {
    from { transform: rotate(-16deg) translateX(0); opacity: 0.6; }
    to   { transform: rotate(-11deg) translateX(-35px); opacity: 1; }
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* Навбар */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(240, 200, 106, 0.6), rgba(255, 158, 194, 0.35), transparent) 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--champagne);
    text-shadow: 0 0 18px rgba(240, 200, 106, 0.35);
}

.logo span {
    background: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold-bright) 40%, var(--gold) 60%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge-live {
    background: linear-gradient(120deg, rgba(212, 82, 127, 0.2), rgba(240, 200, 106, 0.14));
    border: 1px solid rgba(255, 158, 194, 0.55);
    color: var(--rose);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 16px rgba(255, 158, 194, 0.2), inset 0 0 12px rgba(255, 158, 194, 0.08);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 158, 194, 0.15), inset 0 0 10px rgba(255, 158, 194, 0.06); }
    50%      { box-shadow: 0 0 22px rgba(255, 158, 194, 0.35), inset 0 0 14px rgba(255, 158, 194, 0.12); }
}

/* Заголовок с золотым бликом */
.hero-header { margin: 55px 0 34px; }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--champagne);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 3px 30px rgba(0, 0, 0, 0.6), 0 0 50px rgba(240, 200, 106, 0.18);
    position: relative;
    width: fit-content;
}

.hero-title span {
    background: linear-gradient(100deg, #8a5f1d 0%, var(--gold) 25%, var(--gold-bright) 45%, var(--gold) 62%, #8a5f1d 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s linear infinite;
    filter: drop-shadow(0 0 22px rgba(240, 200, 106, 0.4));
}

/* бегущий блик по золотым буквам */
@keyframes shine {
    0%   { background-position: 250% 0; }
    100% { background-position: -50% 0; }
}

.hero-subtitle {
    color: var(--dim);
    font-size: 16px;
    max-width: 640px;
    line-height: 1.6;
    border-left: 2px solid transparent;
    border-image: linear-gradient(180deg, var(--rose), var(--gold), transparent) 1;
    padding-left: 16px;
}

/* Сетка */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

/* Карточка серии: градиентная рамка «золото на бархате» */
.episode-card {
    background: var(--panel);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(240, 200, 106, 0.16);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* золотая кромка сцены, теперь живая */
.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(240, 200, 106, 0.7) 50%, transparent 100%);
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* мягкое свечение под карточкой */
.episode-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 158, 194, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.card-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #17090f;
    overflow: hidden;
}

/* рампа: свет снизу, как на подиуме */
.card-image-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(240, 200, 106, 0.12) 100%);
    pointer-events: none;
    z-index: 2;
}

.card-image-stub {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 70% 15%, rgba(240, 200, 106, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(255, 158, 194, 0.14) 0%, transparent 50%),
        linear-gradient(135deg, #341527 0%, #2a1220 55%, #1e0c15 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    filter: saturate(1.15) contrast(1.05);
    transition: transform 0.55s ease, filter 0.55s ease;
}

.episode-card:hover .card-image-stub {
    transform: scale(1.1);
    filter: saturate(1.3) contrast(1.1) brightness(1.12);
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background: linear-gradient(180deg, rgba(29, 15, 24, 0) 0%, rgba(29, 15, 24, 1) 30%);
    margin-top: -35px;
}

.ep-meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 158, 194, 0.4);
}

.episode-title {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--champagne);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.episode-desc {
    font-size: 13px;
    color: var(--dim);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

/* Кнопка с золотым шиммером */
.play-btn {
    margin-top: auto;
    position: relative;
    overflow: hidden;
    background: rgba(242, 231, 211, 0.04);
    border: 1px solid rgba(240, 200, 106, 0.35);
    color: var(--champagne);
    padding: 10px;
    border-radius: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 233, 176, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.episode-card:hover .play-btn::before { left: 130%; }

.episode-card:hover {
    border-color: rgba(240, 200, 106, 0.55);
    transform: translateY(-7px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 34px rgba(240, 200, 106, 0.16), inset 0 0 24px rgba(240, 200, 106, 0.05);
}

.episode-card:hover::before { opacity: 1; }
.episode-card:hover::after  { opacity: 1; }

.episode-card:hover .episode-title { color: var(--gold-bright); }

.episode-card:hover .play-btn {
    background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright), var(--gold));
    color: #1a0d08;
    border-color: var(--gold-bright);
    box-shadow: 0 0 26px rgba(240, 200, 106, 0.5);
    font-weight: 700;
}

/* Зерно плёнки: благородная текстура бархата, почти незаметная */
.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.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.06;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* FAQ: занавес с золотой каймой */
.faq-section {
    margin-top: 40px;
    padding: 34px 22px;
    background:
        radial-gradient(ellipse 700px 240px at 50% -30%, rgba(240, 200, 106, 0.1) 0%, transparent 65%),
        linear-gradient(180deg, #31141f 0%, var(--curtain) 40%, #1c0d14 100%);
    border-radius: 8px;
    border: 1px solid rgba(240, 200, 106, 0.2);
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(240, 200, 106, 0.18);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--champagne);
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(240, 200, 106, 0.25);
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--rose), var(--gold-bright), var(--gold), transparent);
    box-shadow: 0 0 10px rgba(240, 200, 106, 0.6);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.faq-item {
    background: linear-gradient(160deg, rgba(240, 200, 106, 0.04) 0%, var(--panel) 45%);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid rgba(242, 231, 211, 0.06);
    border-left: 2px solid rgba(255, 158, 194, 0.45);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: var(--gold);
    background: linear-gradient(160deg, rgba(240, 200, 106, 0.09) 0%, #2a1520 45%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(240, 200, 106, 0.05);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--champagne);
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover { color: var(--gold-bright); text-shadow: 0 0 14px rgba(240, 200, 106, 0.45); }

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: bold;
    color: var(--gold);
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(240, 200, 106, 0.5);
}

.faq-item.active .faq-question::after {
    content: '-';
    color: var(--rose);
}

.faq-answer {
    font-size: 14px;
    color: var(--dim);
    line-height: 1.6;
    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: 30px 0; }
    .episodes-grid { grid-template-columns: 1fr; gap: 18px; }

    .faq-section { padding: 20px 15px; }
    .section-title { font-size: clamp(20px, 5vw, 30px); }
    .faq-list { grid-template-columns: 1fr; }
    .faq-item { padding: 15px; }
    .faq-question { font-size: 15px; }
    .faq-answer { font-size: 13px; }

    body::before, body::after { opacity: 0.5; }
}
