/* ==========================================================================
   AI MOVIE — MOVIE DETAIL PAGE STYLES (detail.css)
   ========================================================================== */

        .hero-banner {
            position: relative;
            background-size: cover;
            background-position: center top;
            background-repeat: no-repeat;
            padding-block: 3.5rem 2.5rem;
            border-bottom: 1px solid var(--border-subtle);
        }

        .hero-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(11, 14, 20, 0.4) 0%, rgba(11, 14, 20, 0.85) 65%, #0B0E14 100%);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 2.5rem;
            align-items: flex-end;
        }


        .hero-poster-wrapper {
            position: relative;
            aspect-ratio: 2 / 3;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            border: 2px solid rgba(255, 255, 255, 0.1);
            background: #151A24;
        }

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

        .hero-title-area {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .hero-title {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1.15;
            letter-spacing: -0.02em;
            color: #FFFFFF;
        }

        .hero-title-orig {
            font-size: 1.35rem;
            font-weight: 500;
            color: var(--text-muted);
            margin-left: 0.65rem;
            display: inline-block;
        }

        .hero-genres-row {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .hero-meta-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            font-size: 0.95rem;
            color: var(--text-secondary);
        }

        .rating-badge-pill {
            background: rgba(255, 255, 255, 0.1);
            color: #FFFFFF;
            font-weight: 700;
            padding: 0.2rem 0.6rem;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 0.85rem;
        }

        .genre-pill {
            background: rgba(56, 189, 248, 0.12);
            color: var(--accent-blue);
            font-weight: 600;
            padding: 0.25rem 0.75rem;
            border-radius: var(--radius-full);
            font-size: 0.85rem;
            border: 1px solid rgba(56, 189, 248, 0.25);
        }

        /* Scoreboard Grid (IMDb + RT) */
        .scoreboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 1.25rem;
            margin-block: 2.5rem;
        }

        .score-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 1.25rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: transform 0.2s, border-color 0.2s;
        }

        .score-card:hover {
            transform: translateY(-2px);
            border-color: var(--border-highlight);
        }

        .score-icon {
            font-size: 2.4rem;
            line-height: 1;
        }

        .score-value {
            font-size: 1.8rem;
            font-weight: 800;
            line-height: 1.1;
        }

        .score-label {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-top: 0.2rem;
        }

        .score-sub {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .score-imdb { border-left: 4px solid var(--imdb-gold); }
        .score-imdb .score-value { color: var(--imdb-gold); }

        .score-rt { border-left: 4px solid var(--rt-tomato); }
        .score-rt .score-value { color: #FFFFFF; }

        .score-popcorn { border-left: 4px solid var(--rt-popcorn); }
        .score-popcorn .score-value { color: var(--rt-popcorn); }

        .score-awards { border-left: 4px solid #A855F7; }

        /* User Status Card */
        .user-status-card {
            background: linear-gradient(135deg, rgba(20, 26, 36, 0.95) 0%, rgba(11, 14, 20, 0.98) 100%);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 1.5rem 2rem;
            margin-bottom: 2.5rem;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        }

        .status-card-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            flex-wrap: wrap;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--border-subtle);
        }

        .status-card-left {
            display: flex;
            align-items: center;
            gap: 1.25rem;
        }

        .status-avatar-wrap {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            background: rgba(11, 14, 20, 0.8);
            border: 1px solid var(--border-subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .status-pill {
            font-size: 0.78rem;
            font-weight: 700;
            padding: 0.2rem 0.65rem;
            border-radius: var(--radius-full);
            background: rgba(100, 116, 139, 0.2);
            color: var(--text-muted);
            border: 1px solid rgba(100, 116, 139, 0.3);
        }

        .status-pill.watched {
            background: rgba(16, 185, 129, 0.15);
            color: #34D399;
            border-color: rgba(16, 185, 129, 0.4);
        }

        .btn-status-toggle {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
            padding: 0.65rem 1.25rem;
            border-radius: var(--radius-full);
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }

        .btn-status-toggle:hover {
            border-color: var(--accent-blue);
            transform: translateY(-1px);
        }

        .btn-status-toggle.active {
            background: rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.6);
            color: #34D399;
        }

        .status-rating-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            padding-top: 1.25rem;
        }

        @media (max-width: 860px) {
            .status-rating-row {
                grid-template-columns: 1fr;
                gap: 1.25rem;
            }
        }

        .detail-star-widget {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            user-select: none;
        }

        .detail-star-item {
            position: relative;
            width: 32px;
            height: 32px;
            cursor: pointer;
        }

        .detail-star-half {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            z-index: 5;
        }

        .detail-star-half.left { left: 0; }
        .detail-star-half.right { right: 0; }

        .detail-star-svg {
            width: 32px;
            height: 32px;
            pointer-events: none;
            transition: transform 0.15s;
        }

        .detail-star-item:hover .detail-star-svg {
            transform: scale(1.18);
        }

        .detail-rating-label {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--imdb-gold);
            background: rgba(245, 197, 24, 0.1);
            padding: 0.25rem 0.75rem;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(245, 197, 24, 0.25);
        }

        .btn-reset-detail-rating {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 0.8rem;
            cursor: pointer;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            transition: color 0.2s;
        }

        .btn-reset-detail-rating:hover {
            color: #F87171;
            background: rgba(239, 68, 68, 0.1);
        }

        .detail-note-input {
            flex: 1;
            background: var(--bg-base);
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
            padding: 0.65rem 1rem;
            border-radius: var(--radius-md);
            font-size: 0.88rem;
            font-family: inherit;
        }

        .detail-note-input:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .btn-save-note {
            background: var(--bg-card);
            border: 1px solid var(--border-highlight);
            color: #FFFFFF;
            padding: 0.65rem 1rem;
            border-radius: var(--radius-md);
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .btn-save-note:hover {
            background: #2D3A50;
            border-color: var(--accent-blue);
        }

        /* Hero Rating Widget */
        .hero-rating-pill {
            background: rgba(11, 14, 20, 0.75);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 8px;
            padding: 0.55rem 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            transition: all 0.2s;
        }

        .hero-rating-pill:hover {
            border-color: rgba(245, 197, 24, 0.5);
            background: rgba(20, 26, 36, 0.9);
        }

        .hero-star-widget {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            user-select: none;
        }

        .hero-star-item {
            position: relative;
            width: 22px;
            height: 22px;
            cursor: pointer;
        }

        .hero-star-half {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            z-index: 5;
        }

        .hero-star-half.left { left: 0; }
        .hero-star-half.right { right: 0; }

        .hero-star-svg {
            width: 22px;
            height: 22px;
            pointer-events: none;
            transition: transform 0.15s;
        }

        .hero-star-item:hover .hero-star-svg {
            transform: scale(1.2);
        }

        .hero-rating-score-text {
            font-size: 0.88rem;
            font-weight: 800;
            color: var(--imdb-gold);
            white-space: nowrap;
        }

        /* Critics Consensus Quote Banner */
        .consensus-banner {
            background: linear-gradient(135deg, rgba(250, 50, 10, 0.08) 0%, rgba(20, 26, 36, 0.8) 100%);
            border: 1px solid rgba(250, 50, 10, 0.3);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin-block-end: 2.5rem;
            display: flex;
            gap: 1.25rem;
            align-items: flex-start;
        }

        .consensus-icon {
            font-size: 2.2rem;
            line-height: 1;
        }

        .consensus-title {
            font-size: 0.85rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--rt-tomato);
            margin-bottom: 0.4rem;
        }

        .consensus-text {
            font-size: 1.05rem;
            font-style: italic;
            color: var(--text-primary);
            line-height: 1.5;
        }

        /* Trailer Player */
        .trailer-section {
            margin-block-end: 3rem;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-card);
        }

        .section-header {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border-subtle);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .video-container {
            position: relative;
            aspect-ratio: 16 / 9;
            width: 100%;
            background: #000;
            overflow: hidden;
        }

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

        /* Authentic YouTube Preview Facade */
        .yt-facade {
            position: absolute;
            inset: 0;
            background-color: #000;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            user-select: none;
        }

        .yt-poster {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .yt-facade:hover .yt-poster {
            transform: scale(1.025);
        }

        .yt-top-gradient {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            pointer-events: none;
        }

        .yt-top-title {
            color: #FFFFFF;
            font-size: 1.15rem;
            font-weight: 500;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 85%;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        }

        .yt-icon-logo {
            width: 28px;
            height: 20px;
            flex-shrink: 0;
        }

        /* Authentic YouTube Play Button */
        .yt-play-btn {
            position: relative;
            z-index: 3;
            background: transparent;
            border: none;
            cursor: pointer;
            width: 68px;
            height: 48px;
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
            padding: 0;
            display: grid;
            place-content: center;
        }

        .yt-play-btn-bg {
            fill: #212121;
            fill-opacity: 0.8;
            transition: fill 0.2s ease, fill-opacity 0.2s ease;
        }

        .yt-facade:hover .yt-play-btn-bg {
            fill: #FF0000;
            fill-opacity: 1;
        }

        .yt-facade:hover .yt-play-btn {
            transform: scale(1.15);
        }

        .active-server {
            background: #EF4444 !important;
            color: #FFFFFF !important;
            border-color: #EF4444 !important;
        }

        .trailer-footer {
            padding: 0.85rem 1.5rem;
            background: rgba(14, 18, 26, 0.95);
            border-top: 1px solid var(--border-subtle);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--text-secondary);
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .error-tip-bar {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.35);
            border-radius: var(--radius-sm);
            padding: 0.6rem 0.9rem;
            font-size: 0.85rem;
            color: #FCA5A5;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.5rem;
            width: 100%;
        }

        .btn-switch-quick {
            background: #38BDF8;
            color: #0B0E14;
            font-weight: 700;
            padding: 0.35rem 0.75rem;
            border-radius: var(--radius-full);
            font-size: 0.8rem;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-switch-quick:hover {
            filter: brightness(1.15);
            transform: scale(1.03);
        }

        /* 2-Column Content Layout */
        .main-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2.5rem;
            margin-block-end: 4rem;
        }

        @media (max-width: 960px) {
            .main-layout {
                grid-template-columns: 1fr;
            }
        }

        .right-col {
            position: sticky;
            top: 5rem;
            align-self: start;
        }

        /* Storyline & Overview */
        .content-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 1.75rem;
            margin-block-end: 2rem;
        }

        .content-card h3 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-block-end: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .storyline-text {
            font-size: 1.05rem;
            line-height: 1.7;
            color: var(--text-secondary);
        }

        /* Cast Grid */
        .cast-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 1.25rem;
            margin-top: 1rem;
        }

        .cast-card {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 1.1rem 0.85rem;
            text-align: center;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: all 0.25s ease;
            position: relative;
            overflow: hidden;
        }

        .cast-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-blue);
            background: var(--bg-card-hover);
            box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.2);
        }

        .cast-avatar-wrap {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            overflow: hidden;
            background: var(--bg-surface);
            margin: 0 auto 0.75rem;
            border: 2px solid var(--border-highlight);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            display: grid;
            place-content: center;
            flex-shrink: 0;
            transition: border-color 0.2s, transform 0.2s;
        }

        .cast-card:hover .cast-avatar-wrap {
            border-color: var(--accent-blue);
            transform: scale(1.06);
        }

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

        .cast-photo-fallback {
            font-size: 2rem;
            line-height: 1;
        }

        .cast-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.3;
            margin-bottom: 0.35rem;
        }

        .cast-link-hint {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--accent-blue);
            opacity: 0.85;
            transition: opacity 0.2s;
        }

        .cast-card:hover .cast-link-hint {
            opacity: 1;
            text-decoration: underline;
        }

        /* Photos Gallery Grid */
        .photos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .photo-card {
            position: relative;
            aspect-ratio: 16 / 9;
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: #111;
            border: 1px solid var(--border-subtle);
            cursor: pointer;
            transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.25s;
        }

        .photo-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.35s ease;
        }

        .photo-card:hover {
            transform: translateY(-3px);
            border-color: var(--accent-blue);
            box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.7);
        }

        .photo-card:hover img {
            transform: scale(1.06);
        }

        .photo-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            opacity: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.2s ease;
            color: #FFFFFF;
            font-size: 0.85rem;
            font-weight: 600;
            gap: 0.4rem;
        }

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

        /* Compact Trailer Card inside Photos/Media Grid */
        .media-card-trailer {
            grid-column: span 2;
            background: #000;
            border: 1px solid rgba(239, 68, 68, 0.45);
            border-radius: var(--radius-sm);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
            transition: border-color 0.2s, box-shadow 0.25s;
        }


        .media-card-trailer:hover {
            border-color: #EF4444;
            box-shadow: 0 14px 30px -5px rgba(239, 68, 68, 0.25);
        }

        .trailer-facade {
            position: relative;
            aspect-ratio: 16 / 9;
            width: 100%;
            cursor: pointer;
            overflow: hidden;
            background: #0b0f19;
        }

        .trailer-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.35s ease;
        }

        .trailer-facade:hover .trailer-thumb {
            transform: scale(1.04);
        }

        .trailer-badge-pill {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(239, 68, 68, 0.6);
            color: #FFF;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.25rem 0.65rem;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            backdrop-filter: blur(6px);
            z-index: 5;
        }

        .trailer-center-play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 5;
            transition: transform 0.2s ease;
            filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
        }

        .trailer-facade:hover .trailer-center-play {
            transform: translate(-50%, -50%) scale(1.15);
        }

        .trailer-bottom-bar {
            position: absolute;
            bottom: 0;
            inset-inline: 0;
            padding: 1.5rem 0.85rem 0.6rem;
            background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 5;
        }

        .trailer-title-text {
            font-size: 0.82rem;
            font-weight: 600;
            color: #FFFFFF;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 80%;
        }

        .trailer-hd-tag {
            font-size: 0.7rem;
            font-weight: 800;
            background: #EF4444;
            color: #FFF;
            padding: 0.1rem 0.4rem;
            border-radius: 3px;
            letter-spacing: 0.05em;
        }

        .trailer-mount {
            position: relative;
            aspect-ratio: 16 / 9;
            width: 100%;
            background: #000;
            display: none;
        }

        .trailer-mount.active {
            display: block;
        }

        .trailer-mount iframe {
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
        }

        .trailer-server-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 0.75rem;
            background: #11151e;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .trailer-server-tabs {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            flex-wrap: wrap;
        }

        .trailer-server-btn {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.6rem;
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-secondary);
            border: 1px solid var(--border-subtle);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .trailer-server-btn:hover {
            color: #FFF;
            border-color: rgba(255, 255, 255, 0.3);
        }

        .trailer-server-btn.active-server {
            background: #EF4444 !important;
            color: #FFF !important;
            border-color: #EF4444 !important;
        }

        .trailer-server-btn.vk-link {
            color: #38bdf8;
            border-color: rgba(56, 189, 248, 0.25);
        }

        .trailer-expand-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1rem;
            cursor: pointer;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            transition: color 0.2s, background 0.2s;
        }

        .trailer-expand-btn:hover {
            color: #FFF;
            background: rgba(255, 255, 255, 0.1);
        }

        .media-count-badge {
            font-size: 0.8rem;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-secondary);
            padding: 0.2rem 0.6rem;
            border-radius: 9999px;
            font-weight: 500;
        }

        /* Lightbox Modal */
        .lightbox-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.94);
            backdrop-filter: blur(12px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            user-select: none;
        }

        .lightbox-modal.active {
            display: flex;
        }

        .lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: var(--radius-sm);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .lightbox-counter {
            margin-top: 0.85rem;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .lightbox-close {
            position: absolute;
            top: 1.5rem;
            right: 2rem;
            background: rgba(255, 255, 255, 0.1);
            color: #FFFFFF;
            border: 1px solid rgba(255, 255, 255, 0.2);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: grid;
            place-content: center;
            transition: all 0.2s;
            z-index: 1010;
        }

        .lightbox-close:hover {
            background: #EF4444;
            border-color: #EF4444;
            transform: scale(1.1);
        }

        .lightbox-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(20, 26, 36, 0.85);
            color: #FFFFFF;
            border: 1px solid var(--border-subtle);
            width: 52px;
            height: 52px;
            border-radius: 50%;
            font-size: 1.4rem;
            cursor: pointer;
            display: grid;
            place-content: center;
            transition: all 0.2s;
            z-index: 1010;
        }

        .lightbox-arrow:hover {
            background: var(--accent-blue);
            color: #000;
            border-color: var(--accent-blue);
            transform: translateY(-50%) scale(1.1);
        }

        .lightbox-arrow.prev { left: 2rem; }
        .lightbox-arrow.next { right: 2rem; }

        /* Critic Reviews Carousel / Cards */
        .reviews-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1rem;
        }

        .review-card {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 1.25rem;
        }

        .review-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }

        .reviewer-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .reviewer-name {
            font-size: 0.9rem;
            font-weight: 700;
            color: #FFFFFF;
        }

        .reviewer-pub {
            font-size: 0.8rem;
            color: var(--accent-blue);
        }

        .review-date {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .review-quote {
            font-size: 0.92rem;
            font-style: italic;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Sidebar Metadata Specs */
        .sidebar-specs {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .spec-item {
            padding-bottom: 0.85rem;
            border-bottom: 1px solid var(--border-subtle);
        }

        .spec-label {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-bottom: 0.25rem;
        }

        .spec-value {
            font-size: 0.95rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        /* Action Buttons */
        .actions-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            padding: 0.85rem 1.5rem;
            font-size: 0.95rem;
            font-weight: 600;
            font-family: inherit;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            border: none;
            text-align: center;
        }

        .btn-imdb {
            background: var(--imdb-gold);
            color: #000000;
            font-weight: 700;
        }

        .btn-imdb:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
        }

        .btn-rt {
            background: var(--rt-tomato);
            color: #FFFFFF;
        }

        .btn-rt:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
        }

        .btn-danger-outline {
            background: transparent;
            color: #EF4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .btn-danger-outline:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: #EF4444;
        }

        /* ==========================================================================
           WATCH ONLINE CINEMA PLAYER (Kinogo, NextEmbed, Cinemar, Sevstar)
           ========================================================================== */
        .watch-section {
            margin-block-end: 3rem;
            background: #0d0f14;
            border: 1px solid rgba(32, 201, 151, 0.35);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 35px -5px rgba(32, 201, 151, 0.15);
            position: relative;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .watch-section.theater-mode {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 95vw;
            max-width: 1400px;
            z-index: 10000;
            max-height: 94vh;
            box-shadow: 0 0 100px rgba(0, 0, 0, 0.95), 0 0 40px rgba(32, 201, 151, 0.4);
        }

        .cinema-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.88);
            backdrop-filter: blur(8px);
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .cinema-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }

        .watch-header {
            padding: 1.15rem 1.5rem;
            background: #141820;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.85rem;
        }

        .watch-title-group {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .watch-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: #f8fafc;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0;
        }

        .watch-title .play-icon {
            color: #20c997;
            filter: drop-shadow(0 0 8px rgba(32, 201, 151, 0.6));
        }

        .badge-hd-quality {
            background: linear-gradient(135deg, #20c997, #0ca678);
            color: #0d0f12;
            font-weight: 800;
            font-size: 0.75rem;
            padding: 0.2rem 0.6rem;
            border-radius: 4px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .badge-ad-free {
            background: rgba(99, 230, 190, 0.12);
            border: 1px solid rgba(99, 230, 190, 0.3);
            color: #63e6be;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.55rem;
            border-radius: 4px;
        }

        .watch-tabs-bar {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: space-between;
            width: 100%;
            padding-top: 0.35rem;
        }

        .watch-tabs {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .watch-tab-btn {
            background: #1e2430;
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #cbd5e1;
            padding: 0.45rem 0.95rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.84rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .watch-tab-btn:hover {
            background: #28303f;
            color: #fff;
            border-color: rgba(99, 230, 190, 0.5);
        }

        .watch-tab-btn.active {
            background: #20c997;
            color: #0b0e14;
            border-color: #20c997;
            font-weight: 700;
            box-shadow: 0 0 15px rgba(32, 201, 151, 0.45);
        }

        .watch-tab-btn.tab-direct {
            border-color: rgba(32, 201, 151, 0.45);
        }

        .watch-actions {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-wrap: wrap;
        }

        .watch-action-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #cbd5e1;
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .watch-action-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.25);
        }

        .watch-action-btn.active {
            background: rgba(32, 201, 151, 0.2);
            border-color: #20c997;
            color: #63e6be;
        }

        .player-viewport {
            position: relative;
            aspect-ratio: 16 / 9;
            width: 100%;
            background: #000;
            overflow: hidden;
        }

        .player-viewport iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: none;
            background: #000;
        }

        .player-loading-state,
        .player-empty-state {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at center, #171d26 0%, #080a0e 100%);
            color: #f1f5f9;
            padding: 2rem;
            text-align: center;
            z-index: 5;
        }

        .player-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid rgba(32, 201, 151, 0.2);
            border-top-color: #20c997;
            border-radius: 50%;
            animation: playerSpin 0.9s linear infinite;
            margin-bottom: 1.25rem;
        }

        @keyframes playerSpin {
            to { transform: rotate(360deg); }
        }

        .watch-footer {
            padding: 0.85rem 1.5rem;
            background: #11151c;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.85rem;
            color: #94a3b8;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .hero-actions-row {
            margin-top: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.85rem;
            flex-wrap: wrap;
        }

        .btn-watch-online-hero {
            background: linear-gradient(135deg, #20c997 0%, #0ca678 100%);
            color: #0b0e14;
            font-weight: 800;
            font-size: 1rem;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            box-shadow: 0 4px 20px rgba(32, 201, 151, 0.4);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .btn-watch-online-hero:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 30px rgba(32, 201, 151, 0.6);
        }

        .btn-watch-online-hero .btn-play-icon {
            font-size: 1.1rem;
        }

        .btn-watch-online-hero .btn-hd-tag {
            background: rgba(0, 0, 0, 0.25);
            color: #fff;
            font-size: 0.72rem;
            font-weight: 800;
            padding: 0.15rem 0.45rem;
            border-radius: 4px;
        }

        .btn-trailer-hero {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            font-weight: 700;
            font-size: 0.95rem;
            padding: 0.75rem 1.25rem;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s ease;
        }

        .btn-trailer-hero:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.35);
        }

        .btn-source-hero {
            background: rgba(56, 189, 248, 0.12);
            color: #38bdf8;
            border: 1px solid rgba(56, 189, 248, 0.3);
            font-weight: 600;
            font-size: 0.9rem;
            padding: 0.75rem 1.15rem;
            border-radius: 8px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            transition: all 0.2s ease;
        }

        .btn-source-hero:hover {
            background: rgba(56, 189, 248, 0.25);
            border-color: #38bdf8;
            color: #fff;
        }
    

