:root {
    --bg: #000000;
    --bg2: #0a0a0a;
    --bg3: #111111;
    --surface: #1a1a1a;
    --accent: #e50914;
    --accent-hover: #f40612;
    --text: #ffffff;
    --text2: #a3a3a3;
    --text3: #737373;
    --border: #1f1f1f;
    --radius: 6px;
    --shadow: 0 10px 30px rgba(0,0,0,0.8);
}

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

body {
    font-family: 'Netflix Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3vw;
}

/* ========== NAVBAR - DiziBox Style ========== */
.navbar {
    background: #111;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar.scrolled {
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
    padding: 0 3vw;
}

/* Logo */
.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1.5px;
    white-space: nowrap;
    text-shadow: 0 3px 15px rgba(0,0,0,0.8);
    flex-shrink: 0;
    font-family: 'Arial Black', Arial, sans-serif;
}

.logo::after {
    content: 'FILIM';
    color: var(--accent);
    text-shadow: 0 3px 15px rgba(229,9,20,0.6);
}

/* Center nav - pill tabs */
.nav-links {
    display: flex;
    gap: 3px;
    list-style: none;
    margin: 0 auto;
    align-items: center;
    background: rgba(0,0,0,0.45);
    border-radius: 30px;
    padding: 5px 6px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    transition: all 0.22s ease;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-links li a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 3px 12px rgba(229,9,20,0.5);
}

.nav-links li a i {
    font-size: 0.8rem;
}

/* Live dot */
.tv-nav-dot {
    color: #ff4444;
    font-size: 0.5rem;
    animation: blink-dot 1.2s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Right side icons */
.nav-right-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
    text-decoration: none;
}

.nav-icon-btn.is-signed-in {
    color: #fff;
    border-color: rgba(229, 9, 20, .9);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, .18);
}

.ad-slot[hidden] { display: none !important; }

.mobile-fullscreen-btn { display: none !important; }

.search-dropdown-label {
    width: 100%; padding: 10px 12px 4px; color: var(--text2); font-size: .72rem;
    font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.search-scope-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; width: 100%; border-bottom: 1px solid var(--border); }
.search-scope { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--text); border-radius: 999px; padding: 6px 9px; font-size: .73rem; cursor: pointer; }
.search-scope i { margin-right: 5px; color: var(--text2); }
.search-scope.active { background: var(--red); border-color: var(--red); color: #fff; }
.search-scope.active i { color: #fff; }

.nav-icon-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Search Box - collapsed icon by default */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 0;
    padding: 0;
    border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.search-box.open input {
    width: 200px;
    padding: 8px 16px 8px 16px;
    background: rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.15);
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-box input:focus {
    border-color: rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.65);
}

/* Search toggle button */
.search-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
    flex-shrink: 0;
    order: 2;
}

.search-toggle-btn:hover {
    color: #fff;
}

/* hide old fa-search icon inside search box */
.search-box > i,
.search-box > svg {
    display: none;
}

/* ========== HERO - DiziBox Style ========== */
@keyframes kenburns {
    0%   { transform: translateZ(0); }
    100% { transform: translateZ(0); }
}

.hero {
    position: relative;
    height: 85vh;
    min-height: 520px;
    max-height: 760px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 70px;
    overflow: hidden;
    background-color: #000000;
    z-index: 1;
    margin-bottom: 0;
}

.hero-bg {
    display: none; /* replaced by img tag */
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.85) contrast(1.2) saturate(1.15);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: crisp-edges;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Strong vignette - left fade for text readability */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(10,10,10,0.95) 0%, 
        rgba(10,10,10,0.75) 30%, 
        rgba(10,10,10,0.3) 55%, 
        rgba(10,10,10,0.05) 75%,
        rgba(10,10,10,0) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-vignette-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.85) 70%, #000000 100%);
    z-index: 2;
    pointer-events: none;
}

/* Top vignette for navbar area */
.hero-vignette-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 3vw;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    text-align: left;
}

.hero-poster-card {
    display: none; /* hide poster card - full bg style */
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

/* "YENİ" + IMDb badge row */
.hero-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-new-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 9px;
    border-radius: 3px;
    text-transform: uppercase;
}

.hero-imdb-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: #f5c518;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
}

.hero-imdb-badge::before {
    content: '★';
    font-size: 0.72rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 1px 2px 12px rgba(0,0,0,0.85);
    letter-spacing: -1px;
    color: #fff;
    margin: 0;
}

/* Genre tags row */
.hero-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-genre-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 5px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    white-space: nowrap;
}

.btn i { font-size: 0.85rem; }

.btn-primary {
    background: #fff;
    color: #111;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.88);
}

.btn-secondary {
    background: rgba(30,30,30,0.75);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(50,50,50,0.85);
}

/* Slider dots */
.hero-dots {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.hero-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: var(--accent);
    width: 40px;
}

/* Content */
.content {
    padding: 0 0 60px;
    position: relative;
    z-index: 5;
    background: var(--bg);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.count-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    background: var(--surface);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Grid - full width, larger cards like DiziBox */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 16px;
    width: 100%;
}

.card {
    border-radius: var(--radius);
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.card-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg3);
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .card-poster-wrap {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.5);
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: crisp-edges;
    filter: contrast(1.08) saturate(1.08);
}

.card:hover .card-poster {
    transform: scale(1.04);
}

/* Card info below poster - always visible like DiziBox */
.card-info {
    padding: 8px 2px 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text2);
    flex-wrap: wrap;
}

.card-info-imdb {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f5c518;
    font-weight: 700;
    font-size: 0.75rem;
}

.card-info-imdb::before {
    content: '★';
    font-size: 0.7rem;
}

.card-info-genres {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.card-info-genre {
    font-size: 0.72rem;
    color: var(--text3);
}

.card-info-genre + .card-info-genre::before {
    content: '· ';
}

/* Hide old hover overlay */
.card-overlay {
    display: none;
}

.card-tags {
    display: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-imdb {
    background: #f5c518;
    color: #000;
}

.badge-year {
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(4px);
}

.badge-tag {
    background: rgba(229, 9, 20, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(229, 9, 20, 0.35);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 18px;
    border: none;
    background: var(--bg3);
    color: var(--text2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 44px;
}

.pagination button:hover:not(:disabled) {
    background: var(--surface);
    color: var(--text);
}

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

.pagination button.active {
    background: var(--text);
    color: #000;
    font-weight: 700;
}

/* Loading & Empty */
.loading, .empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text3);
    grid-column: 1 / -1;
    font-size: 1rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--bg3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 18px;
}

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

/* --- NETFLIX PLAYER FULLSCREEN STYLES --- */
body.watch-mode {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0b0b0b;
}

.watch-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0b0b0b;
    width: 100%;
}

.np-wrapper {
    position: relative;
    width: 100%;
    height: 56.25vw;
    max-height: 75vh;
    min-height: 480px;
    background: #000;
    z-index: 9999;
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    margin-bottom: 0;
}

.np-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Plyr full viewport */
.plyr--video { 
    height: 100%; 
    width: 100%;
    position: relative;
    z-index: 1;
}
.plyr__video-wrapper {
    position: relative;
    z-index: 1;
}
.plyr__video-wrapper video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}
.plyr__controls {
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.8)) !important;
    padding: 40px 20px 20px !important;
}

.np-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10000;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Let clicks pass through except on children */
}
.np-top-bar > * {
    pointer-events: auto;
}

.np-back {
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.np-back:hover { 
    transform: scale(1.15); 
    color: var(--accent);
}

.np-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    letter-spacing: -0.5px;
}

.np-wrapper.ui-hidden .np-top-bar {
    opacity: 0;
    transform: translateY(-20px);
}
.np-wrapper.ui-hidden .plyr__controls {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Slide-in Panels */
.np-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.np-overlay.show {
    display: block;
    opacity: 1;
}

.np-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -400px;
    width: 380px;
    background: rgba(18,18,18,0.98);
    backdrop-filter: blur(25px);
    z-index: 10002;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.np-panel.open {
    right: 0;
}

.np-panel-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.np-panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}
.np-select {
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 4px;
    outline: none;
    font-weight: 600;
}

