body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0a0a0a; /* preto cinematográfico estilo primeiro tema */
    color: #f5f5f5;
    overflow-x: hidden;
}

/*
Theme Name: StreamFlix Plus
Description: Tema de streaming estilo Netflix/HBO.
Version: 2.1
*/



a {
    color: #f5f5f5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(5,5,10,0.98), rgba(5,5,10,0.8), rgba(5,5,10,0));
    box-shadow: 0 20px 60px rgba(0,0,0,0.75);
    padding: 14px 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.main-navigation a:hover {
    opacity: 1;
}

/* MAIN / FULL-WIDTH */

.site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 40px;
}

/* GRID DE FILMES */

.page-header {
    padding: 24px 4vw 10px;
}

.grid-movies {
    padding: 0 4vw;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px;
}

.movie-card,
.row-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at top, #171924 0, #050509 60%, #02030a 100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.75);
    transform: translateY(0);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.movie-card:hover,
.row-card:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}


.movie-card:hover a,
.row-card:hover a,
.movie-card:focus-within a,
.row-card:focus-within a {
    border-color: #ffd54a !important;
    box-shadow: 0 0 12px 4px rgba(255,213,74,0.6), 0 0 22px rgba(255,213,74,0.4), 0 20px 50px rgba(0,0,0,0.6);
}



.movie-card img,
.row-card img {
    border-radius: 18px !important;
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

/* Badge configurável */
.movie-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 18px;
    background: rgba(248, 68, 100, 0.95);
    color: #fff;
    box-shadow: 0 0 18px rgba(248,68,100,0.8);
}

.movie-card-title,
.row-card-title {
    padding: 8px 10px 10px;
    font-size: 13px;
    font-weight: 600;
}

/* HERO TIPO NETFLIX / HBO */

.single-movie-hero {
    position: relative;
    width: 100%;
    min-height: 72vh;
    margin: 0;
    padding: 90px 6vw 80px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.single-movie-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* fade médio: ainda aparece bastante o trailer, mas texto fica legível */
    background: radial-gradient(circle at 20% 15%, rgba(0,0,0,0.15), rgba(0,0,0,0.55) 55%, #050509 100%);
    z-index: 1;
}

/* camada de vídeo */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* não deixa clicar nas coisas do YouTube */
}

.hero-video-bg iframe,
.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    border: 0;
}

/* conteúdo hero */

.single-movie-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 320px);
    gap: 36px;
    align-items: center;
    z-index: 2;
}

.hero-text-block {
    max-width: 640px;
}

.hero-brand {
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.8;
}

.hero-title {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800;
}

.hero-tagline {
    font-size: 14px;
    max-width: 520px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-meta-line {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    opacity: 0.9;
}

.hero-meta-line a {
    text-decoration: none;
}

.hero-meta-line a:hover {
    text-decoration: underline;
}

/* Poster na direita */

.hero-poster-frame img {
    border-radius: 18px !important;
    border-radius: 18px;
    width: 100%;
    height: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.95);
    user-select: none;
    -webkit-user-drag: none;
}

/* Bloco de classificação */

.rating-block {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    z-index: 3;
}

.rating-badge {
    background: #e50914;
    color: #fff;
    padding: 6px 10px;
    border-radius: 18px;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
}

.rating-description {
    margin-top: 4px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 18px;
}

/* Botões hero */

.hero-buttons {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

/* Botão assistir customizado, diferente da Netflix */
.hero-buttons .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #000;
    box-shadow: 0 14px 30px rgba(0,0,0,0.85);
}

.hero-buttons .btn-primary span.icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 18px;
    background: #000;
    color: #ffcc33;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    border-radius: 18px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(63,63,70,0.9), rgba(99,102,241,0.9));
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.8);
}

/* Volume hero */

.hero-volume-toggle {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* WATCH PAGE (player ocupando tela) */

.sf-watch-page {
    background: #000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.sf-watch-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
}

.sf-watch-video-frame {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 0;
    background: #000;
    overflow: hidden;
}

/* botão voltar no modo watch */

.sf-watch-back {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 50;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.8);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* UI auto-hide no modo watch */

.sf-watch-page {
    background: #000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.sf-watch-page {
    background: #000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.sf-watch-page {
    background: #000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.sf-watch-page {
    background: #000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* PLAYER BASE (wrapper comum nas páginas normais) */

.player-wrapper-outer {
    margin-top: 34px;
    background: radial-gradient(circle at top, #171a26 0, #050509 45%, #02030a 100%);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.95);
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 18px;
    overflow: hidden;
}

/* SEÇÕES EM FILEIRAS (SLIDES HORIZONTAIS) */

.row-section {
    margin-top: 34px;
    padding: 0 4vw;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.row-header h2 {
    font-size: 18px;
    margin: 0;
}

.row-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.row-scroll::-webkit-scrollbar {
    height: 6px;
}

.row-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.row-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 18px;
}

/* MODAL "MAIS INFORMAÇÕES" */

.sf-modal-info {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
}

.sf-modal-info.active {
    display: flex;
}

.sf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.sf-modal-panel {
    position: relative;
    max-width: 900px;
    width: 95vw;
    max-height: 90vh;
    background: #050509;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
}

.sf-modal-header {
    padding: 16px 20px 6px;
}

.sf-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 18px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.sf-modal-

.sf-modal-trailer {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.sf-modal-trailer-embed {
    position: absolute;
    inset: 0;
}

.sf-modal-trailer-embed iframe {
    position: absolute;
    width: 130%;
    height: 130%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.sf-modal-related {
    margin-top: 18px;
}

/* Rodapé */

.site-footer {
    padding: 20px 4vw 40px;
    opacity: 0.7;
    font-size: 13px;
}

/* Responsivo */

@media (max-width: 900px) {
    .single-movie-hero {
        padding: 80px 16px 40px;
    }
    .single-movie-hero-inner {
        display:flex;
        flex-direction:column;
        align-items:flex-start;
    }
    .rating-block {
        position: static;
        margin-top: 12px;
        align-items: flex-start;
    }
    .hero-poster-frame {
        max-width: 220px;
        margin-top: 16px;
    }
}

@media (max-width: 1023px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.sf-watch-video-frame .player-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
    border-radius: 0;
    overflow: hidden;
}

/* ===== MODO KIDS ===== */

.kids-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1b0b3a 0, #050013 55%, #020008 100%);
    color: #fff;
}

.kids-hero {
    padding: 40px 4vw 10px;
}

.kids-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.kids-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff5bd5, #5b8dff);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.kids-hero-title {
    font-size: 32px;
    margin: 0 0 6px;
}

.kids-hero-subtitle {
    font-size: 14px;
    opacity: .85;
    max-width: 480px;
}

.kids-main {
    padding-bottom: 40px;
}

.kids-row .row-header h2 {
    font-size: 20px;
}

.kids-row-scroll {
    scroll-snap-type: x mandatory;
}

.kids-row-scroll .kids-card {
    scroll-snap-align: start;
    transform: translateY(0);
    transition: transform .18s ease-out, box-shadow .18s ease-out;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.kids-row-scroll .kids-card img {
    border-radius: 18px !important;
    display: block;
    width: 100%;
    border-radius: 18px;
}

.kids-row-scroll .kids-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
    opacity: .8;
    transition: opacity .18s ease-out;
}

.kids-row-scroll .kids-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,.8);
}

.kids-row-scroll .kids-card:hover::after {
    opacity: 1;
}

.kids-card-title {
    position: absolute;
    left: 10px;
    bottom: 10px;
    right: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* animação simples ao entrar na fileira kids */
.kids-row-scroll .kids-card {
    animation: kidsCardIn .4s ease-out both;
}
.kids-row-scroll .kids-card:nth-child(2) { animation-delay: .03s; }
.kids-row-scroll .kids-card:nth-child(3) { animation-delay: .06s; }
.kids-row-scroll .kids-card:nth-child(4) { animation-delay: .09s; }
.kids-row-scroll .kids-card:nth-child(5) { animation-delay: .12s; }

@keyframes kidsCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal hero buttons + meta line refinado */
.sf-modal-body .modal-hero-buttons {
    margin: 14px 0 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sf-modal-body .modal-genres {
    font-size: 13px;
    opacity: .85;
    margin: 0 0 10px;
}

.sf-modal-body .btn-primary {
    background: #f5c542;
    color: #000;
    font-weight: 700;
    border-radius: 18px;
    padding: 8px 20px;
}

.sf-modal-body .btn-primary .icon {
    margin-right: 6px;
}


/* Mini modal de trailer (janela ~900px) */
.sf-mini-trailer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sf-mini-trailer.is-active {
    display: flex;
}

.sf-mini-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.sf-mini-box {
    position: relative;
    width: 900px;
    max-width: 95vw;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.95);
}

.sf-mini-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.sf-mini-close,
.sf-mini-mute {
    position: absolute;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 18px;
}

.sf-mini-close {
    right: 12px;
}

.sf-mini-mute {
    right: 56px;
}

.sf-mini-close:hover,
.sf-mini-mute:hover {
    background: rgba(255,255,255,0.14);
}


/* Refino do mini trailer: esconde UI do YouTube e bloqueia cliques */
.sf-mini-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.sf-mini-player iframe {
    position: absolute;
    inset: -12% -18%;-8%;
    width: 140%;
    height: 130%;
    pointer-events: none !important;
}


/* v15 trailer crop fix */
.sf-mini-box {
    width: 900px;
    max-width: 95vw;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 18px;
    background:#000;
}

.sf-mini-player {
    position: relative;
    width:100%;
    height:100%;
    overflow:hidden;
}

.sf-mini-player iframe {
    position:absolute;
    inset:-20% -25% !important;
    width:150% !important;
    height:150% !important;
    pointer-events:none !important;
}

/* improved responsive menu */
.sf-header{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;}
.sf-nav ul{display:flex;gap:20px;list-style:none;margin:0;padding:0;}
.sf-nav a{text-decoration:none;color:#fff;font-weight:500;}
.sf-mobile-toggle{display:none;color:#fff;font-size:28px;cursor:pointer;}
@media(max-width:768px){
 .sf-nav{display:none;position:absolute;top:60px;left:0;width:100%;background:#000;padding:20px;}
 .sf-nav.open{display:block;}
 .sf-nav ul{flex-direction:column;}
 .sf-mobile-toggle{display:block;}
}


/* User area / login icon */
.sf-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.sf-nav {
  flex:1;
}
.sf-user-area {
  display:flex;
  align-items:center;
  gap:10px;
}
.sf-login-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(0,0,0,0.4);
  text-decoration:none;
}
.sf-login-svg {
  width:22px;
  height:22px;
  stroke:#fff;
  fill:none;
  stroke-width:1.6;
}
.sf-user-dropdown {
  position:relative;
}
.sf-user-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(0,0,0,0.5);
  color:#fff;
  cursor:pointer;
}
.sf-user-avatar img,
.sf-user-avatar {
  border-radius: 18px;
  overflow:hidden;
}
.sf-user-chevron {
  font-size:12px;
  opacity:0.7;
}
.sf-user-menu {
  position:absolute;
  right:0;
  top:110%;
  min-width:180px;
  background:rgba(10,10,10,0.98);
  border-radius: 18px;
  border:1px solid rgba(255,255,255,0.12);
  padding:8px 0;
  display:none;
  z-index:999;
}
.sf-user-menu a {
  display:block;
  padding:8px 14px;
  font-size:14px;
  color:#fff;
  text-decoration:none;
}
.sf-user-menu a:hover {
  background:rgba(255,255,255,0.06);
}

/* show menu on hover/click (CSS-only fallback: hover) */


/* Watchlist button */
.sf-watchlist-btn {
  margin-top:10px;
  padding:10px 22px;
  border-radius: 18px;
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:linear-gradient(135deg, rgba(63,63,70,0.9), rgba(99,102,241,0.9));
  color:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,0.8);
}

.sf-watchlist-label-remove {
  display:none;
}
.sf-watchlist-btn.is-in-list {
  background:linear-gradient(135deg, rgba(50,50,55,0.9), rgba(80,82,200,0.9));
  border:1px solid rgba(255,255,255,0.25);

  background:rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.35);
}
.sf-watchlist-btn.is-in-list .sf-watchlist-label-add {
  display:none;
}
.sf-watchlist-btn.is-in-list .sf-watchlist-label-remove {
  display:inline;
}

/* Minha lista grid */
.sf-mylist-page {
  padding:40px 20px;
}
.sf-mylist-inner {
  max-width:1200px;
  margin:0 auto;
}
.sf-mylist-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:18px;
  margin-top:20px;
}
.sf-mylist-card {
  background:rgba(0,0,0,0.5);
  border-radius: 18px;
  overflow:hidden;
  padding:10px;
}

