:root {
    --primary: #e50914;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-dim: #8c8c8c;
    --accent-gold: #FFD700;
    --accent-purple: #9b59b6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Reusing styles from movie_detail.html */
.hero-backdrop {
    position: relative;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
    padding-top: 80px;
}

.backdrop-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: blur(8px) brightness(0.4);
}

.backdrop-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.3) 0%,
        rgba(10,10,10,0.7) 50%,
        rgba(10,10,10,1) 100%
    );
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 4%;
    background: rgba(10, 10, 10, 0);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 4%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-input {
    width: 0;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px 0 0 25px;
    color: white;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.search-input.active {
    width: 200px;
    opacity: 1;
    pointer-events: auto;
}

.search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--primary);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-radius: 0 25px 25px 0;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    opacity: 0;
    pointer-events: none;
}

.search-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.search-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.search-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
}

.search-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    padding: 0 4% 3%;
    z-index: 10;
}

.movie-main-info {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-end;
}

.poster-float {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transition: transform 0.5s ease;
    animation: posterFloat 1s ease-out;
}

@keyframes posterFloat {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poster-float:hover {
    transform: translateY(-10px) scale(1.02);
}

.poster-float img {
    width: 100%;
    height: auto;
    display: block;
}

.title-section {
    animation: titleSlide 1s ease-out 0.2s both;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.movie-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

.meta-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge.rating {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.badge.year {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--primary);
}

.badge.status-ongoing {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

.badge.status-completed {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    color: #3498db;
}

.genre-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.genre-pill {
    background: rgba(255,255,255,0.05);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.genre-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.description-preview {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

.primary-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.content-wrapper {
    max-width: 1400px;
    margin: -44px auto 0;
    padding: 0 4%;
    position: relative;
    z-index: 5;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.content-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Seasons & Episodes Styles */
.seasons-container {
    margin-top: 20px;
}

.season-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.season-tab {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
}

.season-tab:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.season-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.season-content {
    display: none;
}

.season-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.season-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.season-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.season-description {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.episodes-grid {
    display: grid;
    gap: 20px;
}

.episode-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.episode-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.2);
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.episode-number-badge {
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
}

.episode-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.episode-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.episode-description {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 15px;
}

.episode-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quality-option {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.quality-option:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.quality-option.primary {
    background: linear-gradient(135deg, var(--primary), #ff4d5e);
    border-color: transparent;
}

.quality-option.recommended {
    background: linear-gradient(135deg, var(--accent-gold), #ffa500);
    color: #000;
    border-color: transparent;
}

/* Rating Card */
.rating-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.rating-display {
    margin-bottom: 30px;
}

.rating-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    line-height: 1;
    color: var(--accent-gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 24px;
    margin: 15px 0;
}

.star {
    color: rgba(255, 215, 0, 0.3);
}

.star.filled {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-count {
    font-size: 14px;
    color: var(--text-dim);
}

.rate-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.rate-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.star-rating {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.star-btn {
    font-size: 36px;
    color: rgba(255, 215, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
}

.star-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.star-btn.active {
    color: var(--accent-gold);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
}

.comment-form {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.08);
    border-color: var(--primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 15px 35px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    background: #ff0a1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.comment:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.author-name {
    font-weight: 700;
    font-size: 16px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-dim);
}

.comment-text {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 60px;
    color: var(--text-dim);
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px dashed rgba(255,255,255,0.1);
}


/* Footer */
.footer {
    margin-top: 80px;
    padding: 60px 4% 30px;
    background: linear-gradient(to bottom, var(--bg-dark), #000);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-text {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 13px;
}


        /* Scroll animation for slideDown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

        /* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .movie-main-info {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    .search-input.active {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .hero-backdrop {
        height: auto;
        min-height: 650px;
        padding-top: 80px;
        padding-bottom: 30px;
        display: flex;
        align-items: flex-end;
    }

    .hero-content {
        position: relative;
        bottom: 0;
        padding: 20px 20px 30px;
        width: 100%;
    }

    .movie-main-info {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
        padding-top: 20px;
    }

    .poster-float {
        max-width: 200px;
        margin: 0 auto 20px;
    }

    .title-section {
        text-align: center;
    }

    .movie-title {
        font-size: 26px;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .meta-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }

    .badge {
        padding: 6px 14px;
        font-size: 13px;
    }

    .genre-pills {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }

    .genre-pill {
        padding: 5px 14px;
        font-size: 12px;
    }

    .description-preview {
        margin: 0 auto 20px;
        text-align: center;
        font-size: 14px;
        line-height: 1.5;
        max-width: 100%;
    }

    .primary-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        max-width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .navbar {
        padding: 12px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a:not(.search-toggle) {
        display: none;
    }

    .search-input.active {
        width: 120px;
    }
    }

@media (max-width: 480px) {
    .content-card {
        padding: 25px 20px;
    }

    .episodes-grid {
        gap: 15px;
    }

    .episode-card {
        padding: 15px;
    }

    .episode-actions {
        flex-direction: column;
    }

    .quality-option {
        width: 100%;
        text-align: center;
    }

    .hero-backdrop {
        min-height: 600px;
        padding-top: 70px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .logo {
        font-size: 22px;
    }

    .search-input.active {
        width: 100px;
    }
}