.np-close {
    background: none;
    border: none;
    color: #a3a3a3;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
}
.np-close:hover { 
    color: #fff; 
}

.np-panel-content {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* Panel Lists (Episodes, Audio, Subtitles) */
.np-list {
    display: flex;
    flex-direction: column;
}
.np-list-item {
    padding: 18px 30px;
    color: #a3a3a3;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
}
.np-list-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.np-list-item.active {
    color: #fff;
    background: rgba(229, 9, 20, 0.15);
    border-left: 4px solid var(--accent);
    padding-left: 26px;
    font-weight: 700;
}

.np-track-title {
    padding: 24px 30px 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #737373;
    font-weight: 800;
    letter-spacing: 1.5px;
}

@media (max-width: 768px) {
    .np-top-bar { padding: 16px 20px; gap: 16px; }
    .np-title { font-size: 1.1rem; }
    .np-back { font-size: 1.3rem; }
    .np-panel {
        width: 100%;
        max-width: 340px;
        right: -340px;
    }
    .np-list-item { padding: 14px 20px; font-size: 0.95rem; }
    .np-list-item.active { padding-left: 16px; }

    /* Navbar mobile */
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
    }
    .nav-links {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        margin: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links li a {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
    .nav-right-icons {
        order: 2;
        margin-left: auto;
    }
    .search-box {
        display: none;
        position: absolute;
        top: 65px;
        left: 20px;
        right: 20px;
        max-width: 100%;
        background: #141414;
        padding: 10px;
        border-radius: 8px;
        z-index: 9999;
    }
    .search-box.open {
        display: flex;
        animation: fadeIn 0.2s ease;
    }

    /* Hero mobile */
    .hero {
        height: 70vh;
        min-height: 400px;
        padding-bottom: 50px;
    }
    .hero-title {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
    }
    .hero-desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    .hero-content {
        max-width: 100%;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px 12px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-overlay-title {
        font-size: 0.85rem;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .np-panel {
        width: 100% !important;
        right: -100% !important;
        max-width: 100vw !important;
    }
    .np-panel.open {
        right: 0 !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bg3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg3);
    color: var(--text);
    padding: 14px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 0.92rem;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Poster Fallback - Şık İsim Gösterimi */
.card-poster-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-poster-fallback.show {
    opacity: 1;
}

.card-poster-fallback-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-poster-fallback-icon {
    font-size: 48px;
    opacity: 0.3;
}

.card-poster-fallback-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-poster-fallback-meta {
    color: var(--text2);
    font-size: 13px;
    opacity: 0.8;
}

/* --- Home Scroll Row Styles --- */
.row-container {
    margin-bottom: 40px;
}
.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.row-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 12px;
}
.row-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.row-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 0 12px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.row-scroll::-webkit-scrollbar {
    display: none;
}
.row-scroll .card {
    flex: 0 0 195px;
    width: 195px;
}

/* --- Category Capsule Filters --- */
.category-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}
.category-btn {
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.category-btn:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--text3);
}
.category-btn.active {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* --- Card Progress Bars --- */
.card-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 5;
}
.card-progress-bar {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.card-progress-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff6b6b;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.35);
    padding: 1px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
    align-self: flex-start;
}

/* --- Netflix Custom Plyr Accents (Netflix Red) --- */
.plyr {
    --plyr-color-main: var(--accent) !important;
}

/* --- Row Scrolling Chevrons --- */
.row-scroll-wrapper {
    position: relative;
    width: 100%;
}
.row-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: calc(100% - 20px);
    background: rgba(0, 0, 0, 0.65);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.row-scroll-wrapper:hover .row-nav-btn {
    opacity: 1;
}
.row-nav-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent);
}
.row-nav-btn.prev-btn {
    left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.row-nav-btn.next-btn {
    right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* --- Netflix-style Detail Modal Overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--bg2);
    width: 92%;
    max-width: 900px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
    background: #fff;
    color: #000;
}
.modal-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 30px 40px;
    overflow: hidden;
    background-color: var(--bg2);
}
.modal-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/default-bg.png') !important;
    background-size: 240px auto !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #000000 !important;
    filter: brightness(0.65) contrast(1.15) saturate(1.1) !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: crisp-edges;
    z-index: 1;
    transition: background-image 0.3s ease;
}
.modal-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg2) 0%, rgba(20, 20, 20, 0.4) 60%, rgba(20, 20, 20, 0) 100%);
    z-index: 2;
}
.modal-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
}
.modal-poster-card {
    width: 130px;
    height: 195px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    background: var(--bg3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: crisp-edges;
    filter: contrast(1.08) saturate(1.08);
}
.modal-hero-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-title {
    font-size: 2.2rem;
    font-weight: 850;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.85);
    line-height: 1.2;
}
.modal-actions {
    display: flex;
    gap: 12px;
}
.modal-actions .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius);
}
.modal-body {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: var(--bg2);
}
.modal-body.has-episodes {
    grid-template-columns: 1.2fr 0.8fr;
}
.modal-info-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-type-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
}
.modal-desc {
    color: #e5e5e5;
    font-size: 0.95rem;
    line-height: 1.65;
}
.modal-episodes-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
}
.modal-episodes-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
/* Custom Select Dropdown for Season Picker */
.modal-select-container {
    position: relative;
    align-self: flex-start;
    width: 140px;
    z-index: 1000;
}
.modal-select-trigger {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 6px;
    outline: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.modal-select-trigger:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}
.modal-select-trigger:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}
.modal-select-container.open .modal-select-trigger {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.12);
}
.modal-select-trigger i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}
.modal-select-container.open .modal-select-trigger i {
    transform: rotate(180deg);
}
.modal-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1010;
    max-height: 250px;
    overflow-y: auto;
}
.modal-select-container.open .modal-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.modal-select-option {
    padding: 10px 16px;
    color: var(--text2);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.modal-select-option.selected {
    color: var(--accent);
    font-weight: 700;
    background: rgba(229, 9, 20, 0.08);
}
.modal-ep-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0d0d0d;
    overscroll-behavior: contain;
}
.modal-ep-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 0.88rem;
    color: var(--text2);
}
.modal-ep-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.modal-ep-item.active {
    background: rgba(229, 9, 20, 0.12);
    color: #fff;
    font-weight: 700;
}
.modal-ep-item-play {
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}
.modal-ep-item:hover .modal-ep-item-play {
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-body, .modal-body.has-episodes {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 20px;
    }
    .modal-hero {
        height: 200px;
        padding: 20px;
    }
    .modal-title {
        font-size: 1.5rem;
    }
}

/* --- Player Slideout Sidepanel Hover Zones --- */
.np-right-hover-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40px;
    z-index: 9999;
    background: transparent;
}

/* --- Home Headers Categories Quick-Filters --- */
.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}
.row-categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
    padding: 2px 0;
    scrollbar-width: none;
}
.row-categories::-webkit-scrollbar {
    display: none;
}
.row-category-btn {
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.row-category-btn:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--text3);
}

