/* ---------------------------------------------------------------
   GLOBAL
--------------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #020617 100%);
}

main {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---------------------------------------------------------------
   2. HEADER / NAVIGATION (Clean & Minimal)
--------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: none;
}

/* Left Side: Navigation Links */
.header-left {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 30px;
}

/* Right Side: Auth Links */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Typography for ALL Header Links */
.main-nav a,
.nav-link-right {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-link-right:hover {
    color: #ffffff;
}

/* User Email Style */
.user-welcome {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

/* ---------------------------------------------------------------
   HOME HERO (Giant Logo + Search)
--------------------------------------------------------------- */
.flim-hero {
    padding: 140px 50px 40px 50px;   /* clears fixed header */
    margin-bottom: 0;
}

.flim-hero-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 100%;
}

/* The Big "CineSearch." */
.giant-logo {
    font-size: 13vw;
    line-height: 0.8;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.05em;
    color: #fff;
}

.flim-content-container {
    text-align: right;
    max-width: 400px;
    margin-bottom: 10px;
}

.flim-description {
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* Search Bar */
.flim-search-form {
    display: flex;
    align-items: center;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 5px 5px 5px 15px;
}

.flim-search-form:focus-within {
    border-color: #38bdf8;
}

.flim-search-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.flim-search-btn {
    background: #38bdf8;
    border: none;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flim-search-btn:hover {
    background: #7dd3fc;
}

/* ---------------------------------------------------------------
   MASONRY GRID (Film-Grab Style)
--------------------------------------------------------------- */
.trending-section {
    width: 100%;
    padding: 20px; /* Added padding to frame the content */
    max-width: 1800px; /* Prevent it from stretching too wide on huge screens */
    margin: 0 auto;
    box-sizing: border-box;
}

.trending-grid {
    display: block;
    column-count: 3;
    column-gap: 0;
    width: 100%;
    border-radius: 16px; /* Rounded corners for the whole grid */
    overflow: hidden;    /* Clip content to the rounded corners */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Subtle lift */
}

@media (min-width: 1600px) {
    .trending-grid { column-count: 4; }
}
@media (max-width: 900px) {
    .trending-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .trending-grid { column-count: 1; }
}

.cinematic-card {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    break-inside: avoid;
    overflow: hidden;
    background: black;
}

.cinematic-image {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #020617;
    transition: transform 0.5s ease;
}

/* Fake Masonry Ratios */
.trending-grid .cinematic-card:nth-child(2n) .cinematic-image {
    aspect-ratio: 4/3;
    object-fit: cover;
}
.trending-grid .cinematic-card:nth-child(5n) .cinematic-image {
    aspect-ratio: 21/9;
    object-fit: cover;
}
.trending-grid .cinematic-card:nth-child(7n) .cinematic-image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Hover Overlay */
.cinematic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.cinematic-card:hover .cinematic-overlay {
    opacity: 1;
}

.cinematic-card:hover .cinematic-image {
    transform: scale(1.05);
}

.cinematic-title {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cinematic-year,
.cinematic-rating {
    color: #94a3b8;
    font-size: 0.9rem;
}

.cinematic-rating {
    color: #facc15;
    margin-top: 5px;
}

/* ---------------------------------------------------------------
   WATCHLIST GRID
--------------------------------------------------------------- */
.watchlist-header-container {
    max-width: 1100px;         /* align with grid */
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* row with Sort (left) and Filter (right) */
.watchlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.watchlist-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));   /* 4 per row on desktop */
    max-width: 1100px;
    margin: 40px auto 80px;
    gap: 24px;
    padding: 0 20px;
    box-sizing: border-box;
}

.watchlist-card {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.watchlist-poster-wrapper {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
}

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

/* overlay badges on poster (rating, watched) */
.badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.rating-badge {
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #facc15;
}

.watched-badge {
    bottom: 10px;
    left: 10px;
    background: #22c55e;
    color: #0b1120;
}

/* Sort / Filter pills */
.toolbar-pill {
    background: transparent;
    border: 1px solid #38bdf8;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #38bdf8;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.toolbar-pill:hover,
.toolbar-pill.active {
    background: #38bdf8;
    color: #0b1120;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

/* Meta + actions under each watchlist card */
.watchlist-meta {
    padding: 12px 14px 0 14px;
}

.watchlist-title {
    margin: 0;
}

.watchlist-title a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
    text-decoration: none;
}

.watchlist-title a:hover {
    color: #ffffff;
}

.watchlist-year {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 4px 0 0;
}

.watchlist-actions {
    padding: 12px 14px 16px 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Mark as watched / Remove buttons */
.action-btn,
.remove-btn {
    border-radius: 999px;
    border: 1px solid #38bdf8;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.75rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover,
.remove-btn:hover {
    background: #38bdf8;
    color: #0b1120;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

/* already-watched look */
.action-btn.watched {
    background: #38bdf8;
    color: #0b1120;
}

/* ---------------------------------------------------------------
   Auth & Flash
--------------------------------------------------------------- */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(2,6,23,0.95);
    border-radius: 1.5rem;
    border: 1px solid rgba(148,163,184,0.2);
}

.btn-primary {
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* =============================
   LOGO + PAGE HEADER (SUBPAGES)
   ============================= */

/* Big CineSearch wordmark used on film detail + watchlist pages */
.mini-logo {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin-bottom: 20px;
    display: block;
    text-align: left;
}

.mini-logo span {
    color: #38bdf8;
}

.page-logo-wrapper {
    max-width: 1200px;
    margin: 140px auto 20px;   /* clears fixed header */
    padding: 0 40px;
}

/* =============================
   FILM DETAIL HERO (Section 1)
   ============================= */

.detail-hero {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

/* Main tile */
.detail-card {
    background: #0f172a;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    margin-bottom: 40px;
}

/* Two-column layout */
.detail-hero-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left: Poster */
.detail-hero-left {
    flex: 0 0 300px;
    width: 300px;
}

.detail-poster {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
    display: block;
}

/* Right: Content */
.detail-hero-right {
    flex: 1;
}

/* Title */
.detail-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: #ffffff;
}

/* Meta row: rating, runtime, genres */
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.detail-rating-pill {
    background: rgba(248, 250, 252, 0.08);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
}

.detail-chip {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Plot */
.detail-overview {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 24px 0;
}

/* Buttons row */
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* Outline button (Watchlist) */
.btn-outline {
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    color: #e5e7eb;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.95;
    transition: all 0.18s ease;
}

.btn-outline:hover:not([disabled]) {
    background: rgba(148, 163, 184, 0.12);
    opacity: 1;
}

.btn-outline[disabled] {
    cursor: default;
    opacity: 0.6;
}

/* Brand button (Rate & review, Submit review, etc.) */
.btn-brand-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #38bdf8;
    color: #0b1120;
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 24px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-brand-blue:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.65);
}

.btn-brand-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #a855f7;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 24px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.45);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-brand-purple:hover {
    background: #9333ea;
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.65);
}

/* Actors line */
.detail-actors {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* =============================
   Reviews & Similar sections
   ============================= */

.detail-reviews-section {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Similar titles wrapper (extra padding already on inner card) */
.detail-section {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
}

/* Similar tiles grid */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.similar-card {
    background: #020617;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.similar-poster {
    width: 100%;
    border-radius: 14px;
    padding-top: 140%;
    margin-bottom: 10px;
}

/* Gradient “fake posters” */
.gradient-one {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
}
.gradient-two {
    background: linear-gradient(135deg, #2dd4bf, #4ade80);
}
.gradient-three {
    background: linear-gradient(135deg, #f97316, #ec4899);
}
.gradient-four {
    background: linear-gradient(135deg, #a855f7, #38bdf8);
}

.similar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

/* ================================
   REVIEWS PAGE STYLING
   ================================ */

.reviews-page {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

/* Clean header */

.reviews-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

.inline-link {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Section styling */

.reviews-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0;
}

.section-chip {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.5);
}

/* Review list & cards */

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 24px;
    background: #0f172a;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    border-color: rgba(56, 189, 248, 0.3);
}

/* Poster placeholder */

.review-poster {
    width: 80px;
    height: 118px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1d4ed8, #22d3ee, #a855f7);
}

.review-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(248, 250, 252, 0.2), transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(248, 250, 252, 0.18), transparent 55%);
    mix-blend-mode: screen;
}

/* Review body */

.review-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.review-title-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f9fafb;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.review-title-link:hover {
    color: #38bdf8;
}

/* Rating pill */

.review-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.star-icon {
    color: #fbbf24;
    font-size: 1em;
}

.rating-value {
    font-weight: 700;
}

/* Text & footer */

.review-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.review-meta {
    font-size: 0.85rem;
    color: #64748b;
}

/* Empty state */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.empty-message {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.empty-hint {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* =============================
   Responsive tweaks
   ============================= */

/* Watchlist responsive columns */
@media (max-width: 1200px) {
    .watchlist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .watchlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .watchlist-grid {
        grid-template-columns: 1fr;
    }
}

/* Film detail responsive layout */
@media (max-width: 900px) {
    .detail-hero {
        padding: 0 20px;
    }

    .detail-card {
        padding: 26px;
    }

    .detail-hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .detail-hero-left {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .detail-title {
        font-size: 2.2rem;
    }

    .detail-reviews-section,
    .detail-section {
        padding: 0 20px;
    }
}

/* ===========================================
   AUTH CARD (Login + Register)
=========================================== */
.auth-card {
    max-width: 420px;
    margin: 40px auto 100px;
    padding: 40px 36px;
    background: rgba(2, 6, 23, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,0.2);
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle distinction between Login and Register */
.auth-card-login {
    border-top: 4px solid #38bdf8; /* Sky Blue */
}

.auth-card-register {
    border-top: 4px solid #a855f7; /* Purple */
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.form-field label {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    padding: 12px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.form-field input:focus {
    outline: none;
    border-color: #38bdf8;
}

/* Submit button */
.auth-submit {
    width: 100%;
    margin-top: 10px;
}

/* Register/Login link */
.auth-link {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.auth-link a {
    color: #38bdf8;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------------
   FLASH MESSAGES (Toast Style)
--------------------------------------------------------------- */
.flash-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.flash-message {
    pointer-events: auto;
    background: #1e293b;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid #38bdf8;
    animation: slideIn 0.3s ease-out forwards;
    max-width: 350px;
}

.flash-message.success {
    border-left-color: #22c55e;
    background: #022c22; /* Very dark green */
}

.flash-message.error {
    border-left-color: #ef4444;
    background: #450a0a; /* Very dark red */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Emoji flourish animation */
.emoji-flourish {
    display: inline-block;
    margin-left: 6px;
    animation: flourishPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes flourishPop {
    0% { transform: scale(0.5) rotate(-15deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ===========================================
   ABOUT PAGE
=========================================== */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    color: #e5e7eb;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 600;
}

/* Content Sections */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.about-section p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

/* Feature Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #0f172a;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #1e293b;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===========================================
   TRAILER SECTION
=========================================== */
.detail-trailer-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.trailer-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: #000;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===========================================
   PAGINATION
=========================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: #38bdf8;
    color: #0b1120;
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #64748b;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-number:hover:not(.active) {
    background: rgba(148, 163, 184, 0.1);
    color: #e5e7eb;
}

.pagination-number.active {
    background: #38bdf8;
    color: #0b1120;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.pagination-ellipsis {
    color: #64748b;
    font-size: 0.9rem;
    padding: 0 4px;
}

/* ===========================================
   SEARCH RESULTS GRID
=========================================== */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.search-card {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(56, 189, 248, 0.4);
}

.search-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.search-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.search-card-year {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: auto;
}

/* ===========================================
   FALLBACK POSTER
=========================================== */
.fallback-poster {
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fallback-icon {
    color: #334155;
    margin-bottom: 10px;
}

.fallback-text {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
