/* =====================================================================
   YC TITAN — streaming UI
   Inspirado em portais de anime (Crunchyroll), com identidade própria.
   ===================================================================== */

:root {
    --bg: #000000;
    --bg-2: #000000;
    --bg-3: #151515;
    --panel: #151515;
    --panel-2: #1c1c1e;
    --panel-3: #1c1c1e;
    --text: #ffffff;
    --text-2: #f2f2f2;
    --muted: #8c8c8c;
    --faint: #666666;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --prime: #ff5e00;
    --prime-2: #ff7627;
    --prime-3: #cc4a00;
    --prime-soft: rgba(255, 94, 0, .14);
    --danger: #ff5b6a;
    --star: #f5c518;
    --radius: 10px;
    --radius-lg: 16px;
    --header-h: 70px;
    --card-w: 174px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.22, .61, .36, 1);
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-2);
    color: var(--text);
    font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
::selection { background: var(--prime); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2c; border-radius: 99px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #444444; }

/* ---------------------------------------------------------------- Brand */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: #fff; }
.brand-text { font-weight: 900; letter-spacing: -1.4px; font-size: 1.35rem; }
.brand-text b { color: var(--prime); font-weight: 900; }
.brand-smile { width: 44px; height: 10px; color: var(--prime); margin-top: 2px; margin-left: 1px; }
.brand-smile path { stroke-width: 8; }
.brand-lg .brand-text { font-size: 2.6rem; letter-spacing: -2.5px; }
.brand-lg .brand-smile { width: 92px; height: 20px; }
.brand-xl { align-items: center; }
.brand-xl .brand-text { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -4px; }
.brand-xl .brand-smile { width: clamp(120px, 16vw, 200px); height: 40px; }

/* ---------------------------------------------------------------- Splash */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: radial-gradient(ellipse 90% 60% at 50% 40%, #2a1000 0%, #000000 55%, #000000 100%);
    transition: opacity .32s var(--ease), visibility .32s;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-glow {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 94, 0, .26), transparent 65%);
    filter: blur(20px);
    animation: pulseGlow 3.4s ease-in-out infinite;
}
.splash .brand { position: relative; color: #fff; }
.splash-bar { position: relative; width: 220px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.splash-bar span { position: absolute; inset: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--prime), var(--prime-2), transparent); animation: splashSlide 1.15s ease-in-out infinite; }
.splash-text { position: relative; color: var(--muted); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
@keyframes splashSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes pulseGlow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 120;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(9, 15, 20, .92) 0%, rgba(9, 15, 20, .55) 70%, transparent 100%);
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.solid {
    background: rgba(11, 18, 24, .96);
    border-bottom-color: var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.header-inner {
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 44px);
    display: flex;
    align-items: center;
    gap: 26px;
}
.header-brand { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 9px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 600;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    margin: 6px auto -8px;
    width: 16px;
    border-radius: 2px;
    background: var(--prime);
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-2);
    transition: background .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.icon-btn:active { transform: scale(.94); }

.header-search {
    display: flex;
    align-items: center;
    height: 38px;
    width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid transparent;
    border-radius: 99px;
    transition: width .3s var(--ease), opacity .25s, border-color .2s, background .2s;
}
.header-search.open { width: min(330px, 34vw); opacity: 1; pointer-events: auto; border-color: var(--line); }
.header-search:focus-within { border-color: rgba(255, 94, 0, .6); background: rgba(255, 94, 0, .08); }
.header-search input {
    flex: 1; min-width: 0;
    height: 100%;
    padding: 0 6px 0 16px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: .86rem;
}
.header-search input::placeholder { color: var(--faint); }
.search-submit { width: 34px; height: 34px; flex-shrink: 0; }
.search-toggle.hidden { display: none; }

.profile-menu { position: relative; }
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 4px;
    border-radius: 99px;
    transition: background .2s;
}
.profile-trigger:hover, .profile-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.profile-trigger img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.profile-caret { color: var(--muted); display: flex; transition: transform .2s; }
.profile-caret svg { width: 15px; height: 15px; }
.profile-trigger[aria-expanded="true"] .profile-caret { transform: rotate(180deg); }

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 264px;
    padding: 8px;
    background: #151515;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .2s var(--ease);
    z-index: 200;
}
.profile-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.dropdown-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.dropdown-head strong { display: block; font-size: .86rem; }
.dropdown-head span { display: block; color: var(--faint); font-size: .7rem; margin-top: 1px; }
.profile-dropdown a, .profile-dropdown button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: .82rem;
    color: var(--text-2);
    text-align: left;
    transition: background .15s, color .15s;
}
.profile-dropdown a:hover, .profile-dropdown button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.profile-dropdown a.danger { color: #ff8792; }
.profile-dropdown svg { width: 17px; height: 17px; color: var(--faint); }
.profile-dropdown a:hover svg, .profile-dropdown button:hover svg { color: var(--prime-2); }

.menu-btn { display: none; }

/* ---------------------------------------------------------------- Layout */
.site-main { position: relative; z-index: 1; min-height: 70vh; padding-top: 0; }
.view { display: none; animation: viewIn .35s var(--ease); }
.view.active { display: block; }
@keyframes viewIn { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rows { padding: 12px 0 30px; }
.page-head { padding: calc(var(--header-h) + 44px) clamp(18px, 4vw, 52px) 8px; max-width: 1600px; margin: 0 auto; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.page-head .eyebrow { color: var(--prime-2); font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 9px; }
.page-sub { color: var(--muted); font-size: .88rem; margin-top: 8px; max-width: 620px; }
.page-head.with-action, .page-head.with-back { display: flex; align-items: flex-end; gap: 14px; }
.page-head.with-action { justify-content: space-between; align-items: center; }
.page-head.with-back .back-btn { flex-shrink: 0; margin-bottom: 8px; background: var(--panel); }
.page-section { max-width: 1600px; margin: 6px auto 40px; padding: 0 clamp(18px, 4vw, 52px); }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 clamp(18px, 3.4vw, 52px);
    margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.05rem, 1.7vw, 1.32rem); font-weight: 700; letter-spacing: -.02em; }
.section-head h2 .count { color: var(--faint); font-size: .72rem; font-weight: 600; margin-left: 8px; letter-spacing: 0; }
.link-btn { color: var(--prime-2); font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; }
.link-btn:hover { color: #fff; }
.link-btn.subtle { color: var(--faint); font-weight: 600; }
.link-btn.subtle:hover { color: var(--text-2); }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
    border: 1px solid transparent;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--prime); color: #ffffff; box-shadow: 0 6px 22px rgba(255, 94, 0, .26); }
.btn-primary:hover { background: var(--prime-2); box-shadow: 0 8px 28px rgba(255, 94, 0, .35); }
.btn-ghost { background: rgba(255, 255, 255, .07); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--line-2); }
.btn-hero-play { background: #fff; color: #000000; padding: 13px 30px; font-size: .9rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.btn-hero-play:hover { background: #f2f2f2; transform: translateY(-1px); }
.btn-hero-info { background: rgba(20, 33, 43, .72); color: #fff; border-color: rgba(255, 255, 255, .22); padding: 13px 24px; backdrop-filter: blur(8px); }
.btn-hero-info:hover { background: rgba(45, 66, 82, .85); border-color: rgba(255, 255, 255, .38); }
.btn-sm { padding: 9px 14px; font-size: .76rem; }
.btn.wide { width: 100%; }
.migration-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    width: min(400px, 100%); padding: 12px 14px; margin: 0 0 18px;
    background: rgba(255, 94, 0, .12); border: 1px solid rgba(255, 94, 0, .45); border-radius: 8px;
    color: var(--text); font-size: .78rem; font-weight: 600; line-height: 1.35;
}
.migration-banner .btn { flex: 0 0 auto; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: min(86vh, 820px); height: 86vh; overflow: hidden; background: var(--bg); }
.hero-bg {
    position: absolute; inset: 0;
    background-position: center 22%;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity .6s ease;
}
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .97) 0%, rgba(0, 0, 0, .8) 30%, rgba(0, 0, 0, .24) 64%, rgba(0, 0, 0, .05) 100%),
        linear-gradient(0deg, var(--bg-2) 0%, rgba(0, 0, 0, .55) 22%, transparent 56%),
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 30%);
}
.hero-content {
    position: absolute;
    left: clamp(20px, 4.5vw, 68px);
    bottom: clamp(52px, 9vh, 108px);
    width: min(600px, 54vw);
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--prime);
    color: #ffffff;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-badge svg { width: 13px; height: 13px; stroke-width: 2.4; }