/* --- Player Pause Details Card Overlay --- */
.np-pause-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    display: flex;
    align-items: center;
    padding: 0 8%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.np-pause-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.np-pause-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 600px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.np-pause-overlay.show .np-pause-content {
    transform: translateY(0);
}
.np-pause-poster {
    width: 150px;
    height: 225px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.35);
}
.np-pause-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    text-align: left;
}
.np-pause-info h3 {
    font-size: 1.8rem;
    font-weight: 850;
    margin: 0;
    line-height: 1.2;
}
.np-pause-meta {
    display: flex;
    gap: 10px;
}
.np-pause-info .btn {
    align-self: flex-start;
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

@media (max-width: 600px) {
    .np-pause-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .np-pause-poster {
        width: 100px;
        height: 150px;
    }
    .np-pause-info h3 {
        font-size: 1.3rem;
    }
}

/* --- Spec Badges & Specifications List --- */
.modal-detail-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.badge-spec {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-spec-premium {
    background: rgba(229, 9, 20, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(229, 9, 20, 0.35);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.modal-spec-item {
    display: flex;
    font-size: 0.88rem;
    line-height: 1.45;
}

.spec-label {
    color: var(--text3);
    width: 100px;
    font-weight: 600;
    flex-shrink: 0;
}

.spec-val {
    color: var(--text);
    font-weight: 500;
}

/* --- Premium Episodes List Styling --- */
.modal-ep-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none !important;
    background: transparent !important;
    overflow-y: auto;
    padding-right: 6px;
    margin-top: 10px;
}

.modal-ep-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    border-left: 4px solid transparent;
}
.modal-ep-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(229, 9, 20, 0.2);
    border-left-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.modal-ep-card.active {
    background: rgba(229, 9, 20, 0.12);
    border-color: var(--accent);
    border-left-color: var(--accent);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.modal-ep-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(229, 9, 20, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-ep-card.active {
    background: rgba(229, 9, 20, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.15);
}

.modal-ep-index {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text3);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.modal-ep-card.active .modal-ep-index {
    color: var(--accent);
}

.modal-ep-thumb {
    width: 120px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: var(--bg3);
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.4s ease;
}

.modal-ep-card:hover .modal-ep-thumb img {
    transform: scale(1.1);
}

.modal-ep-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-ep-card:hover .modal-ep-play-overlay,
.modal-ep-card.active .modal-ep-play-overlay {
    opacity: 1;
}

.modal-ep-play-overlay i {
    color: #fff;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.modal-ep-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.modal-ep-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.modal-ep-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-ep-duration {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text2);
    flex-shrink: 0;
}

.modal-ep-plot {
    font-size: 0.8rem;
    color: var(--text2);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .modal-hero {
        height: auto;
        min-height: 240px;
        padding: 30px 20px 20px;
    }
    .modal-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .modal-poster-card {
        width: 100px;
        height: 150px;
    }
    .modal-title {
        font-size: 1.6rem;
    }
    .modal-ep-card {
        padding: 10px;
        gap: 12px;
    }
    .modal-ep-thumb {
        width: 90px;
        height: 51px;
    }
    .modal-ep-plot {
        display: none;
    }
}

/* --- Search Autocomplete Dropdown --- */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    max-height: 380px;
    overflow-y: auto;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 6px;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.search-dropdown-item img {
    width: 48px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg3);
}

.search-dropdown-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-dropdown-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-dropdown-meta {
    font-size: 0.78rem;
    color: var(--text2);
}

.search-dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text3);
}

/* --- Modal Select Adjustments --- */
.modal-select {
    width: 140px !important;
    min-width: unset !important;
    align-self: flex-start;
}

/* --- Vertical Scrollbar Nav Chevrons for Episodes --- */
.modal-ep-list-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ep-nav-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 12px);
    height: 28px;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85; /* Always highly visible */
    transition: opacity 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.modal-ep-list-wrapper:hover .ep-nav-btn {
    opacity: 1.0;
}

.ep-nav-btn:hover {
    background: var(--accent);
    color: #fff;
}

.ep-nav-btn.up-btn {
    top: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.ep-nav-btn.down-btn {
    bottom: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.modal-ep-list {
    margin: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Scroll Lock */
html.modal-open, body.modal-open {
    overflow: hidden !important;
}

/* Mobile adjustments for hero flex container */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .hero-poster-card {
        width: 120px;
        height: 180px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .search-dropdown {
        width: 280px;
    }
    .modal-hero-bg {
        background-position: center !important;
        background-size: 180px auto !important;
    }
}

/* Netflix-style Video Player Loader and Fade-in Animation */
.plyr-loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100005;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Slower fade out for cinematic effect */
    transition: opacity 1.5s cubic-bezier(0.4, 0, 1, 1), visibility 1.5s;
    overflow: hidden;
    perspective: 1000px;
}

.plyr-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.plyr-loader-logo {
    font-size: 8vw; /* Responsive cinematic size */
    font-weight: 900;
    color: #fff; /* Bright white base */
    letter-spacing: -2px;
    font-family: 'Arial Black', Impact, sans-serif;
    z-index: 100006;
    animation: netflixCinematicIntro 4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: center center;
    text-transform: uppercase;
    text-shadow: 0 0 20px #e50914, 0 0 40px #e50914, 0 0 80px #e50914, 0 0 120px #ff0000; /* Çok parlak */
    /* Kavisli (Curved) Effect using 3D perspective */
    transform: perspective(500px) rotateX(15deg);
}

.plyr-loader-logo::after {
    content: 'FILIM';
    color: #e50914;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 80px #ff0000;
}

/* Hide the old circular spinner, Netflix doesn't use one for the main intro */
.plyr-loader-spinner {
    display: none;
}

@keyframes netflixCinematicIntro {
    0% {
        transform: scale(0.6) perspective(500px) rotateX(15deg);
        letter-spacing: -15px;
        opacity: 0;
        filter: blur(10px) brightness(2);
    }
    15% {
        opacity: 1;
        filter: blur(0px) brightness(1.5);
    }
    100% {
        transform: scale(1.6) perspective(500px) rotateX(15deg);
        letter-spacing: 5px;
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

.np-wrapper {
    opacity: 0;
    transition: opacity 1.5s ease-in-out !important;
}

.np-wrapper.ready {
    opacity: 1 !important;
}

/* ============================================
   CANLI TV — Live Channel Section
   ============================================ */

.tv-nav-dot {
    font-size: 0.45rem;
    color: #ff3b3b;
    vertical-align: middle;
    margin-right: 4px;
    animation: tvPulseDot 1.5s ease-in-out infinite;
}

@keyframes tvPulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tv-live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff3b3b;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 59, 59, 0.8);
    animation: tvPulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.tv-home-section {
    margin-bottom: 36px;
    padding: 28px 0 8px;
    position: relative;
}

.tv-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    right: -5%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.tv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tv-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-section-title {
    font-size: 1.5rem;
    font-weight: 850;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.tv-channel-count {
    background: rgba(255, 59, 59, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 59, 59, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tv-see-all-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-see-all-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateX(2px);
}

.tv-row-container {
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.tv-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tv-row-header i {
    color: var(--accent);
    font-size: 0.9rem;
}

.tv-row-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.tv-home-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.tv-home-cat-pill {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tv-home-cat-pill:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.4);
    color: #fff;
}

.tv-home-scroll {
    gap: 10px;
    padding: 4px 2px 10px;
}

/* Mini square cards for homepage */
.tv-channel-card-mini {
    flex: 0 0 88px;
}

.tv-channel-card-mini .tv-channel-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 14px;
}

.tv-channel-card-mini .tv-channel-logo {
    width: 48px;
    height: 48px;
}

.tv-channel-card-mini .tv-channel-logo-fallback {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
}

.tv-channel-card-mini .tv-channel-name {
    font-size: 0.72rem;
    max-width: 88px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-channel-card-mini.trt-channel .tv-channel-logo-wrap::before {
    font-size: 0.5rem;
    padding: 1px 4px;
}

.tv-channel-live-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #ff3b3b;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 59, 59, 0.9);
    animation: tvPulseDot 1.5s ease-in-out infinite;
}

.tv-row-scroll .tv-channel-card-mini {
    flex: 0 0 88px;
}

.row-scroll.tv-home-scroll .tv-channel-card {
    flex: 0 0 88px;
}


.tv-row-scroll::-webkit-scrollbar {
    display: none;
}

/* TV Channel Card */
.tv-channel-card {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tv-channel-card:hover {
    transform: translateY(-6px) scale(1.04);
}

.tv-channel-logo-wrap {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.95), rgba(15, 15, 15, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tv-channel-card:hover .tv-channel-logo-wrap {
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: 0 12px 32px rgba(229, 9, 20, 0.2);
}

.tv-channel-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.tv-channel-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 14px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.tv-channel-card:hover .tv-channel-logo {
    transform: scale(1.08);
}

.tv-channel-logo-fallback {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text3);
}

.tv-channel-live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 59, 59, 0.9);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tv-channel-live-badge .tv-live-pulse {
    width: 5px;
    height: 5px;
    background: #fff;
    box-shadow: none;
}

.tv-channel-quality {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #4ade80;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.tv-channel-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tv-channel-card:hover .tv-channel-name {
    color: #fff;
}

.tv-channel-card.trt-channel .tv-channel-logo-wrap {
    border-color: rgba(229, 9, 20, 0.25);
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.95), rgba(15, 15, 15, 0.95));
}

.tv-channel-card.trt-channel .tv-channel-logo-wrap::before {
    content: 'TRT';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--accent);
    background: rgba(229, 9, 20, 0.15);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* TV Grid (full catalog tab) */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px 20px;
}

.tv-grid .tv-channel-card {
    flex: unset;
}

/* TV Category Pills */
.tv-category-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tv-category-btn {
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tv-category-btn i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.tv-category-btn:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--text3);
}

