/*
Theme Name: SnacknChill Neo-Cyber
Theme URI: https://snacknchill.com
Author: Expert UI/UX & WordPress Developer
Author URI: https://snacknchill.com
Description: A modern, high-energy WordPress theme layout for a movie and entertainment website designed specifically for a Gen-Z audience. Features Neo-Brutalism + Dark Cyberpunk aesthetics with Neon Lime (#CCFF00) and Electric Magenta (#FF007A).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snacknchill
Tags: dark-mode, entertainment, movies, streaming, neo-brutalism, cyberpunk, grid-layout, responsive
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

/* --- Root Variables --- */
:root {
    --bg-dark: #0F0F12;
    --bg-card: #18181F;
    --bg-card-hover: #22222C;
    --neon-lime: #CCFF00;
    --electric-magenta: #FF007A;
    --cyber-purple: #8B5CF6;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --border-color: #27272A;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glow-lime: 0 0 20px rgba(204, 255, 0, 0.4);
    --glow-magenta: 0 0 20px rgba(255, 0, 122, 0.4);
}

/* --- Global Reset & Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

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

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
}

/* --- Navigation Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--border-color);
    padding: 16px 4%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-logo .accent-lime {
    color: var(--neon-lime);
    text-shadow: var(--glow-lime);
}

.brand-logo .accent-magenta {
    color: var(--electric-magenta);
}

.category-chips {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chip-btn {
    background: #1E1E24;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip-btn:hover, .chip-btn.active {
    background: var(--neon-lime);
    color: #000;
    font-weight: 700;
    border-color: var(--neon-lime);
    box-shadow: var(--glow-lime);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-wrapper {
    position: relative;
}

.search-input {
    background: #18181F;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 16px 10px 42px;
    border-radius: 12px;
    font-size: 14px;
    width: 240px;
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 300px;
    border-color: var(--electric-magenta);
    box-shadow: var(--glow-magenta);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.theme-toggle-btn {
    background: #1E1E24;
    border: 2px solid var(--border-color);
    color: var(--neon-lime);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--neon-lime);
    box-shadow: var(--glow-lime);
    transform: rotate(15deg);
}

/* --- Hero Section --- */
.hero-section {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 4%;
}

.hero-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 520px;
    background: linear-gradient(180deg, rgba(15,15,18,0.2) 0%, #0F0F12 100%),
                url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    border: 3px solid #27272A;
    display: flex;
    align-items: flex-end;
    padding: 50px;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.vibe-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.vibe-tag {
    background: rgba(255, 0, 122, 0.2);
    color: var(--electric-magenta);
    border: 1px solid var(--electric-magenta);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.badge-imdb {
    background: var(--neon-lime);
    color: #000;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.meta-text {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--neon-lime);
    color: #000;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: var(--glow-lime);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #d8ff33;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #FFF;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* --- Vibe Filter Bar --- */
.vibe-filter-section {
    max-width: 1400px;
    margin: 40px auto 20px;
    padding: 0 4%;
}

.vibe-header {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vibe-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.vibe-pill {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vibe-pill:hover, .vibe-pill.active {
    border-color: var(--electric-magenta);
    background: rgba(255, 0, 122, 0.1);
    color: var(--electric-magenta);
    box-shadow: var(--glow-magenta);
    transform: translateY(-3px);
}

/* --- Content Grid Layout --- */
.main-content {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 4%;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
}

.section-head h2 span {
    color: var(--neon-lime);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.movie-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-lime);
    box-shadow: var(--glow-lime);
}

.card-poster {
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .card-poster img {
    transform: scale(1.1);
}

.card-bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 15, 18, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 5;
}

.card-bookmark:hover, .card-bookmark.active {
    color: var(--electric-magenta);
    background: #FFF;
}

.card-vibe-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    color: var(--neon-lime);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.card-details {
    padding: 16px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.card-rating {
    color: var(--neon-lime);
    font-weight: 700;
}

/* --- Micro-Review Emoji Section --- */
.reviews-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 4%;
}

.reaction-meter-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.meter-info h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 6px;
}

.meter-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.emoji-options {
    display: flex;
    gap: 16px;
}

.emoji-btn {
    background: #1E1E24;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.emoji-btn span.emoji {
    font-size: 28px;
}

.emoji-btn span.count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.emoji-btn:hover {
    border-color: var(--neon-lime);
    transform: translateY(-4px);
    box-shadow: var(--glow-lime);
}

/* --- Footer --- */
.site-footer {
    background: #08080A;
    border-top: 2px solid var(--border-color);
    padding: 60px 4% 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 14px;
    font-size: 14px;
    max-width: 300px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--neon-lime);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--text-main);
}

.newsletter-box h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.newsletter-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    color: #FFF;
    font-size: 14px;
    flex: 1;
}