.hero-title {
    font-size: clamp(2.4rem, 4.8vw, 4.6rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.045em;
    text-shadow: 0 8px 40px rgba(0, 0, 0, .55);
    margin-bottom: 16px;
}
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; color: var(--text-2); font-size: .8rem; font-weight: 600; }
.hero-meta .rating { color: var(--star); display: inline-flex; align-items: center; gap: 5px; }
.hero-meta .rating svg { width: 14px; height: 14px; fill: var(--star); stroke: none; }
.hero-meta .pill { padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 4px; font-size: .68rem; color: #fff; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.hero-desc {
    color: #8c8c8c;
    font-size: .88rem;
    line-height: 1.6;
    max-width: 54ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 24px;
}
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-icon-round {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(20, 33, 43, .6);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    transition: .2s;
}
.hero-actions .btn-icon-round:hover { background: rgba(255, 255, 255, .18); border-color: #fff; transform: scale(1.06); }
.hero-actions .btn-icon-round.added { background: var(--prime); border-color: var(--prime); color: #ffffff; }

.hero-thumbs {
    position: absolute;
    right: clamp(18px, 3.4vw, 54px);
    bottom: clamp(38px, 7vh, 84px);
    z-index: 3;
    display: flex;
    gap: 8px;
    max-width: 46vw;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
    position: relative;
    width: 104px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: .55;
    flex-shrink: 0;
    transition: .22s var(--ease);
    background: var(--panel);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb:hover { opacity: .9; transform: translateY(-2px); }
.hero-thumb.active { opacity: 1; border-color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.hero-thumb span { position: absolute; inset: auto 0 0 0; padding: 12px 6px 4px; font-size: .55rem; font-weight: 700; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-dots { display: none; }

/* ---------------------------------------------------------------- Rows */
.media-row { margin-bottom: 26px; }
.row-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px clamp(18px, 3.4vw, 52px) 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.row-scroller::-webkit-scrollbar { display: none; }
.row-wrap { position: relative; }
.row-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-52%);
    z-index: 20;
    width: 40px; height: 66px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, .82);
    border: 1px solid var(--line);
    color: #fff;
    opacity: 0;
    transition: opacity .2s, background .2s;
    backdrop-filter: blur(6px);
}
.row-nav svg { width: 22px; height: 22px; }
.row-nav.prev { left: 8px; }
.row-nav.next { right: 8px; }
.row-wrap:hover .row-nav { opacity: 1; }
.row-nav:hover { background: rgba(255, 94, 0, .88); color: #ffffff; }
.row-nav.disabled { opacity: 0 !important; pointer-events: none; }

/* ---------------------------------------------------------------- Cards */
.card {
    position: relative;
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    scroll-snap-align: start;
    cursor: pointer;
    outline: none;
}
.card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, #151515, #0d0d0f);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
    transition: transform .24s var(--ease), box-shadow .24s, border-color .24s;
    border: 1px solid rgba(255, 255, 255, .045);
}
.card-poster img {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s var(--ease), opacity .3s;
}
.img-fallback {
    position: absolute; inset: 0; z-index: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    color: var(--muted);
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 94, 0, .16), transparent 58%),
        linear-gradient(160deg, #151515 0%, #0d0d0f 70%);
    font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.img-fallback-mark {
    width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--prime-2); border: 1px solid rgba(255, 94, 0, .5);
    background: rgba(255, 94, 0, .1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.img-fallback-mark svg { width: 20px; height: 20px; margin-left: 2px; opacity: .95; }
/* A capa sempre passa na frente do placeholder, em qualquer container. */
.img-fallback + img { position: relative; z-index: 1; }
.card-badge {
    position: absolute;
    top: 7px; left: 7px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .82);
    color: var(--prime-2);
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.card-badge.serie { color: #00bfff; }
.card-badge.watched {
    left: auto; right: 7px; color: #7ee2a8;
    background: rgba(4, 30, 18, .88); border: 1px solid rgba(126, 226, 168, .45);
}
.card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .45) 38%, transparent 70%);
    opacity: 0;
    transition: opacity .2s;
}
.card-hover .card-hover-actions { display: flex; align-items: center; gap: 7px; transform: translateY(6px); transition: transform .24s var(--ease); }
.card-hover .card-hover-meta { font-size: .58rem; color: #8c8c8c; font-weight: 700; letter-spacing: .04em; }
.card-hover .icon-round {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .94);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, .5);
    transition: .18s;
}
.card-hover .icon-round svg { width: 15px; height: 15px; stroke-width: 2.2; }
.card-hover .icon-round.ghost { background: rgba(0, 0, 0, .72); color: #fff; border-color: rgba(255, 255, 255, .35); }
.card-hover .icon-round:hover { transform: scale(1.1); background: var(--prime); border-color: var(--prime); color: #ffffff; }
.card:hover .card-poster, .card:focus-visible .card-poster { transform: scale(1.045); box-shadow: 0 16px 38px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 94, 0, .4); border-color: rgba(255, 94, 0, .4); }
.card:hover .card-hover, .card:focus-visible .card-hover { opacity: 1; }
.card:hover .card-hover-actions, .card:focus-visible .card-hover-actions { transform: none; }
.card-title {
    margin-top: 8px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--text-2);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-sub { font-size: .62rem; color: var(--faint); margin-top: 2px; }
.card-progress { position: absolute; left: 7px; right: 7px; bottom: 7px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .28); overflow: hidden; z-index: 2; }
.card-progress span { display: block; height: 100%; background: var(--prime); border-radius: inherit; }
.card-progress-label { position: absolute; right: 7px; bottom: 15px; font-size: .52rem; color: #f2f2f2; font-weight: 700; background: rgba(0, 0, 0, .7); padding: 1px 5px; border-radius: 3px; }
.card.added .card-hover .icon-round.add { background: var(--prime); border-color: var(--prime); color: #ffffff; }

/* Top 10 */
.top10-row .card { flex-basis: calc(var(--card-w) + 62px); width: calc(var(--card-w) + 62px); display: flex; align-items: flex-end; gap: 0; }
.top10-row .rank {
    flex: 0 0 72px;
    font-size: 108px;
    font-weight: 900;
    line-height: .78;
    letter-spacing: -.09em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .28);
    text-align: center;
    margin-right: -8px;
    margin-bottom: 2px;
    transition: -webkit-text-stroke-color .2s;
}
.top10-row .card:hover .rank { -webkit-text-stroke-color: var(--prime); }
.top10-row .card-poster { flex: 1; }

/* ---------------------------------------------------------------- Grids */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px 14px;
    padding: 14px clamp(18px, 4vw, 52px) 40px;
    max-width: 1600px;
    margin: 0 auto;
}
.media-grid .card { width: 100%; flex: none; }
.media-grid .card-poster { aspect-ratio: 2 / 3; }
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 18px 56px;
}
.load-more-wrap .btn { min-width: 180px; }
.grid-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 64px 20px;
    color: var(--muted);
    text-align: center;
}
.grid-empty svg { width: 42px; height: 42px; color: var(--faint); }
.grid-empty .empty-mark {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--prime-2); border: 1px solid rgba(255, 94, 0, .42);
    background: var(--prime-soft); box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}
