/* style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #050505; color: white; font-family: 'Inter', sans-serif; min-height: 100vh; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Навбар */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.logo { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; }
.logo span { color: #00FF41; }
.badge-live { background: rgba(0,255,65,0.1); color: #00FF41; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* Заголовок */
.hero-header { margin: 60px 0 40px; }
.hero-title { font-size: clamp(32px, 5vw, 64px); font-weight: 900; margin-bottom: 10px; }
.hero-title span { color: #00FF41; }
.hero-subtitle { color: #666; font-size: 18px; }

/* Сетка */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* УЛУЧШЕННАЯ КАРТОЧКА */
.episode-card {
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Контейнер для имитации изображения */
.card-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #1a1a1a;
    overflow: hidden;
}

.card-image-stub {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #111, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: transform 0.6s ease;
}

.episode-card:hover .card-image-stub {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,1) 20%);
    margin-top: -40px;
}

.ep-meta {
    font-size: 11px;
    font-weight: 700;
    color: #00FF41;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.episode-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.episode-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Кнопка внутри карточки */
.play-btn {
    margin-top: auto;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.episode-card:hover {
    border-color: rgba(0,255,65,0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0,255,65,0.05);
}

.episode-card:hover .play-btn {
    background: #00FF41;
    color: #000;
    border-color: #00FF41;
}

/* Эффект шума */
.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
    .hero-header { margin: 30px 0; }
    .episodes-grid { grid-template-columns: 1fr; gap: 20px; }
}