.newsletter-btn {
    background: var(--electric-magenta);
    color: #FFF;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--glow-magenta);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 16px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 992px) {
    .category-chips { display: none; }
    .hero-title { font-size: 38px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero-banner { height: 420px; padding: 24px; }
    .hero-title { font-size: 28px; }
    .footer-container { grid-template-columns: 1fr; }
    .search-input { width: 160px; }
    .search-input:focus { width: 200px; }
}

/* ========== FrameXTV / SnacknChill Player & Search ========== */
.snc-search-row {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 12px auto 0;
    flex-wrap: wrap;
    justify-content: center;
}
.snc-search-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: #fff;
    padding: 14px 18px;
    font-size: 15px;
    outline: none;
}
.snc-search-input:focus {
    border-color: var(--neon-lime);
    box-shadow: var(--glow-lime);
}
.snc-search-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 10px;
}
.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 28px;
    color: var(--neon-lime);
}
.movie-card:hover .card-play-overlay { opacity: 1; }
.snc-play-card { cursor: pointer; }
.snc-play-card.hidden { display: none !important; }
.vibe-pill span {
    background: rgba(0,0,0,0.35);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}

/* Player modal */
.player-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 12px;
    backdrop-filter: blur(8px);
}
.player-modal.active { display: flex; }
.player-modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glow-magenta);
}
.player-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}
.player-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-main);
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.toggle-episodes {
    background: var(--bg-dark);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.toggle-episodes.active, .toggle-episodes:hover {
    background: var(--neon-lime);
    color: #0F0F12;
    border-color: var(--neon-lime);
}
.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover { color: var(--electric-magenta); }
.player-layout { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.player-main { flex: 1; min-width: 0; }
.framextv-wrapper { margin: 0; border: none; }
.framextv-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}
.framextv-player-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.episode-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.episode-sidebar.visible { display: flex; }
.ep-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ep-header label { color: var(--text-muted); font-size: 12px; }
.ep-header select {
    flex: 1;
    background: var(--bg-dark);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
}
.ep-list { flex: 1; overflow-y: auto; padding: 8px; }
.ep-item {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--bg-dark);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 13px;
}
.ep-item:hover { border-color: var(--neon-lime); color: #fff; }
.ep-item.active {
    background: rgba(204,255,0,0.12);
    border-color: var(--neon-lime);
    color: var(--neon-lime);
}
@media (max-width: 768px) {
    .player-layout { flex-direction: column; }
    .episode-sidebar {
        width: 100%;
        max-height: 180px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

/* Header search = main search bar */
.site-header .search-wrapper {
    flex: 1;
    max-width: 420px;
}
.site-header .search-input {
    width: 100% !important;
    min-width: 180px;
}
.site-header .search-input:focus {
    width: 100% !important;
    border-color: var(--neon-lime);
    box-shadow: var(--glow-lime);
}
.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-card);
    min-height: 200px;
}

.server-select {
    background: var(--bg-dark);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    max-width: 120px;
}
.server-select:hover, .server-select:focus {
    border-color: var(--neon-lime);
    outline: none;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    margin-bottom: 8px;
}
.hero-track { width: 100%; height: 100%; position: relative; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: flex-end;
    padding: 40px 48px;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.hero-slide-content { max-width: 560px; }
.hero-badge {
    display: inline-block;
    background: var(--neon-lime);
    color: #0F0F12;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.hero-carousel .hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.1;
}
.hero-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 18px;
}
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(15,15,18,0.75);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.hero-nav:hover { border-color: var(--neon-lime); color: var(--neon-lime); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
}
.hero-dot.active { background: var(--neon-lime); box-shadow: var(--glow-lime); }

/* Category pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 8px;
    padding: 0 16px;
}
.cat-pill {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--neon-lime);
    color: #0F0F12;
    border-color: var(--neon-lime);
}

@media (max-width: 768px) {
    .hero-carousel { height: 360px; }
    .hero-slide { padding: 28px 20px; }
    .hero-carousel .hero-title { font-size: 28px; }
}


/* Hero image less zoom - prefer wide backdrops */
.hero-slide {
    background-size: cover !important;
    background-position: center center !important;
}
.hero-carousel {
    max-height: 520px;
}
@media (min-width: 900px) {
    .hero-carousel { height: 500px; }
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    z-index: 0;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15,15,18,0.92) 0%, rgba(15,15,18,0.55) 50%, rgba(15,15,18,0.25) 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
}
.cat-pill span {
    opacity: 0.75;
    font-size: 11px;
    margin-left: 4px;
}
.type-pills .cat-pill.active {
    background: var(--electric-magenta);
    border-color: var(--electric-magenta);
    color: #fff;
}



