/* Import Stranger Things inspired fonts */
@import url('https://fonts.googleapis.com/css2?family=Benguiat:wght@400;700&family=Montserrat:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --st-red: #D71920;
    --st-darkred: #8B0000;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --card-bg: #1a1a1a;
    --st-glow: rgba(215, 25, 32, 0.8);
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(215, 25, 32, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Stranger Things Logo Styling */
header {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(10,10,10,0.9) 100%);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 3px solid var(--st-red);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/background.webp') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo-image {
    max-width: 600px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 20px var(--st-glow));
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--st-glow));
    }
    50% {
        filter: drop-shadow(0 0 30px var(--st-red)) drop-shadow(0 0 40px var(--st-darkred));
    }
}

header h1 {
    font-family: 'Benguiat', serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--st-red);
    text-shadow:
        0 0 10px var(--st-glow),
        0 0 20px var(--st-glow),
        0 0 30px var(--st-darkred),
        2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 8px;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    94% { opacity: 0.8; }
    96% { opacity: 1; }
    98% { opacity: 0.9; }
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.season-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--st-red) 0%, var(--st-darkred) 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(215, 25, 32, 0.4);
}

nav {
    margin-top: 1.5rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    background: rgba(215, 25, 32, 0.2);
    border: 1px solid var(--st-red);
    border-radius: 5px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

nav a:hover {
    background: var(--st-red);
    box-shadow: 0 5px 20px rgba(215, 25, 32, 0.5);
    transform: translateY(-2px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 4rem;
    position: relative;
}

.season-poster {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.season-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}

.poster-overlay h2 {
    font-family: 'Benguiat', serif;
    font-size: 3rem;
    color: var(--st-red);
    text-shadow: 0 0 20px var(--st-glow);
    margin-bottom: 1rem;
}

.player-section,
.info-section {
    margin-bottom: 4rem;
}

h2 {
    font-family: 'Benguiat', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--st-red);
    text-shadow: 0 0 10px var(--st-glow);
    letter-spacing: 3px;
}

/* Episodes Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.episode-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.episode-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--st-red);
    box-shadow: 0 15px 40px rgba(215, 25, 32, 0.4);
}

.episode-thumbnail {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.episode-card:hover .episode-thumbnail img {
    transform: scale(1.1);
}

.episode-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.episode-info-card {
    padding: 1.5rem;
    background: var(--card-bg);
}

.episode-number {
    font-size: 1rem;
    color: var(--st-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.episode-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.episode-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.episode-card.featured {
    border: 2px solid var(--st-red);
    animation: pulse 2s infinite;
}

.episode-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(215, 25, 32, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(215, 25, 32, 0.5); }
    50% { box-shadow: 0 0 50px rgba(215, 25, 32, 0.8); }
}

.episode-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Player Styles */
.player-wrapper {
    margin-bottom: 4rem;
}

.video-player {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    border: 2px solid var(--st-red);
}

.player-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url('images/episode-8-thumb.webp') center/cover no-repeat;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.player-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    transition: background 0.3s;
}

.player-placeholder:hover::before {
    background: rgba(0,0,0,0.4);
}

.player-placeholder > * {
    position: relative;
    z-index: 1;
}

.play-button {
    transition: transform 0.3s;
    filter: drop-shadow(0 5px 20px rgba(215, 25, 32, 0.7));
}

.player-placeholder:hover .play-button {
    transform: scale(1.15);
}

.play-button svg circle {
    fill: rgba(255,255,255,0.95);
}

.play-button svg polygon {
    fill: var(--st-red);
}

.player-text {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.episode-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.nav-button {
    padding: 1rem 2rem;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid rgba(215, 25, 32, 0.3);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-button:hover:not(.disabled) {
    background: var(--st-red);
    border-color: var(--st-red);
    box-shadow: 0 5px 20px rgba(215, 25, 32, 0.4);
    transform: translateY(-2px);
}

.nav-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Content Section */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
}

.episode-info,
.seo-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(215, 25, 32, 0.2);
}

.episode-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.episode-poster {
    width: 250px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-meta {
    flex: 1;
}

.episode-info h3,
.seo-content h3 {
    color: var(--st-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.episode-info ul,
.seo-content ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.episode-info li,
.seo-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.episode-details {
    list-style: none;
    margin-left: 0;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 10px;
}

.episode-details li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.episode-details li:last-child {
    border-bottom: none;
}

.episode-details strong {
    color: var(--st-red);
    margin-right: 0.5rem;
}

/* Telegram CTA */
.telegram-cta {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
    border: 2px solid #0088cc;
    box-shadow: 0 10px 40px rgba(0, 136, 204, 0.3);
}

.telegram-cta.featured {
    background: linear-gradient(135deg, var(--st-red) 0%, #0088cc 100%);
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.telegram-cta h3 {
    font-family: 'Benguiat', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.telegram-cta ul {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
    list-style: none;
}

.telegram-cta li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.telegram-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #fff;
    color: #0088cc;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.telegram-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.telegram-button.large {
    font-size: 1.4rem;
    padding: 1.5rem 4rem;
}

.subscribers {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--darker-bg);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--st-red);
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

footer a {
    color: var(--st-red);
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    text-shadow: 0 0 10px var(--st-glow);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .logo-image {
        max-width: 400px;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .episode-thumbnail {
        height: 200px;
    }

    .episode-header {
        flex-direction: column;
    }

    .episode-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .telegram-cta h3 {
        font-size: 1.6rem;
    }

    .episode-info,
    .seo-content {
        padding: 2rem 1.5rem;
    }

    .poster-overlay h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .telegram-button.large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    header h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1.8rem;
    }
}