.tv-category-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
}

.tv-category-btn .tv-cat-count {
    background: rgba(255,255,255,0.15);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* TV Modal */
.tv-modal-overlay .modal-content {
    max-width: 680px;
    background: linear-gradient(180deg, #141414 0%, #080808 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tv-modal-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px 32px 24px;
    position: relative;
    overflow: hidden;
}

.tv-modal-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.tv-modal-logo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.9), rgba(15, 15, 15, 0.9));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.tv-modal-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
}

.tv-modal-logo-fallback {
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text3);
}

.tv-modal-live-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff3b3b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.4);
}

.tv-modal-info {
    flex: 1;
    min-width: 0;
}

.tv-modal-title {
    font-size: 1.8rem;
    font-weight: 850;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.tv-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tv-tag {
    background: rgba(255,255,255,0.07);
    color: var(--text2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tv-modal-meta {
    font-size: 0.82rem;
    color: var(--text3);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tv-modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tv-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tv-play-btn {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
}

.tv-modal-body {
    padding: 0 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tv-modal-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text2);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-modal-section h3 i {
    color: var(--accent);
}

.tv-stream-list,
.tv-quality-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tv-stream-item,
.tv-quality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tv-stream-item:hover,
.tv-quality-item:hover {
    background: rgba(229, 9, 20, 0.08);
    border-color: rgba(229, 9, 20, 0.3);
}

.tv-stream-item.active,
.tv-quality-item.active {
    background: rgba(229, 9, 20, 0.12);
    border-color: var(--accent);
}

.tv-stream-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-stream-index {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text2);
}

.tv-stream-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.tv-stream-sub {
    font-size: 0.75rem;
    color: var(--text3);
}

.tv-quality-badge {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Search dropdown TV items */
.search-dropdown-item.tv-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    padding: 4px;
}

.search-dropdown-live {
    color: #ff6b6b;
    font-size: 0.72rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .tv-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .tv-channel-card {
        flex: 0 0 110px;
    }
    .tv-channel-logo-wrap {
        width: 110px;
        height: 110px;
    }
    .tv-channel-logo {
        width: 58px;
        height: 58px;
    }
    .tv-modal-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px 20px;
        gap: 20px;
    }
    .tv-modal-body {
        padding: 0 20px 24px;
    }
    .tv-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

/* TV Kumanda Modu Focus Styles */
.tv-mode-active {
    cursor: none !important;
}
.tv-mode-active * {
    cursor: none !important;
}
.tv-mode-active .tv-focus {
    outline: 4px solid #ff3b3b !important;
    outline-offset: 3px !important;
    transform: scale(1.06) !important;
    z-index: 999999 !important;
    box-shadow: 0 0 30px rgba(255, 59, 59, 0.9) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.tv-mode-active .card.tv-focus .card-poster-wrap {
    border-color: #ff3b3b !important;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.6) !important;
}
.tv-mode-active .tv-mode-toggle.active {
    background: #ff3b3b !important;
    color: white !important;
    border-color: #ff3b3b !important;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.5) !important;
}
.tv-mode-toggle:hover {
    color: white !important;
    border-color: white !important;
    background: rgba(255,255,255,0.08) !important;
}

/* A touch device should never enter remote-navigation mode by accident. */
@media (pointer: coarse) {
    .tv-mode-toggle { display: none !important; }
    body.tv-mode-active { cursor: auto !important; }
    body.tv-mode-active * { cursor: auto !important; }
    body.tv-mode-active .tv-focus { transform: none !important; box-shadow: none !important; }
}

/* Recommendations block style inside watch page */
.watch-bottom-section {
    padding: 40px 4vw;
    background: #0b0b0b;
    position: relative;
    z-index: 99;
}

.watch-bottom-title {
    font-size: 1.4rem;
    font-weight: 750;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.watch-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px 20px;
}

.card-details-sidebar {
    display: none;
}

/* Options button stylings */
.player-options-btn:hover {
    color: white !important;
    border-color: white !important;
    background: rgba(255,255,255,0.08) !important;
}

@media (min-width: 1025px) {
    .watch-container {
        flex-direction: row;
        padding: 0;
        gap: 0;
        align-items: stretch;
        max-width: 100%;
        margin: 0;
        height: 100vh;
        overflow: hidden;
    }
    
    .np-wrapper {
        flex: 1;
        width: auto !important;
        height: 100vh;
        min-height: unset;
        max-height: unset;
        border-radius: 0;
    }
    
    .watch-left-sidebar {
        display: flex;
        flex-direction: column;
        width: 260px;
        flex-shrink: 0;
        background: rgba(15, 15, 15, 0.95);
        border: none;
        border-right: 1px solid rgba(255,255,255,0.06);
        height: 100vh;
        overflow-y: auto;
        padding: 20px 16px;
        border-radius: 0;
    }
    
    .watch-bottom-section {
        width: 260px;
        flex-shrink: 0;
        padding: 20px 16px;
        background: rgba(15, 15, 15, 0.95);
        height: 100vh;
        overflow-y: auto;
        border-left: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
    }
    
    .watch-bottom-section .container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Custom scrollbar for sidebar */
    .watch-bottom-section::-webkit-scrollbar {
        width: 6px;
    }
    .watch-bottom-section::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.02);
        border-radius: 3px;
    }
    .watch-bottom-section::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 3px;
    }
    .watch-bottom-section::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.2);
    }
    .watch-bottom-title {
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding-bottom: 10px;
    }
    
    .watch-bottom-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Make recommendation cards look like list items on desktop */
    .watch-bottom-section .card {
        display: flex;
        flex-direction: row;
        gap: 12px;
        background: rgba(255,255,255,0.02);
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.04);
        padding: 8px;
        transition: all 0.2s ease;
    }
    
    .watch-bottom-section .card:hover {
        background: rgba(255,255,255,0.06);
        border-color: rgba(229, 9, 20, 0.3);
    }
    
    .watch-bottom-section .card-poster-wrap {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 6px;
        aspect-ratio: unset;
    }
    
    .watch-bottom-section .card-overlay {
        display: none; /* hide overlay since we show details on right side */
    }
    
    .watch-bottom-section .card-details-sidebar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        overflow: hidden;
    }
    
    .watch-bottom-section .card-title-sidebar {
        font-size: 0.9rem;
        font-weight: 700;
        color: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .watch-bottom-section .card-meta-sidebar {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.75rem;
        color: var(--text2);
    }
    
    /* Style TV cards in sidebar - compact layout matching left sidebar */
    .watch-bottom-section .tv-channel-card {
        display: flex;
        flex-direction: row !important;
        gap: 12px !important;
        width: 100% !important;
        background: rgba(255,255,255,0.02) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255,255,255,0.04) !important;
        padding: 8px 12px !important;
        align-items: center !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        color: var(--text2) !important;
        box-shadow: none !important;
    }
    
    .watch-bottom-section .tv-channel-card:hover {
        background: rgba(255,255,255,0.06) !important;
        border-color: rgba(229, 9, 20, 0.3) !important;
        color: #fff !important;
    }
    
    .watch-bottom-section .tv-channel-logo-wrap {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        background: rgba(255,255,255,0.05) !important;
        padding: 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    .watch-bottom-section .tv-channel-logo {
        width: 24px !important;
        height: 24px !important;
        object-fit: contain !important;
        border-radius: 4px !important;
    }
    
    .watch-bottom-section .tv-channel-logo-fallback {
        width: 24px !important;
        height: 24px !important;
        font-size: 1rem !important;
    }
    
    .watch-bottom-section .tv-channel-live-badge,
    .watch-bottom-section .tv-channel-quality {
        display: none !important;
    }
    
    .watch-bottom-section .tv-channel-name {
        text-align: left !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: inherit !important;
        max-width: unset !important;
        flex: 1 !important;
        margin: 0 !important;
    }

    /* Left Sidebar Desktop Styles */
    .watch-left-sidebar {
        display: flex;
        flex-direction: column;
        width: 280px;
        flex-shrink: 0;
        background: rgba(15, 15, 15, 0.95);
        border: none;
        border-right: 1px solid rgba(255,255,255,0.06);
        height: 100vh;
        overflow-y: auto;
        padding: 20px 16px;
        border-radius: 0;
    }
    
    .left-sidebar-header {
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding-bottom: 10px;
    }
    
    .left-sidebar-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Scrollbar for left sidebar */
    .watch-left-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    .watch-left-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    .watch-left-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 2px;
    }
}

