/* style.css — «Айда!»: ночной двор, свет натриевого фонаря */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');

:root {
    --asphalt: #0b0b0c;        /* асфальт ночью */
    --concrete: #141415;       /* бетон панельки */
    --panel: #191a1c;          /* панели карточек */
    --gold: #d2a24c;           /* свет натриевого фонаря */
    --gold-dim: #9a7a3d;
    --steel: #23242a;          /* сталь гаражей */
    --ice: #c9cdd4;            /* холодный свет */
    --smoke: #d6d3cd;          /* пыльный тёплый свет */
    --dim: #8b8880;            /* сумерки */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--asphalt);
    background-image:
        radial-gradient(ellipse 900px 400px at 70% -5%, rgba(210, 162, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% -10%, #16151a 0%, transparent 60%);
    color: var(--smoke);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Навбар */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(210, 162, 76, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--smoke);
}

.logo span { color: var(--gold); }

.badge-live {
    background: rgba(210, 162, 76, 0.1);
    border: 1px solid rgba(210, 162, 76, 0.45);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Заголовок */
.hero-header { margin: 50px 0 30px; }

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--smoke);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.65);
}

.hero-title span {
    color: var(--gold);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.65), 0 0 30px rgba(210, 162, 76, 0.25);
}

.hero-subtitle {
    color: var(--dim);
    font-size: 16px;
    max-width: 640px;
    line-height: 1.5;
    border-left: 2px solid rgba(210, 162, 76, 0.5);
    padding-left: 14px;
}

/* Сетка */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

/* Карточка серии */
.episode-card {
    background: var(--panel);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s 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(210, 162, 76, 0.55) 50%, transparent 100%);
    opacity: 0.35;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.card-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #08080a;
    overflow: hidden;
}

.card-image-stub {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 70% 20%, rgba(210, 162, 76, 0.1) 0%, transparent 45%),
        linear-gradient(135deg, #131318 0%, #1e1d20 60%, #17161a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    filter: grayscale(0.5) contrast(1.05);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.episode-card:hover .card-image-stub {
    transform: scale(1.08);
    filter: grayscale(0.1) contrast(1.1);
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background: linear-gradient(180deg, rgba(25, 26, 28, 0) 0%, rgba(25, 26, 28, 1) 30%);
    margin-top: -35px;
}

.ep-meta {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.episode-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--smoke);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--smoke);
    padding: 10px;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.episode-card:hover {
    border-color: rgba(210, 162, 76, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(210, 162, 76, 0.08);
}

.episode-card:hover::before { opacity: 1; }

.episode-card:hover .play-btn {
    background: var(--gold);
    color: var(--asphalt);
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(210, 162, 76, 0.3);
}

/* Зерно плёнки */
.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.09;
    z-index: 9999;
}

/* FAQ */
.faq-section {
    margin-top: 40px;
    padding: 30px 20px;
    background-color: var(--concrete);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(210, 162, 76, 0.3);
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--smoke);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.faq-item {
    background-color: var(--panel);
    padding: 20px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(210, 162, 76, 0.35);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: var(--gold);
    background-color: #1d1e21;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    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(--gold); }

.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(--smoke);
}

.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; }
}