.grid-empty .empty-mark svg { width: 22px; height: 22px; margin-left: 2px; color: var(--prime-2); }
.grid-empty strong { color: var(--text); font-size: 1.05rem; }
.grid-empty p { font-size: .82rem; max-width: 360px; }

/* ---------------------------------------------------------------- Chips / categories */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px clamp(18px, 4vw, 52px) 18px; scrollbar-width: none; max-width: 1600px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-size: .74rem;
    font-weight: 600;
    transition: .18s;
}
.chip:hover { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, .08); }
.chip.active { background: #fff; border-color: #fff; color: #000000; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}
.cat-card {
    position: relative;
    aspect-ratio: 16 / 8.4;
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform .22s var(--ease), border-color .2s, box-shadow .2s;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: .4s; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .18)); }
.cat-card:hover { transform: translateY(-3px); border-color: rgba(255, 94, 0, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.cat-card:hover img { transform: scale(1.07); opacity: .7; }
.cat-info { position: absolute; inset: auto 14px 12px 14px; z-index: 2; }
.cat-info strong { display: block; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.cat-info span { display: block; color: var(--prime-2); font-size: .64rem; font-weight: 700; margin-top: 3px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------------------------------------------------------------- Search */
.search-view .search-hero { padding: calc(var(--header-h) + 54px) clamp(18px, 4vw, 52px) 10px; max-width: 960px; margin: 0 auto; }
.search-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.035em; margin-bottom: 20px; }
.big-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 14px 0 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.big-search:focus-within { border-color: rgba(255, 94, 0, .6); background: #1c1c1e; box-shadow: 0 0 0 4px rgba(255, 94, 0, .1); }
.big-search > svg { width: 21px; height: 21px; color: var(--muted); flex-shrink: 0; }
.big-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 1rem; }
.big-search input::placeholder { color: var(--faint); }
.search-state { color: var(--muted); font-size: .82rem; padding: 12px clamp(18px, 4vw, 52px); max-width: 1600px; margin: 0 auto; }
.search-state strong { color: var(--text); }

/* ---------------------------------------------------------------- Profile */
.profile-view { padding-bottom: 60px; }
.profile-hero {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    flex-wrap: wrap;
    padding: calc(var(--header-h) + 50px) clamp(18px, 4vw, 52px) 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.profile-avatar-xl { width: 118px; height: 118px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); background: var(--panel); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); flex-shrink: 0; }
.profile-avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta { flex: 1; min-width: 200px; }
.profile-meta h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.04em; line-height: 1.05; }
.profile-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    padding: 18px clamp(18px, 4vw, 52px);
    max-width: 1200px;
    margin: 0 auto;
}
.profile-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: .2s;
}
.profile-card:hover { background: var(--panel-2); border-color: rgba(255, 94, 0, .4); transform: translateY(-2px); }
.pc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--prime-soft); color: var(--prime-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-card strong { display: block; font-size: .86rem; }
.profile-card span { display: block; color: var(--faint); font-size: .7rem; margin-top: 2px; }
.profile-profiles { max-width: 1200px; margin: 20px auto 0; padding: 0 clamp(18px, 4vw, 52px); }
.profile-tiles { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.prof-tile { width: 104px; text-align: center; cursor: pointer; position: relative; }
.prof-tile .avatar { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; border: 2px solid transparent; background: var(--panel); transition: .2s; position: relative; }
.prof-tile .avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-tile:hover .avatar { border-color: var(--prime); transform: scale(1.04); }
.prof-tile .lock { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; color: var(--prime-2); }
.prof-tile .lock svg { width: 11px; height: 11px; }
.prof-tile .prof-edit { position: absolute; top: 3px; right: 1px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .9); border: 1px solid var(--line-2); color: var(--prime-2); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.prof-tile .prof-edit:hover { color: #fff; border-color: var(--prime); }
.prof-tile .prof-edit svg { width: 12px; height: 12px; }
.prof-tile .prof-main-tag { font-style: normal; color: var(--prime-2); font-size: .62rem; }
.prof-tile span { font-size: .72rem; color: var(--text-2); font-weight: 600; }
.prof-tile.add .avatar { border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--faint); }
.prof-tile.add:hover .avatar { color: var(--prime-2); border-color: var(--prime); }
.prof-tile.add .avatar svg { width: 26px; height: 26px; }
.profile-footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 34px auto 0; padding: 22px clamp(18px, 4vw, 52px) 0; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--line); background: #000000; padding: 34px 0 40px; margin-top: 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.footer-inner p { color: var(--faint); font-size: .72rem; max-width: 340px; }
.footer-inner nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); font-size: .74rem; }
.footer-inner nav a:hover { color: #fff; }
.copyright { color: var(--faint); font-size: .66rem; }

/* ---------------------------------------------------------------- Bottom nav */
.bottom-nav { display: none; }

/* ---------------------------------------------------------------- Overlays / modals */
.overlay-root { position: relative; z-index: 500; }
.overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    background: rgba(4, 8, 11, .78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    overflow-y: auto;
}
.overlay.open { opacity: 1; visibility: visible; }
.overlay.center { align-items: center; }
/* Nenhum overlay deve parecer "janela pequena": fundo e painel ocupam a tela. */
.overlay.detail-overlay { padding: 0; align-items: stretch; }

/* Detalhe — tela inteira, com rolagem interna */
.detail-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    background: var(--bg-2);
    border: 0;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: none;
    transform: translateY(14px);
    transition: transform .3s var(--ease);
}
.overlay.open .detail-panel { transform: none; }
.dm-hero { position: relative; min-height: 380px; padding: 0; display: flex; align-items: flex-end; }
.dm-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.dm-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 24, .96) 0%, rgba(11, 18, 24, .72) 45%, rgba(11, 18, 24, .15) 100%), linear-gradient(0deg, var(--bg-2) 0%, rgba(0, 0, 0, .35) 32%, transparent 70%); }
.dm-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); border: 1px solid var(--line); }
.dm-close:hover { background: rgba(255, 255, 255, .16); }
.dm-head { position: relative; z-index: 2; padding: 30px clamp(20px, 4vw, 44px) 24px; width: 100%; display: flex; align-items: flex-end; gap: 26px; }
.dm-poster { position: relative; width: 150px; aspect-ratio: 2/3; border-radius: 9px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); flex-shrink: 0; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.dm-poster img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.dm-intro { flex: 1; min-width: 0; }
.dm-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--prime-2); font-size: .64rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.dm-watched { display: inline-flex; align-items: center; margin-left: 10px; color: #7ee2a8; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.dm-title { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 12px; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.dm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--text-2); font-size: .76rem; font-weight: 600; margin-bottom: 14px; }
.dm-meta .rating { color: var(--star); display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.dm-meta .rating svg { width: 14px; height: 14px; fill: var(--star); stroke: none; }
.dm-meta .pill { border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; font-size: .65rem; color: #fff; }
.dm-meta .dot { width: 3px; height: 3px; background: var(--faint); border-radius: 50%; }
.dm-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dm-genres span { font-size: .66rem; color: var(--muted); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; }
.dm-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dm-overview { color: #f2f2f2; font-size: .88rem; line-height: 1.65; max-width: 70ch; margin-top: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dm-overview.expanded { display: block; -webkit-line-clamp: unset; }
.dm-more-text { color: var(--prime-2); font-size: .74rem; font-weight: 700; margin-top: 6px; }

.dm-tabs { display: flex; gap: 24px; padding: 6px clamp(20px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.dm-tab { padding: 12px 0; color: var(--muted); font-size: .84rem; font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dm-tab:hover { color: var(--text-2); }
.dm-tab.active { color: #fff; border-bottom-color: var(--prime); }
.dm-body { padding: 22px clamp(20px, 4vw, 44px) 30px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.season-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.season-bar .label { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.season-select {
    appearance: none;
    background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 38px 9px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    outline: none;
}
.ep-list { display: flex; flex-direction: column; gap: 4px; }
.ep-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 11px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .18s, border-color .18s;
    text-align: left;
    width: 100%;
}
.ep-row:hover { background: rgba(255, 255, 255, .055); border-color: var(--line); }
.ep-thumb { width: 142px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--panel-2); flex-shrink: 0; position: relative; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .ep-play-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(4, 8, 11, .32); opacity: 0; transition: .2s; }
.ep-row:hover .ep-play-ico { opacity: 1; }
.ep-play-ico span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #000000; display: flex; align-items: center; justify-content: center; }
.ep-play-ico svg { width: 15px; height: 15px; }
.ep-info { flex: 1; min-width: 0; }
.ep-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ep-num { color: var(--prime-2); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ep-dur { color: var(--faint); font-size: .64rem; }
.ep-name { font-size: .84rem; font-weight: 600; margin-top: 2px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-desc { color: var(--muted); font-size: .74rem; line-height: 1.45; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-watched { opacity: .72; }
.ep-done { color: #52c77a; font-size: .6rem; font-weight: 700; letter-spacing: .02em; margin-left: 5px; }
.ep-progress { width: 100%; height: 2px; background: rgba(255, 255, 255, .15); margin-top: 6px; border-radius: 99px; overflow: hidden; }
.ep-progress span { display: block; height: 100%; background: var(--prime); }

.cast-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.cast-chip { font-size: .7rem; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }
.detail-block { margin-bottom: 20px; }
.detail-block h3 { font-size: .7rem; color: var(--faint); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 9px; }
.detail-block p { color: var(--text-2); font-size: .84rem; line-height: 1.6; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 10px; }
.similar-grid .card { width: 100%; flex: none; }
.dm-footer { padding: 0 clamp(20px, 4vw, 44px) 28px; color: var(--faint); font-size: .68rem; }

/* ---------------------------------------------------------------- Profile chooser */
.profiles-screen {
    position: fixed;
    inset: 0;
    z-index: 700;
    background: radial-gradient(ellipse 110% 70% at 50% 0%, #151515 0%, #000000 52%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    overflow-y: auto;
}
.profiles-screen.open { opacity: 1; visibility: visible; }
.ps-logo { position: absolute; top: 26px; left: 34px; }
.ps-title { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 40px; text-align: center; }
.ps-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: clamp(18px, 3.4vw, 36px); max-width: 900px; }
.ps-tile { width: 132px; text-align: center; cursor: pointer; }
.ps-avatar { position: relative; width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--panel); transition: .22s var(--ease); }
.ps-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ps-tile:hover .ps-avatar { border-color: #fff; transform: scale(1.05); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); }
.ps-name { color: var(--muted); font-size: .82rem; font-weight: 600; transition: color .2s; }
.ps-tile:hover .ps-name { color: #fff; }
.ps-current { display: inline-block; margin-left: 2px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 94, 0, .16); color: var(--prime-2); font-size: .62rem; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }
.ps-lock { position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .9); color: var(--prime-2); display: flex; align-items: center; justify-content: center; }
.ps-lock svg { width: 13px; height: 13px; }
.ps-del { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .9); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; }
.ps-tile:hover .ps-del { opacity: 1; }
.ps-del:hover { background: var(--danger); }
.ps-del svg { width: 11px; height: 11px; }
.ps-edit { position: absolute; top: 5px; left: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .9); color: var(--prime-2); display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; }
.ps-tile:hover .ps-edit { opacity: 1; }
.ps-edit:hover { color: #fff; background: var(--prime); }
.ps-edit svg { width: 12px; height: 12px; }
.ps-tile.add .ps-avatar { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); color: var(--faint); }
.ps-tile.add:hover .ps-avatar { border-color: var(--prime); color: var(--prime-2); }
.ps-tile.add .ps-avatar svg { width: 30px; height: 30px; }
.ps-actions { margin-top: 44px; display: flex; gap: 10px; }
.ps-btn { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 7px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; transition: .2s; }
.ps-btn:hover { color: #fff; border-color: #fff; }
.ps-btn.primary { background: var(--prime); border-color: var(--prime); color: #ffffff; }
.ps-btn.primary:hover { background: var(--prime-2); }
.ps-managing .ps-tile .ps-avatar { border-style: dashed; border-color: var(--line-2); }
.ps-empty { color: var(--muted); text-align: center; padding: 30px; max-width: 420px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ps-empty svg { width: 40px; height: 40px; color: var(--faint); }

/* ---------------------------------------------------------------- PIN / auth / edit */
/* Telas de PIN / edição também ocupam a tela inteira: nada de quadrado flutuante. */
.pin-box, .auth-box, .edit-box, .admin-box {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    border: 0;
    border-radius: 0;
    padding: 6vh 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.auth-box form, .edit-box form, .admin-box form { width: min(420px, 100%); margin: 0 auto; text-align: left; }
.pin-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 2px solid var(--line-2); background: var(--panel); }
.pin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pin-name { font-size: 1.02rem; font-weight: 700; margin-bottom: 18px; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.pin-dots span { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--faint); transition: .15s; }
.pin-dots span.filled { background: var(--prime); border-color: var(--prime); box-shadow: 0 0 12px rgba(255, 94, 0, .5); }
.pin-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: 100%; max-width: 320px; }
.pin-key { height: 52px; border-radius: 9px; background: rgba(255, 255, 255, .055); border: 1px solid var(--line); font-size: 1.12rem; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: .15s; }
.pin-key:hover { background: rgba(255, 255, 255, .13); }
.pin-key:active { transform: scale(.96); }
.pin-key.back { color: var(--muted); }
.pin-err { min-height: 18px; margin-top: 12px; color: var(--danger); font-size: .74rem; font-weight: 600; }
.shake { animation: shake .35s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.auth-box h3, .edit-box h3, .admin-box h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: .78rem; margin-bottom: 18px; }
.input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-2);
    border-radius: 9px;
    color: var(--text);
    font-size: .9rem;
    outline: none;
    transition: .2s;
    margin-bottom: 10px;
}
.input:focus { border-color: var(--prime); background: rgba(255, 94, 0, .07); box-shadow: 0 0 0 3px rgba(255, 94, 0, .1); }
.edit-pin-toggle { width: 100%; justify-content: space-between; margin-bottom: 10px; }
.edit-pin-wrap[hidden] { display: none; }
.edit-changed { color: var(--prime-2); font-size: .76rem; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.edit-changed[hidden] { display: none; }
.input.need-auth { border-color: var(--prime); box-shadow: 0 0 0 3px rgba(255, 94, 0, .12); }
.edit-remove-pin { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 600; margin: 0 0 12px; cursor: pointer; text-align: left; }
.edit-remove-pin input { accent-color: var(--prime); width: 15px; height: 15px; }
.input::placeholder { color: var(--faint); }
.auth-err { min-height: 16px; color: var(--danger); font-size: .73rem; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 9px; margin-top: 6px; }
.modal-actions .btn { flex: 1; }

.edit-avatar { width: 94px; height: 94px; border-radius: 50%; overflow: hidden; margin: 4px auto 12px; border: 2px solid var(--prime); background: var(--panel); cursor: pointer; }
.edit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.edit-hint { color: var(--faint); font-size: .68rem; margin: -4px 0 14px; }

.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 9px; max-height: 50vh; overflow-y: auto; padding: 4px; text-align: left; }
.avatar-grid img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid transparent; opacity: .72; cursor: pointer; transition: .18s; }
.avatar-grid img:hover { opacity: 1; border-color: var(--prime); transform: scale(1.07); }
.avatar-grid img.selected { opacity: 1; border-color: var(--prime); box-shadow: 0 0 14px rgba(255, 94, 0, .45); }
.av-more { grid-column: 1 / -1; text-align: center; color: var(--faint); font-size: .7rem; padding: 8px; }

/* ---------------------------------------------------------------- Player */
.player-overlay {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: #000;
    display: none;
}
.player-overlay.open { display: block; }
.player-shell { position: absolute; inset: 0; background: #000; }
.player-shell video, .player-shell iframe { width: 100%; height: 100%; border: 0; display: none; background: #000; }
.player-overlay.mode-video #player-video { display: block; }
.player-overlay.mode-frame #player-frame { display: block; }
.player-topbar {
    position: fixed; top: 18px; left: 20px; z-index: 9;
    display: flex; align-items: center; gap: 12px;
    color: #f2f2f2; font-size: .8rem; font-weight: 600;
    text-shadow: 0 2px 8px #000; pointer-events: none;
}
.player-topbar-hint { color: #8c8c8c; font-size: .68rem; font-weight: 500; }
.player-loading, .player-error {
    position: absolute; inset: 0; z-index: 8;
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(0, 0, 0, .74); color: #f2f2f2; font-size: .85rem;
}
.player-overlay.loading .player-loading { display: flex; }
.player-overlay.error .player-error { display: flex; }
.player-error strong { color: #fff; font-size: 1rem; }
.player-error span { color: #8c8c8c; }
.player-error .btn { margin-top: 6px; }
.player-spinner {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--prime);
    animation: player-spin .8s linear infinite;
}
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-close {
    position: fixed;
    top: 18px; right: 18px;
    z-index: 10;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    transition: .2s;
}
.player-close:hover { background: var(--prime); color: #ffffff; }

/* ---------------------------------------------------------------- Toasts */
.toast-stack { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 9500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 99px;
    background: #1c1c1e;
    border: 1px solid var(--line-2);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    animation: toastIn .3s var(--ease);
    max-width: 90vw;
}
.toast svg { width: 16px; height: 16px; color: var(--prime-2); flex-shrink: 0; }
.toast.error svg { color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Skeleton */
.skeleton-row { padding: 0 clamp(18px, 3.4vw, 52px); margin-bottom: 30px; }
.skeleton-title { width: 190px; height: 17px; border-radius: 5px; margin-bottom: 13px; background: var(--panel-2); }
.skeleton-cards { display: flex; gap: 10px; overflow: hidden; }
.skeleton-card { flex: 0 0 var(--card-w); aspect-ratio: 2/3; border-radius: 8px; background: var(--panel-2); }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------------------------------------------------------------- Maintenance */
.maintenance {
    padding: calc(var(--header-h) + 90px) 24px 90px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    background: radial-gradient(ellipse 80% 55% at 50% 30%, var(--prime-soft), transparent 70%);
}
.maintenance .brand-lg { margin-bottom: 8px; }
.maintenance h2 { font-size: 1.7rem; letter-spacing: -.03em; }
.maintenance p { color: var(--muted); max-width: 430px; font-size: .9rem; }
.maintenance .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 1180px) {
    :root { --card-w: 156px; }
    .main-nav { gap: 0; }
    .nav-link { padding: 9px 10px; font-size: .82rem; }
    .hero-content { width: min(560px, 60vw); }
}

@media (max-width: 980px) {
    .main-nav { display: flex; }
    .menu-btn { display: none; }
    .header-inner { gap: 12px; }
    .header-search.open { position: absolute; left: 16px; right: 16px; top: 14px; width: auto; z-index: 5; background: #151515; }
    .hero-thumbs { display: none; }
    .hero-content { width: min(620px, 82vw); }
    .hero { height: 78vh; min-height: 500px; }
    .hero-shade {
        background:
            linear-gradient(0deg, var(--bg-2) 0%, rgba(0, 0, 0, .72) 38%, rgba(0, 0, 0, .12) 78%),
            linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .1) 70%);
    }
    .dm-poster { display: none; }
    .dm-hero { min-height: 330px; }
    .profile-footer-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
    :root { --card-w: 132px; --header-h: 58px; }
    body { font-size: 14px; }
    .header-brand .brand-text { font-size: 1.15rem; }
    .search-toggle { display: none; }
    .header-search { display: none; }
    .header-search.mobile-open { display: flex; position: fixed; left: 12px; right: 12px; top: 10px; width: auto; opacity: 1; pointer-events: auto; border-color: var(--line); background: #151515; z-index: 20; }
    .profile-trigger img { width: 31px; height: 31px; }
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 300;
        background: rgba(9, 15, 20, .97);
        border-top: 1px solid var(--line);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .bottom-nav a, .bottom-nav button {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 2px;
        color: var(--faint);
        font-size: .6rem;
        font-weight: 600;
        border-radius: 8px;
        transition: color .2s;
    }
    .bottom-nav a.active, .bottom-nav a:hover, .bottom-nav button:hover { color: #fff; }
    .bottom-nav a.active svg { color: var(--prime-2); }
    .bottom-nav svg { width: 21px; height: 21px; }
    .site-main { padding-bottom: 66px; }
    .site-footer { padding-bottom: 80px; }
    .hero { height: 72vh; min-height: 470px; }
    .hero-content { left: 18px; right: 18px; width: auto; bottom: 64px; }
    .hero-title { font-size: clamp(2.1rem, 9vw, 3rem); }
    .hero-desc { font-size: .8rem; -webkit-line-clamp: 3; margin-bottom: 18px; }
    .hero-actions { gap: 8px; }
    .hero-actions .btn { padding: 11px 18px; font-size: .8rem; }
    .hero-actions .btn-icon-round { width: 42px; height: 42px; }
    .section-head { padding: 0 18px; }
    .row-scroller { padding: 4px 18px 8px; gap: 8px; }
    .row-nav { display: none; }
    .card-title { font-size: .68rem; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 14px 9px; padding: 12px 18px 30px; }
    .top10-row .card { flex-basis: calc(var(--card-w) + 44px); width: calc(var(--card-w) + 44px); }
    .top10-row .rank { flex-basis: 50px; font-size: 76px; -webkit-text-stroke-width: 1.6px; }
    .page-head { padding: calc(var(--header-h) + 26px) 18px 6px; }
    .page-head.with-action { align-items: flex-start; flex-direction: column; gap: 12px; }
    .page-section { padding: 0 18px; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
    .chips { padding: 10px 18px 14px; }
    .footer-inner nav { margin-left: 0; }
    .overlay { padding: 0; }
    .detail-panel { border-radius: 0; min-height: 100%; width: 100%; }
    .dm-hero { min-height: 300px; }
    .dm-head { padding: 22px 18px 18px; }
    .dm-title { font-size: 1.8rem; }
    .dm-overview { font-size: .82rem; -webkit-line-clamp: 5; }
    .dm-tabs { padding: 0 18px; gap: 18px; overflow-x: auto; }
    .dm-body { padding: 18px; }
    .ep-row { gap: 10px; padding: 9px 4px; }
    .ep-thumb { width: 104px; }
    .ep-desc { -webkit-line-clamp: 1; }
    .profile-hero { padding: calc(var(--header-h) + 30px) 18px 10px; }
    .profile-avatar-xl { width: 88px; height: 88px; }
    .profile-cards { padding: 14px 18px; grid-template-columns: 1fr 1fr; gap: 9px; }
    .profile-profiles { padding: 0 18px; }
    .profile-footer-actions { padding: 18px 18px 0; }
    .ps-logo { position: static; margin-bottom: 22px; }
    .ps-grid { gap: 18px; }
    .ps-tile { width: 100px; }
    .ps-avatar { width: 92px; height: 92px; border-radius: 10px; }
    .ps-title { margin-bottom: 26px; }
    .ps-actions { margin-top: 30px; }
    .prof-tile { width: 82px; }
    .prof-tile .avatar { width: 74px; height: 74px; }
    .search-view .search-hero { padding: calc(var(--header-h) + 30px) 18px 8px; }
    .big-search { height: 50px; }
    .search-state { padding: 10px 18px; }
}

@media (max-width: 420px) {
    :root { --card-w: 118px; }
    .profile-cards { grid-template-columns: 1fr; }
    .dm-actions .btn { flex: 1; }
}

@media (hover: none) {
    .card-hover { opacity: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, transparent 45%); }
    .card-hover .card-hover-actions { transform: none; }
    .card-hover .icon-round { width: 29px; height: 29px; }
    .card-hover .card-hover-meta { display: none; }
    .card-title { -webkit-line-clamp: 1; }
}

/* ---------------------------------------------------------------- Menu lateral */
.nav-scrim {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(3, 7, 10, .68);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
}
.nav-scrim.open { opacity: 1; visibility: visible; }
.nav-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 151;
    width: min(310px, 86vw);
    padding: 20px 16px calc(22px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; overflow-y: auto;
    background: linear-gradient(180deg, #151515, #000000);
    border-right: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .55);
    transform: translateX(-105%);
    transition: transform .28s var(--ease);
}
.nav-drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; margin-bottom: 26px; }
.drawer-head .brand-text { font-size: 1.2rem; }
.drawer-head .brand-smile { width: 38px; height: 8px; }
.drawer-label { margin: 0 12px 8px; color: var(--faint); font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.drawer-link {
    display: flex; align-items: center; gap: 13px;
    padding: 12px 13px; border-radius: 10px;
    color: var(--muted); font-size: .88rem; font-weight: 600;
    transition: background .18s, color .18s;
}
.drawer-link svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--faint); }
.drawer-link:hover, .drawer-link.active { background: rgba(255, 94, 0, .11); color: #fff; }
.drawer-link.active svg { color: var(--prime-2); }
.drawer-link.danger { color: #ff8792; }
.drawer-sep { height: 1px; margin: 14px 12px; background: var(--line); }

/* No celular a barra inferior já navega: esconde o menu lateral. */
@media (max-width: 760px) {
    .menu-btn { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ================================================================
   ANIME v1 — cores medidas no Crunchyroll (site de anime real)
   fundo #000000 · superfície #151515 · texto #ffffff / #8c8c8c
   laranja de ação #ff5e00 / #ff7627 · ciano #00bfff · ouro #f5c518
   fonte DM Sans · cards 16:9 raio 4px · cara de portal de animes
   ================================================================ */
:root {
    --bg: #000000;
    --bg-2: #000000;
    --bg-3: #0d0d0f;
    --panel: #151515;
    --panel-2: #1c1c1e;
    --panel-3: #2a2a2c;
    --line: #2a2a2c;
    --line-2: #3a3a3d;
    --text: #ffffff;
    --text-2: #f2f2f2;
    --muted: #8c8c8c;
    --faint: #666666;
    --prime: #ff5e00;
    --prime-2: #ff7627;
    --prime-3: #cc4a00;
    --prime-soft: rgba(255, 94, 0, .16);
    --star: #f5c518;
    --card-w: 236px;
    --rail-w: 208px;
    --radius: 4px;
}
html, body, .app { background: var(--bg); }
body { color: var(--text); letter-spacing: 0; }

/* ---------- Cabeçalho: 60px, transparente sobre o hero ---------- */
.site-header {
    height: 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .68) 70%, rgba(0, 0, 0, 0) 100%);
    border: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.solid { background: rgba(0, 0, 0, .97); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { height: 60px; max-width: none; padding: 0 clamp(20px, 3vw, 48px); gap: 6px; }
.brand-text { font-size: 1.35rem; font-weight: 900; letter-spacing: -1.4px; }
.brand-text b { color: var(--prime); }
.brand-smile { width: 40px; height: 8px; color: var(--prime); }
.nav-link {
    background: none; border-radius: 0;
    padding: 0 12px;
    font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    color: #f2f2f2;
}
.nav-link:hover, .nav-link.active { background: none; color: #fff; }
.nav-link.active::after { height: 2px; left: 12px; right: 12px; bottom: 10px; background: var(--prime); }
.icon-btn, .profile-trigger { border-radius: 4px; }
.profile-trigger img { width: 32px; height: 32px; border-radius: 4px; }
.header-search { border-radius: 4px; background: #151515; border-color: #444444; }
.profile-dropdown { border-radius: 4px; border-color: var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .7); }

/* ---------- Navegação: apenas no topo ---------- */
@media (min-width: 761px) {
    .hero, .media-row, .page-head, .page-section, .search-hero, .profile-wrap { padding-left: clamp(24px, 3vw, 48px); }
}

/* ---------- Splash ---------- */
.splash { background: radial-gradient(ellipse 100% 70% at 50% 38%, #151515 0%, #000000 58%, #000000 100%); gap: 14px; }
.splash-glow {
    display: block; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 94, 0, .18), transparent 68%);
    filter: blur(22px); animation: pulseGlow 3.4s ease-in-out infinite;
}
.splash .brand-text { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -2.5px; }
.splash-bar { width: 170px; height: 2px; }
.splash-text { font-size: .68rem; letter-spacing: .08em; }

/* ---------- Hero ---------- */
.hero { height: min(80vh, 800px); min-height: 540px; }
.hero-bg { filter: none; }
.hero-shade {
    background:
        linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, .94) 26%, rgba(0, 0, 0, .42) 68%, rgba(0, 0, 0, .06) 100%),
        linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, .58) 24%, rgba(0, 0, 0, 0) 72%),
        linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 28%) !important;
}
.hero-content { left: clamp(24px, 3vw, 48px); bottom: clamp(44px, 8vh, 84px); width: min(600px, 62vw); }
.hero-badge {
    display: inline-block; border: 0; border-radius: 0; background: none; padding: 0;
    color: var(--prime-2); font-size: .75rem; font-weight: 700; letter-spacing: 0;
}
.hero-title {
    font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 700;
    letter-spacing: -.02em; line-height: 1.08;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.hero-meta { gap: 9px; color: #f2f2f2; font-size: .875rem; }
.hero-meta .pill { display: none; }
.hero-desc { max-width: 560px; color: #f2f2f2; font-size: .9375rem; line-height: 1.55; }
.hero-actions { gap: 10px; }
.btn-hero-play { background: var(--prime); color: #fff; border-radius: 6px; box-shadow: none; padding: 12px 24px; font-weight: 500; }
.btn-hero-play:hover { background: var(--prime-2); }
.btn-hero-info { background: rgba(255, 255, 255, .14); border: 1px solid #8c8c8c; color: #fff; border-radius: 6px; box-shadow: none; font-weight: 500; }
.hero-thumbs { right: clamp(14px, 2.5vw, 40px); }
.hero-thumb img { border-radius: 3px; object-position: center 18%; }
.hero-thumb.active { border-color: var(--prime); }

/* ---------- Fileiras e cards ---------- */
.media-row { margin-bottom: 30px; }
.section-head { padding: 0 clamp(24px, 3vw, 48px); margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.row-more { font-size: .8125rem; font-weight: 500; color: var(--prime-2); white-space: nowrap; opacity: 0; transition: opacity .18s; }
.row-more span { font-size: 1.05rem; line-height: 0; }
.media-row:hover .row-more, .row-more:focus-visible { opacity: 1; }
.row-scroller { gap: 10px; padding: 0 clamp(24px, 3vw, 48px); }
.card { width: var(--card-w); }
.card-poster {
    aspect-ratio: 16 / 9; border-radius: 4px; border: 0;
    background: #151515; box-shadow: none;
}
.card-poster img { border-radius: 4px; object-position: center 20%; }
.card-poster::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
    z-index: 2; pointer-events: none;
}
.card-poster::after {
    content: attr(data-title);
    position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 3;
    color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1.2;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .9);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    pointer-events: none;
}
.row-scroller .card-title, .row-scroller .card-sub { display: none; }
.card-badge { border-radius: 3px; background: rgba(0, 0, 0, .8); font-size: .6rem; color: var(--prime-2); top: 8px; left: 8px; }
.card-badge.serie { color: #00bfff; }
.card-hover { z-index: 4; background: linear-gradient(0deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .1) 70%); }
.card:hover .card-poster, .card:focus-visible .card-poster {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .6), 0 0 0 2px var(--prime);
}
.row-scroller .card:hover .card-hover, .row-scroller .card:focus-visible .card-hover { opacity: 1; }
.card-progress { z-index: 5; background: rgba(255, 255, 255, .3); }
.card-progress span { background: var(--prime); }
.card-progress-label { z-index: 5; }

/* Top 10: número vazado enorme sobre pôster vertical */
.top10-row .card { flex: 0 0 calc(var(--card-w) + 76px); width: calc(var(--card-w) + 76px); }
.top10-row .rank { flex: 0 0 76px; font-size: 5.5rem; font-weight: 700; -webkit-text-stroke: 2px rgba(255, 255, 255, .78); color: transparent; margin-right: -8px; }
.top10-row .card-poster { flex: 1; aspect-ratio: 2 / 3; }
.top10-row .card-poster::after { display: none; }

/* ---------- Grades, filtros, perfil ---------- */
.media-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 14px; padding: 0 clamp(24px, 3vw, 48px); }
.media-grid .card-poster { aspect-ratio: 16 / 9; }
.media-grid .card-title { margin-top: 7px; font-size: .8125rem; font-weight: 600; -webkit-line-clamp: 2; color: #f2f2f2; }
.cat-card, .cat-card img { border-radius: 4px; }
.chip { border: 1px solid #444444; border-radius: 4px; background: transparent; font-size: .8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.chip.active { background: #fff; color: #000000; border-color: #fff; }
.btn { border-radius: 6px; box-shadow: none !important; font-weight: 500; }
.profile-card { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.bottom-nav { background: rgba(0, 0, 0, .99); border-top: 1px solid var(--line); }
.bottom-nav a, .bottom-nav button { color: var(--muted); }
.bottom-nav a.active, .bottom-nav button.active { color: var(--prime); }
.footer { border-top-color: var(--line); }

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
    :root { --card-w: 200px; }
    .main-nav, .menu-btn { display: none !important; }
    .hero { height: 64vh; min-height: 440px; }
    .hero-content { left: 16px; right: 16px; bottom: 54px; width: auto; }
    .hero-title { font-size: 1.85rem; }
    .hero-desc { font-size: .84375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-meta { font-size: .75rem; }
    .section-head { padding: 0 16px; }
    .row-more { opacity: .85; }
    .row-scroller { padding: 0 16px; gap: 8px; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; }
    .top10-row .card { flex: 0 0 calc(var(--card-w) + 40px); width: calc(var(--card-w) + 40px); }
    .top10-row .rank { flex: 0 0 40px; font-size: 3.1rem; }
}
@media (max-width: 420px) {
    :root { --card-w: 176px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