/* ===== Watch page polish: compact player + Dizibal-style details ===== */
body.watch-mode {
    background: #000;
}

body.watch-mode .watch-container {
    background: #000;
}

body.watch-mode .np-wrapper {
    height: clamp(220px, 18vw, 360px) !important;
    min-height: 220px !important;
    max-height: none !important;
    background: #000;
}

body.watch-mode .watch-bottom-section {
    padding: 34px 0 72px !important;
    background: #000 !important;
}

body.watch-mode .watch-bottom-section .container {
    max-width: 1400px !important;
    padding: 0 40px !important;
}

body.watch-mode .watch-title-tabs {
    align-items: baseline;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #202020;
}

body.watch-mode .watch-main-title {
    font-size: 1.35rem;
}

body.watch-mode .watch-tab {
    padding: 0 0 3px;
    font-size: 1.1rem;
    border-bottom: 0;
}

body.watch-mode .watch-tab.active {
    color: #fff;
}

body.watch-mode .watch-summary-section {
    margin-bottom: 48px;
}

body.watch-mode .watch-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 56px;
    margin-bottom: 28px;
}

body.watch-mode .watch-summary-label,
body.watch-mode .watch-production-label {
    color: #858585;
    font-size: .72rem;
}

body.watch-mode .watch-summary-value,
body.watch-mode .watch-production-value {
    font-size: .9rem;
}

body.watch-mode .watch-description {
    margin: 0 0 10px;
    font-size: .92rem;
    line-height: 1.6;
}

body.watch-mode .watch-section-heading {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #202020;
    font-size: 1.25rem;
}

body.watch-mode .watch-cast-section,
body.watch-mode .watch-production-section,
body.watch-mode .watch-similar-section {
    margin-bottom: 42px;
}

body.watch-mode .watch-cast-scroll {
    gap: 16px;
    padding: 2px 0 14px;
}

body.watch-mode .watch-cast-card {
    flex-basis: 120px;
    width: 120px;
}

body.watch-mode .watch-cast-avatar {
    width: 120px;
    height: 150px;
    border: 0;
    border-radius: 10px;
}

body.watch-mode .watch-similar-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 0 18px;
    scrollbar-width: thin;
    scrollbar-color: #e50914 #151515;
}

body.watch-mode .watch-similar-grid .card {
    flex: 0 0 150px;
    width: 150px;
    background: #0d0d0d;
    border: 1px solid #202020;
    border-radius: 7px;
    overflow: hidden;
}

body.watch-mode .watch-similar-grid .card-poster-wrap {
    border: 0;
    border-radius: 0;
    aspect-ratio: 2 / 3;
}

body.watch-mode .watch-similar-grid .card-info {
    padding: 10px 10px 12px;
}

body.watch-mode .watch-similar-grid .card-info-title {
    font-size: .82rem;
}

body.watch-mode .watch-similar-grid .card-info-meta {
    font-size: .72rem;
}

@media (max-width: 768px) {
    body.watch-mode .np-wrapper {
        height: 56.25vw !important;
        min-height: 220px !important;
    }

    body.watch-mode .watch-bottom-section .container {
        padding: 0 18px !important;
    }

    body.watch-mode .watch-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px 24px;
    }
}

@media (max-width: 480px) {
    body.watch-mode .watch-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact Sidebar Item Styles (Shared by both Left and Right sidebars) */
.left-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    color: var(--text2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.left-sidebar-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.left-sidebar-item.active {
    background: rgba(229, 9, 20, 0.12);
    color: #fff;
    border-color: rgba(229, 9, 20, 0.3);
}

.left-sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    padding: 2px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-sidebar-ep-num {
    font-size: 0.75rem;
    color: #ff3b3b;
    font-weight: 700;
    white-space: nowrap;
}

.left-sidebar-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.left-sidebar-playing-dot {
    width: 6px;
    height: 6px;
    background: #ff3b3b;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 8px #ff3b3b;
}

.dropdown-item:hover {
    background: rgba(229, 9, 20, 0.9) !important;
    color: #fff !important;
}




/* ========== WATCH PAGE - DIZIBOX STYLE DETAILS ========== */
.watch-bottom-section {
    background: #000000;
    width: 100%;
    display: block;
    clear: both;
    padding: 20px 0 40px 0;
    margin-top: 0;
}

/* Title + Tabs */
.watch-title-tabs {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.watch-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
}

.watch-tabs {
    display: flex;
    gap: 0;
}

.watch-tab {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    outline: none;
}

.watch-tab:hover {
    color: rgba(255,255,255,0.9);
}

.watch-tab.active {
    color: #fff;
    border-bottom-color: var(--accent);
}

.watch-tab-content {
    display: block;
}

/* Section Heading */
.watch-section-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Özet Section */
.watch-summary-section {
    margin-bottom: 40px;
}

.watch-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 40px;
    margin-bottom: 24px;
}

.watch-summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.watch-summary-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-summary-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.5;
}

.watch-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin: 24px 0 12px 0;
    max-height: 4.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.watch-description.expanded {
    max-height: none;
    -webkit-line-clamp: unset;
}

.watch-description-more {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.watch-description-more:hover {
    opacity: 0.8;
}

/* Cast Section */
.watch-cast-section {
    margin-bottom: 50px;
}

.watch-cast-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.watch-cast-scroll::-webkit-scrollbar {
    display: none;
}

.watch-cast-card {
    flex: 0 0 120px;
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.watch-cast-card:hover {
    transform: translateY(-6px);
}

.watch-cast-avatar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg3);
    border: 2px solid rgba(255,255,255,0.1);
}

.watch-cast-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.3;
}

.watch-cast-character {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.watch-cast-placeholder {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    padding: 30px 0;
}

/* Similar Section */
.watch-similar-section {
    margin-bottom: 50px;
}

.watch-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 16px;
    width: 100%;
}

/* Benzer Filmler - Ana sayfa card stili */
.watch-similar-grid .card {
    border-radius: var(--radius);
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.watch-similar-grid .card:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.watch-similar-grid .card-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg3);
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.watch-similar-grid .card:hover .card-poster-wrap {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.5);
}

.watch-similar-grid .card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: crisp-edges;
    filter: contrast(1.08) saturate(1.08);
}

.watch-similar-grid .card:hover .card-poster {
    transform: scale(1.04);
}

.watch-similar-grid .card-info {
    padding: 8px 2px 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.watch-similar-grid .card-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-similar-grid .card-info-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text2);
    flex-wrap: wrap;
}

.watch-similar-grid .card-info-imdb {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f5c518;
    font-weight: 700;
    font-size: 0.75rem;
}

.watch-similar-grid .card-info-imdb::before {
    content: '★';
    font-size: 0.7rem;
}

.watch-similar-grid .card-poster-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.watch-similar-grid .card-poster-fallback.show {
    opacity: 1;
}

