/* =========================================================
   Player de Novelinhas — área do cliente
   ========================================================= */
:root {
    --brand: #E50914;
    --bg: #0b0b0b;
    --bg-2: #141414;
    --surface: #181818;
    --surface-2: #232323;
    --line: rgba(255, 255, 255, .1);
    --text: #fff;
    --text-2: #c9c9c9;
    --muted: #8c8c8c;
    --green: #46d369;
    --pad: clamp(16px, 4vw, 60px);
    --radius: 6px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 26px; border-radius: var(--radius);
    font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap;
    transition: transform .15s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 26px; height: 26px; }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.sm svg { width: 20px; height: 20px; }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255, 255, 255, .78); }
.btn-ghost { background: rgba(109, 109, 110, .7); color: #fff; }
.btn-ghost:hover { background: rgba(109, 109, 110, .45); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { filter: brightness(1.12); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.circle-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55); background: rgba(42, 42, 42, .6);
    transition: border-color .2s, background .2s;
}
.circle-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.circle-btn svg { width: 22px; height: 22px; }
.link { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
    position: fixed; inset: 0 0 auto; z-index: 50;
    display: flex; align-items: center; gap: 36px;
    height: 68px; padding: 0 var(--pad);
    background: linear-gradient(180deg, rgba(0, 0, 0, .75) 10%, transparent);
    transition: background .4s;
}
.topbar.solid { background: var(--bg-2); }
.brand { display: flex; align-items: center; }
.brand-text {
    color: var(--brand); font-weight: 900; font-size: 26px; letter-spacing: -.5px;
    text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.brand-img { max-height: 34px; width: auto; }
.topnav { display: flex; gap: 22px; }
.topnav a { font-size: 14px; color: #e5e5e5; transition: color .2s; }
.topnav a:hover { color: #b3b3b3; }
.topnav a.active { color: #fff; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.search { position: relative; display: flex; align-items: center; }
.search input {
    width: 0; padding: 0; opacity: 0; height: 38px;
    background: rgba(0, 0, 0, .85); border: 1px solid transparent; color: #fff;
    font: inherit; font-size: 14px; border-radius: 4px; outline: none;
    transition: width .35s var(--ease), opacity .2s, padding .35s;
}
.search.open input { width: 240px; padding: 0 12px 0 40px; opacity: 1; border-color: rgba(255, 255, 255, .7); }
.search.open .icon-btn { position: absolute; left: 0; }

.pill-vip {
    font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px;
    background: linear-gradient(135deg, #f7d774, #c99a2e); color: #2a1d00;
}
.profile { position: relative; }
.avatar {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px;
    background: linear-gradient(135deg, var(--brand), #7b2ff7); font-weight: 800; color: #fff;
}
.avatar.sm { width: 40px; height: 40px; flex-shrink: 0; }
.profile-menu {
    position: absolute; right: 0; top: calc(100% + 14px); width: 270px;
    background: rgba(12, 12, 12, .97); border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.profile.open .profile-menu { opacity: 1; visibility: visible; transform: none; }
.profile-head { display: flex; gap: 12px; align-items: center; padding: 10px 16px 14px; border-bottom: 1px solid var(--line); }
.profile-head b { display: block; font-size: 14px; }
.profile-head small { display: block; color: var(--muted); font-size: 12px; word-break: break-all; }
.profile-plan { margin: 10px 16px 4px; padding: 8px 10px; font-size: 12px; font-weight: 700; color: #f7d774; background: rgba(247, 215, 116, .08); border-radius: 6px; }
.profile-menu a { display: block; padding: 10px 16px; font-size: 14px; color: var(--text-2); }
.profile-menu a:hover { color: #fff; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(88vh, 56.25vw + 120px); min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center 20%;
    animation: heroZoom 22s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(77deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 40%, transparent 75%),
        linear-gradient(0deg, var(--bg) 0%, var(--bg) 3%, rgba(11, 11, 11, .7) 20%, transparent 48%);
}
.hero-content { position: relative; z-index: 2; padding: 0 var(--pad) clamp(90px, 14vh, 170px); max-width: 880px; animation: fadeUp .9s .15s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 3px; color: #ddd; margin-bottom: 10px; }
.brand-mini { display: grid; place-items: center; width: 22px; height: 26px; color: var(--brand); font-size: 24px; font-weight: 900; letter-spacing: 0; }
.hero-title {
    margin: 0 0 14px; font-size: clamp(36px, 6vw, 76px); line-height: 1; font-weight: 900; letter-spacing: -1.5px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #ddd; font-size: 15px; font-weight: 500; }
.meta .match { color: var(--green); font-weight: 700; }
.meta .age { border: 1px solid rgba(255, 255, 255, .5); padding: 0 6px; font-size: 13px; border-radius: 3px; }
.hero-desc { margin: 14px 0 24px; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.45; color: #eee; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Linhas / carrossel ---------- */
.rows { position: relative; z-index: 3; margin-top: clamp(-130px, -9vw, -40px); padding-bottom: 40px; }
.row { margin: 0 0 3.2vw; }
.row-title { margin: 0 0 10px; padding: 0 var(--pad); font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; color: #e5e5e5; }
.row-empty { margin: 0 var(--pad); padding: 22px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.slider { position: relative; }
.slider-track {
    display: flex; gap: 8px; overflow-x: auto; overflow-y: visible; scroll-behavior: smooth;
    padding: 14px var(--pad) 28px; margin: -14px 0 -28px;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-btn {
    position: absolute; top: 0; bottom: 0; z-index: 6; width: calc(var(--pad) - 6px); min-width: 40px;
    display: grid; place-items: center; background: rgba(11, 11, 11, .55); color: #fff;
    opacity: 0; transition: opacity .25s, background .2s;
}
.slider-btn svg { width: 40px; height: 40px; transition: transform .2s; }
.slider-btn:hover { background: rgba(11, 11, 11, .8); }
.slider-btn:hover svg { transform: scale(1.25); }
.slider-btn.prev { left: 0; border-radius: 0 6px 6px 0; }
.slider-btn.next { right: 0; border-radius: 6px 0 0 6px; }
.slider:hover .slider-btn:not(.off) { opacity: 1; }
.slider-btn.off { pointer-events: none; }

.card {
    position: relative; flex: 0 0 clamp(128px, 14.2vw, 220px);
    scroll-snap-align: start; cursor: pointer; outline: none;
    transition: transform .35s var(--ease), z-index 0s .35s;
}
.card-img {
    position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: box-shadow .35s;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.card:hover, .card:focus-visible { transform: scale(1.09); z-index: 5; transition: transform .35s var(--ease), z-index 0s; }
.card:hover .card-img, .card:focus-visible .card-img { box-shadow: 0 16px 40px rgba(0, 0, 0, .7), 0 0 0 2px rgba(255, 255, 255, .85); }
.card-fallback {
    width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 14px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 70%, #000) 0%, #1a1a1a 70%);
    font-weight: 900; font-size: 20px; line-height: 1.1; text-transform: uppercase;
}
.card-info {
    position: absolute; inset: auto 0 0; padding: 40px 12px 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .95), transparent);
    opacity: 0; transform: translateY(8px); transition: .3s var(--ease);
}
.card:hover .card-info, .card:focus-visible .card-info { opacity: 1; transform: none; }
.card-info strong { display: block; font-size: 14px; line-height: 1.2; }
.card-info small { color: var(--text-2); font-size: 12px; }
.card.locked .card-img img { filter: saturate(.75) brightness(.8); }
.card.locked:hover .card-img img { filter: none; }
.badge-lock {
    position: absolute; top: 8px; right: 8px; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px);
}
.badge-lock svg { width: 16px; height: 16px; }
.badge-new, .badge-free {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    padding: 3px 8px; font-size: 10px; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
    background: var(--brand); border-radius: 0 0 4px 4px;
}
.badge-free { background: var(--green); color: #002b0d; }
/* Selo das séries VIP */
.badge-vip {
    position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 5px;
    font-size: 10.5px; font-weight: 900; letter-spacing: .4px; color: #3b2600;
    background: linear-gradient(135deg, #ffe08a, #f5b400 55%, #d68f00); box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.promo-vip { background: radial-gradient(120% 140% at 100% 0%, rgba(245, 180, 0, .35), transparent 60%), linear-gradient(135deg, #1b1b1b, #0f0f0f); border-color: rgba(245, 180, 0, .35); }
.promo-vip .promo-kicker { color: #f5c542; }
.badge-price {
    position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px;
    font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px);
    transition: opacity .25s;
}
.card:hover .badge-price, .card:focus-visible .badge-price { opacity: 0; }
.card-info .card-unlock { color: #fff; font-weight: 700; }
.m-buy-note { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.m-buy-note b { color: #fff; }
.m-buy.off { background: #1d1d1d; border-color: var(--line); }
.m-buy.pulse { animation: buyPulse .9s ease-out; }
@keyframes buyPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 70%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }

.card.rank { flex-basis: clamp(190px, 21vw, 320px); display: flex; align-items: flex-end; }
.card.rank .card-img { width: 56%; margin-left: auto; }
.rank-num {
    position: absolute; left: 0; bottom: -14px; z-index: -1;
    font-size: clamp(110px, 13vw, 210px); font-weight: 900; line-height: 1; letter-spacing: -10px;
    color: var(--bg); -webkit-text-stroke: 4px #595959;
}
.card.rank:hover { transform: scale(1.05); }

.card-wide { flex: 0 0 clamp(230px, 24vw, 360px); scroll-snap-align: start; transition: transform .35s var(--ease); }
.card-wide:hover { transform: scale(1.05); }
.card-wide-img {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0;
    background: var(--surface-2) center / cover; overflow: hidden;
}
.card-wide-img::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); transition: background .3s; }
.card-wide:hover .card-wide-img::after { background: rgba(0, 0, 0, .45); }
.play-circle {
    position: absolute; inset: 0; margin: auto; z-index: 2; width: 52px; height: 52px;
    display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .45);
    opacity: 0; transform: scale(.85); transition: .3s var(--ease);
}
.card-wide:hover .play-circle { opacity: 1; transform: none; }
.progress { height: 4px; background: #4d4d4d; }
.progress span { display: block; height: 100%; background: var(--brand); }
.card-wide-info { padding: 10px 12px; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.card-wide-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-wide-info small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Meus bônus (order bumps comprados) ---------- */
.bonus-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; padding: 0 var(--pad); }
.bonus-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: #181818; border: 1px solid rgba(255, 255, 255, .08); }
.bonus-img { flex-shrink: 0; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font-size: 26px; background: #262626; }
.bonus-img img { width: 100%; height: 100%; object-fit: cover; }
.bonus-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bonus-info strong { font-size: 14.5px; line-height: 1.3; }
.bonus-info small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.bonus-info small b { color: #fff; }

/* Botão de download no player (extra "baixar séries") */
.pbtn-dl { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; text-decoration: none; color: #fff;
    font-size: 14px; font-weight: 700; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.pbtn-dl:hover { background: rgba(255, 255, 255, .24); }
.pbtn-dl svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 600px) { .pbtn-dl { padding: 7px 12px; font-size: 13px; } }

/* ---------- Banner do pacote completo ---------- */
.promo {
    position: relative; margin: 1vw var(--pad) 3.6vw; padding: clamp(24px, 4vw, 50px);
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
    border-radius: 14px; overflow: hidden;
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 60%),
        linear-gradient(135deg, #1b1b1b, #0f0f0f);
    border: 1px solid rgba(255, 255, 255, .08);
}
.promo-posters { display: flex; justify-content: center; }
.promo-posters img {
    width: 22%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; margin-left: -6%;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .6); transform: rotate(-6deg) translateY(6px);
}
.promo-posters img:nth-child(2) { transform: rotate(-3deg); }
.promo-posters img:nth-child(3) { transform: translateY(-8px) scale(1.08); z-index: 2; }
.promo-posters img:nth-child(4) { transform: rotate(3deg); }
.promo-posters img:nth-child(5) { transform: rotate(6deg) translateY(6px); }
.promo-kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #f7d774; }
.promo h2 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 38px); line-height: 1.1; font-weight: 900; }
.promo p { margin: 0 0 22px; color: var(--text-2); font-size: 16px; }

/* ---------- Busca ---------- */
.search-results { padding: 100px var(--pad) 40px; min-height: 70vh; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 10px; }
.grid .card { flex: none; }
.empty-state { min-height: 80vh; display: grid; place-content: center; text-align: center; padding: 120px var(--pad) 40px; }
.empty-state p { color: var(--muted); }

.site-foot { padding: 30px var(--pad) 50px; color: #6a6a6a; font-size: 13px; }

/* ---------- Modal de detalhes ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; overflow-y: auto; padding: 32px 16px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box {
    position: relative; width: min(880px, 100%); margin: auto 0; align-self: flex-start;
    background: var(--surface); border-radius: 10px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .8); animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(20px); } }
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px;
    display: grid; place-items: center; border-radius: 50%; background: #181818;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-loading { min-height: 420px; display: grid; place-items: center; }
.m-hero { position: relative; aspect-ratio: 16 / 8.2; background: #000 center / cover; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, rgba(24, 24, 24, .2) 45%, transparent 70%); }
.m-hero-content { position: absolute; z-index: 2; left: clamp(20px, 4vw, 48px); right: 20px; bottom: 6%; }
.m-hero-content h2 { margin: 0 0 18px; font-size: clamp(28px, 4.4vw, 48px); line-height: 1; font-weight: 900; letter-spacing: -1px; text-shadow: 0 3px 18px rgba(0, 0, 0, .6); }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-body { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 6px clamp(20px, 4vw, 48px) 24px; }
.m-body p { margin: 12px 0 0; color: #e8e8e8; line-height: 1.6; }
.m-side { font-size: 14px; color: var(--muted); }
.m-side b { color: var(--text-2); font-weight: 500; }
.m-side div { margin-bottom: 10px; }
.m-buy {
    margin: 0 clamp(20px, 4vw, 48px) 22px; padding: 18px 20px; border-radius: 10px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, #1d1d1d), #1d1d1d);
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.m-buy strong { display: block; font-size: 17px; }
.m-buy span { color: var(--text-2); font-size: 14px; }
.m-buy .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.m-eps { padding: 0 clamp(20px, 4vw, 48px) 36px; }
.m-eps-head { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 10px; }
.m-eps-head h3 { margin: 0; font-size: 22px; }
.m-eps-head span { color: var(--muted); font-size: 15px; }
.ep {
    display: grid; grid-template-columns: 34px 150px 1fr; gap: 16px; align-items: center;
    padding: 16px 14px; border-bottom: 1px solid #333; border-radius: 6px; transition: background .2s;
}
.ep:first-of-type { background: #2a2a2a; }
.ep:hover { background: #333; }
.ep-num { font-size: 22px; color: #d2d2d2; text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; background: #000 center / cover; overflow: hidden; }
.ep-thumb .play-circle { width: 38px; height: 38px; }
.ep-thumb .play-circle svg { width: 18px; height: 18px; }
.ep:hover .ep-thumb .play-circle { opacity: 1; transform: none; }
.ep-thumb .progress { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; overflow: hidden; }
.ep-lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); }
.ep-lock svg { width: 22px; height: 22px; }
.ep-text { min-width: 0; }
.ep-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.ep-top small { color: var(--text-2); font-weight: 400; white-space: nowrap; }
.ep-text p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-free { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 800; background: var(--green); color: #002b0d; vertical-align: middle; }
.ep.locked { opacity: .65; }
body.modal-open { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px);
    padding: 12px 20px; border-radius: 8px; background: #fff; color: #111; font-weight: 600; font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; transition: .3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Alertas ---------- */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; line-height: 1.45; }
.alert-error { background: #e87c03; color: #fff; }
.alert-success { background: rgba(70, 211, 105, .15); color: #8ff0a8; border: 1px solid rgba(70, 211, 105, .4); }
.alert-info { background: rgba(255, 255, 255, .08); color: #ddd; }

.spinner { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.big { width: 60px; height: 60px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; background: #050505; }
.lg { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; isolation: isolate; }

/* Fundo: faixas de capas rolando (só transform = leve para o navegador) */
.lg-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #050505; }
.lg-wall {
    position: absolute; left: -10%; right: -10%; top: 50%;
    display: grid; gap: 14px; transform: translateY(-50%) rotate(-7deg);
    opacity: 0; animation: lgFade 1.2s .1s ease-out forwards;
}
.lg-row { overflow: hidden; }
.lg-track { display: flex; gap: 14px; width: max-content; animation: lgScroll 70s linear infinite; will-change: transform; }
.lg-row-1 .lg-track { animation-direction: reverse; animation-duration: 85s; }
.lg-row-2 .lg-track { animation-duration: 60s; }
.lg-track img {
    width: clamp(120px, 11vw, 190px); height: auto; aspect-ratio: 2 / 3; object-fit: cover;
    border-radius: 8px; background: #151515; flex-shrink: 0;
}
@keyframes lgScroll { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes lgFade { to { opacity: .5; } }
.lg-glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(50% 45% at 50% 108%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
        radial-gradient(40% 35% at 85% -5%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
        radial-gradient(35% 30% at 8% 10%, rgba(123, 47, 247, .18), transparent 70%);
    animation: lgPulse 9s ease-in-out infinite alternate;
}
@keyframes lgPulse { to { opacity: .65; } }
/* Sem capas cadastradas: luzes da marca mais fortes + grade sutil */
.lg-bg-vazio { background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--brand) 22%, #050505), #050505 60%); }
.lg-bg-vazio::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}
.lg-bg-vazio .lg-glow {
    background:
        radial-gradient(45% 40% at 50% 105%, color-mix(in srgb, var(--brand) 70%, transparent), transparent 70%),
        radial-gradient(35% 35% at 88% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%),
        radial-gradient(35% 35% at 6% 8%, rgba(123, 47, 247, .3), transparent 70%);
}
.lg-bg-vazio .lg-shade { background: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(5, 5, 5, .6), transparent 80%); }
.lg-shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(5, 5, 5, .55), rgba(5, 5, 5, .92) 75%),
        linear-gradient(180deg, rgba(5, 5, 5, .85) 0%, transparent 22%, transparent 78%, rgba(5, 5, 5, .9) 100%);
}

.lg-top { display: flex; justify-content: center; padding: clamp(22px, 4vh, 40px) 16px 0; }
.lg-top .brand-text { font-size: clamp(28px, 3.4vw, 38px); }
.lg-top .brand-img { max-height: 48px; }

.lg-main { display: grid; place-items: center; padding: 24px 16px; }
.lg-card {
    width: 100%; max-width: 440px; padding: clamp(30px, 5vw, 44px) clamp(22px, 5vw, 40px);
    background: linear-gradient(180deg, rgba(22, 22, 22, .92), rgba(12, 12, 12, .94));
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
    text-align: center; animation: lgIn .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes lgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.lg-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 99px;
    font-size: 12px; font-weight: 700; letter-spacing: .3px; color: #ffd0d3;
    background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.lg-pill svg { width: 14px; height: 14px; }
.lg-card h1 { margin: 18px 0 8px; font-size: clamp(26px, 4vw, 32px); font-weight: 900; letter-spacing: -.8px; line-height: 1.1; }
.lg-sub { margin: 0 auto 26px; max-width: 330px; color: #a9a9a9; font-size: 15px; }
.lg-sub b { color: #fff; }
.lg-card .alert { text-align: left; }
.lg-form { display: grid; gap: 14px; }

.lg-field { position: relative; text-align: left; }
.lg-field > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #777; transition: color .2s; pointer-events: none; }
.lg-field input {
    width: 100%; height: 58px; padding: 22px 16px 6px 48px; font: inherit; font-size: 16px; color: #fff;
    background: #0d0d0d; border: 1px solid #333; border-radius: 10px; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.lg-field input:hover { border-color: #4a4a4a; }
.lg-field input:focus { border-color: var(--brand); background: #111; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.lg-field input:focus ~ svg, .lg-field:focus-within > svg { color: #fff; }
.lg-field label { position: absolute; left: 48px; top: 19px; color: #8a8a8a; pointer-events: none; transition: .15s ease; }
.lg-field input:focus + label, .lg-field input:not(:placeholder-shown) + label { top: 9px; font-size: 11.5px; font-weight: 600; letter-spacing: .2px; }
.lg-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #111 inset; -webkit-text-fill-color: #fff; caret-color: #fff; }

.lg-btn {
    position: relative; height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 10px; font-size: 16px; font-weight: 800; color: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand));
    box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.lg-btn svg { width: 20px; height: 20px; transition: transform .2s; }
.lg-btn:hover { filter: brightness(1.08); box-shadow: 0 14px 36px color-mix(in srgb, var(--brand) 55%, transparent); }
.lg-btn:hover svg { transform: translateX(4px); }
.lg-btn:active { transform: scale(.98); }
.lg-btn.loading { pointer-events: none; }
.lg-btn.loading span, .lg-btn.loading svg { opacity: 0; }
.lg-btn.loading::after {
    content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}

.lg-perks { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.lg-perks li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9a9a9a; font-weight: 500; }
.lg-perks svg { width: 15px; height: 15px; color: var(--brand); }
.lg-foot-link { margin: 18px 0 0; font-size: 14px; color: #8a8a8a; }
.lg-foot-link a { color: #fff; font-weight: 700; }
.lg-foot-link a:hover { text-decoration: underline; }
.lg-links { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }
.lg-info { margin: 14px 0 0; font-size: 13px; color: #8a8a8a; }
.lg-foot { padding: 0 16px 22px; text-align: center; font-size: 12px; color: #5f5f5f; }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input {
    width: 100%; height: 60px; text-align: center; font: inherit; font-size: 26px; font-weight: 800; color: #fff;
    background: #0d0d0d; border: 1px solid #333; border-radius: 10px; outline: none; caret-color: var(--brand);
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); transform: translateY(-2px); }
.otp input.filled { border-color: #5a5a5a; background: #141414; }

@media (prefers-reduced-motion: reduce) {
    .lg-track, .lg-glow { animation: none; }
    .lg-wall { opacity: .5; animation: none; }
}
@media (max-width: 600px) {
    .lg-wall { gap: 10px; }
    .lg-track { gap: 10px; }
    .lg-track img { width: 104px; border-radius: 6px; }
    .lg-main { align-items: start; padding-top: 6vh; }
    .otp { gap: 6px; }
    .otp input { height: 54px; font-size: 22px; }
}

/* ---------- Páginas simples ---------- */
.simple-page { background: radial-gradient(ellipse at top, #2a0a0c, var(--bg) 60%); min-height: 100vh; }
.simple-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.simple-card { max-width: 480px; text-align: center; padding: 48px 32px; background: rgba(24, 24, 24, .9); border-radius: 14px; border: 1px solid var(--line); }
.simple-card h1 { margin: 16px 0 10px; font-size: 28px; }
.simple-card p { color: var(--text-2); margin: 0 0 26px; }
.simple-icon { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 34px; font-weight: 800; }
.simple-icon.ok { background: rgba(70, 211, 105, .15); color: var(--green); }
.simple-icon.err { background: rgba(229, 9, 20, .15); color: #ff4d55; }
.simple-icon.wait { background: rgba(255, 255, 255, .08); }
.simple-note { font-size: 14px; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); }

/* ---------- Player ---------- */
.watch-page { background: #000; overflow: hidden; }
.player { position: fixed; inset: 0; background: #000; user-select: none; -webkit-user-select: none; }
.player video, .player-embed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.embed-back { position: absolute; top: 16px; left: 16px; z-index: 5; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .6); }
.player.idle { cursor: none; }
.player-top, .player-bottom {
    position: absolute; left: 0; right: 0; z-index: 10; padding: 0 clamp(14px, 3vw, 40px);
    transition: opacity .35s, transform .35s var(--ease);
}
.player-top { top: 0; display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 60px; background: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent); }
.player-bottom { bottom: 0; padding-top: 70px; padding-bottom: max(16px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.player.idle .player-top, .player.idle .player-bottom { opacity: 0; pointer-events: none; }
.player.idle .player-top { transform: translateY(-10px); }
.player.idle .player-bottom { transform: translateY(10px); }
.player-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.player-title strong { font-size: clamp(15px, 1.6vw, 20px); }
.player-title span { color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbtn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; transition: transform .15s, background .2s; flex-shrink: 0; }
.pbtn:hover { transform: scale(1.15); }
.pbtn svg { width: 30px; height: 30px; }
.pbtn.speed { font-weight: 800; font-size: 15px; width: auto; min-width: 46px; padding: 0 6px; border-radius: 6px; }
.player .i-pause, .player .i-mute { display: none; }
.player[data-state="playing"] .i-play { display: none; }
.player[data-state="playing"] .i-pause { display: block; }
.player.muted .i-vol { display: none; }
.player.muted .i-mute { display: block; }

.timeline { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.timeline-track { position: relative; width: 100%; height: 4px; background: rgba(255, 255, 255, .25); border-radius: 2px; transition: height .15s; }
.timeline:hover .timeline-track, .timeline.drag .timeline-track { height: 7px; }
.timeline-buffer { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .35); border-radius: 2px; }
.timeline-fill { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 2px; }
.timeline-thumb {
    position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); transform: scale(0); transition: transform .15s;
}
.timeline:hover .timeline-thumb, .timeline.drag .timeline-thumb { transform: scale(1); }
.timeline-tip {
    position: absolute; bottom: 26px; padding: 4px 8px; border-radius: 4px; background: rgba(20, 20, 20, .95);
    font-size: 13px; font-weight: 600; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .15s;
}
.timeline:hover .timeline-tip, .timeline.drag .timeline-tip { opacity: 1; }
.controls { display: flex; align-items: center; gap: clamp(2px, 1vw, 14px); margin-top: 6px; }
.volume { display: flex; align-items: center; }
.volume input { width: 0; opacity: 0; transition: width .25s, opacity .2s; accent-color: var(--brand); }
.volume:hover input, .volume:focus-within input { width: 90px; opacity: 1; margin-right: 8px; }
.time { font-size: 14px; font-variant-numeric: tabular-nums; color: #ddd; white-space: nowrap; }
.ctrl-title { flex: 1; text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.ctrl-right { display: flex; align-items: center; gap: clamp(2px, 1vw, 10px); }

.player-center {
    position: absolute; inset: 0; margin: auto; z-index: 8; width: 92px; height: 92px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .8);
    transition: opacity .3s, transform .3s var(--ease);
}
.player-center svg { width: 44px; height: 44px; margin-left: 5px; }
.player[data-state="playing"] .player-center { opacity: 0; transform: scale(.8); pointer-events: none; }
.player-loading { position: absolute; inset: 0; z-index: 7; display: none; place-items: center; pointer-events: none; }
.player.loading .player-loading { display: grid; }
.player.loading .player-center { opacity: 0; }
.player-flash {
    position: absolute; inset: 0; margin: auto; z-index: 9; width: 80px; height: 80px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0, 0, 0, .55); font-weight: 800; font-size: 18px;
    opacity: 0; pointer-events: none;
}
.player-flash.show { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: 1; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.4); } }
.tap-zone { position: absolute; top: 15%; bottom: 25%; width: 30%; z-index: 4; }
.tap-zone.left { left: 0; }
.tap-zone.right { right: 0; }
.watermark {
    position: absolute; z-index: 6; top: 12%; left: 8%; padding: 4px 8px;
    color: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 600; pointer-events: none;
    transition: top 2s, left 2s; text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.eps-panel {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; width: min(380px, 92vw);
    background: rgba(16, 16, 16, .97); transform: translateX(100%); transition: transform .35s var(--ease);
    display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .6);
}
.eps-panel.open { transform: none; }
.eps-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--line); }
.eps-panel-list { overflow-y: auto; padding: 8px; }
.eps-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 6px; }
.eps-item:hover { background: #262626; }
.eps-item.current { background: #2e2e2e; box-shadow: inset 3px 0 0 var(--brand); }
.eps-item.locked { opacity: .55; }
.eps-num { width: 26px; text-align: center; font-size: 18px; color: var(--muted); font-weight: 600; }
.eps-name { flex: 1; font-size: 14px; font-weight: 500; }
.eps-name small { display: block; color: var(--muted); font-weight: 400; }

.next-card {
    position: absolute; right: clamp(14px, 3vw, 40px); bottom: 120px; z-index: 15; width: min(340px, calc(100vw - 28px));
    padding: 18px; border-radius: 10px; background: rgba(20, 20, 20, .95); border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .7); animation: pop .4s var(--ease);
}
.next-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.next-label b { color: #fff; }
.next-card strong { display: block; margin-bottom: 14px; }
.next-actions { display: flex; gap: 8px; }

/* ---------- Responsivo ---------- */
@media (hover: none) {
    .slider-btn { display: none; }
    /* Celular/tablet: capa limpa (a arte já traz o título); detalhes abrem ao tocar */
    .card-info { display: none; }
    .card:hover, .card-wide:hover { transform: none; }
    .card:hover .card-img, .card:focus-visible .card-img { box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
    .card:active { transform: scale(.96); transition: transform .1s; }
    .play-circle { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
    .topnav { display: none; }
    .m-body { grid-template-columns: 1fr; gap: 6px; }
    .promo { grid-template-columns: 1fr; text-align: center; }
    .promo-posters { order: -1; }
    .ctrl-title { display: none; }
    .controls .time { flex: 1; }
}
@media (max-width: 600px) {
    .topbar { height: 60px; gap: 12px; }
    .brand-text { font-size: 21px; }
    .search.open input { width: calc(100vw - 150px); }
    .search.open ~ .pill-vip { display: none; }
    .hero { min-height: 74vh; height: auto; }
    .hero-bg { background-position: center top; }
    .hero-shade { background: linear-gradient(0deg, var(--bg) 4%, rgba(11, 11, 11, .55) 45%, rgba(0, 0, 0, .25) 100%); }
    .hero-content { padding-bottom: 72px; text-align: center; margin: 0 auto; }
    .hero-kicker, .hero .meta, .hero-actions { justify-content: center; }
    .hero-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .btn { padding: 10px 20px; font-size: 15px; }
    .rows { margin-top: -40px; }
    .row { margin-bottom: 26px; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
    .modal { padding: 0; }
    .modal-box { border-radius: 0; min-height: 100%; }
    .m-hero { aspect-ratio: 4 / 3; }
    .ep { grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 6px; }
    .ep-num { display: none; }
    .ep-text p { -webkit-line-clamp: 3; }
    .volume input { display: none; }
    .pbtn { width: 40px; height: 40px; }
    .pbtn svg { width: 26px; height: 26px; }
    .controls [data-skip] { display: none; }
    .player-center { width: 74px; height: 74px; }
    .next-card { bottom: 100px; }

    /* Catálogo no celular: ~3,3 capas por linha, selos discretos */
    .row-title { font-size: 17px; margin-bottom: 8px; }
    .slider-track { gap: 6px; padding-top: 6px; padding-bottom: 14px; margin: -6px 0 -14px; }
    .card { flex-basis: 27.5vw; max-width: 130px; }
    .card-img { border-radius: 5px; }
    .badge-new, .badge-free { font-size: 8.5px; padding: 2px 6px; letter-spacing: .3px; }
    .badge-vip { top: 5px; left: 5px; font-size: 8.5px; padding: 2px 5px; }
    .badge-lock { width: 22px; height: 22px; top: 5px; right: 5px; }
    .badge-lock svg { width: 12px; height: 12px; }
    .badge-price { left: 5px; bottom: 5px; font-size: 10.5px; padding: 2px 6px; }
    .card.rank { flex-basis: 40vw; max-width: 190px; }
    .card.rank .card-img { width: 62%; }
    .rank-num { font-size: 92px; letter-spacing: -6px; bottom: -6px; -webkit-text-stroke-width: 3px; }
    .card-wide { flex-basis: 62vw; }
    .card-wide-info strong { font-size: 13px; }
    .grid .card { max-width: none; }

    /* Destaque do topo mais enxuto: o catálogo já aparece na primeira tela */
    .hero { min-height: 0; }
    .hero-content { padding-top: min(92vw, 380px); padding-bottom: 54px; }
    .card-wide { flex-basis: 56vw; }
    .brand-img { max-height: 30px; }
    .hero-title { font-size: clamp(26px, 8vw, 34px); letter-spacing: -.5px; margin-bottom: 10px; }
    .hero-kicker { font-size: 11px; letter-spacing: 2px; }
    .meta { font-size: 13px; gap: 4px 10px; }
    .hero-desc { font-size: 14px; margin: 10px 0 18px; }
    .hero-actions { gap: 8px; }
    .hero-actions .btn { flex: 1 1 40%; min-width: 0; padding: 10px 12px; font-size: 14px; }
    .hero-actions .btn svg { width: 20px; height: 20px; }
    .pill-vip { display: none; }
}