/* Header without chips */
.site-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


/* Watch page — player ~60% left, not full screen */
.watch-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    box-sizing: border-box;
}
.watch-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    max-width: 75%;
}
.watch-back {
    color: var(--neon-lime);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.watch-back:hover { color: #fff; }
.watch-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}
.watch-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}
.watch-player-wrap {
    width: 60%;
    max-width: 75%;
    flex: 0 0 60%;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.watch-player-wrap .framextv-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}
.watch-player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.watch-sidebar {
    width: 280px;
    max-width: 32%;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    max-height: min(70vh, 520px);
    overflow: hidden;
}
.watch-sidebar .ep-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}
.watch-sidebar .ep-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}
.watch-empty {
    color: var(--text-muted);
    padding: 40px;
    text-align: left;
}
@media (max-width: 900px) {
    .watch-top { max-width: 100%; }
    .watch-layout { flex-direction: column; }
    .watch-player-wrap {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }
    .watch-sidebar {
        width: 100%;
        max-width: 100%;
        max-height: 240px;
    }
}


.watch-related {
    margin-top: 28px;
    max-width: 75%;
}
.watch-related h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 14px;
    color: #fff;
}
.watch-related h2 span { color: var(--neon-lime); }
.watch-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.watch-related .movie-card {
    margin: 0;
}
@media (max-width: 900px) {
    .watch-related { max-width: 100%; }
}


/* Related slider (15 titles, auto-slide) */
.watch-related {
    margin-top: 28px;
    max-width: 75%;
}
.watch-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.watch-related h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}
.watch-related h2 span { color: var(--neon-lime); }
.related-nav { display: flex; gap: 8px; }
.related-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.related-btn:hover {
    border-color: var(--neon-lime);
    color: var(--neon-lime);
}
.related-viewport {
    overflow: hidden;
    width: 100%;
}
.related-track {
    display: flex;
    gap: 12px;
    transition: transform 0.45s ease;
    will-change: transform;
}
.related-card {
    flex: 0 0 calc((100% - 48px) / 5);
    max-width: calc((100% - 48px) / 5);
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.related-card .card-poster {
    aspect-ratio: 2/3;
    position: relative;
    background: #18181F;
}
.related-card .card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related-card .card-details { padding: 8px 10px; }
.related-card .card-title {
    font-size: 0.8rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 1100px) {
    .related-card {
        flex: 0 0 calc((100% - 36px) / 4);
        max-width: calc((100% - 36px) / 4);
    }
}
@media (max-width: 900px) {
    .watch-related { max-width: 100%; }
    .related-card {
        flex: 0 0 calc((100% - 24px) / 3);
        max-width: calc((100% - 24px) / 3);
    }
}
@media (max-width: 560px) {
    .related-card {
        flex: 0 0 calc((100% - 12px) / 2);
        max-width: calc((100% - 12px) / 2);
    }
}


/* Smooth transitions */
.movie-card, .related-card, .snc-play-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.movie-card:hover, .related-card:hover, .snc-play-card:hover {
    transform: translateY(-6px) scale(1.02);
}
.related-track, .cw-track {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-pill {
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.hero-slide {
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Continue Watching */
.continue-watching {
    padding: 8px 20px 12px;
    max-width: 1400px;
    margin: 0 auto 8px;
}
.continue-watching .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.cw-clear {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
}
.cw-clear:hover {
    border-color: var(--electric-magenta);
    color: var(--electric-magenta);
}
.cw-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--electric-magenta);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.cw-viewport { overflow: hidden; }
.cw-track {
    display: flex;
    gap: 12px;
}
.cw-card {
    flex: 0 0 180px;
    max-width: 180px;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}


.cw-card .card-poster {
    aspect-ratio: 2/3;
    position: relative;
}
.cw-card .card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cw-card .card-title {
    font-size: 0.9rem;
    margin: 0;
    padding: 4px 0;
}
.continue-watching .section-head h2 {
    font-size: 1.35rem;
}