.watch-similar-grid .card-poster-fallback-icon {
    font-size: 48px;
    opacity: 0.3;
}

.watch-similar-grid .card-poster-fallback-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Production Section */
.watch-production-section {
    margin-bottom: 30px;
}

.watch-production-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.watch-production-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.watch-production-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-production-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .watch-summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .watch-section-heading {
        font-size: 1.2rem;
    }
    
    .watch-cast-card {
        flex: 0 0 100px;
        width: 100px;
    }
    
    .watch-cast-avatar {
        width: 100px;
        height: 100px;
    }
    
    .watch-similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px 12px;
    }
}

@media (max-width: 480px) {
    .watch-similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
    }
}


/* OVERRIDE: Watch bottom section MUST be full width below player, NOT sidebar */
@media (min-width: 1025px) {
    .watch-container {
        flex-direction: column !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    .np-wrapper {
        width: 100% !important;
        height: 56.25vw !important;
        max-height: 85vh !important;
        min-height: 520px !important;
        flex: none !important;
    }
    
    .watch-bottom-section {
        width: 100% !important;
        height: auto !important;
        padding: 40px 4vw !important;
        background: #0b0b0b !important;
        overflow-y: visible !important;
        border: none !important;
    }
    
    .watch-bottom-section .container {
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* Final watch-page overrides */
body.watch-mode { background: #000; }
body.watch-mode .watch-container { background: #000; }
body.watch-mode .np-wrapper {
    height: clamp(220px, 18vw, 360px) !important;
    min-height: 220px !important;
    max-height: none !important;
    background: #000;
}
body.watch-mode .watch-bottom-section {
    padding: 34px 0 72px !important;
    background: #000 !important;
}
body.watch-mode .watch-bottom-section .container {
    max-width: 1400px !important;
    padding: 0 40px !important;
}
body.watch-mode .watch-title-tabs {
    align-items: baseline;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #202020;
}
body.watch-mode .watch-main-title { font-size: 1.35rem; }
body.watch-mode .watch-tab { padding: 0 0 3px; font-size: 1.1rem; border-bottom: 0; }
body.watch-mode .watch-tab.active { color: #fff; }
body.watch-mode .watch-summary-section { margin-bottom: 48px; }
body.watch-mode .watch-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 56px;
    margin-bottom: 28px;
}
body.watch-mode .watch-summary-label,
body.watch-mode .watch-production-label { color: #858585; font-size: .72rem; }
body.watch-mode .watch-summary-value,
body.watch-mode .watch-production-value { font-size: .9rem; }
body.watch-mode .watch-description { margin: 0 0 10px; font-size: .92rem; line-height: 1.6; }
body.watch-mode .watch-section-heading {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #202020;
    font-size: 1.25rem;
}
body.watch-mode .watch-cast-section,
body.watch-mode .watch-production-section,
body.watch-mode .watch-similar-section { margin-bottom: 42px; }
body.watch-mode .watch-cast-scroll { gap: 16px; padding: 2px 0 14px; }
body.watch-mode .watch-cast-avatar { width: 120px; height: 150px; border: 0; border-radius: 10px; }
body.watch-mode .watch-similar-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 0 18px;
    scrollbar-width: thin;
    scrollbar-color: #e50914 #151515;
}
body.watch-mode .watch-similar-grid .card {
    flex: 0 0 150px;
    width: 150px;
    background: #0d0d0d;
    border: 1px solid #202020;
    border-radius: 7px;
    overflow: hidden;
}
body.watch-mode .watch-similar-grid .card-poster-wrap { border: 0; border-radius: 0; aspect-ratio: 2 / 3; }
body.watch-mode .watch-similar-grid .card-info { padding: 10px 10px 12px; }
body.watch-mode .watch-similar-grid .card-info-title { font-size: .82rem; }
body.watch-mode .watch-similar-grid .card-info-meta { font-size: .72rem; }
@media (max-width: 768px) {
    body.watch-mode .np-wrapper { height: 56.25vw !important; min-height: 220px !important; }
    body.watch-mode .watch-bottom-section .container { padding: 0 18px !important; }
    body.watch-mode .watch-summary-grid { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
}
@media (max-width: 480px) {
    body.watch-mode .watch-summary-grid { grid-template-columns: 1fr; }
}

/* Watch footer */
body.watch-mode .watch-footer {
    width: 100%;
    padding: 58px 40px 34px;
    border-top: 1px solid #181818;
    background: #000;
    text-align: center;
    color: #777;
}

body.watch-mode .watch-footer-brand {
    display: inline-flex;
    align-items: baseline;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #f4f4f4;
}

body.watch-mode .watch-footer-brand strong { color: #e50914; }
body.watch-mode .watch-footer p { margin: 10px 0 24px; font-size: .85rem; }

body.watch-mode .watch-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
}

body.watch-mode .watch-footer-links a {
    padding: 9px 16px;
    border: 1px solid #242424;
    border-radius: 8px;
    color: #999;
    font-size: .8rem;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

body.watch-mode .watch-footer-links a:hover {
    color: #fff;
    border-color: #444;
    background: #111;
}

body.watch-mode .watch-footer-copy {
    padding-top: 24px;
    border-top: 1px solid #181818;
    font-size: .78rem;
    color: #666;
}

@media (max-width: 480px) {
    body.watch-mode .watch-footer { padding: 44px 18px 28px; }
}

/* ===== Final responsive alignment pass ===== */
body.watch-mode .watch-bottom-section {
    padding: clamp(28px, 4vw, 56px) 0 72px !important;
}

body.watch-mode .watch-bottom-section > .container,
body.watch-mode .watch-bottom-section .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: clamp(16px, 3.2vw, 52px) !important;
    padding-right: clamp(16px, 3.2vw, 52px) !important;
}

body.watch-mode .watch-title-tabs {
    width: 100%;
    justify-content: flex-start;
    margin: 0 0 30px;
    padding: 0 0 18px;
}

body.watch-mode .watch-main-title,
body.watch-mode .watch-tab {
    text-align: left;
}

body.watch-mode .watch-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 34px;
}

body.watch-mode .watch-summary-item {
    min-width: 0;
    align-items: flex-start;
}

body.watch-mode .watch-summary-value,
body.watch-mode .watch-production-value {
    overflow-wrap: anywhere;
}

body.watch-mode .watch-description {
    max-width: 100%;
}

body.watch-mode .watch-section-heading {
    text-align: left;
}

body.watch-mode .watch-cast-scroll {
    justify-content: flex-start;
    min-height: 174px;
}

body.watch-mode .watch-cast-placeholder {
    display: flex;
    align-items: center;
    min-height: 120px;
    padding: 0;
}

body.watch-mode .watch-similar-grid {
    justify-content: flex-start;
}

body.watch-mode .watch-footer {
    padding-left: clamp(16px, 3.2vw, 52px);
    padding-right: clamp(16px, 3.2vw, 52px);
}

@media (max-width: 1024px) {
    body.watch-mode .np-wrapper {
        height: clamp(250px, 45vw, 480px) !important;
        min-height: 250px !important;
    }

    body.watch-mode .watch-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 28px;
    }
}

@media (max-width: 600px) {
    body.watch-mode .np-wrapper {
        height: 56.25vw !important;
        min-height: 210px !important;
    }

    body.watch-mode .watch-bottom-section > .container,
    body.watch-mode .watch-bottom-section .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.watch-mode .watch-title-tabs {
        gap: 10px;
        margin-bottom: 24px;
        padding-bottom: 14px;
    }

    body.watch-mode .watch-main-title { font-size: 1.15rem; }
    body.watch-mode .watch-tab { font-size: .95rem; }

    body.watch-mode .watch-summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.watch-mode .watch-section-heading { font-size: 1.1rem; }
    body.watch-mode .watch-cast-card { flex-basis: 100px; width: 100px; }
    body.watch-mode .watch-cast-avatar { width: 100px; height: 126px; }
    body.watch-mode .watch-similar-grid .card { flex-basis: 132px; width: 132px; }
}

/* ===== Cinema player + home-card parity ===== */
body.watch-mode .np-wrapper {
    height: 56.25vw !important;
    min-height: 420px !important;
    max-height: none !important;
    background: #000;
}

body.watch-mode .np-wrapper video,
body.watch-mode .plyr--video,
body.watch-mode .plyr__video-wrapper,
body.watch-mode .plyr__video-wrapper video {
    width: 100% !important;
    height: 100% !important;
}

body.watch-mode .plyr__video-wrapper video { object-fit: cover !important; }

body.watch-mode .np-top-bar {
    padding: clamp(20px, 3vw, 42px) clamp(20px, 3.2vw, 52px);
    background: linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,0));
}

body.watch-mode .np-title {
    font-size: clamp(1rem, 1.5vw, 1.45rem);
}

body.watch-mode .watch-bottom-section {
    background: linear-gradient(180deg, #080808 0, #000 180px) !important;
}

/* Match the portal's .grid/.card system exactly */
body.watch-mode .watch-similar-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 16px;
    width: 100%;
    overflow: visible;
    padding: 0 0 18px;
    scrollbar-width: auto;
}

body.watch-mode .watch-similar-grid .card {
    flex: initial;
    width: auto;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 6px;
    overflow: visible;
}

body.watch-mode .watch-similar-grid .card-poster-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}

body.watch-mode .watch-similar-grid .card:hover .card-poster-wrap {
    border-color: #e50914;
    box-shadow: 0 0 18px rgba(229, 9, 20, .5);
}

body.watch-mode .watch-similar-grid .card-info {
    padding: 8px 2px 4px;
    gap: 3px;
}

body.watch-mode .watch-similar-grid .card-info-title {
    font-size: .9rem;
    font-weight: 600;
}

body.watch-mode .watch-similar-grid .card-info-meta { font-size: .76rem; }

@media (max-width: 1024px) {
    body.watch-mode .np-wrapper { min-height: 360px !important; }
}

@media (max-width: 600px) {
    body.watch-mode .np-wrapper {
        height: 56.25vw !important;
        min-height: 210px !important;
    }

    body.watch-mode .watch-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }
}