/* --------------------------------------------------------------------------
   Mobile Adaptivity for Movie Detail Page (<= 860px and <= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: center;
        text-align: center;
    }

    .hero-poster-wrapper {
        max-width: 190px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    }

    .hero-title-area {
        align-items: center;
    }

    .hero-meta-row,
    .hero-genres-row,
    .hero-actions-row {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    /* Sticky Top Nav: single clean row */
    .top-nav {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nav-inner {
        flex-wrap: nowrap;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

    .nav-external-link {
        display: none !important;
    }

    .btn-back,
    .btn-nav {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }

    /* Hero Banner */
    .hero-banner {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .hero-poster-wrapper {
        max-width: 150px;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    }

    .hero-title {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
        line-height: 1.2;
    }

    .hero-title-orig {
        display: block;
        font-size: 1rem;
        margin-left: 0;
        margin-top: 0.35rem;
        color: #94a3b8;
    }

    .hero-meta-row {
        font-size: 0.8rem;
        gap: 0.35rem;
        justify-content: center;
    }

    .hero-genres-row {
        justify-content: center;
        gap: 0.35rem;
    }

    .genre-pill {
        padding: 0.2rem 0.55rem;
        font-size: 0.78rem;
    }

    /* Hero Actions: sleek mobile grid */
    .hero-actions-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.85rem;
    }

    .btn-watch-online-hero {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.92rem;
        border-radius: var(--radius-sm);
    }

    .hero-rating-pill {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        background: rgba(20, 26, 36, 0.75);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-full);
    }

    .btn-trailer-hero,
    .btn-source-hero {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 0.65rem;
        font-size: 0.82rem;
        border-radius: var(--radius-sm);
    }

    /* Scoreboard: clean 2x2 grid */
    .scoreboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
        margin-block: 1.25rem;
    }

    .score-card {
        padding: 0.75rem 0.65rem;
        gap: 0.55rem;
        border-radius: var(--radius-sm);
        min-width: 0;
    }

    .score-card > div {
        min-width: 0;
    }

    .score-icon {
        font-size: 1.5rem;
    }

    .score-value {
        font-size: 1.2rem;
    }

    .score-label {
        font-size: 0.68rem;
    }

    .score-sub {
        font-size: 0.68rem;
        color: var(--text-secondary);
        line-height: 1.2;
    }

    .score-awards {
        grid-column: 1 / -1 !important;
    }

    .score-awards > div > div:first-child {
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
    }

    /* Consensus Quote Banner */
    .consensus-banner {
        padding: 0.9rem;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        border-radius: var(--radius-sm);
    }

    .consensus-icon {
        font-size: 1.5rem;
    }

    .consensus-title {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .consensus-text {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    /* User Status & Rating Card */
    .user-status-card {
        padding: 0.95rem;
        margin-bottom: 1.25rem;
        border-radius: var(--radius-md);
    }

    .status-card-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .status-card-left {
        gap: 0.65rem;
        min-width: 0;
    }

    .status-card-left h3 {
        font-size: 1.05rem !important;
    }

    .status-avatar-wrap {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.35rem;
    }

    .btn-status-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 0.85rem;
        font-size: 0.82rem;
    }

    .status-rating-row {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding-top: 0.75rem;
    }

    .star-rating-area {
        width: 100%;
    }

    .detail-star-widget {
        gap: 2px;
    }

    .detail-star-item,
    .detail-star-svg {
        width: 28px;
        height: 28px;
    }

    .detail-rating-label {
        font-size: 0.82rem;
        padding: 0.2rem 0.55rem;
    }

    .status-note-area {
        width: 100%;
        min-width: 0;
    }

    .status-note-area > div {
        display: flex;
        gap: 0.4rem;
    }

    .detail-note-input {
        min-width: 0;
        flex: 1;
        font-size: 0.82rem;
        padding: 0.55rem 0.75rem;
    }

    .btn-save-note {
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Content Cards & Main Layout */
    .main-layout {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .content-card {
        padding: 1.1rem 0.9rem;
        margin-bottom: 1.25rem;
        border-radius: var(--radius-md);
    }

    .content-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .storyline-text {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .media-gallery-hint {
        display: none !important;
    }

    /* Photos & Media Grid: Trailer full width + Photos 2-col */
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .media-card-trailer {
        grid-column: 1 / -1 !important;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .trailer-badge-pill {
        top: 0.45rem;
        left: 0.45rem;
        font-size: 0.68rem;
        padding: 0.15rem 0.5rem;
    }

    .trailer-bottom-bar {
        padding: 1rem 0.65rem 0.45rem;
    }

    .trailer-title-text {
        font-size: 0.75rem;
        max-width: 75%;
    }

    .trailer-server-bar {
        padding: 0.45rem 0.6rem;
        gap: 0.35rem;
        justify-content: space-between;
    }

    .trailer-server-tabs {
        display: flex;
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        max-width: calc(100% - 36px);
    }

    .trailer-server-tabs::-webkit-scrollbar {
        display: none;
    }

    .trailer-server-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Watch Online Section */
    .watch-section {
        margin-bottom: 1.5rem;
        border-radius: var(--radius-md);
    }

    .watch-header {
        padding: 0.75rem 0.85rem;
        gap: 0.6rem;
    }

    .watch-title-group {
        width: 100%;
        gap: 0.35rem;
    }

    .watch-title {
        font-size: 0.95rem;
        line-height: 1.3;
        width: 100%;
    }

    .badge-hd-quality {
        font-size: 0.68rem;
        padding: 0.15rem 0.45rem;
    }

    .badge-ad-free {
        display: none !important;
    }

    #btnTheaterMode {
        display: none !important;
    }

    .action-btn-text {
        display: none !important;
    }

    .watch-actions {
        display: flex;
        gap: 0.35rem;
        align-items: center;
    }

    .watch-action-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
    }

    .watch-tabs-bar {
        width: 100%;
        padding-top: 0.25rem;
    }

    .watch-tabs {
        width: 100%;
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    .watch-tabs::-webkit-scrollbar {
        display: none;
    }

    .watch-tab-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .player-viewport {
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    .player-loading-state,
    .player-empty-state {
        padding: 1.25rem 0.75rem;
    }

    .player-spinner {
        width: 36px;
        height: 36px;
        margin-bottom: 0.75rem;
    }

    #playerLoadingHeader {
        font-size: 0.95rem;
    }

    #playerLoadingStatus {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .watch-footer {
        padding: 0.65rem 0.85rem;
        font-size: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    #footerSourceLink {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Cast & Crew: horizontal swipe carousel */
    .cast-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.55rem;
        padding-bottom: 0.65rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-top: 0.5rem;
    }

    .cast-grid::-webkit-scrollbar {
        display: none;
    }

    .cast-card {
        min-width: 105px;
        max-width: 115px;
        flex-shrink: 0;
        scroll-snap-align: start;
        border-radius: var(--radius-sm);
        padding: 0.65rem 0.4rem;
    }

    .cast-avatar-wrap {
        width: 52px;
        height: 52px;
        margin-bottom: 0.45rem;
    }

    .cast-name {
        font-size: 0.75rem;
        line-height: 1.25;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cast-link-hint {
        display: none !important;
    }

    /* Reviews */
    .reviews-list {
        gap: 0.65rem;
        margin-top: 0.75rem;
    }

    .review-card {
        padding: 0.85rem;
        border-radius: var(--radius-sm);
    }

    .reviewer-name {
        font-size: 0.82rem;
    }

    .reviewer-pub {
        font-size: 0.72rem;
    }

    .review-quote {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    /* Sidebar Specs: 2-column compact grid */
    .sidebar-specs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 0.65rem;
    }

    .spec-item {
        padding-bottom: 0.45rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .spec-label {
        font-size: 0.68rem;
    }

    .spec-value {
        font-size: 0.85rem;
    }

    .country-flags-spec {
        font-size: 1.2rem !important;
        letter-spacing: 0.2rem !important;
    }

    .actions-group {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }

    /* Lightbox modal on mobile */
    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .lightbox-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .lightbox-arrow.prev { left: 0.4rem; }
    .lightbox-arrow.next { right: 0.4rem; }

    .lightbox-img {
        max-height: 70dvh;
    }
}
