/* ==========================================================
   Play - Netflix-style theme overrides (loaded last)
   ========================================================== */
/* Accent = violet (replaces Netflix red). Change these to re-theme everything. */
:root, html, html[data-bs-theme], html[data-bs-theme-color] {
    --nf-red: #7c3aed;
    --nf-red-dark: #5b21b6;
    --nf-accent-light: #c4b5fd;
    --nf-bg: #0f0b16;
    --nf-bg-soft: #17121f;
    --nf-text: #e5e5e5;
    --nf-muted: #b3b3b3;
    --bs-primary: #7c3aed;
    --bs-primary-rgb: 124, 58, 237;
    --bs-primary-bg-subtle: #1d1038;
    --bs-primary-border-subtle: #4c1d95;
    --bs-primary-text-emphasis: #c4b5fd;
    --bs-primary-hover-bg: #6d28d9;
    --bs-primary-hover-border: #5b21b6;
    --bs-primary-active-bg: #5b21b6;
    --bs-primary-active-border: #4c1d95;
    --bs-body-bg: #0f0b16;
    --bs-body-color: #e5e5e5;
}

/* Bootstrap buttons / focus rings that hard-code the old red */
.btn-primary {
    --bs-btn-bg: #7c3aed;
    --bs-btn-border-color: #7c3aed;
    --bs-btn-hover-bg: #6d28d9;
    --bs-btn-hover-border-color: #5b21b6;
    --bs-btn-focus-shadow-rgb: 139, 92, 246;
    --bs-btn-active-bg: #5b21b6;
    --bs-btn-active-border-color: #4c1d95;
}
.btn-outline-primary {
    --bs-btn-color: #a78bfa;
    --bs-btn-border-color: #7c3aed;
    --bs-btn-hover-bg: #7c3aed;
    --bs-btn-hover-border-color: #7c3aed;
    --bs-btn-focus-shadow-rgb: 124, 58, 237;
    --bs-btn-active-bg: #7c3aed;
    --bs-btn-active-border-color: #7c3aed;
}
.form-select:focus, .form-control:focus, .nav-link:focus-visible { box-shadow: 0 0 0 .25rem rgba(124, 58, 237, .25); }
.bg-soft-primary { background-color: rgba(124, 58, 237, .14) !important; color: #c4b5fd !important; }
.text-primary { color: #a78bfa !important; }
a:hover { color: #c4b5fd; }

/* red brand images (logo / loader) -> violet */
#page-loader img, .loader-wrapper img {
    filter: hue-rotate(268deg) saturate(1.15);
}

html, body {
    background: var(--nf-bg) !important;
    color: var(--nf-text);
    font-family: "Netflix Sans", "Helvetica Neue", Helvetica, Arial, "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: #4a3b66 #0f0b16; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f0b16; }
::-webkit-scrollbar-thumb { background: #4d4d4d; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #6a6a6a; }

/* ---------- header ---------- */
header.header-absolute,
header.header-absolute .iq-navbar,
header .iq-navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0) 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: background-color .4s ease;
}
header.header-absolute.nf-scrolled,
header.header-absolute.nf-scrolled .iq-navbar {
    background: var(--nf-bg) !important;
}
header .navbar-nav .nav-link,
header .navbar-nav .menu-item a,
header .menu-item > a {
    font-size: 14px;
    font-weight: 400 !important;
    color: #e5e5e5 !important;
    transition: color .3s;
}
header .navbar-nav .nav-link:hover,
header .navbar-nav .active > .nav-link,
header .menu-item > a:hover,
header .menu-item.active > a {
    color: #fff !important;
    font-weight: 700 !important;
}
header .logo { max-height: 30px; width: auto; }

/* header buttons: flat, Netflix style */
header .btn-primary,
header a.btn-primary,
header .btn.btn-primary {
    background: var(--nf-red) !important;
    border: 0 !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: none;
}
header .btn-primary:hover { background: var(--nf-red-dark) !important; }
header .btn-border,
header .btn-outline-primary,
header .btn-outline-light {
    border-color: rgba(255, 255, 255, .35) !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, .35) !important;
    color: #fff !important;
}

/* ---------- hero banner ---------- */
.banner-section .slick-banner .slick-item,
.banner-section .slick-item {
    min-height: 82vh;
    height: 82vh !important;
    background-size: cover !important;
    background-position: center top !important;
    position: relative;
}
.banner-section .slick-item::before {
    content: "";
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        linear-gradient(77deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 38%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(to top, #0f0b16 0%, rgba(15, 11, 22, 0) 28%);
}
.banner-section .movie-content { position: relative; z-index: 1; }
.banner-section .movie-info {
    max-width: 560px;
    padding-bottom: 6vh;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.banner-section .movie-info h4 {
    font-size: clamp(2rem, 4.6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.5px;
    color: #fff;
}
.banner-section .movie-info .line-count-3 {
    font-size: clamp(.95rem, 1.2vw, 1.25rem);
    color: #fff;
    max-width: 520px;
}
.banner-section .movie-tag-list { opacity: .95; }

/* Play button = white, "+"/share = translucent grey */
.banner-section .btn,
.banner-section a.btn {
    border-radius: 4px !important;
    font-weight: 700;
    border: 0 !important;
    text-transform: none;
}
.banner-section .btn-primary,
.banner-section a[href*="movie-details"].btn,
.banner-section .btn-light {
    background: #fff !important;
    color: #000 !important;
    padding: .7rem 1.8rem;
    font-size: 1.1rem;
}
.banner-section .btn,
.banner-section .btn * { text-shadow: none !important; }
.banner-section .btn-primary:hover { background: rgba(255, 255, 255, .75) !important; }
.banner-section .btn-primary,
.banner-section .btn-primary span,
.banner-section .btn-primary i { color: #000 !important; }
.banner-section .btn-primary *,
.banner-section .btn-primary span { background: transparent !important; }
.banner-section .btn-primary { background-color: #fff !important; }
.banner-section .btn-primary i,
.banner-section .btn-primary svg { color: #000 !important; fill: #000 !important; }
.banner-section .btn-dark,
.banner-section .btn-border,
.banner-section .btn.rounded-circle,
.banner-section .btn-icon {
    background: rgba(109, 109, 110, .7) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
}
.banner-section .btn-dark:hover,
.banner-section .btn.rounded-circle:hover { background: rgba(109, 109, 110, .45) !important; }

/* ---------- rows / section titles ---------- */
.section-wraper,
.section-wrapper { margin-bottom: .6rem; }
.main-title,
h5.main-title {
    font-size: clamp(1.1rem, 1.5vw, 1.55rem) !important;
    font-weight: 700 !important;
    color: #e5e5e5;
    letter-spacing: 0;
}
.view-all-button {
    font-size: .85rem;
    color: #a78bfa !important;
    opacity: 0;
    transition: opacity .25s, transform .25s;
}
.section-wraper:hover .view-all-button,
.section-wrapper:hover .view-all-button,
.view-all-button:focus { opacity: 1; }

/* ---------- cards ---------- */
.iq-card,
.iq-card .block-images,
.iq-card .image-box,
.iq-card img {
    border-radius: 4px !important;
}
.slick-general .slick-item { padding: 0 3px; }
.card-style-slider .slick-list { overflow: visible; }
.card-style-slider { overflow: hidden; padding: 28px 0 28px; margin: -28px 0; }
.iq-card.card-hover,
.entainment-slick-card {
    transition: transform .3s ease, box-shadow .3s ease;
    transform-origin: center center;
    background: #17121f;
    overflow: visible;
}
.iq-card.card-hover:hover,
.entainment-slick-card:hover {
    transform: scale(1.12);
    z-index: 30;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .75);
}
.slick-general .slick-item:hover { z-index: 30; position: relative; }

/* rating chip, premium crown, rent tag: smaller / subtler */
.ratting-value {
    background: rgba(0, 0, 0, .65) !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    backdrop-filter: blur(2px);
}
.product-premium,
.product-rent {
    border-radius: 3px !important;
    font-size: 10px !important;
}
.product-rent { background: var(--nf-red) !important; color: #fff !important; }

/* Top 10: big outlined numbers like Netflix */
.top-ten-numbers,
.texture-text {
    background: none !important;
    color: #0f0b16 !important;
    -webkit-text-fill-color: #0f0b16 !important;
    -webkit-text-stroke: 3px #7c7c7c;
    font-weight: 900 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    left: -.08em;
}
.iq-top-ten-block:hover .top-ten-numbers { -webkit-text-stroke-color: #fff; }

/* ---------- slider arrows ---------- */
.slick-prev, .slick-next {
    width: 4vw !important; min-width: 40px;
    height: calc(100% - 56px) !important;
    top: 50% !important;
    background: rgba(15, 11, 22, .55) !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 0;
    transition: opacity .25s, background .25s;
    z-index: 40 !important;
}
.slick-prev { left: 0 !important; }
.slick-next { right: 0 !important; }
.slick-general:hover .slick-prev,
.slick-general:hover .slick-next { opacity: 1; }
.slick-prev:hover, .slick-next:hover { background: rgba(15, 11, 22, .85) !important; }
.slick-prev.slick-disabled, .slick-next.slick-disabled { opacity: 0 !important; }

/* banner arrows keep floating over the picture */
.slick-banner .slick-prev,
.slick-banner .slick-next {
    height: 100% !important; top: 0 !important; transform: none !important;
    background: transparent !important; opacity: .0;
}
.slick-banner:hover .slick-prev,
.slick-banner:hover .slick-next { opacity: 1; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent) !important; }
.slick-banner:hover .slick-next { background: linear-gradient(270deg, rgba(0,0,0,.45), transparent) !important; }

/* banner dots */
.slick-banner .slick-dots li button:before { color: #fff; opacity: .5; }
.slick-banner .slick-dots li.slick-active button:before { color: var(--nf-red); opacity: 1; }

/* ---------- generic buttons / forms ---------- */
.btn-primary {
    background-color: var(--nf-red) !important;
    border-color: var(--nf-red) !important;
    border-radius: 4px !important;
}
.btn-primary:hover { background-color: var(--nf-red-dark) !important; border-color: var(--nf-red-dark) !important; }
.form-control, .form-select {
    background: #333 !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    color: #fff !important;
}
.form-control:focus { border-color: #fff !important; box-shadow: none !important; }

/* ---------- movie detail page ---------- */
.page-title { background: transparent !important; }
.section-spacing-bottom a { color: #fff; }

/* ---------- footer ---------- */
footer, .footer { background: #0f0b16 !important; border-top: 1px solid #2a2038; color: #757575; }
footer a { color: #757575 !important; }
footer a:hover { color: #b3b3b3 !important; text-decoration: underline; }

/* ---------- mobile ---------- */
@media (max-width: 768px) {
    .banner-section .slick-item { min-height: 62vh; height: 62vh !important; }
    .banner-section .movie-info { padding-bottom: 3vh; }
    .iq-card.card-hover:hover { transform: none; box-shadow: none; }
    .slick-prev, .slick-next { display: none !important; }
    .view-all-button { opacity: 1; }
}

/* ==========================================================
   Profile selection / management (Netflix "Who's watching?")
   ========================================================== */
.profile-card-lists { margin-top: 1rem; }
.vh-100 > .text-center > h1,
.vh-100 h1.mb-4 {
    font-size: clamp(2rem, 3.6vw, 3.5rem);
    font-weight: 500;
    color: #fff;
    letter-spacing: 0;
    margin-bottom: 1.2rem !important;
}
.profile-card-lists .row { gap: 0; }
.profile-card-lists .row > .col {
    flex: 0 0 auto;
    width: auto;
    padding: 0 clamp(.6rem, 1.1vw, 1.1rem);
}
.profile-card {
    width: clamp(84px, 10vw, 150px);
    text-align: center;
    cursor: pointer;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    transition: transform .2s;
}
.profile-card .profile-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    border: 3px solid transparent;
    background: #333;
    transition: border-color .15s;
}
.profile-card .profile-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}
.profile-card h5,
.profile-card .profile-name {
    margin: .8rem 0 0;
    font-size: clamp(.9rem, 1.2vw, 1.3rem);
    font-weight: 400;
    color: grey;
    transition: color .15s;
}
.profile-card:hover .profile-card-image { border-color: #e5e5e5; }
.profile-card:hover h5,
.profile-card:hover .profile-name { color: #e5e5e5; }

/* "Manage Profiles" button: outlined, letter-spaced */
.profile-card-lists ~ .text-center .btn,
.profile-card-lists + .text-center .btn-dark {
    background: transparent !important;
    border: 1px solid grey !important;
    color: grey !important;
    border-radius: 0 !important;
    padding: .55rem 1.6rem !important;
    font-size: clamp(.9rem, 1.2vw, 1.3rem) !important;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.profile-card-lists ~ .text-center .btn:hover { background: #fff !important; border-color: #fff !important; color: #0f0b16 !important; }

/* "add profile" tile and modal */
.add-profile-modal .modal-content {
    background: #0f0b16 !important;
    border: 1px solid #333;
    border-radius: 6px;
}
.add-profile-modal .modal-body { padding: 2rem; }
.otp-input, .pin-input {
    background: #333 !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    color: #fff !important;
    text-align: center;
}
.otp-input:focus, .pin-input:focus { border-color: #fff !important; box-shadow: none !important; }
.custom-close-btn { background: transparent !important; border: 0 !important; }

@media (max-width: 576px) {
    .profile-card { width: 84px; }
    .profile-card-lists .row > .col { padding: 0 .5rem; margin-bottom: 1rem; }
}

/* ==========================================================
   v2 - matches current Netflix (2025) layout
   ========================================================== */

/* ---- header: pill menu ---- */
header .iq-nav-menu { gap: 4px; }
header .iq-nav-menu .nav-link {
    border-radius: 999px !important;
    padding: .38rem 1rem !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #e5e5e5 !important;
    background: transparent;
    transition: background-color .2s, color .2s;
}
header .iq-nav-menu .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
header .iq-nav-menu .nav-link.active,
header .iq-nav-menu .nav-link.active.text-primary {
    background: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
    font-weight: 700 !important;
}
header .right-panel .btn-dark,
header .right-panel .btn-border,
header .right-panel .btn-outline-primary {
    background: transparent !important;
    border: 0 !important;
}
header .right-panel .btn-dark:hover { background: rgba(255, 255, 255, .1) !important; }
header.header-absolute, header.header-absolute .iq-navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 100%) !important;
}

/* ---- hero: inset rounded card ---- */
.banner-section { padding: 74px 2.2vw 0 !important; }
.banner-section .slick-banner { border-radius: 14px; overflow: hidden; }
.banner-section .slick-banner .slick-item,
.banner-section .slick-item {
    height: min(46vw, 78vh) !important;
    min-height: 420px !important;
    border-radius: 14px;
}
.banner-section .slick-item::before {
    background:
        linear-gradient(77deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, 0) 68%),
        linear-gradient(to top, rgba(15, 11, 22, .85) 0%, rgba(15, 11, 22, 0) 30%);
}
.banner-section .movie-info h4 {
    font-size: clamp(1.8rem, 3.6vw, 3.6rem);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 800;
}
.banner-section .movie-info .line-count-3 { font-size: clamp(.95rem, 1.25vw, 1.3rem); line-height: 1.35; max-width: 560px; }
.banner-section .movie-info { padding-bottom: 3vh; }
.banner-section .btn,
.banner-section a.btn { border-radius: 999px !important; }
.banner-section .btn-primary,
.banner-section a[href*="movie-details"].btn { padding: .65rem 1.7rem; font-size: 1rem; }
.banner-section .slick-prev, .banner-section .slick-next { display: none !important; }

/* ---- rows ---- */
.section-wraper, .section-wrapper { margin-bottom: 0; }
.main-title, h5.main-title {
    font-size: clamp(1rem, 1.15vw, 1.35rem) !important;
    font-weight: 600 !important;
}
.slick-general .slick-item { padding: 0 2px !important; }

/* landscape 16:9 thumbnails */
.entainment-slick-card .image-box {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px !important;
    background: #17121f;
}
.entainment-slick-card .image-box img {
    width: 100%; height: 100% !important;
    object-fit: cover;
    object-position: center;
}
.entainment-slick-card,
.iq-card.card-hover { border-radius: 6px !important; }
.iq-card.card-hover:hover,
.entainment-slick-card:hover { transform: scale(1.1); }

/* rating chip only on hover (clean thumbnails like Netflix) */
.entainment-slick-card .ratting-value { opacity: 0; transition: opacity .2s; }
.entainment-slick-card:hover .ratting-value { opacity: 1; }
.product-premium { background: rgba(0, 0, 0, .55) !important; }

/* ---- profile selection screen ---- */
html:has(.profile-card-lists) { background: #0a0612 !important; }
body:has(.profile-card-lists) {
    background: linear-gradient(180deg, #3b1768 0%, #1d0e38 45%, #0a0612 100%) fixed !important;
}
.vh-100 > .text-center > h1,
.vh-100 h1.mb-4 {
    font-size: clamp(1.4rem, 1.7vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.6rem !important;
}
.profile-card { width: clamp(76px, 6.8vw, 112px); }
.profile-card .profile-card-image { border: 0; border-radius: 8px; }
.profile-card:hover .profile-card-image { box-shadow: 0 0 0 3px #fff; }
.profile-card h5, .profile-card .profile-name {
    font-size: clamp(.78rem, .85vw, .95rem);
    font-weight: 600;
    color: #b3b3b3;
    margin-top: .7rem;
}
.profile-card-lists ~ .text-center .btn,
.profile-card-lists + .text-center .btn-dark {
    border-radius: 999px !important;
    background: #000 !important;
    border: 1px solid #3a3a3a !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding: .55rem 1.1rem !important;
}
.profile-card-lists ~ .text-center .btn:hover { background: #1b1b1b !important; border-color: #666 !important; color: #fff !important; }
.nf-profile-logo {
    position: absolute; top: 22px; left: 3vw; z-index: 5;
    max-height: 26px; width: auto;
}

@media (max-width: 768px) {
    .banner-section { padding: 64px 12px 0 !important; }
    .banner-section .slick-item { height: 62vh !important; min-height: 360px !important; }
}

/* theme blends card images with overlay -> looked washed out on dark bg */
.iq-card img, .iq-card .image-box img, .top-ten-img, .iq-top-ten-block img {
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

/* kill the theme's teal-ish greys: cards, footer, dropdowns, modals */
:root, html, html[data-bs-theme], html[data-bs-theme-color] {
    --bs-body-bg-rgb: 15, 11, 22;
    --bs-secondary-bg: #17121f;
    --bs-secondary-bg-rgb: 23, 18, 31;
    --bs-tertiary-bg: #1d1628;
    --bs-tertiary-bg-rgb: 29, 22, 40;
    --bs-border-color: #2a2038;
    --bs-card-bg: #17121f;
    --bs-dropdown-bg: #17121f;
    --bs-modal-bg: #17121f;
}
.card, .profil-card, .bg-body, .dropdown-menu, .modal-content { background-color: #17121f !important; }
.card.border-primary, .profil-card.border-primary { border-color: #7c3aed !important; }
.profile-card-add-user, .profile-card-add-user.bg-dark { background-color: #2a2038 !important; }
footer, footer .footer-top, footer .footer-bottom, .footer, .footer .footer-top, .footer .footer-bottom { background: #0f0b16 !important; }
.add-profile-modal .modal-content { background: #17121f !important; }
.add-profile-modal .modal-body, .add-profile-modal form, .modal-acoount-info { background: transparent !important; }
.add-profile-modal .form-control, .add-profile-modal .input-group-text { background: #2a2038 !important; border-color: transparent !important; color: #fff !important; }

/* ==========================================================
   v3 - closer to the Netflix screenshots
   ========================================================== */
/* header: only search, notifications, profile (like Netflix) */
header .dropdown-download-wrapper,
header .dropdown-language-wrapper,
header .right-panel li:has(a[href*="subscription-plan"]) { display: none !important; }
header .iq-nav-menu .nav-link { text-transform: none !important; }
header .logo { height: 28px; width: auto; max-height: none; }

/* hero: lighter scrim, pill buttons, no dots / round extras */
.banner-section .slick-item::before {
    background:
        linear-gradient(77deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 35%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(to top, rgba(15, 11, 22, .7) 0%, rgba(15, 11, 22, 0) 22%) !important;
}
.banner-section .watch-list-btn,
.banner-section .share-button,
.banner-section .slick-dots { display: none !important; }
.banner-section .movie-info .btn {
    border-radius: 999px !important;
    padding: .7rem 1.7rem !important;
    font-size: 1.05rem;
    font-weight: 700;
    border: 0 !important;
}
.banner-section .nf-btn-info {
    background: rgba(109, 109, 110, .7) !important;
    color: #fff !important;
}
.banner-section .nf-btn-info:hover { background: rgba(109, 109, 110, .45) !important; }
.banner-section .nf-btn-info * { background: transparent !important; color: #fff !important; text-shadow: none !important; }
.banner-section .movie-info h4 { font-size: clamp(1.8rem, 3.4vw, 3.4rem); }
.banner-section .movie-info .line-count-3 { font-size: clamp(1rem, 1.3vw, 1.35rem); font-weight: 500; }

/* profile screen: tighter, like the print */
.profile-card-lists .row > .col { padding: 0 .55vw !important; }
.profile-card { width: clamp(80px, 6.9vw, 116px); }
.nf-profile-logo { max-height: 30px; }

header li:has(> .subscribe-btn), header .subscribe-btn { display: none !important; }