/* ==========================================================================
   NETFLIX EXACT UI PLYR PLAYER OVERRIDES
   ========================================================================== */

/* Main Theme Color (Netflix Red) */
:root {
    --plyr-color-main: #e50914;
    --plyr-video-control-color: #fff;
    --plyr-video-control-color-hover: #fff;
    --plyr-video-controls-background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85));
    --plyr-tooltip-background: #fff;
    --plyr-tooltip-color: #000;
    --plyr-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Hide the old top bar elements except the back button */
#npTopBar {
    background: transparent !important;
}
#npTopBar .np-title, 
#npTopBar #btnTopOptions, 
#npTopBar #tvModeToggle {
    display: none !important;
}

/* Netflix Grid Layout for Controls */
.plyr--video .plyr__controls {
    display: flex !important;
    flex-wrap: wrap;
    padding: 0 20px 20px 20px !important;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out !important;
    z-index: 10005 !important;
    align-items: center;
}

/* Hide controls by default when inactive */
.plyr--video.plyr--hide-controls .plyr__controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

/* 1. Progress takes full width (minus time width) and sits at the very top */
.plyr__progress {
    flex: 1 1 auto;
    order: 1;
    width: 85%;
    margin-bottom: 12px !important;
}

/* 2. Time takes the right side of the top row */
.plyr__time--current {
    order: 2;
    flex: 0 0 auto;
    margin-left: 15px;
    margin-bottom: 12px;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.plyr__time--duration {
    display: none !important;
}

/* Force line break after the top row (Progress + Time) */
.plyr__controls::before {
    content: '';
    flex-basis: 100%;
    order: 3;
}

/* Row 2: Standard Plyr Buttons */
button[data-plyr="play"] { order: 4; }
button[data-plyr="rewind"] { order: 5; }
button[data-plyr="fast-forward"] { order: 6; }
.plyr__volume { order: 7; }

/* Custom Container (Title + Custom Buttons) */
#customControlsContainer {
    order: 8;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

/* The Netflix Title injected via JS */
#plyrNetflixTitle {
    color: white;
    font-size: 1.15rem;
    font-weight: 500;
    margin-right: auto; /* Pushes everything else in container to the right */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
@media (max-width: 768px) {
    #plyrNetflixTitle { display: none !important; }
}

/* Refined streaming intro: compact, curved and intentionally low-glow. */
.plyr-loader {
    transition: opacity .8s cubic-bezier(.4, 0, 1, 1), visibility .8s;
}

.plyr-loader-logo {
    font-size: clamp(2.8rem, 7vw, 6.5rem) !important;
    font-weight: 800 !important;
    color: #e50914 !important;
    letter-spacing: clamp(2px, .6vw, 9px) !important;
    text-shadow: 0 0 5px rgba(229, 9, 20, .24) !important;
    transform: perspective(700px) rotateX(12deg) scale(.86) !important;
    animation: refinedNetflixIntro 2.7s cubic-bezier(.2, .8, .2, 1) forwards !important;
}

.plyr-loader-logo::after {
    color: #e50914 !important;
    text-shadow: none !important;
}

@keyframes refinedNetflixIntro {
    0% {
        transform: perspective(700px) rotateX(20deg) scale(.72) translateY(8px) !important;
        letter-spacing: -10px !important;
        opacity: 0;
        filter: blur(5px) brightness(1);
    }
    32% {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
    100% {
        transform: perspective(700px) rotateX(12deg) scale(1) translateY(0) !important;
        letter-spacing: clamp(2px, .6vw, 9px) !important;
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}

/* Use all available width; the time label is the only reserved space. */
.plyr--video .plyr__progress {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

.plyr--video .plyr__progress__container {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

/* Right-aligned custom buttons spacing */
#customControlsContainer > button, 
#customControlsContainer > span {
    margin-left: 8px;
}

/* Remaining standard buttons */
button[data-plyr="settings"] { order: 9; display: none !important; }
button[data-plyr="fullscreen"] { order: 10; margin-left: 8px; }

/* Control Buttons (Play, Volume, Fullscreen) Styling */
.plyr__controls button {
    padding: 8px !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.plyr__controls button:hover {
    background: transparent !important;
    transform: scale(1.15);
    opacity: 1 !important;
}

.plyr__controls button svg {
    width: 28px !important;
    height: 28px !important;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}
button[data-plyr="rewind"] svg,
button[data-plyr="fast-forward"] svg {
    transform: scale(1.1); /* Slightly larger for emphasis */
}

/* Progress Bar Tweaks */
.plyr__progress input[type="range"] {
    cursor: pointer;
    height: 4px !important;
    transition: height 0.2s ease;
}

.plyr__progress input[type="range"]:hover {
    height: 8px !important;
}

.plyr__progress__buffer {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Thumb (Dot) on Progress Bar */
.plyr__progress input[type="range"]::-webkit-slider-thumb {
    height: 16px !important;
    width: 16px !important;
    background: #e50914 !important;
    box-shadow: none !important;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.plyr__progress input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1);
}

/* Volume Slider */
.plyr__volume input[type="range"] {
    color: #e50914 !important;
}
.plyr__volume input[type="range"]::-webkit-slider-thumb {
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* Big Play Button Center */
.plyr__control--overlaid {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 15px !important;
    transition: all 0.2s ease !important;
    z-index: 10005 !important;
}

.plyr__control--overlaid:hover {
    background: rgba(229, 9, 20, 0.8) !important;
    border-color: #e50914 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.plyr__control--overlaid svg {
    width: 30px !important;
    height: 30px !important;
}

/* Netflix Skip Intro Button Overlay */
.netflix-skip-intro-btn {
    position: absolute;
    bottom: 90px;
    right: 30px;
    background: rgba(20, 20, 20, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10006;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.netflix-skip-intro-btn.show {
    opacity: 1;
    visibility: visible;
}
.netflix-skip-intro-btn:hover {
    background: white;
    color: black;
    border-color: white;
}
.plyr--hide-controls .netflix-skip-intro-btn.show {
    bottom: 30px; /* Drop down slightly if controls hide */
}

/* Tooltips */
.plyr__tooltip {
    font-size: 13px !important;
    font-weight: bold !important;
    border-radius: 3px !important;
    padding: 6px 10px !important;
    bottom: 100% !important;
    margin-bottom: 10px !important;
}
.plyr__tooltip::before {
    display: none !important;
}

/* Final mobile pass */
@media (max-width: 600px) {
    html, body { overflow-x: hidden; }
    body:not(.watch-mode) .navbar { position: sticky; top: 0; min-height: 58px; padding: 8px 12px; z-index: 20000; }
    body:not(.watch-mode) .navbar .container { gap: 10px; padding: 0; }
    body:not(.watch-mode) .logo { font-size: 1.45rem; }
    body:not(.watch-mode) .nav-links { order: 3; width: 100%; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 1px; }
    body:not(.watch-mode) .nav-links::-webkit-scrollbar { display: none; }
    body:not(.watch-mode) .nav-links a { min-width: max-content; padding: 8px 9px; font-size: .72rem; border-radius: 8px; }
    body:not(.watch-mode) .nav-links i { display: none; }
    body:not(.watch-mode) .nav-right-icons { margin-left: auto; gap: 4px; }
    body:not(.watch-mode) .nav-right-icons .tv-mode-toggle,
    body:not(.watch-mode) .nav-right-icons > .nav-icon-btn:last-child { display: none; }
    body:not(.watch-mode) .search-box { width: min(42vw, 180px) !important; }
    body:not(.watch-mode) .hero { min-height: 520px; padding-bottom: 32px; }
    body:not(.watch-mode) .hero .container,
    body:not(.watch-mode) .content > .container { padding-left: 14px; padding-right: 14px; }
    body:not(.watch-mode) .hero-title { font-size: clamp(1.65rem, 8vw, 2.35rem); line-height: 1.08; }
    body:not(.watch-mode) .hero-desc { max-width: 100%; font-size: .86rem; line-height: 1.45; }
    body:not(.watch-mode) .hero-buttons { flex-wrap: wrap; gap: 8px; }
    body:not(.watch-mode) .hero-buttons .btn { flex: 1 1 140px; min-height: 44px; padding: 11px 14px; }
    body:not(.watch-mode) .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    body:not(.watch-mode) .card-poster { min-height: 0; }
    body:not(.watch-mode) .card-info { padding: 7px 2px 0; }
    body:not(.watch-mode) .card-info-title { font-size: .82rem; line-height: 1.25; }
    body:not(.watch-mode) .card-info-meta { font-size: .7rem; }
    body:not(.watch-mode) .section-title { font-size: 1.2rem; }
    body.watch-mode .np-wrapper { height: 56.25vw !important; min-height: 205px !important; max-height: none !important; }
    body.watch-mode .np-top-bar { padding: 12px 14px; gap: 10px; }
    body.watch-mode .np-back { font-size: 1.25rem; }
    body.watch-mode .np-title { font-size: .9rem; max-width: 62vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.watch-mode .plyr__controls { padding: 24px 8px 8px !important; }
    body.watch-mode .mobile-fullscreen-btn { display: inline-flex !important; min-width: 40px; height: 38px; align-items: center; justify-content: center; }
    body.watch-mode .mobile-fullscreen-btn i { font-size: 1rem; }
    body.watch-mode .plyr__controls button { padding: 5px !important; }
    body.watch-mode .plyr__controls button svg { width: 21px !important; }
    body.watch-mode .plyr__progress__container { min-width: 100px !important; min-height: 30px; display: flex; align-items: center; }
    body.watch-mode .plyr__progress input[type="range"] { height: 8px !important; }
    body.watch-mode .np-panel { width: min(92vw, 360px); }
    body.watch-mode .watch-main-title { max-width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
    body:not(.watch-mode) .navbar .container { flex-wrap: wrap; }
    body:not(.watch-mode) .nav-right-icons { max-width: 52%; }
    body:not(.watch-mode) .search-box { width: 38vw !important; }
    body:not(.watch-mode) .search-box input { min-height: 40px; font-size: .8rem; }
    body:not(.watch-mode) .content { padding-top: 22px; }
    body:not(.watch-mode) .grid { gap: 16px 8px; }
    body:not(.watch-mode) .card-poster-wrap { border-width: 1px; }
    body:not(.watch-mode) .card-info-genres { display: none; }
    body:not(.watch-mode) .row-scroll { gap: 10px; padding-bottom: 12px; }
    body:not(.watch-mode) .row-scroll .card { flex-basis: 132px; width: 132px; }

    body.watch-mode .np-wrapper { min-height: 190px !important; }
    body.watch-mode .np-top-bar { padding: 10px; }
    body.watch-mode .player-options-btn,
    body.watch-mode .tv-mode-toggle { width: 34px !important; height: 34px !important; padding: 0 !important; font-size: 0 !important; }
    body.watch-mode .player-options-btn i,
    body.watch-mode .tv-mode-toggle i { font-size: .9rem; }
    body.watch-mode .plyr__controls { gap: 2px !important; }
    body.watch-mode .plyr__controls .plyr__control { min-width: 32px; min-height: 32px; }
    body.watch-mode .plyr__time { font-size: .7rem; }
    body.watch-mode .plyr__progress { min-width: 0 !important; }
    body.watch-mode .np-panel { width: 100%; max-width: 100%; border-radius: 14px 14px 0 0; }
    body.watch-mode .np-panel.open { top: auto; bottom: 0; height: min(72vh, 560px); }

    .modal-content { width: calc(100vw - 20px) !important; max-height: 92vh; overflow-y: auto; }
    .modal-body { display: block !important; padding: 18px !important; }
    .modal-poster-card { width: min(48vw, 170px); margin: 0 auto 18px; }
    .modal-actions { flex-wrap: wrap; }
    .modal-actions .btn { flex: 1 1 140px; min-height: 44px; }
    .modal-ep-card { min-height: 76px; padding: 8px; gap: 8px; }
    .modal-ep-thumb { width: 88px; min-width: 88px; height: 52px; }
}

@media (max-width: 360px) {
    body:not(.watch-mode) .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body:not(.watch-mode) .nav-links a { padding-left: 7px; padding-right: 7px; font-size: .68rem; }
    body.watch-mode .plyr__controls button svg { width: 18px !important; }
    body.watch-mode .plyr__time { display: none; }
}

/* Touch-first polish for phones and notch devices */
@media (hover: none) and (pointer: coarse) {
    button, a, input, .card, .modal-ep-card { touch-action: manipulation; }
    .card:hover { transform: none; }
    .card:hover .card-poster-wrap { border-color: transparent; box-shadow: none; }
    body.watch-mode .plyr__controls button { min-width: 36px; min-height: 36px; }
}

@media (max-width: 600px) and (orientation: landscape) {
    body.watch-mode .np-wrapper { height: 100svh !important; min-height: 0 !important; }
    body.watch-mode .watch-bottom-section { display: none; }
    body.watch-mode .np-top-bar { padding-top: max(8px, env(safe-area-inset-top)); }
    body.watch-mode .plyr__controls { padding-bottom: max(8px, env(safe-area-inset-bottom)) !important; }
}

@supports (height: 100svh) {
    @media (max-width: 600px) {
        body:not(.watch-mode) .hero { min-height: min(620px, 82svh); }
        body.watch-mode .np-wrapper { max-height: 100svh; }
    }
}

.advanced-filters { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 22px; padding:14px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.025); }
.advanced-filters[hidden] { display:none; }
.advanced-filters input { min-width:130px; flex:1 1 150px; border:1px solid var(--border); border-radius:8px; padding:11px 12px; color:var(--text); background:rgba(0,0,0,.3); }
@media (max-width:600px) { .advanced-filters { display:grid; grid-template-columns:1fr 1fr; } .advanced-filters input { min-width:0; width:100%; } .advanced-filters .btn { grid-column:1/-1; min-height:42px; } }