.sf-mylist-thumb img {
    border-radius: 18px !important;
  width:100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.sf-mylist-title {
  font-size:14px;
  margin:8px 0 4px;
}

/* Account page */
.sf-account-page {
  padding:40px 20px;
}
.sf-account-inner {
  max-width:960px;
  margin:0 auto;
}
.sf-account-columns {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.sf-account-box {
  background:rgba(0,0,0,0.55);
  border-radius: 18px;
  padding:20px;
}
.sf-account-box h2 {
  margin-top:0;
  margin-bottom:12px;
}
.sf-account-box label {
  display:block;
  font-size:14px;
  margin-bottom:4px;
}
.sf-account-box input[type="text"],
.sf-account-box input[type="email"],
.sf-account-box input[type="password"] {
  width:100%;
  padding:8px 10px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(0,0,0,0.7);
  color:#fff;
}
.sf-account-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.sf-account-welcome {
  opacity:0.85;
  margin-bottom:12px;
}


/* CONTINUAR ASSISTINDO */
.home-row.continue-watching {
  padding: 24px 4vw 8px;
}
.home-row.continue-watching .home-row-header h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}
.home-row-scroller {
  overflow-x: auto;
}
.home-row-track {
  display:flex;
  gap:12px;
}
.continue-card {
  min-width:180px;
}
.continue-card .movie-card-thumb {
  position:relative;
  border-radius: 18px;
  overflow:hidden;
}
.sf-progress-bar {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:4px;
  background:rgba(255,255,255,0.2);
}
.sf-progress-fill {
  height:100%;
  background:#f5c542;
}
.continue-card .btn-small {
  margin-top:6px;
  font-size:13px;
  padding:4px 10px;
  border-radius: 18px;
}

/* EXTRA SECTIONS ACCOUNT */
.sf-extra-sections h2{margin-top:30px;font-size:1.4rem;}
.sf-account-continue,.sf-account-recent,.sf-account-recommended{
 display:flex;gap:12px;overflow-x:auto;padding:6px 0;
}
.sf-mini-card{display:block;position:relative;min-width:140px;}
.sf-mini-card img {
    border-radius: 18px !important;width:100%;border-radius: 18px;}
.sf-mini-progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:#444;}
.sf-mini-progress div{height:100%;background:#f5c542;}


/* Yellow ASSISTIR button unified */
.btn-watch-yellow,
.home-row.continue-watching .btn-primary.btn-small {
    background: linear-gradient(90deg,#ffcc32,#f4b400);
    color:#000 !important;
    font-weight:600;
    border-radius: 18px;
    padding:8px 20px;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.btn-watch-yellow .icon,
.home-row.continue-watching .btn-primary.btn-small .icon{
    color:#000 !important;
}

/* Disable hover pulse for yellow buttons */
.btn-watch-yellow:hover {
    transform:none !important;
    animation:none !important;
}

/* Ensure button not glued to image */
.continue-card button.btn-watch-yellow {
    margin-top: 10px !important;
    display:block;
}
.continue-card .movie-card-thumb {
    margin-bottom: 10px !important;
}

/* FINAL FIX — force real spacing between image and button */
.continue-card {
    display: flex;
    flex-direction: column;
}

.continue-card .movie-card-thumb {
    margin-bottom: 18px !important; /* Increase space between image and button */
}

.continue-card a {
    display: flex;
    flex-direction: column;
}

.continue-card button.btn-watch-yellow {
    margin-top: 18px !important;
    display: block !important;
    align-self: flex-start; /* prevent overlay on image */
}

/* Prevent card wrapper from collapsing */
.continue-card .movie-card-thumb img {
    border-radius: 18px !important;
    display: block;
}


/* REMOVE CARD BACKGROUND + MAKE IMAGE FULL COVER */
.continue-card,
.continue-card a {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.continue-card .movie-card-thumb {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.continue-card .movie-card-thumb img {
    border-radius: 18px !important;
    width: 100% !important;
    border-radius: 18px !important;
    display: block !important;
}

/* BUTTON OUTSIDE, BELOW THE IMAGE */
.continue-card button.btn-watch-yellow {
    margin-top: 14px !important;
    display: block !important;
    margin-left: 0 !important;
}

/* ensure layout column */
.continue-card a {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}


/* Medium progress bar (slightly larger than original) */
.sf-progress-fill,
.sf-progress-bar,
.sf-progress-bar-fill,
.video-progress-bar .progress-fill {
    height: 5px !important;
    border-radius: 18px !important;
}


/* Slightly bigger progress bar (6px) */
.sf-progress-fill,
.sf-progress-bar,
.sf-progress-bar-fill,
.video-progress-bar .progress-fill {
    height: 6px !important;
    border-radius: 18px !important;
}


/* AUTH PAGES (LOGIN / REGISTER) */

.sf-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 55%),
              radial-gradient(circle at bottom, rgba(84,0,140,0.4), #050509 65%);
}

.sf-auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(5,5,10,0.92);
  border-radius: 18px;
  padding: 28px 26px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}

.sf-auth-card h1 {
  font-size: 1.8rem;
  margin: 0 0 18px;
}

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

.sf-auth-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  opacity: 0.85;
}

.sf-auth-field input[type="text"],
.sf-auth-field input[type="email"],
.sf-auth-field input[type="password"] {
  width: 100%;
  background: rgba(10,10,20,0.95);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 9px 11px;
  color: #fff;
  font-size: 0.95rem;
}

.sf-auth-field input:focus {
  outline: none;
  border-color: #f5c542;
  box-shadow: 0 0 0 1px rgba(245,197,66,0.4);
}

.sf-auth-remember label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.sf-auth-btn-main {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  border-radius: 18px;
  padding: 10px 18px;
}

.sf-auth-error {
  background: rgba(200,40,60,0.14);
  border: 1px solid rgba(255,80,100,0.5);
  border-radius: 18px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

/* Separator */
.sf-auth-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.sf-auth-separator span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* Google button */
.sf-auth-btn-google {
  width: 100%;
  border-radius: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.6);
}

.sf-auth-btn-google .google-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Switch link */
.sf-auth-switch {
  margin-top: 18px;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.85;
}
.sf-auth-switch a {
  color: #ffd54a;
  text-decoration: none;
  font-weight: 600;
}
.sf-auth-switch a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  .sf-auth-card {
    padding: 24px 18px 26px;
  }
}
/* final fixes */
.sf-auth-page{background:linear-gradient(140deg,#4a3aff 0%,#7e5bff 100%)!important;}
.sf-profile-dropdown{display:none;opacity:0;transform:translateY(10px);transition:.25s;}
.sf-profile-dropdown.open{display:block;opacity:1;transform:translateY(0);}
.sf-account-form input[type="text"]{width:100%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);padding:12px 16px;border-radius: 18px;font-size:1rem;color:#fff;margin-bottom:14px;}
.sf-upload-label{display:inline-block;background:rgba(255,255,255,.1);padding:10px 16px;border-radius: 18px;color:#fff;margin-bottom:18px;border:1px solid rgba(255,255,255,.18);cursor:pointer;}
.sf-auth-btn-main{width:100%;background:linear-gradient(90deg,#ffce52,#ffd86b);border:none;border-radius: 18px;padding:14px;font-weight:600;color:#000;margin-top:10px;}
.sf-account-link.sf-account-logout{color:#ff6b6b!important;margin-top:20px;display:inline-block;}

/* Remove broken bg */
.sf-auth-page{background:transparent!important;backdrop-filter:none!important;}
/* Avatar fix */
.sf-account-avatar img {
    border-radius: 18px !important;width:120px;height:120px;object-fit:cover;border-radius:50%;}
.sf-account-header{display:flex;align-items:center;gap:20px;}
/* Modal glass */
.sf-auth-card{background:rgba(0,0,0,0.45)!important;backdrop-filter:blur(20px)!important;
border-radius: 18px;padding:40px;border:1px solid rgba(255,255,255,0.15);
box-shadow:0 20px 40px rgba(0,0,0,0.5);}

/* Premium name field */
.sf-account-form input[type="text"]{
    width:100%;
    background:#0b0b12;
    border:1px solid rgba(255,255,255,0.1);
    padding:14px 18px;
    border-radius: 18px;
    font-size:1rem;
    color:#fff;
    outline:none;
    transition:border-color .25s, background .25s;
    margin-bottom:16px;
}
.sf-account-form input[type="text"]:focus{
    border-color:rgba(255,255,255,0.35);
    background:#101018;
}

/* LOGIN STYLE INPUT FIELD EXACT */
.sf-account-form input[type="text"]{
    width:100%;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.12);
    padding:14px 18px;
    border-radius: 18px;
    font-size:1rem;
    font-weight:400;
    color:#fff;
    outline:none;
    transition:0.25s ease;
    margin-top:6px;
    margin-bottom:22px;
    display:block;
}

.sf-account-form input[type="text"]:focus{
    background:rgba(255,255,255,0.08);
    border-color:rgba(255,255,255,0.25);
}

.sf-account-form label{
    display:block;
    margin-bottom:6px;
    font-size:0.95rem;
    color:#f5f5f5c7;
}
/* restore avatar button */
.sf-upload-label{
 background:#1a1a1a!important;
 padding:10px 18px!important;
 border-radius: 18px!important;
 color:#fff!important;
 border:1px solid rgba(255,255,255,0.12)!important;
 display:inline-block!important;
 cursor:pointer!important;
}

/* nickname field like login */
.sf-account-form input[name="sf_nickname"]{
 width:100%;
 background:rgba(255,255,255,0.05);
 border:1px solid rgba(255,255,255,0.12);
 padding:14px 18px;
 border-radius: 18px;
 font-size:1rem;
 color:#fff;
 outline:none;
 margin-top:6px;
 margin-bottom:22px;
 transition:.25s ease;
 display:block!important;
}
.sf-account-form input[name="sf_nickname"]:focus{
 background:rgba(255,255,255,0.08);
 border-color:rgba(255,255,255,0.25);
}

.sf-account-form label{
 display:block!important;
 margin-bottom:6px;
 font-size:.95rem;
 color:#f5f5f5c7;
}

/* Nickname field match login input */
.sf-account-form input[name="sf_nickname"]{
  width:100% !important;
  background:rgba(10,10,20,0.95) !important;
  border-radius: 18px !important;
  border:1px solid rgba(255,255,255,0.18) !important;
  padding:9px 11px !important;
  color:#fff !important;
  font-size:.95rem !important;
}

/* Smaller centered avatar chooser */
.sf-upload-label{
  display:block !important;
  width:200px !important;
  margin:0 auto 20px !important;
  text-align:center !important;
  padding:10px 14px !important;
  border-radius: 18px !important;
  background:rgba(10,10,20,0.95) !important;
  border:1px solid rgba(255,255,255,0.18) !important;
  color:#fff !important;
}


/* ALERT NEXT TO USERNAME */
.sf-user-name-line{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
}

/* Green confirmation alert */
.sf-update-alert {
    background: #28c76f;
    color: #0b1d0b;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.90rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .4s ease, transform .4s ease;
}

.sf-update-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.sf-user-name-line{display:flex;align-items:center;gap:12px;}
.sf-update-alert{background:#28c76f;color:#0b1d0b;padding:6px 14px;border-radius: 18px;font-size:.9rem;font-weight:600;opacity:0;transform:translateY(-5px);transition:.4s;}
.sf-update-alert.show{opacity:1;transform:translateY(0);}


.sf-user-dropdown .sf-user-menu { display:none; }
.sf-user-dropdown.open .sf-user-menu { display:block !important; opacity:1; pointer-events:auto; }


/* Check animation like Netflix */
.sf-watchlist-btn.anim-check {
    position:relative;
}
.sf-watchlist-btn.anim-check:after {
    content:"✔";
    position:absolute;
    right:-20px;
    font-size:18px;
    opacity:0;
    transform:none;
    color:#6cff7a;
    animation:checkPop .4s ease-out forwards;
}
@keyframes checkPop {
    0% { opacity:0; transform:none; }
    50% { opacity:1; transform:none; }
    100% { opacity:1; transform:none; }
}


/* force visible remove label when in list */
.sf-watchlist-btn.is-in-list .sf-watchlist-label-remove { display:inline !important; }
.sf-watchlist-btn.is-in-list .sf-watchlist-label-add { display:none !important; }

/* strong animation */
.sf-watchlist-btn.anim-check {
    position:relative;
}
.sf-watchlist-btn.anim-check::after {
    content:"✔";
    position:absolute;
    right:-18px;
    top:50%;
    transform:translateY(-50%) scale(0.4);
    opacity:0;
    color:#6cff7a;
    font-size:20px;
    animation:checkPop2 .45s ease-out forwards;
}
@keyframes checkPop2 {
    0% { opacity:0; transform:translateY(-50%) scale(0.3); }
    60% { opacity:1; transform:translateY(-50%) scale(1.3); }
    100% { opacity:1; transform:translateY(-50%) scale(1); }
}


.sf-watchlist-btn .sf-watchlist-label-remove { display:none; }
.sf-watchlist-btn.is-in-list .sf-watchlist-label-remove { display:inline-block; }
.sf-watchlist-btn.is-in-list .sf-watchlist-label-add { display:none; }

.sf-watchlist-btn.sf-mylist-loading {
    opacity: 0.6;
    pointer-events: none;
}


/* ============================
   MOBILE LAYOUT - STYLE NETFLIX / PRIME
   ============================ */
@media (max-width: 1023px) {

    body {
        background: #03040a;
        color: #f5f5f5;
    }

    /* Header compacto fixo no topo */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 8px 14px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.65) 40%, transparent 100%);
        backdrop-filter: blur(10px);
    }

    .site-branding img {
    border-radius: 18px !important;
        height: 22px;
        width: auto;
    }

    .main-navigation {
        display: none; /* menu principal some no mobile, foco no conteúdo */
    }

    /* HERO estilo app de streaming */
    .single-movie-hero {
        min-height: 68vh;
        padding: 82px 16px 40px;
        display: flex;
        align-items: flex-end;
    }

    .single-movie-hero-inner {
        max-width: 100%;
    }

    .hero-text-block {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .hero-meta-line {
        font-size: 0.8rem;
        opacity: 0.9;
        margin-bottom: 6px;
    }

    .hero-tagline {
        font-size: 0.86rem;
        max-height: 3.4em;
        overflow: hidden;
        margin-bottom: 12px;
    }

    .hero-buttons {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .sf-watchlist-btn {
        flex: 1 1 0;
        justify-content: center;
        text-align: center;
        padding-inline: 0;
        white-space: nowrap;
    }

    .hero-buttons .sf-watchlist-btn {
        font-size: 0.9rem;
    }

    .hero-poster-frame {
        display: none; /* some o poster lateral no mobile, foco no banner */
    }

    .rating-block {
        margin: 8px 16px 0;
    }

    /* Espaçamento geral abaixo do hero */
    .site-main {
        padding-top: 0;
    }

    /* Fileiras de filmes: estilo Netflix */
    .row-section {
        padding: 8px 0 4px;
    }

    .row-header {
        padding: 0 14px;
    }

    .row-header h2 {
        font-size: 1rem;
        margin: 0 0 8px;
    }

    .row-scroll {
        display: flex;
        gap: 10px;
        padding: 0 12px 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .row-card {
        flex: 0 0 42%;
        scroll-snap-align: start;
    }

    .row-card a,
    .row-card img {
    border-radius: 18px !important;
        display: block;
        width: 100%;
    }

    .row-card img {
    border-radius: 18px !important;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

    .row-card-title {
        font-size: 0.8rem;
        margin-top: 4px;
        padding: 0 2px 2px;
    }

    /* Grade de destaque na home vira mini carrossel também */
    .movie-grid,
    .highlight-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 0 12px 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .movie-grid::-webkit-scrollbar,
    .highlight-grid::-webkit-scrollbar {
        display: none;
    }

    .movie-card {
        flex: 0 0 55%;
        scroll-snap-align: start;
    }

    .movie-card img {
    border-radius: 18px !important;
        width: 100%;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

    .movie-card-title {
        font-size: 0.82rem;
        margin-top: 4px;
    }
}


/* ============================
   RESPONSIVE MOBILE: NO HORIZONTAL SCROLL + NETFLIX STYLE
   ============================ */
@media(max-width:768px){

    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    * {
        box-sizing: border-box !important;
    }

    /* Prevent any row from overflowing */
    .row-scroll,
    .movie-row,
    .movie-grid,
    .highlight-grid,
    .home-movie-rows,
    .row-section {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .row-scroll::-webkit-scrollbar,
    .movie-grid::-webkit-scrollbar,
    .highlight-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* Cards */
    .row-card,
    .movie-card,
    .grid-card {
        max-width: 100% !important;
        flex: 0 0 42% !important;
        scroll-snap-align: start;
    }

    .row-card img,
    .movie-card img {
    border-radius: 18px !important;
        width: 100% !important;
        aspect-ratio: 2/3 !important;
        object-fit: cover !important;
        border-radius: 18px !important;
    }

    /* Hero mobile layout */
    .single-movie-hero {
        min-height: 68vh !important;
        padding: 90px 16px 40px !important;
        display: flex !important;
        align-items: flex-end !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .single-movie-hero-inner {
        width: 100% !important;
    }

    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }

    .hero-tagline {
        font-size: .9rem !important;
        opacity: .9 !important;
        max-height: 3.6em !important;
        overflow: hidden !important;
        margin-bottom: 12px !important;
    }

    .hero-buttons {
        display: flex !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .sf-watchlist-btn {
        flex: 1 1 0 !important;
        text-align: center !important;
        padding: 12px 0 !important;
        font-size: .94rem !important;
        border-radius: 18px !important;
    }

    .hero-poster-frame {
        display: none !important;
    }

    /* Section headers */
    .row-header h2 {
        font-size: 1.1rem !important;
        margin-left: 4px !important;
    }
}


/* REMOVE INDICACAO */
.recommend-label,
.movie-recommend-title,
.row-header .recommend-title,
.movie-recommendation-text {
    display:none!important;
}

/* HERO PRIME STYLE */
@media(max-width:768px){
.single-movie-hero{
    min-height:82vh!important;
    padding:50px 18px 30px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:flex-start!important;
    background-size:cover!important;
    background-position:center!important;
}

.single-movie-hero .hero-meta-line,
.single-movie-hero .hero-tagline,
.single-movie-hero .hero-tag,
.single-movie-hero .hero-tags,
.single-movie-hero .hero-duration,
.single-movie-hero .hero-description,
.single-movie-hero .hero-meta,
.single-movie-hero .hero-meta div,
.single-movie-hero .movie-meta,
.single-movie-hero .rating-block {
    display:none!important;
}

.single-movie-hero .hero-brand{
    display:block!important;
    font-size:.88rem!important;
    opacity:.9!important;
    margin-bottom:6px!important;
    text-transform:uppercase;
    letter-spacing:1px;
}

.hero-title{
    font-size:2.1rem!important;
    font-weight:700!important;
    line-height:1.15!important;
    margin-bottom:18px!important;
    max-width:92%!important;
}

.hero-buttons{
    display:flex!important;
    gap:10px!important;
    margin-top:12px!important;
    width:100%!important;
}
}


/* ============================
   ClassiTV - Mobile bottom nav (exclusive)
   ============================ */
@media (max-width: 1023px) {

    body {
        padding-bottom: 70px !important; /* space for bottom bar */
    }

    .ctv-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 60px;
        background: #050505;
        background: linear-gradient(to top, rgba(0,0,0,0.96), rgba(0,0,0,0.9));
        border-top: 1px solid rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 9999;
        padding: 0 6px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .ctv-mobile-nav__item {
        flex: 1 1 0;
        text-align: center;
        text-decoration: none;
        color: #f5f5f5;
        font-size: 10px;
        font-weight: 500;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        opacity: 0.65;
        transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
    }

    .ctv-mobile-nav__icon {
        font-size: 18px;
        line-height: 1;
    }

    .ctv-mobile-nav__label {
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .ctv-mobile-nav__item--active,
    .ctv-mobile-nav__item:active {
        opacity: 1;
        color: #ffd857;
        transform: translateY(-1px);
    }

    .ctv-mobile-nav__item--active .ctv-mobile-nav__icon {
        transform: translateY(-1px);
    }
}

/* Hide mobile nav on larger screens */
@media (min-width: 769px) {
    .ctv-mobile-nav {
        display: none !important;
    }
}


/* ============================
   ClassiTV header tweaks & mobile-only cleanup
   ============================ */

/* remove username label next to avatar (keep only photo) */


/* hide top menu + profile bar on mobile, header stays clean */
@media (max-width: 1023px) {
    .site-header .main-navigation,
    .site-header .sf-user-area,
    .site-header .sf-mobile-toggle {
        display: none !important;
    }
}


@media (max-width: 1023px) {
    .ctv-icon {
        width: 22px;
        height: 22px;
        display: block;
    }
    .ctv-mobile-nav__avatar {
        width: 26px;
        height: 26px;
        border-radius: 18px;
        background-size: cover;
        background-position: center;
        border: 2px solid #ffd857;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.85);
        display:block;
    background-repeat:no-repeat;
}
}


/* ============================
   Mobile search page + genres overlay
   ============================ */
@media (max-width: 1023px) {
    .sf-search-mobile {
        padding: 72px 16px 90px;
    }

    .sf-search-mobile__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .sf-search-mobile__title {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
    }

    .sf-search-mobile__genres-toggle {
        border: none;
        padding: 7px 14px;
        border-radius: 18px;
        background: linear-gradient(90deg, #5b32ff, #ff3b6e);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .sf-search-mobile__form {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(15,15,20,0.9);
        border-radius: 18px;
        padding: 6px 10px 6px 14px;
        margin-bottom: 12px;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .sf-search-mobile__input {
        flex: 1 1 0;
        border: none;
        background: transparent;
        color: #f5f5f5;
        font-size: 0.9rem;
        outline: none;
    }

    .sf-search-mobile__input::placeholder {
        color: rgba(245,245,245,0.55);
    }

    .sf-search-mobile__submit {
        border: none;
        background: none;
        padding: 4px 2px;
        color: #ffd857;
    }

    .sf-search-mobile__genres-panel {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.72);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
        z-index: 9998;
    }

    .sf-search-mobile__genres-panel.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .sf-search-mobile__genres-inner {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 70px;
        padding: 18px 16px 22px;
        background: radial-gradient(circle at top left, #2a2a52, #050509);
        border-radius: 18px 22px 0 0;
    }

    .sf-search-mobile__genres-inner h2 {
        font-size: 1rem;
        margin: 0 0 10px;
    }

    .sf-search-mobile__genres-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sf-search-mobile__genre {
        font-size: 0.8rem;
        padding: 6px 12px;
        border-radius: 18px;
        background: rgba(255,255,255,0.06);
        color: #f5f5f5;
        text-decoration: none;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .sf-search-mobile__genre:hover {
        background: rgba(255,255,255,0.16);
    }

    .sf-search-mobile__results {
        margin-top: 10px;
    }

    .sf-search-mobile__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 8px;
    }

    .sf-search-mobile__thumb {
        width: 100%;
        aspect-ratio: 2 / 3;
        object-fit: cover;
        border-radius: 18px;
    }

    .sf-search-mobile__thumb--placeholder {
        background: rgba(255,255,255,0.06);
    }

    .sf-search-mobile__name {
        margin: 4px 1px 0;
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .sf-search-mobile__empty {
        margin-top: 18px;
        font-size: 0.9rem;
        opacity: 0.8;
    }
}


@media (max-width: 1023px) {
    .sf-user-name {
        display: none !important;
    }
}


.sf-age-badge {
    position:absolute;
    bottom:12px;
    left:12px;
    background:#E50914;
    color:#fff;
    font-weight:700;
    padding:4px 10px;
    border-radius: 18px;
    font-size:14px;
    z-index:20;
}

@media(max-width:768px){
    .sf-age-badge{
        bottom:10px;
        left:10px;
        font-size:13px;
        padding:4px 8px;
    }
}


/* Minha Lista size fix */
.mylist-grid .movie-card{
  width:150px;
}
.mylist-grid .movie-card img {
    border-radius: 18px !important;
  height:auto;
}



/* --- MY LIST PRIME VIDEO B2 FIX --- */
.sf-mylist-item {
    width: 230px !important;
    margin: 0 20px 40px;
}

.sf-mylist-thumb {
    width: 100%;
    height: 345px;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.sf-mylist-thumb img {
    border-radius: 18px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* mobile */
@media(max-width:768px){
    .sf-mylist-item {
        width: 150px !important;
        margin: 0 10px 30px;
    }
    .sf-mylist-thumb {
        height: 225px;
    }
}



/* --- MY LIST DESKTOP 260x390 FIX --- */
.sf-mylist-item {
    width: 260px !important;
    margin: 0 22px 40px;
}

.sf-mylist-thumb {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.sf-mylist-thumb img {
    border-radius: 18px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* mobile unchanged */
@media(max-width:768px){
    .sf-mylist-item {
        width: 150px !important;
        margin: 0 10px 30px;
    }
    .sf-mylist-thumb {
        height: 225px;
    }
}



/* --- MY LIST DESKTOP 280x390 FIX --- */
.sf-mylist-item {
    width: 280px !important;
    margin: 0 22px 40px;
}

.sf-mylist-thumb {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.sf-mylist-thumb img {
    border-radius: 18px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* mobile unchanged */
@media(max-width:768px){
    .sf-mylist-item {
        width: 150px !important;
        margin: 0 10px 30px;
    }
    .sf-mylist-thumb {
        height: 225px;
    }
}



/* --- MY LIST DESKTOP 320x390 FIX --- */
.sf-mylist-item {
    width: 320px !important;
    margin: 0 24px 40px;
}

.sf-mylist-thumb {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.sf-mylist-thumb img {
    border-radius: 18px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* mobile unchanged */
@media(max-width:768px){
    .sf-mylist-item {
        width: 150px !important;
        margin: 0 10px 30px;
    }
    .sf-mylist-thumb {
        height: 225px;
    }
}



/* --- MY LIST DESKTOP FIX 320x480 --- */
@media(min-width:1024px){
    .sf-mylist-item,
    .mylist-item,
    .watchlist-item{
        width:320px !important;
        margin:0 24px 40px;
    }
    .sf-mylist-thumb,
    .mylist-thumb,
    .watchlist-thumb{
        width:100%;
        height:480px !important;
        overflow:hidden;
        border-radius: 18px;
        background:#111;
    }
    .sf-mylist-thumb img,
    .mylist-thumb img,
    .watchlist-thumb img {
    border-radius: 18px !important;
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:top;
        display:block;
    }
}



/* --- MY LIST DESKTOP 320x480 contain FIX --- */
@media(min-width:1024px){
    .sf-mylist-item,
    .mylist-item,
    .watchlist-item{
        width:320px !important;
        margin:0 24px 40px;
    }
    .sf-mylist-thumb,
    .mylist-thumb,
    .watchlist-thumb{
        width:100%;
        height:480px !important;
        overflow:hidden;
        border-radius: 18px;
        background:#000;
        display:flex;
        align-items:center;
        justify-content:center;
    }
    .sf-mylist-thumb img,
    .mylist-thumb img,
    .watchlist-thumb img {
    border-radius: 18px !important;
        width:100%;
        height:100%;
        object-fit:contain !important;
        object-position:center !important;
        display:block;
    }
}


/* Banner style 320x180 */
@media(min-width:1024px){
 .sf-mylist-thumb {
    width:320px !important;
    height:180px !important;
    overflow:hidden;
    border-radius: 18px;
    position:relative;
 }
 .sf-mylist-thumb .banner-img {
    border-radius: 18px !important;
    width:100%;
    height:100%;
    object-fit:cover;
 }
 .sf-mylist-item {
    width:320px !important;
    margin:0 20px 40px;
 }
}


/* Netflix style mylist banner */
@media(min-width:1024px){
 .sf-mylist-item{
    width:320px !important;
    margin:0 18px 40px;
 }
 .sf-mylist-thumb{
    width:320px !important;
    height:180px !important;
    border-radius: 18px;
    overflow:hidden;
 }
 .sf-mylist-thumb img.banner-img {
    border-radius: 18px !important;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
 }
}


/* Elegant Netflix-style MyList desktop/tablet */
@media(min-width:768px){
 .sf-mylist-item{
    width:320px !important;
    margin:0 20px 50px;
    text-align:center;
 }
 .sf-mylist-thumb.elegant-thumb{
    width:100%;
    height:180px;
    border-radius: 18px;
    overflow:hidden;
    position:relative;
    box-shadow:0 8px 20px rgba(0,0,0,0.4);
    transition:transform .25s ease, box-shadow .25s ease;
 }
 .sf-mylist-thumb.elegant-thumb:hover{
    transform:none;
    box-shadow:0 12px 28px rgba(0,0,0,0.55);
 }
 .sf-mylist-thumb img.banner-img {
    border-radius: 18px !important;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    transition:opacity .3s ease;
 }
 .mylist-title{
    margin-top:10px;
    font-size:15px;
    font-weight:600;
    color:#fff;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
 }
 .mylist-remove{
    margin-top:8px;
    padding:6px 14px;
    border-radius: 18px;
    border:none;
    background:#ff2b2b;
    color:#fff;
    font-size:13px;
    cursor:pointer;
    transition:background .25s;
 }
 .mylist-remove:hover{
    background:#ff4b4b;
 }
}


/* NETFLIX LANDSCAPE DESKTOP */
@media(min-width:768px){
 .sf-mylist-item{
    width:320px !important;
    margin:0 18px 50px;
 }
 .sf-mylist-thumb.nf-landscape{
    width:320px !important;
    height:180px !important;
    border-radius: 18px;
    overflow:hidden;
    position:relative;
    box-shadow:0 10px 25px rgba(0,0,0,0.45);
    transition:transform .25s ease, box-shadow .25s ease;
 }
 .sf-mylist-thumb.nf-landscape:hover{
    transform:none;
    box-shadow:0 14px 32px rgba(0,0,0,0.55);
 }
 .sf-mylist-thumb.nf-landscape img.nf-banner{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
 }
}


/* === PRIME VIDEO DESKTOP STYLE ONLY === */
@media(min-width:1025px){
.sf-mylist-grid-vertical{
  display:flex;
  flex-wrap:wrap;
  gap:40px;
}
.prime-card{
  width:220px;
  background:#0f0f0f;
  padding:12px;
  border-radius: 18px;
  box-shadow:0 8px 20px rgba(0,0,0,.45);
  transition:transform .25s ease, box-shadow .25s ease;
}
.prime-card:hover{
  transform:none;
  box-shadow:0 14px 32px rgba(0,0,0,.55);
}
.prime-thumb img.prime-poster{
  width:100%; height:auto; object-fit:cover;
}
.prime-title{
  margin-top:12px; font-size:16px; color:#fff; font-weight:600;
}
.prime-remove{
  margin-top:10px; padding:8px 16px;
  border-radius: 18px; background:#ff2b2b; color:#fff; border:none;
}
.prime-remove:hover{ background:#ff4b4b; }
}


/* Hover advanced */
@media(min-width:1025px){
.prime-card{
  position:relative;
  overflow:hidden;
}
.prime-card:hover .prime-thumb img {
    border-radius: 18px !important;
  transform:none;
  transition:transform .3s ease;
}
.prime-thumb img {
    border-radius: 18px !important;
  transition:transform .3s ease;
}

/* Modal */
.prime-modal{
  display:none;
  position:fixed;
  top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,0.8);
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.prime-modal.show{
  display:flex;
}
.prime-modal-content{
  background:#111;
  padding:20px;
  border-radius: 18px;
  width:90%;
  max-width:500px;
  text-align:center;
}
.prime-modal-content img {
    border-radius: 18px !important;
  width:100%;
  border-radius: 18px;
}
.prime-modal-close{
  position:absolute;
  top:20px;
  right:20px;
  font-size:32px;
  color:#fff;
  cursor:pointer;
}
}


/* Modal Enhancements */
@media(min-width:1025px){
.prime-modal{
  display:none;position:fixed;top:0;left:0;width:100%;height:100%;
  backdrop-filter:blur(8px);
  background:rgba(0,0,0,0.6);
  align-items:center;justify-content:center;z-index:9999;
  opacity:0;transition:opacity .3s ease;
}
.prime-modal.show{display:flex;opacity:1;}
.prime-modal-content{
  background:#111;padding:20px;border-radius: 18px;
  width:90%;max-width:500px;animation:fadeIn .3s ease;
  color:#fff;
}
@keyframes fadeIn{from{transform:none;opacity:0;} to{transform:none;opacity:1;}}
.prime-watch-btn{
  display:block;margin-top:15px;padding:12px;
  background:#ff2b2b;color:#fff;text-align:center;
  border-radius: 18px;font-size:18px;font-weight:700;
  text-decoration:none;
}
}


/* === NETFLIX 3D HOVER DESKTOP === */
@media(min-width:1025px){
.prime-card{
  transform-style:preserve-3d;
  perspective:900px;
}
.prime-card:hover{
  transform:rotateY(8deg) rotateX(4deg) scale(1.06);
}
.prime-thumb img {
    border-radius: 18px !important;
  transition:transform .25s ease;
}
.prime-card:hover .prime-thumb img {
    border-radius: 18px !important;
  transform:none;
}
}



.prime-modal.show{
  display:flex;
  opacity:1;
}

.prime-modal-bg{
  position:absolute;
  top:0;left:0;width:100%;height:100%;
  overflow:hidden;
  z-index:-1;
  opacity:0.45;
}
#primeBgVideo{
  width:100%;height:100%;object-fit:cover;
}

.prime-modal-content{
  position:relative;
  z-index:5;
  animation:fadeIn .35s ease;
}

@keyframes fadeIn{
  from{ transform:none; opacity:0; }
  to{ transform:none; opacity:1; }
}
}


@media(min-width:1025px){
.prime-modal-content{
  width:90%;
  max-width:900px;
  max-height:85vh;
  overflow-y:auto;
  background:#111;
  padding:25px;
  border-radius: 18px;
}
#primeModalTrailer{
  width:100%!important;
  height:420px!important;
}
}


/* NETFLIX MODAL B TWO COLUMN */
@media(min-width:1025px){
.netflix-modal{
  width:90%;
  max-width:1100px;
  max-height:90vh;
  overflow-y:auto;
  background:#111;
  padding:20px;
  border-radius: 18px;
  position:relative;
  animation:fadeIn .35s ease;
}
.netflix-trailer{
  width:100%!important;
  height:420px!important;
  border-radius: 18px;
  margin-bottom:20px;
}
.netflix-info-area{
  display:flex;
  gap:25px;
}
.netflix-left{
  flex:0 0 auto;
}
.netflix-poster{
  width:auto;
  height:240px;
  border-radius: 18px;
}
.netflix-right{
  flex:1;
  color:#fff;
}
.prime-modal{
  position:fixed;
  top:0;left:0;width:100%;height:100%;
  backdrop-filter:blur(10px);
  background:rgba(0,0,0,0.7);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
  opacity:0;transition:opacity .3s ease;
}
.prime-modal.show{
  display:flex;
  opacity:1;
}
.prime-modal-close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:32px;
  cursor:pointer;
  color:#fff;
}
}


@media(min-width:1025px){
.netflix-trailer{
  border:0!important;
  border-radius: 18px!important;
  overflow:hidden!important;
}
}


/* Creative Remove Button */
.prime-remove{
  background: linear-gradient(135deg,#3a3a3a,#1a1a1a);
  color:#fff!important;
  padding:8px 14px;
  border-radius: 18px;
  border:1px solid #555;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:all .25s ease;
}

.prime-remove:hover{
  transform:none;
  background:linear-gradient(135deg,#505050,#2a2a2a);
  border-color:#777;
}


/* Centered remove button wrapper */
.remove-wrapper{
  width:100%;
  display:flex;
  justify-content:center;
  margin-top:8px;
}

/* Clean prime-remove (one X only) */
.prime-remove{
  background: linear-gradient(135deg,#3a3a3a,#1a1a1a);
  color:#fff!important;
  padding:8px 14px;
  border-radius: 18px;
  border:1px solid #555;
  font-weight:600;
  transition:all .25s ease;
  font-size:14px;
}
.prime-remove:hover{
  transform:none;
  background:linear-gradient(135deg,#505050,#2a2a2a);
  border-color:#777;
}


/* Button inside card footer */
.prime-card{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.prime-remove{
  margin-top:10px;
}


/* Strong fix for mobile search grid */
@media(max-width:768px){
.sf-search-mobile__grid{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:8px!important;
}
.sf-search-mobile__thumb{
    width:100%!important;
    height:auto!important;
    aspect-ratio:2/3!important;
    object-fit:cover!important;
    border-radius: 18px!important;
}
.sf-search-mobile__item{
    display:flex;
    flex-direction:column;
    align-items:center;
}
}



/* Botão Gêneros estilo CONTINUAR */
.sf-search-mobile__genres-btn,
.genres-btn,
.sf-genres-btn {
    background: linear-gradient(135deg, #FFD058, #FF9F1C) !important;
    color: #000 !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

.sf-search-mobile__genres-btn:hover,
.genres-btn:hover,
.sf-genres-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.sf-search-mobile__genres-btn::before {
    content: "▶";
    font-size: 14px;
    font-weight: 900;
}



/* Botão Gêneros amarelo estilo CONTINUAR */
.sf-search-mobile__genres-toggle{
    background: linear-gradient(135deg, #FFD058, #FF9F1C) !important;
    color:#000 !important;
    font-weight:700;
    padding:10px 22px;
    border-radius: 18px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:15px;
    border:none;
    outline:none;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
    transition:.25s ease;
}
.sf-search-mobile__genres-toggle:hover{
    transform:none;
    box-shadow:0 6px 16px rgba(0,0,0,0.35);
}
.sf-search-mobile__genres-toggle::before{
    content:"▶";
    font-size:14px;
    font-weight:900;
}


@media(max-width:768px){
.single-movie-hero{position:relative;}
.single-movie-hero img,.single-movie-hero video{
width:100%;max-height:55vh!important;object-fit:cover;filter:brightness(0.9);}
.single-movie-hero-inner{
position:absolute;bottom:20px;left:15px;right:15px;padding:15px;
background:rgba(0,0,0,0.35);backdrop-filter:blur(10px);border-radius: 18px;}
}


/* === STYLE E: Disney+ HUD on POSTER (NOT trailer) === */
@media(max-width:768px){

/* Poster hero height cinematic */
.single-movie-hero{
    position:relative !important;
    height:60vh !important;
    min-height:60vh !important;
    max-height:60vh !important;
    overflow:hidden !important;
}

/* Poster image */
.single-movie-hero img,
.single-movie-hero video{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    filter:brightness(0.88);
}

/* HUD on poster */
.single-movie-hero-inner{
    position:absolute !important;
    bottom:20px !important;
    left:15px !important;
    right:15px !important;
    padding:15px !important;
    background:rgba(0,0,0,0.35) !important;
    backdrop-filter:blur(12px) !important;
    border-radius: 18px !important;
    z-index:10 !important;
}

/* Trailer section BELOW poster with no gap */
.hero-video-bg{
    margin-top:0 !important;
    padding-top:0 !important;
}

/* Remove any spacing from theme */
.single-page-header, .movie-meta, .sf-meta{
    margin-top:10px !important;
}
}


/* === MOBILE: remove trailer, keep banner === */
@media(max-width:768px){
.hero-video-bg{
    display:none !important;
}
}


/* Responsive custom logo */
.site-logo-link img,
.sf-logo img,
.custom-logo {
    max-height: 55px;
    width: auto;
    height: auto;
    max-width: 180px;
    display: block;
}

@media (max-width: 1023px) {
    .site-logo-link img,
    .sf-logo img,
    .custom-logo {
        max-height: 40px;
        max-width: 150px;
    }
}

/* Hide text when logo image exists */
.has-custom-logo .site-title-text {
    display: none;
}


/* Desktop Prime Video Medium (B) */
@media(min-width:900px){
  .movie-card img,
  .row-card img {
    border-radius: 18px !important;
    width:350px !important;
    height:200px !important;
    object-fit:cover !important;
    border-radius: 18px !important;
  }
  .grid-movies,
  .row-scroll{
    gap:18px !important;
  }
}


/* --- PRIME VIDEO TAMANHO B (DESKTOP APENAS) FIX --- */
@media (min-width: 900px) {

    
.movie-card a,
.row-card a,
.grid-movies a,
.genre-item a,
.category-item a,
.item-filme a,
.row-item a {
    display: block !important;
    width: 350px !important;
    height: 200px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    position: relative !important;
    border: 3px solid transparent;
    box-shadow: 0 18px 40px rgba(0,0,0,0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}


    .movie-card a img,
    .row-card a img,
    .grid-movies a img,
    .genre-item a img,
    .category-item a img,
    .item-filme a img,
    .row-item a img {
    border-radius: 18px !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 18px !important;
    }

    .row-scroll,
    .grid-movies,
    .genre-row,
    .category-row {
        gap: 16px !important;
    }
}


/* === Netflix-style native row slider for desktop === */
@media (min-width: 1024px) {
  .nf-row {
    position: relative;
    width: 100%;
    padding: 0 4vw;
  }

  .nf-row .nf-viewport {
    overflow: hidden;
    width: 100%;
  }

  .nf-row .nf-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 1);
  }

  .nf-row .nf-track > .movie-card,
  .nf-row .nf-track > .row-card,
  .nf-row .nf-track > article {
    flex: 0 0 calc((100% / 6) - 18px);
  }

  .nf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 18px;
    border: none;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  }

  .nf-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
  }

  .nf-arrow-left {
    left: 1.5vw;
  }

  .nf-arrow-right {
    right: 1.5vw;
  }

  .nf-arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }
}



/* FIX: high quality covers, no crop */
.movie-card img, .row-card img, .grid-movies img {
    border-radius: 18px !important;
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    image-rendering: auto !important;
}

/* FIX: align rows flush under titles */
.nf-row {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.row-section {
    margin-top: 20px !important;
}

/* ALIGN FIX */
.nf-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.row-section,
.nf-row,
.home-row-scroller {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* FIX4: align genre rows */
.row-scroll {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
}
.row-section .nf-row {
    padding-left: 0 !important;
}

/* FIX5: Realinhar títulos e linhas dos GÊNEROS */
.row-section {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.row-header h2,
.row-section h2 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.row-scroll,
.row-section .nf-row {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Garantir alinhamento consistente das capas */
.row-section .nf-viewport,
.row-section .nf-track {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* FIX6: Genre alignment */
.row-section .nf-row,
.row-section .nf-viewport,
.row-section .nf-track,
.row-section .row-scroll {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.row-header, .row-header h2 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* OPTION B: Uniform Netflix sizing across all rows */
.nf-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.nf-row .nf-track > * {
    flex: 0 0 calc((100%/6) - 18px) !important;
}

/* Standard row-section spacing */
.row-section {
    margin-top: 32px !important;
}

/* Align titles consistently */
.row-header h2,
.section-title h2 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Ensure genre rows match highlight row spacing */
.row-section .nf-viewport,
.row-section .nf-track {
    margin-left: 0 !important;
    padding-left: 0 !important;
}


/* ALIGN GENRE ROWS LIKE HIGHLIGHT (DESKTOP) */
@media (min-width: 1024px) {
  .row-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .row-header {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }
}

/* category title alignment fix */
.home-row.category-row .home-row-header{padding-left:4vw;padding-right:4vw;margin-bottom:16px;}
.home-row.category-row .home-row-header h2{font-size:1.8rem;font-weight:700;color:#fff;margin:0;}

/* spacing between sections - Netflix style */
.home-row { margin-bottom: 48px; }

/* highlight row spacing fix */
.highlight-row { margin-bottom: 48px !important; }

/* force extra top spacing before first category */
.home-row.category-row:first-of-type {
    margin-top: 64px !important;
}

/* definitive spacing above category titles */
.home-row.category-row .home-row-header {
    margin-top: 64px !important;
}

/* ----- BOTÃO DA SETA (CÍRCULO) ----- */
.nf-arrow {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(10px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

/* ----- AÇÃO NO HOVER ----- */
.nf-arrow:hover {
    transform: scale(1.20);
    background: rgba(255, 255, 255, 0.25) !important;
}

/* ----- SETA (SVG) ----- */
.nf-arrow svg {
    width: 26px !important;
    height: 26px !important;
}

/* ----- COR DA SETA ----- */
.nf-arrow svg polyline {
    stroke: #ffffff !important;
    stroke-width: 3 !important;
    transition: stroke 0.25s ease;
}

/* ----- AÇÃO NO HOVER DA SETA ----- */
.nf-arrow:hover svg polyline {
    stroke: #ffffff !important;
}

/* Prevent arrow from shifting on hover */
.nf-arrow {
    transform-origin: center center !important;
}

/* --- CLEAN ZOOM ARROWS (NO MOVEMENT) --- */

/* Main arrow button */
.nf-arrow {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(10px);
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    transition: background 0.25s ease, filter 0.25s ease;
}

/* Position left/right */
.nf-arrow-left { left: 0 !important; }
.nf-arrow-right { right: 0 !important; }

/* SVG arrow */
.nf-arrow svg {
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.25s ease;
}

/* Hover effects */
.nf-arrow:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    filter: brightness(1.3);
}

.nf-arrow:hover svg {
    transform: scale(1.12);
}

/* HIDE ARROWS ON MOBILE */
@media (max-width: 1023px) {
    .nf-arrow {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}



/* ================================
   CONTINUAR ASSISTINDO — NOVO DESIGN (NETFLIX STYLE)
   ================================ */

.continue-watching-new {
    padding: 40px 0 10px;
}

.continue-watching-new .cw-header h2 {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 22px;
}

.cw-scroller {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.cw-scroller::-webkit-scrollbar {
    height: 6px;
}
.cw-scroller::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 18px;
}


.cw-card {
    position: relative;
}



.cw-thumb {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #050505;
}


.cw-thumb img {
    border-radius: 18px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}







.cw-btn {
    margin-top: 12px;
    background: #e50914;
    color: #ffffff;
    border: 0;
    border-radius: 18px;
    padding: 9px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cw-btn .icon {
    font-size: 0.95rem;
}

.cw-btn:hover {
    background: #ff1630;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}

/* Responsivo */
@media (max-width: 1023px) {
    .cw-card {
        min-width: 70vw;
        max-width: 70vw;
    }
    .cw-thumb {
        height: 320px;
    }
}



/* X elegante remover continuar assistindo */
.cw-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    cursor: pointer;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 5;
}

.cw-thumb:hover .cw-remove {
    opacity: 1;
    transform: scale(1);
}


.cw-remove:hover {
    animation: none;
    background: rgba(255,0,60,0.85);
}


@keyframes pulseX {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}



/* Netflix Modal Style */
.cw-modal-overlay {
    position: fixed;
    top:0;left:0;right:0;bottom:0;
    background: rgba(0,0,0,.75);
    display:flex;
    align-items:center;
    justify-content:center;
    backdrop-filter: blur(4px);
    z-index:99999;
}

.cw-modal-box {
    background:#111;
    padding:30px;
    width:320px;
    border-radius: 18px;
    text-align:center;
    animation: cwModalIn .25s ease;
    box-shadow:0 0 40px rgba(0,0,0,.6);
}

@keyframes cwModalIn {
    0% {transform:none; opacity:0;}
    100% {transform:none; opacity:1;}
}

.cw-modal-box h2 {
    color:#fff;
    margin-bottom:10px;
    font-size:22px;
}

.cw-modal-box p {
    color:#bbb;
    margin-bottom:20px;
    font-size:15px;
}

.cw-modal-actions {
    display:flex;
    justify-content:space-between;
}

.cw-modal-cancel {
    background:#333;
    color:#fff;
    border:0;
    padding:10px 18px;
    border-radius: 18px;
    cursor:pointer;
    transition:.2s;
}

.cw-modal-cancel:hover {
    background:#444;
}

.cw-modal-confirm {
    background:#f5c542;
    color:#fff;
    border:0;
    padding:10px 18px;
    border-radius: 18px;
    cursor:pointer;
    transition:.2s;
}

.cw-modal-confirm:hover {
    background:#d4a430;
}



/* Fix X positioning relative to card instead of thumb */
.cw-remove {
    position:absolute;
    top:8px;
    right:8px;
}



/* Ensure X visible */
.cw-card { overflow: visible !important; }
.cw-remove {
    z-index: 50 !important;
    background: rgba(0,0,0,0.7);
    color: #fff;
}


.cw-thumb{overflow:visible!important;}
.cw-remove{z-index:99!important;}



/* FIX X invisible + admin bar */

.cw-thumb,
.cw-card {
    position: relative !important;
    overflow: visible !important;
}

.cw-thumb img {
    border-radius: 18px !important;
    position: relative !important;
    z-index: 1 !important;
}

.cw-remove {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#wpadminbar {
    z-index: 9999999 !important;
}

.cw-modal-overlay {
    z-index: 99999 !important;
}



/* Fix modal to not block admin bar */
.cw-modal-overlay {
    display: none !important;
    pointer-events: none !important;
}
.cw-modal-overlay.active {
    display: flex !important;
    pointer-events: all !important;
}



/* ADMIN BAR FIX */
#wpadminbar {
    z-index: 999999999 !important;
    position: fixed !important;
}

/* RESTORE BORDER RADIUS WITHOUT HIDING THE X */
.cw-thumb {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 18px !important;
}

.cw-thumb img {
    border-radius: 18px !important;
    border-radius: 18px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* MAKE X APPEAR ABOVE IMAGE BUT BELOW ADMINBAR */
.cw-remove {
    z-index: 99999 !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    opacity: 1 !important;
}

/* PROGRESS BAR RESTORE */





/* FIX PROGRESS COLOR + ENSURE CORRECT WIDTH */





/* Restore original background bar color (gray/translucent) */
.cw-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: rgba(255,255,255,0.25) !important; /* original subtle bar */
    border-radius: 18px !important;
    overflow: hidden !important;
    z-index: 5 !important;
}

/* White progress fill showing progress */




/* Elegant shadow on progress bar */
.cw-progress {
    box-shadow: 0 0 10px rgba(0,0,0,0.55) !important;
}



/* Thicker progress bar */
.cw-progress {
    height: 6px !important;
}




/* Yellow progress bar (same as Assistir button) */




/* White progress bar */
.cw-progress-bar {
    background: #ffffff !important;
    height: 100% !important;
}



/* MOBILE NAV */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(15, 15, 15, 0.85) !important;
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #111;
    z-index: 9999;
}
.mobile-bottom-nav .nav-item{
 color:#999;
 text-align:center;
 font-size:11px;
 text-decoration:none;
 display:flex;
 flex-direction:column;
 align-items:center;
 gap:3px;
 font-weight:600;
}
.mobile-bottom-nav svg{
 width:22px;
 height:22px;
 fill:#999;
}
.mobile-bottom-nav .nav-item-active,
.mobile-bottom-nav .nav-item-active svg,
.mobile-bottom-nav .nav-item-active span{
 color:#f1c40f !important;
 fill:#f1c40f !important;
}



/* MENU FIXED */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(15, 15, 15, 0.85) !important;
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #111;
    z-index: 9999;
}

.mobile-bottom-nav .nav-item{
 color:#f5f5f5;
 text-align:center;
 font-size:11px;
 text-decoration:none;
 display:flex;
 flex-direction:column;
 align-items:center;
 gap:3px;
 font-family:inherit;
 font-weight:600;
 letter-spacing:0.5px;
}

.mobile-bottom-nav svg{
 width:22px;
 height:22px;
 fill:#f5f5f5;
}

.mobile-bottom-nav .active svg,
.mobile-bottom-nav .active span,
.mobile-bottom-nav .nav-item.active{
 color:#f1c40f !important;
 fill:#f1c40f !important;
}

.mobile-bottom-nav .nav-item span{
 color:#f5f5f5 !important;
}
.mobile-bottom-nav .nav-item svg{
 fill:#f5f5f5 !important;
}

.mobile-bottom-nav .nav-item span{ color:#f5f5f5 !important; }
.mobile-bottom-nav .nav-item svg{ fill:#f5f5f5 !important; }

.mobile-bottom-nav .nav-item span{ color:#f5f5f5 !important; }
.mobile-bottom-nav .nav-item svg{ fill:#f5f5f5 !important; }

.mobile-nav-avatar{
    border:2px solid #f1c40f;
}

.sf-user-avatar-img {
    border-radius: 18px !important;
    width:32px;
    height:32px;
    border-radius:50%;
    object-fit:cover;
}
.sf-user-avatar {
    display:flex;
    align-items:center;
    justify-content:center;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(15, 15, 15, 0.85) !important;
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #111;
    z-index: 9999;
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #f5f5f5;
    font-size: 10px;
    font-weight: 600;
}
.mobile-bottom-nav .nav-item.active {
    color: #f1c40f;
}
.mobile-bottom-nav .nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: currentColor;
}
.mobile-avatar img {
    border-radius: 18px !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1c40f;
}

/* MOBILE ONLY MENU */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
}


/* Enhanced modal buttons */
.cw-modal-actions button{
  padding:12px 24px;
  border-radius: 18px;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:opacity .2s ease, transform .2s ease;
}

.cw-modal-confirm{
  background:linear-gradient(90deg,#f7c045,#f5a623);
  color:#000;
}

.cw-modal-confirm:hover{
  opacity:.9;
  transform:none;
}

.cw-modal-cancel{
  background:rgba(108,92,231,0.25);
  color:#fff;
}

.cw-modal-cancel:hover{
  background:rgba(108,92,231,0.4);
  transform:none;
}

/* Vertical posters like cw-card */
@media (min-width:1024px){
.movie-card, .row-card{
    width:260px !important;
    min-width:260px !important;
}
.movie-card a, .row-card a{
    display:block;
    width:260px !important;
    height:420px !important;
    border-radius: 18px;
    overflow:hidden;
    box-shadow:0 18px 40px rgba(0,0,0,0.8);
    transition:transform .25s, box-shadow .25s;
}
.movie-card a img, .row-card a img {
    border-radius: 18px !important;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.movie-card a:hover, .row-card a:hover {
    transform:none !important;
    box-shadow:none !important;
}

.sf-badge{display:none!important;}
}














/* Darken on highlight */
.movie-card:hover a img,
.row-card:hover a img,
.movie-card:focus-within a img,
.row-card:focus-within a img {
    filter: brightness(0.75) !important;
    transition: filter 0.2s ease !important;
}



/* ================================
   Página de Gênero (movie_genre) — Grid Responsivo
   ================================ */
.genre-grid {
    padding: 0 4vw 60px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.genre-grid .genre-card-link {
    display: block;
    width: 100% !important;
}

.genre-grid .genre-thumb {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.85);
}

.genre-grid .genre-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.genre-grid .movie-card {
    max-width: 100%;
}

.genre-grid .movie-card-title {
    margin-top: 10px;
}

/* Hover elegante */
.genre-grid .genre-card-link:hover .genre-thumb img {
    transform: scale(1.04);
    filter: brightness(0.85);
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Breakpoints para colunas */
@media (min-width: 640px) {
    .genre-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .genre-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .genre-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}



/* ======== EFEITO AMARELO EXCLUSIVO DA PÁGINA DE GÊNEROS ======== */
.genre-grid .genre-card-link:hover .genre-thumb,
.genre-grid .genre-card-link:focus .genre-thumb {
    outline: 3px solid #f7d300;
    outline-offset: 0px;
    border-radius: 20px;
    box-shadow: 0 0 14px rgba(247, 211, 0, 0.7);
    transition: outline .2s ease, box-shadow .25s ease;
}



/* ======== REMOVER SOMBRA APENAS NA PÁGINA DE GÊNEROS ======== */
.genre-grid .genre-thumb img {
    box-shadow: none !important;
}



/* REMOVER QUALQUER SOMBRA NA GRID DE GÊNEROS */
.genre-grid .movie-card,
.genre-grid .movie-card img,
.genre-grid .genre-thumb,
.genre-grid .genre-thumb img {
    box-shadow: none !important;
}


/* ====== PREMIUM GENRE GRID ====== */
.genre-container {
    padding: 40px 5%;
}
.genre-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
}
.genre-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 32px;
}
.genre-card-link {
    display: block;
    transition: transform .2s ease;
}
.genre-thumb {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 22px;
    position: relative;
}
.genre-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
    border-radius: 22px;
}

/* Golden Hover */
.genre-card-link:hover .genre-thumb {
    outline: 3px solid #f7d300;
    outline-offset: 0;
    box-shadow: 0 0 25px rgba(247,211,0,0.45);
}
.genre-card-link:hover img {
    transform: scale(1.04);
}

/* Pagination */
.genre-pagination {
    text-align: center;
    margin-top: 40px;
}
.genre-pagination a,
.genre-pagination span {
    color: white;
    padding: 10px 18px;
    margin: 0 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}



/* ==== 3 POR LINHA ATÉ 760PX ==== */
@media (max-width: 760px) {
    .genre-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
    .genre-thumb {
        aspect-ratio: 2 / 3;
        border-radius: 16px !important;
    }
    .genre-thumb img {
        border-radius: 16px !important;
    }
}

/* ==== MOBILE 3 POR LINHA ==== */
@media (max-width: 600px) {
    .genre-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    .genre-thumb {
        border-radius: 14px !important;
    }
    .genre-thumb img {
        border-radius: 14px !important;
    }
}

@media (max-width:1023px){
  .grid-movies .movie-card,
  .grid-movies .row-card{
    min-width: 32vw !important;
    max-width: 32vw !important;
  }
  .nf-track{
    display:flex !important;
    gap:14px !important;
  }
}

/* ===== FIX PARA 1023px —— 901px ===== */
@media (max-width: 1023px) and (min-width: 901px) {
    .nf-track { gap: 20px !important; }
    .grid-movies .movie-card,
    .grid-movies .row-card {
        min-width: 24vw !important;
        max-width: 24vw !important;
        height: auto !important;
    }
    .nf-row {
        padding-left: 3vw !important;
        padding-right: 3vw !important;
    }
}

/* ===== FIX PARA 900px —— 769px ===== */
@media (max-width: 900px) and (min-width: 769px) {
    .nf-track { gap: 18px !important; }
    .grid-movies .movie-card,
    .grid-movies .row-card {
        min-width: 30vw !important;
        max-width: 30vw !important;
        height: auto !important;
    }
    .nf-row {
        padding-left: 3vw !important;
        padding-right: 3vw !important;
    }
}

/* === TABLET SWIPE-ONLY CAROUSEL (769–1023px) — NO DESKTOP CHANGES === */
@media (min-width:769px) and (max-width:1023px){

  /* manter arrows apenas escondidas NO TABLET */
  .nf-arrow{
    display:none !important;
  }

  .nf-viewport{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom:10px;
  }

  .nf-track{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:18px !important;
    scroll-snap-type:x mandatory !important;
  }

  .nf-track > *{
    scroll-snap-align:start !important;
  }

  /* manter o tamanho que você aprovou */
  .grid-movies .movie-card,
  .grid-movies .row-card{
    min-width:28vw !important;
    max-width:28vw !important;
  }
}

/* === MOBILE SWIPE CAROUSEL (<768px) === */
@media (max-width:768px){

  .nf-arrow{
    display:none !important;
  }

  .nf-viewport{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom:10px;
  }

  .nf-track{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:18px !important;
    scroll-snap-type:x mandatory !important;
  }

  .nf-track > *{
    scroll-snap-align:start !important;
  }

  .grid-movies .movie-card,
  .grid-movies .row-card{
    min-width:32vw !important;
    max-width:32vw !important;
  }
}


/* === FIX REAL E DEFINITIVO – CONTINUAR ASSISTINDO === */
@media (max-width:1023px){

    .cw-card {
        width: 32vw !important;
        min-width: 32vw !important;
        max-width: 32vw !important;
    }

    .cw-card .cw-thumb {
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .cw-card .cw-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 18px !important;
        display: block !important;
    }

    .cw-card .cw-progress {
        position: absolute !important;
        bottom: 6px !important;
        left: 6px !important;
        width: calc(100% - 12px) !important;
        height: 5px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: rgba(255,255,255,0.25) !important;
    }

    .cw-card .cw-remove {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        z-index: 10 !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        background: rgba(0,0,0,0.55) !important;
        color: #fff !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}


/* === AJUSTE FINAL – BARRA DE PROGRESSO PERFEITA === */
@media (max-width:1023px) {

    .cw-card .cw-progress {
        position: absolute !important;
        bottom: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        height: 4px !important;
        border-radius: 20px !important;
        background: rgba(255,255,255,0.25) !important;
        overflow: hidden !important;
    }

    .cw-card .cw-progress .cw-progress-bar {
        height: 100% !important;
        border-radius: 20px !important;
        background: #fff !important;
    }
}


/* === FIX FINAL DA BARRA – AGORA O VISUAL FICA PERFEITO === */
@media (max-width:1023px){

    .cw-card {
        position: relative !important;
    }

    .cw-card .cw-progress {
        position: absolute !important;
        bottom: 8px !important;
        left: 8px !important;
        right: 8px !important;
        height: 4px !important;
        background: rgba(255,255,255,0.25) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        z-index: 20 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cw-card .cw-progress .cw-progress-bar {
        height: 100% !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        display: block !important;
    }
}


/* === PROGRESS BAR COLADA IGUAL DESKTOP === */
@media (max-width:1023px) {

    .cw-card .cw-progress {
        position: absolute !important;
        bottom: 0 !important; /* cola na borda da capa */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 4px !important;
        background: rgba(255,255,255,0.25) !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 20 !important;
    }

    .cw-card .cw-progress .cw-progress-bar {
        height: 100% !important;
        border-radius: 0 !important;
        background: #fff !important;
        display: block !important;
    }
}


/* ===== FILMES RELACIONADOS – CARROSSEL DESKTOP DO ZERO ===== */
@media (min-width: 1024px) {

  .row-section .row-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
  }

  .row-section.related-desktop-wrapper {
    position: relative;
  }

  .related-desktop-slider {
    position: relative;
  }

  .related-desktop-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    color: #fff;
    cursor: pointer;
    z-index: 5;
  }

  .related-desktop-arrow:hover {
    background: rgba(255,255,255,0.15);
  }

  .related-desktop-arrow.related-prev {
    left: 16px;
  }

  .related-desktop-arrow.related-next {
    right: 16px;
  }

  /* esconder barra de rolagem nativa no desktop */
  .row-section .row-scroll::-webkit-scrollbar {
    height: 0;
  }
}

/* mobile/tablet continuam com scroll normal, sem setas */


/* ==== REMOVE BARRA DE ROLAGEM DO DESKTOP ==== */
@media (min-width:1024px){
    .related-desktop-slider::-webkit-scrollbar{
        display:none !important;
    }
    .related-desktop-slider{
        -ms-overflow-style:none !important;
        scrollbar-width:none !important;
        overflow-x:hidden !important;
        padding-bottom:0 !important;
        margin-bottom:0 !important;
    }
}

/* garantir track interna limpa */
@media (min-width:1024px){
    .related-desktop-slider .row-scroll{
        overflow-x:visible !important;
        white-space:nowrap !important;
    }
}


/* === Related Movies using NF Slider (desktop & responsive) === */
.sf-related-section {
    margin-top: 40px;
    margin-bottom: 40px;
}
.sf-related-section .page-header h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}


/* === Botão Mute alinhado igual o badge (30px) === */
.trailer-mute-btn,
.single .mute-control {
    position: absolute !important;
    top: calc(env(safe-area-inset-top) + 30px) !important;
    right: calc(env(safe-area-inset-right) + 30px) !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.2s ease-in-out !important;
}

.trailer-mute-btn svg,
.single .mute-control svg {
    width: 22px !important;
    height: 22px !important;
    fill: #fff !important;
}

@media (max-width: 800px) {
    .trailer-mute-btn,
    .single .mute-control {
        top: calc(env(safe-area-inset-top) + 26px) !important;
        right: calc(env(safe-area-inset-right) + 26px) !important;
    }
}



/* HIDE HERO TRAILER ON MOBILE/TABLET */
@media (max-width:1024px){
    .hero-video,
    .hero-video iframe,
    .hero-video video,
    .hero-video-bg {
        display:none !important;
        opacity:0 !important;
        pointer-events:none !important;
    }
}



/* FORCE HIDE HERO MUTE BUTTONS ON MOBILE/TABLET */
@media (max-width:1024px){
    .hero-volume-toggle,
    .trailer-mute-btn,
    .single .mute-control,
    .badge-mute,
    .hero-container .badge-mute {
        display:none !important;
        visibility:hidden !important;
        opacity:0 !important;
        pointer-events:none !important;
    }
}



/* RESTAURAR MUTE NO DESKTOP/NOTEBOOK/TV */
@media (min-width:1025px){
    .hero-volume-toggle,
    .trailer-mute-btn {
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
    }
}

/* POSICIONAR BOTÃO MUTE AO LADO DO POSTER */
@media (min-width:1025px){
    .hero-volume-toggle {
        position:absolute !important;
        right:380px;
        top:50%;
        transform:translateY(-50%);
        z-index:999;
        width:46px;
        height:46px;
        border-radius:50%;
        background:rgba(0,0,0,0.55);
        backdrop-filter:blur(4px);
        border:2px solid rgba(255,255,255,0.25);
        display:flex;
        align-items:center;
        justify-content:center;
    }
}

/* === SF Netflix-style search (desktop) === */
.sf-search-desktop{
    display:none;
    position:relative;
    margin-left:auto;
    margin-right:20px;
    align-items:center;
}
.sf-search-toggle{
    background:transparent;
    border:none;
    cursor:pointer;
    padding:4px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.sf-search-icon{
    width:26px;
    height:26px;
    color:#fff;
}
.sf-search-panel{
    position:absolute;
    right:0;
    top:100%;
    margin-top:8px;
    background:rgba(0,0,0,0.85);
    border:1px solid rgba(255,255,255,0.7);
    padding:6px 10px;
    min-width:280px;
    max-width:420px;
    transform-origin:top right;
    transform:scaleY(0);
    opacity:0;
    transition:opacity .18s ease, transform .18s ease;
}
.sf-search-desktop.is-open .sf-search-panel{
    transform:scaleY(1);
    opacity:1;
}
.sf-search-input{
    width:100%;
    background:transparent;
    border:none;
    outline:none;
    color:#fff;
    font-size:15px;
    padding:4px 0;
}
.sf-search-input::placeholder{
    color:rgba(255,255,255,0.7);
}
.sf-search-results{
    margin-top:8px;
    max-height:260px;
    overflow-y:auto;
}
.sf-search-result-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:4px 0;
    border-bottom:1px solid rgba(255,255,255,0.08);
}
.sf-search-result-thumb{
    width:40px;
    height:60px;
    flex:0 0 auto;
    background:#333;
    border-radius:2px;
    overflow:hidden;
}
.sf-search-result-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.sf-search-result-meta{
    flex:1 1 auto;
}
.sf-search-result-title{
    font-size:14px;
    font-weight:600;
    color:#fff;
}
.sf-search-result-excerpt{
    font-size:12px;
    color:rgba(255,255,255,0.7);
}
@media (min-width: 900px){
    .sf-search-desktop{display:flex;}
}


/* Custom responsive fix for archive movie and genre pages */
.archive-movie .genre-grid,
.tax-genre .genre-grid,
.tax-genero .genre-grid,
.tax-movie_genre .genre-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}


/* SECOND FIX: reduce poster size only on archive-movie and taxonomy pages */
.archive-movie .genre-grid .genre-card-link,
.tax-genre .genre-grid .genre-card-link,
.tax-genero .genre-grid .genre-card-link,
.tax-movie_genre .genre-grid .genre-card-link {
    max-width: 220px !important;
    margin: 0 auto;
}

.archive-movie .genre-grid .genre-thumb img,
.tax-genre .genre-grid .genre-thumb img,
.tax-genero .genre-grid .genre-thumb img,
.tax-movie_genre .genre-grid .genre-thumb img {
    height: 330px !important;
    object-fit: cover !important;
}

/* simple footer menu */
.footer-nav { margin-bottom: 12px; }
.footer-menu { list-style:none; padding:0; margin:0 0 8px 0; }
.footer-menu li { margin-bottom:6px; }
.footer-menu a { color:#ddd; text-decoration:none; font-size:14px; opacity:0.85; }
.footer-menu a:hover { opacity:1; }

/* ===== MINHA LISTA (NOVA) ===== */
.ml-wrapper{
    max-width:1300px;
    margin:0 auto;
    padding:40px 20px 60px;
}
.ml-header{margin-bottom:25px;}
.ml-title{
    font-size:32px;
    font-weight:700;
    margin:0 0 6px;
}
.ml-subtitle{
    font-size:16px;
    opacity:.8;
}
.ml-grid{
    display:grid;
    gap:22px;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
}
.ml-card{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
}
.ml-link{
    display:block;
    width:100%;
    text-decoration:none;
}
.ml-thumb{
    width:100%;
    aspect-ratio:2/3;
    border-radius:10px;
    overflow:hidden;
    background:#111;
}
.ml-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.ml-name{
    font-size:15px;
    margin:0;
}
.ml-remove{
    margin-top:4px;
    background:transparent;
    border:1px solid rgba(255,255,255,.25);
    border-radius:999px;
    padding:4px 12px;
    font-size:12px;
    cursor:pointer;
    opacity:.8;
}
.ml-remove:hover{
    opacity:1;
    background:rgba(255,255,255,.06);
}
.ml-empty{
    text-align:center;
    font-size:18px;
    opacity:.75;
    margin-top:60px;
}

/* Responsivo */
@media(max-width:768px){
    .ml-title{font-size:26px;}
    .ml-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));}
}
@media(max-width:480px){
    .ml-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));}
}
@media(min-width:1600px){
    .ml-wrapper{max-width:1500px;}
    .ml-grid{
        grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
        gap:28px;
    }
    .ml-title{font-size:38px;}
}

/* MOBILE/TABLET ONLY LOADING OVERLAY */
@media (max-width: 1024px) {
    #mobile-loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(2px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999999;
        opacity: 1;
        transition: opacity .4s ease;
    }
    #mobile-loading-overlay.hide {
        opacity: 0;
        pointer-events: none;
    }
    .mobile-loading-spinner {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        border: 5px solid rgba(255, 202, 70, 0.25);
        border-top-color: #ffca46;
        animation: spin 1s linear infinite;
    }
    @keyframes spin { 100% { transform: rotate(360deg); } }
}

/* === Arquivo de filmes & gêneros – grid responsivo novo === */
.sf-archive-wrapper{
    max-width:1300px;
    margin:0 auto;
    padding:40px 20px 60px;
}
.sf-archive-header{
    margin-bottom:24px;
}
.sf-archive-title{
    font-size:32px;
    font-weight:700;
}
.sf-grid{
    display:grid;
    gap:22px;
}
.sf-card{
    list-style:none;
}
.sf-card-link{
    display:block;
    text-decoration:none;
    color:#fff;
}
.sf-card-thumb{
    width:100%;
    aspect-ratio:2/3;
    border-radius:14px;
    overflow:hidden;
    background:#111;
}
.sf-card-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.sf-card-title{
    margin-top:8px;
    font-size:14px;
    font-weight:500;
    opacity:.9;
}
.sf-card-link:hover .sf-card-thumb img{
    transform:scale(1.03);
    transition:transform .22s ease;
}

/* breakpoints: 4 col mobile, 5 tablet, mais em telas maiores */
@media (max-width:480px){
    .sf-grid{ grid-template-columns:repeat(4, 1fr); }
}
@media (min-width:481px) and (max-width:900px){
    .sf-grid{ grid-template-columns:repeat(5, 1fr); }
}
@media (min-width:901px) and (max-width:1399px){
    .sf-grid{ grid-template-columns:repeat(6, 1fr); }
}
@media (min-width:1400px) and (max-width:1899px){
    .sf-grid{ grid-template-columns:repeat(7, 1fr); }
}
@media (min-width:1900px){
    .sf-grid{ grid-template-columns:repeat(8, 1fr); }
}

/* Apple TV style blur search panel (square version) */
.sf-search-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 0 !important; /* square */
    padding: 10px !important;
}

/* clean input */
.sf-search-panel input {
    border: none !important;
    background: transparent !important;
    color: #fff !important;
}

/* placeholder */
.sf-search-panel input::placeholder {
    color: rgba(255,255,255,0.65) !important;
}
