:root {
    color-scheme: dark;
    --bg: #070914;
    --bg-soft: #0b0e1b;
    --panel: #101321;
    --panel-2: #15182a;
    --panel-hover: #1b1f34;
    --line: rgba(255,255,255,.09);
    --line-strong: rgba(255,255,255,.16);
    --text: #f6f7fb;
    --muted: #a8adbd;
    --muted-2: #747b91;
    --purple: #7c3aed;
    --purple-2: #9a5bff;
    --purple-3: #5b21b6;
    --green: #39d98a;
    --yellow: #facc15;
    --danger: #fb7185;
    --sidebar: 168px;
    --topbar: 72px;
    --radius: 14px;
    --shadow: 0 24px 80px rgba(0,0,0,.38);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 42% -10%, rgba(124,58,237,.10), transparent 32rem),
        radial-gradient(circle at 88% 30%, rgba(59,130,246,.055), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 75%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 18px 14px 16px;
    background: linear-gradient(180deg, rgba(10,12,24,.98), rgba(8,10,20,.96));
    border-right: 1px solid var(--line);
    backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; height: 42px; padding: 3px 12px; margin-bottom: 20px; }
.brand img { width: 112px; transform: scale(1.2); transform-origin: left center; }
.sidebar-nav { display: grid; gap: 6px; }
.sidebar-spacer { flex: 1; min-height: 60px; }
.sidebar-nav-secondary { padding-top: 16px; border-top: 1px solid var(--line); }
.nav-item {
    position: relative;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    color: #d7d9e3;
    background: transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-item span { font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(124,58,237,.24), rgba(124,58,237,.10)); box-shadow: inset 0 0 0 1px rgba(149,96,255,.09); }
.nav-item.is-active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 4px 4px 0; background: var(--purple-2); }
.nav-button { text-align: left; }
.sidebar-cta { width: 100%; margin-top: 8px; }

.page-area { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    height: var(--topbar);
    display: grid;
    grid-template-columns: minmax(260px, 520px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 clamp(24px, 4vw, 50px);
    background: linear-gradient(180deg, rgba(8,10,21,.95), rgba(8,10,21,.86));
    border-bottom: 1px solid rgba(255,255,255,.055);
    backdrop-filter: blur(24px);
}
.mobile-brand { display: none; }
.global-search {
    position: relative;
    width: min(100%, 520px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    transition: border .2s ease, background .2s ease, box-shadow .2s ease;
}
.global-search:focus-within { background: rgba(255,255,255,.085); border-color: rgba(154,91,255,.45); box-shadow: 0 0 0 4px rgba(124,58,237,.10); }
.global-search input { width: 100%; height: 42px; padding: 0 52px 0 18px; color: var(--text); background: transparent; border: 0; outline: 0; }
.global-search input::placeholder { color: #9297a8; }
.global-search button { position: absolute; right: 5px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.global-search button:hover { background: rgba(255,255,255,.08); }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.text-link { font-weight: 650; }
.text-link:hover { color: var(--purple-2); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); font-weight: 650; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--purple), #4f46e5); font-weight: 800; }

.main-content { width: min(100%, 1500px); margin: 0 auto; padding: 16px clamp(24px, 4vw, 50px) 36px; }
.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, border .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: #fff; background: linear-gradient(135deg, #6d28d9, #8b35f8 60%, #6d28d9); box-shadow: 0 10px 28px rgba(124,58,237,.2); }
.button-primary:hover { filter: brightness(1.12); }
.button-secondary { color: #f5f3ff; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.17); }
.button-secondary:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.26); }
.button-ghost { background: transparent; border-color: transparent; color: #c5c8d6; }
.button-ghost:hover { background: rgba(255,255,255,.055); color: #fff; }
.button-large { min-height: 46px; padding: 0 20px; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.button-block { width: 100%; }
.button svg { width: 18px; height: 18px; }

.flash { position: relative; margin: 6px 0 16px; padding: 12px 16px; border: 1px solid; border-radius: 10px; }
.flash-success { color: #c9ffe1; border-color: rgba(57,217,138,.25); background: rgba(57,217,138,.10); }
.flash-error { color: #ffd2d9; border-color: rgba(251,113,133,.28); background: rgba(251,113,133,.10); }

.hero-section {
    min-height: 292px;
    display: grid;
    grid-template-columns: minmax(250px, .78fr) minmax(0, 2fr);
    align-items: center;
    gap: clamp(26px, 3.6vw, 58px);
    padding: 16px 0 28px;
    border-bottom: 1px solid rgba(255,255,255,.045);
}
.hero-copy { padding: 10px 0; }
.hero-kicker, .eyebrow { display: block; margin-bottom: 8px; color: #a78bfa; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; max-width: 470px; font-size: clamp(30px, 3.1vw, 45px); line-height: 1.08; letter-spacing: -.035em; }
.hero-copy h1 strong { color: #8b5cf6; font-weight: inherit; }
.hero-copy p { max-width: 430px; margin: 14px 0 20px; color: #b6bac8; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-carousel { min-width: 0; overflow: hidden; }
.hero-track { padding: 0 2px; gap: 10px!important; }
.hero-track .media-card { flex-basis: clamp(128px, 11vw, 158px); }
.hero-track .media-card-poster { aspect-ratio: .69; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: #484d5e; }
.carousel-dots .active { width: 18px; border-radius: 999px; background: var(--purple); }

.content-agenda-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; padding-top: 18px; }
.catalog-sections { min-width: 0; }
.catalog-section { padding: 14px 0 20px; border-bottom: 1px solid rgba(255,255,255,.055); }
.catalog-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.018em; }
.section-heading > a { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #aab0bf; border-radius: 50%; }
.section-heading > a:hover { color: #fff; background: rgba(255,255,255,.07); }
.carousel { position: relative; min-width: 0; }
.carousel-track { display: flex; gap: 10px; overflow-x: auto; padding: 1px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-inline: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.media-card { position: relative; flex: 0 0 130px; min-width: 0; scroll-snap-align: start; }
.media-card-poster { position: relative; display: block; overflow: hidden; aspect-ratio: .68; border-radius: 8px; background: #171a29; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.media-card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease, filter .3s ease; }
.media-card:hover .media-card-poster img { transform: scale(1.035); filter: brightness(1.04); }
.poster-scrim { position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(to top, rgba(2,3,9,.65), transparent); pointer-events: none; }
.media-card-info { padding: 6px 1px 0; }
.media-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.media-type { color: #c8cad3; font-size: 10px; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.07); white-space: nowrap; }
.media-rating { color: #dce0ea; font-size: 10px; white-space: nowrap; }
.media-rating span { color: var(--yellow); }
.media-card-title { display: -webkit-box; margin-top: 4px; overflow: hidden; color: #f2f3f6; font-size: 12px; font-weight: 650; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-add-button { position: absolute; top: 7px; right: 7px; width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #fff; background: rgba(6,8,17,.72); backdrop-filter: blur(10px); opacity: .9; cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.35); }
.card-add-button:hover, .card-add-button:focus-visible { background: var(--purple); border-color: rgba(255,255,255,.25); }
.card-add-button.has-status { color: #fff; background: rgba(124,58,237,.9); }
.card-add-button svg { width: 16px; height: 16px; }
.carousel-arrow { position: absolute; z-index: 5; top: 41%; width: 36px; height: 52px; display: grid; place-items: center; padding: 0; border: 0; color: #fff; background: rgba(7,9,20,.72); backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transition: opacity .2s; }
.carousel:hover .carousel-arrow, .carousel-arrow:focus-visible { opacity: 1; }
.carousel-arrow-left { left: -8px; border-radius: 0 10px 10px 0; }
.carousel-arrow-right { right: -8px; border-radius: 10px 0 0 10px; }
.carousel-arrow:disabled { opacity: 0!important; pointer-events: none; }

.agenda-panel { position: sticky; top: calc(var(--topbar) + 18px); align-self: start; margin-top: 14px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(180deg, rgba(14,16,29,.94), rgba(9,11,21,.94)); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.agenda-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.agenda-panel-header h2 { margin: 0; font-size: 18px; }
.agenda-panel-header a { color: #aa84ff; font-size: 11px; }
.mini-calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 7px 0 9px; }
.mini-calendar-header strong { font-size: 14px; }
.mini-calendar-header button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.mini-calendar-header button:hover { background: rgba(255,255,255,.06); }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.calendar-weekdays { margin-bottom: 4px; color: #9ba0b0; font-size: 10px; font-weight: 700; }
.calendar-days button, .calendar-days .empty { position: relative; height: 31px; padding: 0; border: 0; border-radius: 50%; color: #d8dbe4; background: transparent; font-size: 12px; cursor: pointer; }
.calendar-days button:hover { background: rgba(255,255,255,.06); }
.calendar-days button.selected { color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-2)); box-shadow: 0 6px 18px rgba(124,58,237,.35); }
.calendar-days button.has-event:not(.selected)::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--purple-2); transform: translateX(-50%); }
.agenda-day-card { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.agenda-date-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid var(--line); }
.agenda-date-summary > div { display: grid; justify-items: center; line-height: 1; }
.agenda-date-summary strong { font-size: 27px; }
.agenda-date-summary span { margin-top: 3px; color: #aab0c0; font-size: 9px; font-weight: 800; }
.agenda-date-summary p { margin: 0; color: #9ea3b2; font-size: 10px; }
.agenda-items { display: grid; }
.agenda-item { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.055); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-item img { width: 42px; height: 54px; object-fit: cover; border-radius: 5px; }
.agenda-item > div { min-width: 0; }
.agenda-item strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-item small { display: block; margin-top: 2px; color: #9ca1b1; font-size: 9px; }
.period-label { display: inline-flex; align-items: center; gap: 4px; color: #d8dae2; font-size: 9px; }
.period-label svg { width: 13px; height: 13px; color: #a855f7; }
.agenda-full-button { width: 100%; margin-top: 10px; }

.benefits-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 18px; padding: 17px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(90deg, rgba(12,14,26,.96), rgba(18,17,35,.90)); }
.benefits-strip article { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.benefits-strip article > span { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #9b6cff; background: rgba(124,58,237,.18); box-shadow: inset 0 0 0 1px rgba(154,91,255,.12); }
.benefits-strip h3 { margin: 1px 0 3px; font-size: 12px; }
.benefits-strip p { margin: 0; color: #aeb2c0; font-size: 10px; line-height: 1.5; }

.page-header-block { padding: 36px 0 20px; }
.page-header-block h1 { margin: 0; font-size: clamp(31px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.page-header-block > p:last-child { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.search-page-form { max-width: 820px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 7px 8px 7px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.045); }
.search-page-form > svg { color: #a9adbb; }
.search-page-form input { min-width: 0; height: 42px; padding: 0; color: #fff; background: transparent; border: 0; outline: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 22px 14px; padding: 26px 0; }
.media-grid .media-card { width: 100%; }
.media-grid .media-card-poster { aspect-ratio: .68; }
.media-grid .media-card-title { font-size: 13px; }
.empty-state { min-height: 360px; display: grid; place-items: center; align-content: center; justify-items: center; text-align: center; padding: 44px 20px; }
.empty-state > span { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: #a67aff; background: rgba(124,58,237,.15); }
.empty-state > span svg { width: 34px; height: 34px; }
.empty-state h1, .empty-state h2, .empty-state h3 { margin: 0 0 8px; }
.empty-state p { max-width: 460px; margin: 0 0 18px; color: var(--muted); }
.empty-state.compact { min-height: 270px; }
.page-not-found > span { width: auto; height: auto; color: #9a6cff; background: transparent; font-size: 82px; font-weight: 900; letter-spacing: -.08em; }

.detail-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; margin: -16px calc(clamp(24px, 4vw, 50px) * -1) 0; border-bottom: 1px solid var(--line); }
.detail-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(7,9,20,.98) 0%, rgba(7,9,20,.88) 38%, rgba(7,9,20,.42) 72%, rgba(7,9,20,.82) 100%), linear-gradient(to top, #070914 0%, transparent 55%), var(--detail-backdrop); background-size: cover; background-position: center 22%; filter: saturate(.78); transform: scale(1.035); }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 35% 40%, color-mix(in srgb, var(--detail-accent) 18%, transparent), transparent 38%); }
.detail-content { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 220px minmax(0,720px); align-items: end; gap: 32px; padding: 90px clamp(24px, 4vw, 50px) 46px; }
.detail-poster { width: 220px; aspect-ratio: .68; object-fit: cover; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.detail-copy h1 { max-width: 750px; margin: 0; font-size: clamp(38px, 5.2vw, 72px); line-height: .98; letter-spacing: -.052em; }
.original-title { margin: 9px 0 0; color: #aeb2bf; font-size: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.detail-meta > span { padding: 5px 9px; border-radius: 999px; color: #d9dce5; background: rgba(255,255,255,.08); font-size: 11px; }
.detail-meta .rating-pill { color: #fff7c0; background: rgba(250,204,21,.14); }
.detail-overview { max-width: 680px; margin: 0 0 20px; color: #c2c6d1; font-size: 15px; line-height: 1.7; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.current-status { margin: 12px 0 0; color: #b7bbca; }
.current-status strong { color: #c4a7ff; }
.detail-section { padding: 32px 0 12px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 10px; }
.cast-grid article { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.cast-grid strong, .cast-grid small { display: block; }
.cast-grid small { color: var(--muted); font-size: 11px; }

.status-sheet, .calendar-sheet { position: fixed; z-index: 101; left: 50%; bottom: 24px; width: min(430px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(180deg, #171a2c, #0e101d); box-shadow: var(--shadow); transform: translateX(-50%); }
.status-sheet[hidden], .calendar-sheet[hidden], .modal-backdrop[hidden] { display: none; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(2,3,8,.72); backdrop-filter: blur(7px); }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; }
.status-sheet h2, .calendar-sheet h2 { margin: 0 44px 18px 0; font-size: 25px; }
.status-options { display: grid; gap: 8px; }
.status-options > button { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; color: #fff; text-align: left; background: rgba(255,255,255,.035); cursor: pointer; }
.status-options > button:hover { background: rgba(124,58,237,.13); border-color: rgba(154,91,255,.3); }
.status-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #b58cff; background: rgba(124,58,237,.17); }
.status-icon-green { color: #75e6aa; background: rgba(57,217,138,.13); }
.status-options strong, .status-options small { display: block; }
.status-options small { margin-top: 2px; color: #9ea3b3; }
.calendar-sheet form, .auth-form { display: grid; gap: 15px; }
.calendar-sheet label, .auth-form label { display: grid; gap: 6px; color: #d6d9e2; font-size: 12px; font-weight: 700; }
.calendar-sheet input, .calendar-sheet textarea, .calendar-sheet select, .auth-form input { width: 100%; min-height: 44px; padding: 10px 12px; color: #fff; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: rgba(255,255,255,.045); }
.calendar-sheet textarea { resize: vertical; }
.calendar-sheet input:focus, .calendar-sheet textarea:focus, .calendar-sheet select:focus, .auth-form input:focus { border-color: rgba(154,91,255,.55); box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.calendar-sheet fieldset { margin: 0; padding: 0; border: 0; }
.calendar-sheet legend { margin-bottom: 8px; color: #d6d9e2; font-size: 12px; font-weight: 700; }
.period-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.period-options label { position: relative; display: block; }
.period-options input { position: absolute; opacity: 0; pointer-events: none; }
.period-options span { display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; }
.period-options small { color: #9297a8; font-size: 9px; }
.period-options input:checked + span { border-color: rgba(154,91,255,.55); background: rgba(124,58,237,.14); box-shadow: inset 0 0 0 1px rgba(154,91,255,.12); }

.auth-page .sidebar, .auth-page .topbar, .auth-page .mobile-bottom-nav { display: none; }
.auth-page .page-area { margin-left: 0; }
.auth-page .main-content { width: 100%; max-width: none; min-height: 100vh; padding: 0; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 520px) 1fr; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 6vw, 84px); background: rgba(7,9,20,.96); }
.auth-logo { width: 126px; margin-bottom: 42px; }
.auth-card h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; }
.auth-card > p:not(.eyebrow):not(.auth-switch) { margin: 9px 0 24px; color: var(--muted); }
.auth-form label small { color: #858b9d; font-size: 10px; font-weight: 500; }
.auth-switch { margin: 20px 0 0; color: #aeb2c0; text-align: center; }
.auth-switch a { color: #a77bff; font-weight: 700; }
.auth-visual { position: relative; display: grid; place-items: center; overflow: hidden; padding: 40px; background: radial-gradient(circle at 50% 45%, rgba(124,58,237,.4), transparent 24rem), linear-gradient(135deg, #12142c, #080913 55%, #180d2e); }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; width: 430px; height: 430px; border: 1px solid rgba(154,91,255,.18); border-radius: 50%; }
.auth-visual::after { width: 650px; height: 650px; border-color: rgba(154,91,255,.09); }
.auth-visual > div { position: relative; z-index: 2; text-align: center; }
.play-orbit { width: 96px; height: 96px; display: grid; place-items: center; margin: 0 auto 28px; padding-left: 7px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 0 0 16px rgba(124,58,237,.1), 0 20px 70px rgba(124,58,237,.38); font-size: 34px; }
.auth-visual h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.03; letter-spacing: -.05em; }
.auth-visual p { max-width: 500px; margin: 16px auto 0; color: #b7bbca; font-size: 16px; }
.form-errors { margin-bottom: 16px; padding: 12px 14px; color: #ffd4db; border: 1px solid rgba(251,113,133,.25); border-radius: 10px; background: rgba(251,113,133,.08); }
.form-errors ul { margin: 5px 0 0; padding-left: 18px; }

.filter-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.filter-tabs a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: #b9bdca; background: rgba(255,255,255,.025); font-weight: 650; }
.filter-tabs a.is-active { color: #fff; border-color: rgba(154,91,255,.42); background: rgba(124,58,237,.18); }
.saved-list { display: grid; gap: 10px; padding: 12px 0 30px; }
.saved-item { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.saved-item img { width: 74px; aspect-ratio: .68; object-fit: cover; border-radius: 7px; }
.saved-item h2 { margin: 5px 0 4px; font-size: 18px; }
.saved-item p { display: -webkit-box; max-width: 760px; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.saved-status { padding: 7px 10px; border-radius: 999px; color: #d7c8ff; background: rgba(124,58,237,.13); font-size: 11px; font-weight: 700; white-space: nowrap; }

.calendar-page-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; padding-bottom: 30px; }
.full-calendar-card, .month-agenda { border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(13,15,27,.82); }
.full-calendar-card > header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.full-calendar-card > header h2 { margin: 0; font-size: 20px; }
.full-calendar-card > header a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.full-calendar-card > header a:hover { background: rgba(255,255,255,.06); }
.full-calendar-weekdays, .full-calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.full-calendar-weekdays { padding: 10px 8px; color: #9197a8; text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.full-calendar-grid { border-top: 1px solid var(--line); }
.calendar-cell { position: relative; min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #d9dce5; text-align: left; background: transparent; cursor: pointer; }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell:hover { background: rgba(255,255,255,.035); }
.calendar-cell.is-empty { cursor: default; background: rgba(0,0,0,.08); }
.calendar-cell > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.calendar-cell.is-today > span { color: #fff; background: var(--purple); }
.calendar-cell small { color: #9d84df; font-size: 9px; }
.event-dots { display: flex; gap: 4px; }
.event-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8b5cf6; }
.month-agenda { align-self: start; padding: 16px; }
.month-agenda h2 { margin: 0 0 14px; font-size: 18px; }
.month-agenda-list { display: grid; gap: 8px; }
.month-agenda-list article { display: grid; grid-template-columns: 38px 44px minmax(0,1fr); align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.022); }
.agenda-date-box { display: grid; justify-items: center; line-height: 1; }
.agenda-date-box strong { font-size: 19px; }
.agenda-date-box span { margin-top: 3px; color: #a7acbb; font-size: 8px; font-weight: 800; }
.month-agenda-list img { width: 44px; height: 56px; object-fit: cover; border-radius: 5px; }
.month-agenda-list article > div:last-child { min-width: 0; }
.month-agenda-list article > div:last-child strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.month-agenda-list article > div:last-child small { color: #aa84ff; font-size: 9px; }
.small-empty { display: grid; justify-items: center; padding: 38px 12px; color: var(--muted); text-align: center; }
.small-empty svg { width: 34px; height: 34px; margin-bottom: 10px; color: #9b6cff; }

.toast-region { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 11px; color: #fff; background: rgba(18,21,36,.96); box-shadow: 0 18px 50px rgba(0,0,0,.38); animation: toast-in .25s ease both; }
.toast.is-error { border-color: rgba(251,113,133,.35); }
.toast svg { flex: 0 0 auto; color: #9f78ff; }
.toast.is-error svg { color: #fb7185; }
.toast.is-recommendation-loading { align-items: center; border-color: rgba(212,175,55,.36); }
.toast.is-recommendation-loading::before { content: ''; width: 17px; height: 17px; flex: 0 0 auto; border: 2px solid rgba(212,175,55,.25); border-top-color: var(--gold); border-radius: 50%; animation: praver-spin .75s linear infinite; }
@keyframes praver-spin { to { transform: rotate(360deg); } }
.cookie-confirmation { position: fixed; z-index: 260; left: 50%; bottom: 20px; width: min(720px, calc(100vw - 32px)); transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--text); background: rgba(18,21,36,.98); box-shadow: 0 20px 60px rgba(0,0,0,.46); }
.cookie-confirmation[hidden] { display: none; }
.cookie-confirmation div { min-width: 0; flex: 1; }
.cookie-confirmation strong { display: block; margin-bottom: 4px; }
.cookie-confirmation p { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cookie-confirmation a { color: var(--purple-2); font-size: 12px; font-weight: 750; }
.cookie-confirmation .button { flex: 0 0 auto; }
@media (max-width: 600px) { .cookie-confirmation { bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; gap: 11px; } .cookie-confirmation .button { width: 100%; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.mobile-bottom-nav { display: none; }

@media (max-width: 1220px) {
    .content-agenda-grid { grid-template-columns: minmax(0,1fr) 292px; gap: 24px; }
    .benefits-strip { grid-template-columns: repeat(2,1fr); }
    .hero-section { grid-template-columns: minmax(250px,.85fr) minmax(0,1.65fr); }
    .hero-track .media-card:nth-child(n+5) { display: none; }
}

@media (max-width: 1040px) {
    :root { --sidebar: 78px; }
    .sidebar { padding-inline: 10px; }
    .brand { justify-content: center; padding-inline: 0; }
    .brand img { width: 48px; object-position: left; object-fit: cover; transform: none; }
    .nav-item { justify-content: center; padding: 0; }
    .nav-item span, .sidebar-cta, .sidebar-nav-secondary form .nav-item span { display: none; }
    .sidebar-cta { display: none; }
    .content-agenda-grid { grid-template-columns: 1fr; }
    .agenda-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .agenda-panel-header, .agenda-full-button { grid-column: 1/-1; }
    .agenda-day-card { margin-top: 0; }
    .hero-section { grid-template-columns: .8fr 1.6fr; }
    .hero-track .media-card:nth-child(n+4) { display: none; }
    .calendar-layout { grid-template-columns: 1fr; }
    .month-agenda { order: -1; }
}

@media (max-width: 760px) {
    :root { --topbar: auto; }
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); background: #080a15; }
    body::before { display: none; }
    .sidebar { display: none; }
    .page-area { margin-left: 0; }
    .topbar { position: relative; height: auto; grid-template-columns: 1fr auto; gap: 12px; padding: 20px 16px 12px; border-bottom: 0; background: transparent; backdrop-filter: none; }
    .mobile-brand { display: block; width: 112px; }
    .global-search { grid-column: 1/-1; grid-row: 2; width: 100%; order: 3; }
    .global-search input { height: 43px; }
    .global-search button { color: #fff; background: linear-gradient(135deg, var(--purple), #8b5cf6); }
    .topbar-actions { grid-column: 2; grid-row: 1; gap: 8px; }
    .topbar-actions .text-link, .topbar-actions > .button { display: none; }
    .user-chip span:last-child { display: none; }
    .user-chip { padding: 3px; border: 0; background: transparent; }
    .main-content { width: 100%; padding: 4px 16px 20px; }
    .hero-section { display: block; min-height: 0; padding: 8px 0 20px; border: 0; }
    .hero-copy { display: none; }
    .hero-carousel { overflow: visible; }
    .hero-track { margin-right: -16px; gap: 9px!important; }
    .hero-track .media-card, .hero-track .media-card:nth-child(n) { display: block; flex-basis: 112px; }
    .hero-track .media-card-title { display: none; }
    .hero-track .media-card-info { padding-top: 4px; }
    .hero-track .media-card-poster { border-radius: 8px; }
    .carousel-dots { display: none; }
    .content-agenda-grid { display: block; padding-top: 0; }
    .catalog-section { padding: 14px 0 12px; }
    .section-heading h2 { font-size: 17px; }
    .carousel { margin-right: -16px; }
    .carousel-track { padding-right: 16px; gap: 9px; }
    .media-card { flex-basis: 112px; }
    .media-card-title { font-size: 11px; }
    .carousel-arrow { display: none; }
    .card-add-button { width: 29px; height: 29px; top: 6px; right: 6px; opacity: 1; }
    .agenda-panel { display: block; margin: 17px 0 6px; padding: 14px; }
    .agenda-panel .mini-calendar { overflow: hidden; }
    .calendar-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
    .calendar-weekdays, .calendar-days .empty, .calendar-days button:nth-child(n+15) { display: none; }
    .calendar-days button { flex: 0 0 42px; width: 42px; height: 42px; }
    .mini-calendar-header { justify-content: flex-start; gap: 4px; }
    .mini-calendar-header button { display: none; }
    .agenda-date-summary { grid-template-columns: auto 1fr; }
    .agenda-date-summary .button { display: none; }
    .agenda-full-button { display: none; }
    .benefits-strip { display: none; }
    .mobile-bottom-nav { position: fixed; z-index: 80; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,1fr); padding: 8px 7px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); background: rgba(9,11,21,.96); backdrop-filter: blur(20px); }
    .mobile-bottom-nav a { display: grid; place-items: center; gap: 2px; color: #a1a6b5; font-size: 9px; }
    .mobile-bottom-nav svg { width: 22px; height: 22px; }
    .mobile-bottom-nav a.is-active { color: #9f6fff; }
    .page-header-block { padding: 22px 0 16px; }
    .page-header-block h1 { font-size: 33px; }
    .page-header-block > p:last-child { font-size: 13px; }
    .search-page-form { grid-template-columns: auto 1fr; padding-right: 10px; }
    .search-page-form .button { grid-column: 1/-1; }
    .media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 8px; padding-top: 18px; }
    .media-grid .media-card-title { font-size: 10px; }
    .media-grid .media-type, .media-grid .media-rating { font-size: 8px; }
    .detail-hero { min-height: auto; margin: -4px -16px 0; align-items: stretch; }
    .detail-backdrop { height: 320px; background-image: linear-gradient(to bottom, rgba(7,9,20,.15), #070914 90%), var(--detail-backdrop); background-position: center top; }
    .detail-content { grid-template-columns: 112px minmax(0,1fr); align-items: end; gap: 14px; padding: 220px 16px 28px; }
    .detail-poster { width: 112px; }
    .detail-copy h1 { font-size: 31px; }
    .detail-copy .original-title { display: none; }
    .detail-meta { gap: 5px; margin: 9px 0; }
    .detail-meta > span { padding: 3px 7px; font-size: 9px; }
    .detail-overview { grid-column: 1/-1; font-size: 13px; }
    .detail-actions { grid-column: 1/-1; }
    .detail-actions .button { flex: 1 1 calc(50% - 5px); min-width: 120px; padding-inline: 10px; }
    .cast-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .status-sheet, .calendar-sheet { bottom: 0; width: 100%; max-height: 90vh; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
    .toast-region { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
    .auth-page { padding-bottom: 0; }
    .auth-layout { display: block; min-height: 100vh; }
    .auth-card { min-height: 100vh; padding: 30px 22px; justify-content: center; }
    .auth-logo { margin-bottom: 34px; }
    .auth-visual { display: none; }
    .saved-item { grid-template-columns: 62px minmax(0,1fr); }
    .saved-item img { width: 62px; }
    .saved-item p { display: none; }
    .saved-status { grid-column: 2; justify-self: start; }
    .calendar-page-header { display: block; }
    .calendar-page-header .button { width: 100%; margin-top: 14px; }
    .full-calendar-weekdays { padding-inline: 0; }
    .calendar-cell { min-height: 65px; padding: 5px; }
    .calendar-cell small { display: none; }
    .full-calendar-card > header h2 { font-size: 17px; }
}

@media (max-width: 430px) {
    .media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .media-grid .media-card-info { padding-top: 4px; }
    .media-grid .media-card-title { -webkit-line-clamp: 1; }
    .period-options { grid-template-columns: 1fr 1fr; }
    .detail-content { grid-template-columns: 96px minmax(0,1fr); }
    .detail-poster { width: 96px; }
    .detail-copy h1 { font-size: 27px; }
}

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

.static-content { max-width: 840px; padding: 48px 0 70px; }
.static-content h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; }
.static-lead { max-width: 650px; margin: 12px 0 28px; color: var(--muted); font-size: 17px; }
.static-sections { display: grid; gap: 12px; }
.static-sections article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.028); }
.static-sections h2 { margin: 0 0 6px; font-size: 18px; }
.static-sections p { margin: 0; color: #b8bdca; line-height: 1.7; }
.static-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; color: #a98aff; font-weight: 700; }

/* Catálogo TMDB — v1.1 */
.catalog-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 8px 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(154,91,255,.25);
    border-radius: 12px;
    background: rgba(124,58,237,.09);
}
.catalog-notice-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #c4b5fd;
    background: rgba(124,58,237,.18);
}
.catalog-notice strong { display: block; margin-bottom: 2px; }
.catalog-notice p { margin: 0; color: #b8bdca; font-size: 13px; }
.catalog-notice code { color: #ddd6fe; }
.catalog-notice-error { border-color: rgba(251,113,133,.28); background: rgba(251,113,133,.08); }
.catalog-notice-error .catalog-notice-icon { color: #fecdd3; background: rgba(251,113,133,.14); }

.hero-catalog-placeholder {
    min-height: 230px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 28px;
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    background: rgba(255,255,255,.02);
}
.hero-catalog-placeholder svg { width: 38px; height: 38px; margin-bottom: 10px; color: #9f78ff; }
.hero-catalog-placeholder strong { color: #fff; }
.hero-catalog-placeholder p { max-width: 430px; margin: 6px 0 0; }

.agenda-empty {
    display: grid;
    justify-items: center;
    padding: 30px 14px 18px;
    text-align: center;
}
.agenda-empty > span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    color: #aa84ff;
    background: rgba(124,58,237,.14);
}
.agenda-empty p { max-width: 250px; margin: 5px 0 14px; color: var(--muted); font-size: 12px; }

.catalog-page-heading { max-width: 850px; }
.catalog-filter-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.028);
}
.catalog-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.catalog-search-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}
.catalog-search-field:focus-within { border-color: rgba(154,91,255,.5); box-shadow: 0 0 0 4px rgba(124,58,237,.09); }
.catalog-search-field svg { flex: 0 0 auto; margin-left: 14px; color: #a9adbb; }
.catalog-search-field input { width: 100%; min-width: 0; height: 46px; padding: 0 14px 0 10px; color: #fff; border: 0; outline: 0; background: transparent; }
.catalog-filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.catalog-filter-grid label { display: grid; gap: 6px; min-width: 0; }
.catalog-filter-grid label > span { color: #c7cad5; font-size: 11px; font-weight: 750; }
.catalog-filter-grid select,
.catalog-filter-grid input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #fff;
    background: #111522;
    outline: 0;
}
.catalog-filter-grid select:focus,
.catalog-filter-grid input:focus { border-color: rgba(154,91,255,.5); }
.catalog-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-type-chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.catalog-type-chips::-webkit-scrollbar { display: none; }
.catalog-type-chips a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #c0c4d0;
    background: rgba(255,255,255,.025);
    font-size: 12px;
    font-weight: 700;
}
.catalog-type-chips a:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.catalog-type-chips a.is-active { color: #fff; border-color: rgba(154,91,255,.42); background: rgba(124,58,237,.18); }
.catalog-results-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; color: var(--muted); font-size: 12px; }
.catalog-results-summary p { margin: 0; }
.catalog-results-summary strong { color: #fff; }
.catalog-media-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.catalog-pagination { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 22px 0 36px; }
.pagination-arrow { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); font-size: 12px; font-weight: 700; }
.pagination-arrow:hover { border-color: rgba(154,91,255,.38); background: rgba(124,58,237,.10); }
.pagination-arrow.is-disabled { opacity: .4; pointer-events: none; }
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: 5px; }
.pagination-pages a,
.pagination-pages span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #bfc3cf; }
.pagination-pages a { border: 1px solid transparent; }
.pagination-pages a:hover { border-color: var(--line); background: rgba(255,255,255,.04); color: #fff; }
.pagination-pages a.is-active { color: #fff; border-color: rgba(154,91,255,.4); background: rgba(124,58,237,.2); }

@media (max-width: 980px) {
    .catalog-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .catalog-notice { grid-template-columns: auto 1fr; padding: 12px; }
    .catalog-notice > .button { grid-column: 1/-1; width: 100%; }
    .hero-without-catalog .hero-copy { display: block; }
    .hero-without-catalog .hero-catalog-placeholder { display: none; }
    .catalog-filter-panel { padding: 14px; }
    .catalog-search-row { grid-template-columns: 1fr; }
    .catalog-search-row .button { width: 100%; }
    .catalog-filter-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .catalog-filter-actions .button { flex: 1; }
    .catalog-results-summary { display: block; }
    .catalog-results-summary span { display: block; margin-top: 4px; }
    .catalog-media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .catalog-pagination { grid-template-columns: auto 1fr auto; gap: 6px; }
    .pagination-arrow { width: 40px; padding: 0; }
    .pagination-arrow span { display: none; }
    .pagination-pages a,
    .pagination-pages span { min-width: 32px; height: 34px; font-size: 11px; }
}

@media (max-width: 430px) {
    .catalog-filter-grid { grid-template-columns: 1fr; }
    .catalog-media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .pagination-pages a:nth-of-type(n+5) { display: none; }
}

/* Catálogo textual e sem imagens — base da v1.4 */
.hero-text-catalog { align-items: stretch; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.hero-search-form { display: flex; gap: 10px; max-width: 720px; margin-top: 26px; }
.hero-search-form label { flex: 1; }
.hero-search-form input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; background: rgba(255,255,255,.055); outline: none; }
.hero-search-form input:focus { border-color: var(--accent, #7c3aed); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.hero-library-summary { display: flex; flex-direction: column; justify-content: center; min-height: 320px; padding: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: linear-gradient(145deg, rgba(124,58,237,.13), rgba(255,255,255,.025)); }
.hero-library-summary > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 17px; color: #b99cff; background: rgba(124,58,237,.18); }
.hero-library-summary > span svg { width: 27px; height: 27px; }
.hero-library-summary strong { font-size: 1.35rem; }
.hero-library-summary p { color: var(--muted); line-height: 1.6; }
.hero-library-summary ul { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero-library-summary li::before { content: "✓"; margin-right: 9px; color: #9d73ff; }

.media-card-text { min-width: 255px; min-height: 265px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); overflow: hidden; }
.media-card-symbol { min-height: 88px; display: flex; align-items: center; gap: 14px; padding: 18px; color: #fff; text-decoration: none; background: linear-gradient(130deg, rgba(124,58,237,.26), rgba(68,40,160,.08)); }
.media-card-symbol > span { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; font-size: 1.55rem; font-weight: 800; background: rgba(7,9,20,.44); }
.media-card-symbol small { color: rgba(255,255,255,.75); font-weight: 600; }
.media-card-text .media-card-info { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.media-card-text .media-card-title { margin-top: 8px; font-size: 1.05rem; line-height: 1.3; }
.media-card-description { display: -webkit-box; margin: 10px 0 0; overflow: hidden; color: var(--muted); font-size: .86rem; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.media-card-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 15px; }
.media-card-genres span, .media-source { padding: 4px 7px; border-radius: 999px; color: #bdb6cf; background: rgba(255,255,255,.055); font-size: .68rem; }
.media-card-text .card-add-button { top: 12px; right: 12px; }
.text-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.text-catalog-grid .media-card-text { min-width: 0; }
.local-catalog-empty { margin-top: 24px; }
.agenda-items-text .agenda-item { grid-template-columns: auto 1fr auto; }
.agenda-title-symbol, .saved-letter { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #c5adff; font-weight: 800; background: rgba(124,58,237,.18); text-decoration: none; }

.detail-text-only { min-height: auto; padding: 64px 0 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.detail-text-only .detail-content { position: relative; align-items: flex-start; max-width: 980px; }
.detail-letter { width: 150px; height: 150px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; color: #c4aaff; font-size: 4rem; font-weight: 900; background: linear-gradient(145deg, rgba(124,58,237,.26), rgba(255,255,255,.025)); }
.detail-source-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 18px 0 24px; color: var(--muted); font-size: .88rem; }
.detail-source-row a { color: #b796ff; }
.detail-data-note { max-width: 980px; }
.saved-list-text .saved-item { grid-template-columns: auto 1fr auto; }
.saved-list-text h2 a { color: inherit; text-decoration: none; }
.custom-media-form { display: grid; gap: 20px; max-width: 900px; padding: 26px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.025); }
.custom-media-form label { display: grid; gap: 8px; color: #ddd8e8; }
.custom-media-form input, .custom-media-form select, .custom-media-form textarea { width: 100%; padding: 12px 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: #fff; background: #111421; }
.custom-media-form small { color: var(--muted); }
.form-grid { display: grid; gap: 18px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .hero-text-catalog { grid-template-columns: 1fr; }
    .hero-library-summary { min-height: 0; }
    .detail-text-only .detail-content { display: grid; grid-template-columns: auto 1fr; gap: 22px; }
    .detail-letter { width: 100px; height: 100px; font-size: 2.7rem; border-radius: 20px; }
}
@media (max-width: 620px) {
    .hero-search-form { flex-direction: column; }
    .hero-search-form .button { width: 100%; }
    .media-card-text { min-width: 235px; }
    .text-catalog-grid { grid-template-columns: 1fr; }
    .detail-text-only { padding-top: 22px; }
    .detail-text-only .detail-content { grid-template-columns: 1fr; }
    .detail-letter { width: 76px; height: 76px; font-size: 2rem; }
    .form-grid.two-columns { grid-template-columns: 1fr; }
    .saved-list-text .saved-item { grid-template-columns: auto 1fr; }
    .saved-list-text .saved-status { grid-column: 1 / -1; justify-self: start; }
}

/* Ajustes de busca, progresso e conta — v1.4 */
:root {
    --gold: #d6a51d;
    --gold-bright: #f0c64a;
    --gold-dark: #9a6b00;
    --gold-soft: rgba(214,165,29,.16);
}

/* Busca: o amarelo-ouro passa a identificar pesquisa, filtros ativos e inclusão. */
.search-page .catalog-search-field:focus-within,
.search-page .catalog-filter-grid select:focus,
.search-page .catalog-filter-grid input:focus {
    border-color: rgba(240,198,74,.68);
    box-shadow: 0 0 0 4px rgba(214,165,29,.12);
}
.search-page .catalog-search-field > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.search-page .button-primary,
.status-sheet [data-save-series-progress] {
    color: #171109;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-bright) 58%, #bd8610);
    box-shadow: 0 10px 28px rgba(214,165,29,.18);
}
.search-page .button-primary:hover,
.status-sheet [data-save-series-progress]:hover { filter: brightness(1.08); }
.search-page .catalog-type-chips a.is-active {
    color: #fff7dc;
    border-color: rgba(240,198,74,.58);
    background: rgba(214,165,29,.18);
}
.search-page .pagination-arrow:hover {
    border-color: rgba(240,198,74,.42);
    background: rgba(214,165,29,.10);
}
.card-add-button {
    color: #1a1307;
    border-color: rgba(255,225,126,.72);
    background: linear-gradient(145deg, var(--gold-bright), #c8900f);
    box-shadow: 0 7px 22px rgba(214,165,29,.25);
}
.card-add-button:hover,
.card-add-button:focus-visible,
.card-add-button.has-status {
    color: #130e05;
    border-color: #ffe39a;
    background: linear-gradient(145deg, #ffe087, var(--gold));
}

/* Progresso de séries. */
.series-progress-panel { display: grid; gap: 15px; }
.series-progress-panel[hidden] { display: none; }
.progress-back {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    color: #d9c98f;
    background: transparent;
    cursor: pointer;
}
.progress-back:hover { color: #fff1bd; }
.progress-back svg { width: 17px; height: 17px; }
.progress-intro strong { font-size: 16px; }
.progress-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.progress-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.progress-fields label { display: grid; gap: 6px; color: #e5e0d2; font-size: 12px; font-weight: 700; }
.progress-fields select {
    width: 100%;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid rgba(240,198,74,.28);
    border-radius: 9px;
    color: #fff;
    background: #111421;
    outline: none;
}
.progress-fields select:focus { border-color: rgba(240,198,74,.72); box-shadow: 0 0 0 4px rgba(214,165,29,.10); }
.progress-summary {
    padding: 11px 12px;
    border: 1px solid rgba(240,198,74,.22);
    border-radius: 10px;
    color: #eadcae;
    background: rgba(214,165,29,.08);
    font-size: 12px;
    line-height: 1.5;
}
.status-options > button:hover { background: rgba(214,165,29,.10); border-color: rgba(240,198,74,.32); }
.status-icon { color: #f2cc55; background: rgba(214,165,29,.14); }
.current-progress {
    max-width: 680px;
    margin: 10px 0 0;
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    color: #c9c4b5;
    background: rgba(214,165,29,.07);
    font-size: 12px;
}
.current-progress strong { color: #ffe28a; }
.saved-progress {
    display: block !important;
    margin-top: 8px !important;
    color: #d7c893 !important;
    -webkit-line-clamp: unset !important;
}
.saved-progress strong { color: #ffe28a; }

/* Configurações da conta. */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 40px; }
.settings-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}
.settings-card > header { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.settings-card h2 { margin: 0; font-size: 20px; }
.settings-card header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.settings-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #f0c64a;
    background: rgba(214,165,29,.12);
}
.settings-form { display: grid; gap: 14px; }
.settings-form label { display: grid; gap: 6px; color: #d9dbe3; font-size: 12px; font-weight: 700; }
.settings-form label small { color: var(--muted); font-weight: 500; }
.settings-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: #fff;
    background: #111421;
    outline: none;
}
.settings-form input:focus { border-color: rgba(240,198,74,.62); box-shadow: 0 0 0 4px rgba(214,165,29,.09); }
.danger-zone { border-color: rgba(251,113,133,.22); }
.danger-zone .settings-icon { color: #ff9eac; background: rgba(251,113,133,.10); }
.button-danger { color: #fff; border-color: rgba(251,113,133,.35); background: rgba(190,24,54,.78); }
.button-danger:hover { background: rgba(225,29,72,.88); }

@media (max-width: 780px) {
    .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
    .progress-fields { grid-template-columns: 1fr 1fr; }
}

/* Evolução de listas, agenda e sugestões — v1.5 */
:root {
    --gold: #D4AF37;
    --gold-hover: #E2BF4B;
    --gold-dark-text: #171207;
    --gold-soft: rgba(212,175,55,.14);
}

/* Dourado sólido: sem gradientes. */
.search-page .button-primary,
.search-page .catalog-type-chips a.is-active,
.search-page .card-add-button,
.suggestion-card .card-add-button,
.status-sheet [data-save-series-progress] {
    color: var(--gold-dark-text);
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 8px 22px rgba(212,175,55,.20);
}
.search-page .button-primary:hover,
.search-page .catalog-type-chips a.is-active:hover,
.search-page .card-add-button:hover,
.search-page .card-add-button:focus-visible,
.search-page .card-add-button.has-status,
.suggestion-card .card-add-button:hover,
.suggestion-card .card-add-button:focus-visible,
.suggestion-card .card-add-button.has-status,
.status-sheet [data-save-series-progress]:hover {
    color: var(--gold-dark-text);
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    filter: none;
}
.search-page .catalog-type-chips a.is-active { box-shadow: none; }

/* Seletor de lista no painel de inclusão. */
.status-list-picker { display: grid; gap: 7px; margin: 14px 0 16px; color: #f4f1e8; font-size: 12px; font-weight: 800; }
.status-list-picker select {
    width: 100%; min-height: 46px; padding: 10px 12px;
    border: 1px solid rgba(212,175,55,.48); border-radius: 10px;
    color: #fff; background: #0c0f1b;
}
.status-list-picker select option { color: #111; background: #fff; }
.status-list-required { margin: 16px 0; padding: 16px; border: 1px solid rgba(212,175,55,.28); border-radius: 12px; background: rgba(212,175,55,.07); }
.status-list-required strong { color: #f4d671; }
.status-list-required p { margin: 6px 0 13px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Início personalizado. */
.personal-empty-home {
    min-height: calc(100vh - var(--topbar) - 54px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    align-items: center; gap: 52px; padding: 52px 4vw;
}
.personal-empty-copy h1 { max-width: 720px; margin: 8px 0 18px; font-size: clamp(38px, 5vw, 70px); line-height: 1.02; }
.personal-empty-copy h1 strong { color: var(--purple-2); }
.personal-empty-copy > p { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.personal-empty-art { color: #c8cbd5; opacity: .72; }
.personal-empty-art svg { width: 100%; height: auto; }
.personalized-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.user-list-home-section { padding-left: 14px; border-left: 4px solid var(--list-color); }
.user-list-heading h2::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 50%; background: var(--list-color); }
.user-list-heading > a { display: inline-flex; align-items: center; gap: 3px; }
.user-list-heading > a svg { width: 15px; height: 15px; }

/* Minhas Listas. */
.lists-page-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.list-create-card { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); gap: 28px; margin-bottom: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.list-create-card h2 { margin: 0 0 6px; }
.list-create-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.list-create-form { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: end; gap: 12px; }
.list-create-form label, .list-edit-form label, .move-item-form label { display: grid; gap: 6px; color: #dfe1e8; font-size: 12px; font-weight: 800; }
.list-create-form input[type="text"], .list-edit-form input[type="text"], .move-item-form select {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: #fff; background: #10131f;
}
.color-field input[type="color"], .list-edit-form input[type="color"] { width: 58px; height: 44px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9px; background: #10131f; cursor: pointer; }
.user-lists-stack { display: grid; gap: 22px; padding-bottom: 38px; }
.user-list-card { overflow: visible; border: 1px solid var(--line); border-left: 5px solid var(--list-color); border-radius: 16px; background: rgba(255,255,255,.022); }
.user-list-card-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.user-list-card-header > div:first-child { display: flex; align-items: center; gap: 12px; }
.list-color-dot { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; background: var(--list-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--list-color) 20%, transparent); }
.user-list-card-header h2 { margin: 0; font-size: 21px; }
.user-list-card-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.list-actions-details { position: relative; }
.list-actions-details summary { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #fff; background: #0c0f1a; cursor: pointer; list-style: none; }
.list-actions-details summary::-webkit-details-marker { display: none; }
.list-actions-details summary svg { width: 18px; height: 18px; }
.list-actions-popover { position: absolute; z-index: 30; top: 46px; right: 0; width: min(330px, calc(100vw - 48px)); display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #111421; box-shadow: var(--shadow); }
.list-edit-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.list-edit-form .button { grid-column: 1 / -1; }
.list-items-grid { display: grid; gap: 1px; background: var(--line); }
.list-item-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 16px 18px; background: #0b0e18; }
.list-item-main h3 { margin: 4px 0 7px; font-size: 17px; }
.list-item-main h3 a { color: #fff; text-decoration: none; }
.list-item-main .saved-status { display: inline-flex; }
.list-item-overview { max-width: 750px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.list-item-actions { display: flex; align-items: end; gap: 10px; }
.move-item-form { display: flex; align-items: end; gap: 8px; }
.move-item-form select { min-width: 160px; }
.icon-danger-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(251,113,133,.30); border-radius: 10px; color: #ff9eac; background: rgba(190,24,54,.12); cursor: pointer; }
.icon-danger-button:hover { background: rgba(190,24,54,.28); }
.icon-danger-button svg { width: 18px; height: 18px; }
.list-inline-empty { display: flex; align-items: center; gap: 14px; padding: 22px; }
.list-inline-empty > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--list-color); background: color-mix(in srgb, var(--list-color) 13%, transparent); }
.list-inline-empty > span svg { width: 22px; height: 22px; }
.list-inline-empty > div { flex: 1; }
.list-inline-empty p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

/* Calendário: títulos legíveis e editáveis. */
.calendar-sheet select,
.calendar-sheet select option { color: #111; background: #fff; }
.calendar-sheet select { min-height: 46px; border-color: rgba(255,255,255,.28); }
.full-calendar-grid .calendar-cell { position: relative; min-height: 124px; display: flex; flex-direction: column; padding: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.calendar-day-button { align-self: flex-start; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #dfe1e8; background: transparent; cursor: pointer; }
.calendar-day-button:hover { color: #fff; background: rgba(255,255,255,.08); }
.calendar-cell.is-today .calendar-day-button { color: #fff; background: var(--purple); }
.calendar-day-events { display: grid; gap: 5px; margin-top: 4px; }
.calendar-event-title { width: 100%; padding: 6px 7px; overflow: hidden; border: 0; border-radius: 6px; color: #171207; background: var(--gold); font-size: 10px; font-weight: 900; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.calendar-event-title:hover { background: var(--gold-hover); }
.calendar-more-items { padding-left: 4px; color: #d8c884; font-size: 10px; }
.month-agenda-entry { width: 100%; display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid transparent; border-radius: 10px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.month-agenda-entry:hover { border-color: rgba(212,175,55,.28); background: rgba(212,175,55,.06); }
.month-agenda-entry > div:nth-of-type(2) strong { color: var(--gold); }
.month-entry-chevron { width: 17px; height: 17px; color: var(--muted); }
.calendar-edit-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 6px; }

/* Sugestões recentes: aparência distinta dos resultados. */
.recent-suggestions { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.suggestions-heading { align-items: end; }
.suggestions-heading h2 { margin: 3px 0 4px; }
.suggestions-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.suggestions-carousel { position: relative; }
.suggestions-track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.suggestion-card { position: relative; min-width: 285px; max-width: 285px; min-height: 148px; display: grid; grid-template-columns: 54px 1fr; gap: 13px; align-items: start; padding: 17px; border: 1px solid rgba(212,175,55,.34); border-radius: 13px; background: #17150f; scroll-snap-align: start; }
.suggestion-symbol { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(212,175,55,.35); border-radius: 13px; color: var(--gold); background: rgba(212,175,55,.08); font-size: 24px; font-weight: 900; text-decoration: none; }
.suggestion-copy { padding-right: 24px; }
.suggestion-copy > span, .suggestion-copy small { color: #bdb596; font-size: 10px; }
.suggestion-copy h3 { margin: 6px 0 8px; font-size: 15px; line-height: 1.25; }
.suggestion-copy h3 a { color: #fff; text-decoration: none; }
.suggestion-card .card-add-button { top: 10px; right: 10px; }

@media (max-width: 980px) {
    .personal-empty-home { grid-template-columns: 1fr; min-height: auto; padding: 40px 0; }
    .personal-empty-art { max-width: 540px; }
    .list-create-card { grid-template-columns: 1fr; }
    .list-item-row { grid-template-columns: auto minmax(0,1fr); }
    .list-item-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 680px) {
    .personalized-header, .lists-page-header { align-items: flex-start; flex-direction: column; }
    .header-actions { width: 100%; }
    .header-actions .button { flex: 1; }
    .list-create-form { grid-template-columns: 1fr auto; }
    .list-create-form .button { grid-column: 1 / -1; }
    .list-item-actions, .move-item-form { width: 100%; align-items: stretch; flex-direction: column; }
    .move-item-form select { min-width: 0; }
    .list-item-actions form:last-child { align-self: flex-end; }
    .full-calendar-grid .calendar-cell { min-height: 92px; padding: 5px; }
    .calendar-event-title { padding: 5px; font-size: 9px; }
    .month-agenda-entry { grid-template-columns: auto auto minmax(0,1fr); }
    .month-entry-chevron { display: none; }
    .calendar-edit-actions { grid-template-columns: 1fr; }
    .suggestion-card { min-width: 250px; max-width: 250px; }
}

/* Ajustes finais da v1.5: todo botão de inclusão usa dourado sólido. */
.card-add-button,
.card-add-button.has-status {
    color: var(--gold-dark-text);
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 8px 22px rgba(212,175,55,.20);
}
.card-add-button:hover,
.card-add-button:focus-visible,
.card-add-button.has-status:hover,
.card-add-button.has-status:focus-visible {
    color: var(--gold-dark-text);
    border-color: var(--gold-hover);
    background: var(--gold-hover);
}
.custom-media-no-list { margin-bottom: 20px; }
.custom-media-form button:disabled,
.custom-media-form select:disabled { opacity: .52; cursor: not-allowed; }


/* Refinamentos de interação e navegação — v1.6 */
:root { --gold: #D4AF37; --gold-hover: #E2BF4B; --gold-dark-text: #171207; }
.button-primary,
.list-create-form .button-primary,
.header-actions .button-primary,
.agenda-empty .button-primary,
.status-list-required .button-primary {
    color: var(--gold-dark-text);
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 8px 22px rgba(212,175,55,.20);
}
.button-primary:hover,
.button-primary:focus-visible {
    color: var(--gold-dark-text);
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    filter: none;
}
.topbar-no-search { grid-template-columns: 1fr auto; }
.topbar-no-search .topbar-actions { grid-column: 2; justify-self: end; }
.detail-actions .is-current-status {
    color: var(--gold-dark-text);
    background: var(--gold);
    border-color: #f1d36b;
    box-shadow: 0 0 0 3px rgba(212,175,55,.18), 0 9px 24px rgba(212,175,55,.18);
}
.detail-actions .is-current-status::after {
    content: 'Atual';
    padding: 2px 6px;
    border-radius: 999px;
    color: #1b1507;
    background: rgba(255,255,255,.38);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.recent-suggestions.is-primary-suggestions { margin-top: 24px; border-top: 0; }
.recent-suggestions.is-after-results { margin-top: 42px; }
.confirm-sheet {
    position: fixed; z-index: 70; left: 50%; top: 50%; width: min(440px, calc(100vw - 28px));
    padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px;
    background: #111421; box-shadow: var(--shadow); transform: translate(-50%, -50%);
}
.confirm-sheet[hidden] { display: none; }
.confirm-sheet h2 { margin: 0 0 8px; }
.confirm-sheet > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; }
.confirm-sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.suggestions-track .card-add-button { touch-action: manipulation; }
@media (max-width: 760px) {
    .topbar-no-search { grid-template-columns: 1fr auto; padding-bottom: 12px; }
    .topbar-no-search .mobile-brand { grid-column: 1; grid-row: 1; }
    .topbar-no-search .topbar-actions { grid-column: 2; grid-row: 1; }
    .confirm-sheet-actions { display: grid; grid-template-columns: 1fr; }
}

/* PraVer v1.7 — refinamentos de espaço, modais, listas, agenda e responsividade */
:root {
    --topbar: 58px;
}

/* A área autenticada não reserva mais um cabeçalho vazio no desktop. */
body[data-authenticated="true"] .topbar-authenticated {
    display: none;
}
body[data-authenticated="true"] .main-content {
    padding-top: 8px;
}
.main-content {
    padding-top: 10px;
}
.page-header-block {
    padding-top: 20px;
    padding-bottom: 14px;
}
.personalized-header {
    padding-top: 16px;
}
.detail-text-only {
    padding-top: 34px;
}
.catalog-header-block {
    padding-top: 14px;
}

/* O painel de confirmação precisa ficar acima da camada de desfoque. */
.confirm-sheet,
.calendar-delete-sheet {
    z-index: 105;
}
.calendar-delete-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

/* Criação de lista sem sair da janela de inclusão. */
.status-list-picker {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    color: #d8dbe5;
    font-size: 12px;
    font-weight: 750;
}
.status-list-picker select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: #151821;
    background: #fff;
}
.inline-list-toggle {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 12px;
    border: 1px dashed rgba(212,175,55,.58);
    border-radius: 9px;
    color: #f0d77a;
    background: rgba(212,175,55,.07);
    cursor: pointer;
}
.inline-list-toggle:hover,
.inline-list-toggle:focus-visible {
    border-style: solid;
    color: var(--gold-dark-text);
    background: var(--gold);
}
.inline-list-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) 74px;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 10px;
    background: rgba(212,175,55,.055);
}
.inline-list-form[hidden] { display: none; }
.inline-list-form label { display: grid; gap: 5px; color: #d8dbe5; font-size: 11px; font-weight: 750; }
.inline-list-form input[type="text"] {
    width: 100%; min-height: 40px; padding: 8px 10px;
    border: 1px solid var(--line-strong); border-radius: 8px;
    color: #fff; background: #111421;
}
.inline-list-form input[type="color"] {
    width: 100%; min-height: 40px; padding: 3px;
    border: 1px solid var(--line-strong); border-radius: 8px;
    background: #111421;
}
.inline-list-form > div { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px; }
.existing-media-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(212,175,55,.34);
    border-radius: 9px;
    color: #f1df9d;
    background: rgba(212,175,55,.08);
    font-size: 12px;
    line-height: 1.45;
}
.existing-media-notice[hidden] { display: none; }

/* Repetição diária de agendamentos. */
.recurrence-control {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}
.recurrence-toggle-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    cursor: pointer;
}
.recurrence-toggle-row input {
    width: 18px !important;
    min-height: 18px !important;
    accent-color: var(--gold);
}
.recurrence-options { display: grid; gap: 11px; }
.recurrence-options[hidden] { display: none; }
.weekday-exclusions { display: flex; flex-wrap: wrap; gap: 7px; }
.weekday-exclusions label {
    display: flex !important;
    align-items: center;
    gap: 5px !important;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    cursor: pointer;
}
.weekday-exclusions input {
    width: 15px !important;
    min-height: 15px !important;
    accent-color: var(--gold);
}
.recurring-entry-note {
    margin: 0 0 12px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #d8c884;
    background: rgba(212,175,55,.07);
    font-size: 11px;
}

/* Setas só aparecem quando existe conteúdo escondido naquela direção. */
.carousel:hover .carousel-arrow,
.carousel-arrow:focus-visible {
    opacity: 0;
    pointer-events: none;
}
.carousel.has-left-content:hover .carousel-arrow-left,
.carousel.has-left-content .carousel-arrow-left:focus-visible,
.carousel.has-right-content:hover .carousel-arrow-right,
.carousel.has-right-content .carousel-arrow-right:focus-visible {
    opacity: 1;
    pointer-events: auto;
}
.carousel-arrow:disabled {
    visibility: hidden;
}

/* Cabeçalho dos cards mais compacto, sem reduzir o texto ou o ícone. */
.media-card-symbol {
    min-height: 64px;
    gap: 11px;
    padding: 7px 13px;
}
.media-card-symbol > span {
    width: 50px;
    height: 50px;
    border-radius: 13px;
}
.media-card-text {
    min-height: 238px;
}

/* Realces da navegação lateral. */
.nav-item-highlight:hover,
.nav-item-highlight:focus-visible {
    color: #b994ff;
    background: rgba(124,58,237,.11);
}
.nav-item-logout:hover,
.nav-item-logout:focus-visible {
    color: #ff9eaa;
    background: rgba(251,113,133,.10);
}

/* Pesquisa. */
.catalog-filter-grid {
    grid-template-columns: minmax(170px,1fr) minmax(210px,1.2fr) 112px minmax(170px,1fr);
}
.catalog-year-field {
    max-width: 112px;
}
.catalog-year-field input {
    width: 100%;
    font-variant-numeric: tabular-nums;
}
.manual-register-tooltip {
    position: relative;
}
.manual-register-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 9px);
    width: min(285px, 80vw);
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: #f5f6fa;
    background: #171a28;
    box-shadow: 0 12px 30px rgba(0,0,0,.32);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity .18s ease, transform .18s ease;
}
.manual-register-tooltip:hover::after,
.manual-register-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}
.suppressed-results {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px dashed rgba(212,175,55,.32);
    border-radius: 12px;
    background: rgba(212,175,55,.035);
}
.suppressed-results summary {
    color: #ead277;
    font-weight: 800;
    cursor: pointer;
}
.suppressed-results > p { color: var(--muted); font-size: 12px; }

.agenda-inline-separator { color: #7d8291; padding: 0 3px; }
.calendar-scroll-area { min-width: 0; overflow-x: auto; }

@media (max-width: 1080px) {
    .catalog-filter-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .catalog-year-field { max-width: none; }
}

@media (max-width: 760px) {
    body[data-authenticated="true"] .topbar-authenticated {
        height: 50px;
        display: grid;
        padding: 8px 16px 4px;
    }
    body[data-authenticated="true"] .topbar-authenticated .mobile-brand {
        display: block;
        width: 104px;
    }
    body[data-authenticated="true"] .main-content {
        padding-top: 2px;
    }
    .main-content {
        padding-inline: 15px;
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }
    .page-header-block,
    .personalized-header,
    .catalog-header-block {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .page-header-block h1 { font-size: 30px; }
    .catalog-filter-grid {
        grid-template-columns: 1fr 108px;
    }
    .catalog-filter-grid label:nth-child(1),
    .catalog-filter-grid label:nth-child(2),
    .catalog-filter-grid label:nth-child(4) {
        grid-column: 1/-1;
    }
    .catalog-year-field { max-width: 108px; }
    .inline-list-form { grid-template-columns: 1fr 68px; }
    .calendar-delete-actions,
    .confirm-sheet-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .calendar-delete-actions .button,
    .confirm-sheet-actions .button { width: 100%; }
    .calendar-layout { min-width: 0; }
    .full-calendar-card { overflow-x: auto; }
    .full-calendar-weekdays,
    .full-calendar-grid { min-width: 660px; }
    .calendar-cell small { display: block; }
    .media-card-symbol { min-height: 60px; padding: 5px 11px; }
    .media-card-symbol > span { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .catalog-search-row { display: grid; grid-template-columns: 1fr; }
    .catalog-search-row .button { width: 100%; }
    .catalog-filter-grid { grid-template-columns: 1fr 96px; }
    .catalog-year-field { max-width: 96px; }
    .status-sheet, .calendar-sheet { padding-inline: 15px; }
    .inline-list-form { grid-template-columns: minmax(0,1fr) 64px; }
}

/* =========================================================
   PraVer 1.8 — gêneros, histórico de busca e onde assistir
   ========================================================= */
.watch-provider-sheet {
    position: fixed;
    z-index: 101;
    left: 50%;
    bottom: 24px;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: linear-gradient(180deg, #171a2c, #0e101d);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}
.watch-provider-sheet[hidden] { display: none; }
.watch-provider-sheet h2 { margin: 0 44px 8px 0; font-size: 25px; }
.watch-provider-sheet h3 { margin: 0 0 10px; font-size: 14px; }
.watch-provider-message { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.watch-provider-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.watch-provider-loading[hidden] { display: none; }
.watch-provider-loading span {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 2px solid rgba(255,255,255,.2);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: praver-spin .8s linear infinite;
}
.watch-provider-loading p { margin: 0; color: #d4d6df; font-size: 13px; }
@keyframes praver-spin { to { transform: rotate(360deg); } }
.watch-provider-current {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(245,158,11,.32);
    border-radius: 10px;
    color: #ffd48a;
    background: rgba(245,158,11,.08);
    font-size: 13px;
}
.watch-provider-current[hidden] { display: none; }
.watch-provider-results { margin-top: 16px; }
.watch-provider-results[hidden] { display: none; }
.watch-provider-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.watch-provider-option {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 10px;
    color: #fff;
    text-align: left;
    background: rgba(245,158,11,.07);
    cursor: pointer;
}
.watch-provider-option:hover,
.watch-provider-option:focus-visible { border-color: #f59e0b; background: rgba(245,158,11,.14); }
.watch-provider-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-provider-option small { color: #d6b97f; }
.watch-provider-external { margin-top: 14px; }
.watch-provider-manual {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.watch-provider-manual > p { margin: -5px 0 2px; color: var(--muted); font-size: 12px; }
.watch-provider-manual label { display: grid; gap: 6px; }
.watch-provider-manual label > span { color: #c7cad5; font-size: 11px; font-weight: 750; }
.watch-provider-manual input,
.watch-provider-manual select {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    color: #fff;
    background: #101321;
}
.watch-provider-manual select option { color: #111827; background: #fff; }
.watch-provider-iptv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    border: 1px solid rgba(249,115,22,.55);
    border-radius: 9px;
    color: #fff;
    background: #ea580c;
    font-weight: 800;
    cursor: pointer;
}
.watch-provider-iptv:hover { background: #f97316; }
.watch-provider-clear {
    display: block;
    margin: 14px auto 0;
    border: 0;
    color: #fca5a5;
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
}
.watch-provider-clear[hidden] { display: none; }
.watch-provider-attribution { margin: 15px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.watch-provider-attribution[hidden] { display: none; }
.watch-provider-attribution a { color: #d6b97f; }

.watch-provider-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(249,115,22,.62);
    border-radius: 10px;
    color: #fff;
    background: #f97316;
    cursor: pointer;
}
.watch-provider-button:hover,
.watch-provider-button:focus-visible { background: #fb923c; }
.watch-provider-button::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 190px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: #fff;
    background: #1d2130;
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
    font-size: 11px;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: .16s ease;
}
.watch-provider-button:hover::after,
.watch-provider-button:focus-visible::after { opacity: 1; transform: translateY(0); }
.watch-provider-button svg,
.saved-watch-provider svg { width: 18px; height: 18px; }
.saved-watch-provider {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 9px;
    border: 1px solid rgba(249,115,22,.3);
    border-radius: 999px;
    color: #fdba74;
    background: rgba(249,115,22,.08);
    font-size: 11px;
    font-weight: 750;
}
.saved-watch-provider[hidden] { display: none; }
.saved-watch-provider a,
.saved-watch-provider span { overflow: hidden; color: inherit; text-overflow: ellipsis; white-space: nowrap; }

/* O campo só usa o histórico próprio do PraVer via datalist. */
#praver-search-query { appearance: none; }
#praver-search-query::-webkit-search-cancel-button { cursor: pointer; }

@media (max-width: 700px) {
    .watch-provider-sheet {
        bottom: 0;
        width: 100%;
        max-height: 92vh;
        padding: 20px 15px calc(20px + env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
    }
    .watch-provider-options { grid-template-columns: 1fr; }
    .list-item-actions .watch-provider-button { align-self: flex-start; }
}

/* PraVer 2.1 — elementos compartilhados e organização por módulos de página */
.corner-brand {
    position: absolute;
    top: 14px;
    right: clamp(24px, 4vw, 50px);
    width: 96px;
    opacity: .88;
    z-index: 2;
}
.corner-brand:hover { opacity: 1; }
.main-content { position: relative; }
.page-header-block { padding-right: 120px; }

.saved-status-icon,
.status-icon,
.card-add-button {
    display: inline-grid;
    place-items: center;
}
.saved-status-icon svg,
.status-icon svg,
.card-add-button svg,
.detail-actions .is-current-status svg {
    stroke: #fff;
    fill: none;
}
.saved-status-icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    border-radius: 50%;
    color: #fff;
    background: var(--gold);
}
.saved-status-icon svg { width: 13px; height: 13px; stroke-width: 2.3; }
.saved-status-watching .saved-status-icon svg,
.card-add-button:has(use[href="#i-play"]) svg { fill: #fff; stroke: #fff; }
.saved-status-want_to_watch .saved-status-icon svg,
.card-add-button:has(use[href="#i-bookmark"]) svg { fill: #fff; stroke: #fff; }
.saved-status-watched .saved-status-icon { background: #2f9e67; }
.saved-status { display: inline-flex; align-items: center; padding: 4px 9px 4px 5px; }

.period-text { font-weight: 800; }
.period-morning { color: #D4AF37; }
.period-afternoon { color: #f59e42; }
.period-night { color: #b68cff; }
.period-dawn { color: #fff; background: #000; border: 1px solid rgba(255,255,255,.18); padding: 2px 7px; border-radius: 999px; }

.site-tour {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(4,6,14,.68);
    backdrop-filter: blur(3px);
    pointer-events: none;
}
.site-tour-card {
    position: fixed;
    width: min(340px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    color: var(--text);
    background: #151827;
    box-shadow: var(--shadow);
    pointer-events: auto;
}
.site-tour-card h2 { margin: 6px 0 8px; font-size: 23px; }
.site-tour-card p { margin: 0 0 18px; color: var(--muted); }
.tour-progress { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tour-actions { display: flex; justify-content: space-between; gap: 10px; }
.tour-highlight {
    position: relative;
    z-index: 225 !important;
    color: #fff !important;
    background: rgba(124,58,237,.42) !important;
    box-shadow: 0 0 0 4px rgba(212,175,55,.45), 0 0 34px rgba(212,175,55,.36) !important;
}

@media (max-width: 760px) {
    .corner-brand { display: none; }
    .page-header-block { padding-right: 0; }
    .mobile-bottom-nav { grid-template-columns: repeat(6,1fr); }
    .mobile-bottom-nav a { min-width: 0; font-size: 8px; }
    .mobile-bottom-nav svg { width: 20px; height: 20px; }
}

/* Ícones de status com alto contraste. */
.status-sheet .status-icon,
.status-sheet .status-icon-green {
    color: #fff;
    background: var(--gold);
}
.status-sheet .status-icon svg,
.status-sheet .status-icon-green svg {
    stroke: #fff;
}
.status-sheet [data-status-choice="watching"] .status-icon svg,
.status-sheet [data-status-choice="want_to_watch"] .status-icon svg {
    fill: #fff;
}
.card-add-button svg { stroke: #fff; }
.card-add-button use[href="#i-play"],
.card-add-button use[href="#i-bookmark"] { fill: #fff; }

/* PraVer 2.1 — indicadores globais */
.nav-item { min-width: 0; }
.nav-pending-badge {
    min-width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    padding: 0 5px;
    border: 2px solid #111421;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 0 0 2px rgba(239,68,68,.16);
}
.mobile-bottom-nav a { position: relative; }
.nav-pending-badge-mobile {
    position: absolute;
    top: -2px;
    right: calc(50% - 22px);
    margin: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-width: 1px;
    font-size: 8px;
}
.agenda-item strong { font-size: 10px; }
.agenda-item small { font-size: 8px; }

/* PraVer 2.5 — sugestões mais compactas. */
.suggestion-card {
    min-height: 104px;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 10px;
    padding: 12px;
}
.suggestion-symbol {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 19px;
}
.suggestion-copy { padding-right: 22px; }
.suggestion-copy h3 { margin: 4px 0 5px; font-size: 14px; line-height: 1.2; }
.suggestion-card .card-add-button { top: 7px; right: 7px; }

/* PraVer 2.5.1 — navegação mais compacta e menu mobile completo. */
@media (min-width: 1041px) {
    :root { --sidebar: 184px; }
    .sidebar { padding-inline: 13px; }
    .nav-item { min-height: 44px; gap: 10px; padding-inline: 12px; }
    .nav-item svg { width: 18px; height: 18px; }
    .nav-item span { font-size: 12px; }
}
@media (max-width: 760px) {
    body { padding-bottom: calc(126px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 51px;
        padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    }
    .mobile-bottom-nav a,
    .mobile-bottom-nav .mobile-nav-form,
    .mobile-bottom-nav .mobile-nav-form button {
        min-width: 0;
        margin: 0;
    }
    .mobile-bottom-nav a,
    .mobile-bottom-nav .mobile-nav-form button {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 1px;
        padding: 2px 1px;
        border: 0;
        color: #a1a6b5;
        background: transparent;
        font-size: 7.5px;
        line-height: 1.05;
        cursor: pointer;
    }
    .mobile-bottom-nav svg { width: 18px; height: 18px; }
    .mobile-bottom-nav a.is-active { color: #9f6fff; }
    .mobile-bottom-nav .mobile-nav-form button { color: #fb9aa8; }
    .mobile-bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .toast-region { bottom: calc(136px + env(safe-area-inset-bottom)); }
    .nav-pending-badge-mobile { top: 1px; right: calc(50% - 18px); }
}

/* PraVer 2.5.1 — sugestões de Explorar ainda mais baixas. */
.suggestion-card {
    min-width: 248px;
    max-width: 248px;
    min-height: 84px;
    align-items: center;
    padding: 9px 10px;
}
.suggestion-symbol { width: 38px; height: 38px; font-size: 17px; }
.suggestion-copy { padding-right: 20px; }
.suggestion-copy h3 { margin: 2px 0 3px; font-size: 13px; line-height: 1.15; }
.suggestion-copy > span,
.suggestion-copy small { font-size: 9px; line-height: 1.15; }
.suggestion-card .card-add-button { top: 6px; right: 6px; width: 28px; height: 28px; }
@media (max-width: 760px) { .auth-page { padding-bottom: 0; } }

/* PraVer 2.5.2 — nota opcional durante a inclusão. */
.status-rating-field {
    display: grid;
    gap: 5px;
    margin: 12px 0 2px;
    padding: 10px 11px;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 11px;
    background: rgba(212,175,55,.06);
}
.status-rating-field[hidden] { display: none; }
.status-rating-field label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-rating-field label > span { color: #fff; font-size: 11px; font-weight: 850; }
.status-rating-field input {
    width: 105px;
    min-height: 38px;
    padding: 7px 9px;
    color: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--panel-2);
}
.status-rating-field small { color: var(--muted); font-size: 9.5px; line-height: 1.35; }

/* PraVer 2.5.4 — navegação mobile em uma linha, painel Mais e tour com recorte. */
.mobile-more-backdrop,
.mobile-more-menu { display: none; }
.site-tour { background: transparent; backdrop-filter: none; overflow: hidden; }
.site-tour-spotlight {
    position: fixed;
    z-index: 221;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    border: 2px solid rgba(212,175,55,.9);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(4,6,14,.76), 0 0 28px rgba(212,175,55,.45);
    transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
    pointer-events: none;
}
.site-tour-card { z-index: 223; }
.tour-highlight {
    z-index: auto !important;
    color: #fff !important;
    background: rgba(124,58,237,.34) !important;
    box-shadow: 0 0 0 2px rgba(212,175,55,.32) !important;
}

@media (max-width: 760px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .page-header-block h1 { font-size: 28px; }
    .page-header-block > div > p:not(.eyebrow),
    .page-header-block > p { font-size: 11px; line-height: 1.45; }
    .mobile-bottom-nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 52px;
        padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    }
    .mobile-bottom-nav a,
    .mobile-bottom-nav button.mobile-more-toggle {
        position: relative;
        min-width: 0;
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 1px;
        margin: 0;
        padding: 2px 1px;
        border: 0;
        color: #a1a6b5;
        background: transparent;
        font: inherit;
        font-size: 7.5px;
        line-height: 1.05;
        cursor: pointer;
    }
    .mobile-bottom-nav svg { width: 18px; height: 18px; }
    .mobile-bottom-nav a.is-active,
    .mobile-bottom-nav button.mobile-more-toggle.is-active,
    .mobile-bottom-nav button.mobile-more-toggle[aria-expanded="true"] { color: #a78bfa; }
    .mobile-bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-more-backdrop {
        position: fixed;
        z-index: 88;
        inset: 0;
        display: block;
        background: rgba(4,6,14,.66);
        backdrop-filter: blur(2px);
    }
    .mobile-more-backdrop[hidden],
    .mobile-more-menu[hidden] { display: none; }
    .mobile-more-menu {
        position: fixed;
        z-index: 90;
        right: 10px;
        bottom: calc(62px + env(safe-area-inset-bottom));
        left: 10px;
        display: grid;
        gap: 8px;
        max-height: min(70vh, 500px);
        overflow-y: auto;
        padding: 12px;
        border: 1px solid var(--line-strong);
        border-radius: 16px;
        color: var(--text);
        background: #111421;
        box-shadow: 0 18px 60px rgba(0,0,0,.55);
    }
    .mobile-more-menu > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 6px; }
    .mobile-more-menu > header strong { font-size: 13px; }
    .mobile-more-menu > header button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.05); }
    .mobile-more-menu > header svg { width: 17px; height: 17px; }
    .mobile-more-menu nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    .mobile-more-menu nav a,
    .mobile-more-menu nav form,
    .mobile-more-menu nav button { min-width: 0; margin: 0; }
    .mobile-more-menu nav a,
    .mobile-more-menu nav button {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 9px 11px;
        border: 1px solid var(--line);
        border-radius: 11px;
        color: #d7d9e2;
        background: rgba(255,255,255,.035);
        font-size: 11px;
        font-weight: 750;
        text-align: left;
    }
    .mobile-more-menu nav a.is-active { color: #fff; border-color: rgba(124,58,237,.52); background: rgba(124,58,237,.16); }
    .mobile-more-menu nav button { color: #fda4af; cursor: pointer; }
    .mobile-more-menu nav svg { width: 18px; height: 18px; flex: 0 0 auto; }
    .toast-region { bottom: calc(74px + env(safe-area-inset-bottom)); }
    .site-tour-card { width: min(330px, calc(100vw - 24px)); padding: 16px; }
}

/* PraVer 2.6.0 — favoritos e resenhas curtas. */
.review-sheet {
    position: fixed;
    z-index: 1210;
    left: 50%;
    bottom: 22px;
    width: min(520px, calc(100vw - 28px));
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #121421;
    box-shadow: 0 24px 70px rgba(0,0,0,.48);
    transform: translateX(-50%);
}
.review-sheet[hidden] { display: none; }
.review-sheet h2 { margin: 3px 34px 7px 0; }
.review-sheet-help { margin: 0 0 15px; color: var(--muted); }
.review-sheet label { display: grid; gap: 7px; }
.review-sheet label > span { font-size: 12px; font-weight: 800; }
.review-sheet textarea { width: 100%; resize: vertical; }
.review-character-count { margin-top: 5px; color: var(--muted); font-size: 11px; text-align: right; }
.review-sheet-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.favorite-toggle,
.review-open-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.045);
    cursor: pointer;
}
.favorite-toggle svg,
.review-open-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-toggle:hover,
.favorite-toggle:focus-visible { color: #fb7185; border-color: rgba(251,113,133,.65); }
.favorite-toggle.is-favorite { color: #fb7185; border-color: rgba(251,113,133,.55); background: rgba(251,113,133,.12); }
.favorite-toggle.is-favorite svg { fill: currentColor; }
.review-open-button:hover,
.review-open-button:focus-visible,
.review-open-button.has-review { color: var(--gold); border-color: rgba(212,175,55,.55); background: rgba(212,175,55,.1); }
.review-open-button.has-review svg { fill: currentColor; }
@media (max-width: 620px) {
    .review-sheet { bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px)); padding: 18px; }
    .review-sheet-actions { flex-direction: column-reverse; }
    .review-sheet-actions .button { width: 100%; }
}

/* PraVer 2.7.0 — confirmação explícita de status e resenhas. */
.status-options [data-status-choice] { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.status-options [data-status-choice].is-selected { border-color: var(--gold); background: rgba(212,175,55,.12); box-shadow: 0 0 0 2px rgba(212,175,55,.12); transform: translateY(-1px); }
.status-confirm-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.status-confirm-actions .button { min-width:132px; }
.review-send-button, .detail-review-send { width:42px; height:42px; display:grid; place-items:center; flex:0 0 auto; padding:0; border:1px solid var(--gold); border-radius:10px; color:#17120a; background:var(--gold); cursor:pointer; }
.review-send-button svg, .detail-review-send svg { width:19px; height:19px; }
@media (max-width:600px){ .status-confirm-actions .button { min-width:0; flex:1; } }

/* PraVer 2.7.0 — alinhamento dos atalhos de listas. */
.view-in-list-link { display:inline-flex; align-items:center; line-height:1.15; }
.view-in-list-link svg { flex:0 0 auto; align-self:center; }

/* PraVer 2.8.0 — alerta cadastral e diálogos legais compartilhados. */
.profile-update-badge { width: 19px; height: 19px; display: grid; place-items: center; margin-left: auto; border-radius: 999px; color: #11131f; background: #fbbf24; }
.profile-update-badge svg { width: 12px !important; height: 12px !important; stroke-width: 2.4; }
.mobile-more-menu .profile-update-badge { margin-left: auto; }
.consent-fieldset { display: grid; gap: 9px; padding: 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; }
.consent-fieldset legend { padding: 0 6px; color: #d9dce5; font-size: 11px; font-weight: 800; }
.consent-check { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; line-height: 1.4; }
.consent-check input { width: 16px !important; min-height: 16px !important; height: 16px !important; margin-top: 1px; flex: 0 0 auto; accent-color: var(--gold); }
.consent-check button { padding: 0; border: 0; color: #c4b5fd; background: transparent; text-decoration: underline; cursor: pointer; font: inherit; }
.legal-dialog { width: min(900px, calc(100vw - 28px)); max-height: 86vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; color: #fff; background: #121522; box-shadow: var(--shadow); }
.legal-dialog::backdrop { background: rgba(3,5,13,.78); backdrop-filter: blur(5px); }
.legal-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.legal-dialog-header h2 { margin: 0; font-size: 18px; }
.legal-dialog-header button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: #fff; background: transparent; cursor: pointer; }
.legal-dialog-header svg { width: 16px; height: 16px; }
.legal-dialog-scroll { max-height: calc(86vh - 126px); overflow: auto; padding: 18px 20px; }
.legal-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.legal-dialog footer a { color: #c4b5fd; font-size: 11px; }
.legal-document h1 { margin: 0 0 6px; color: #fff; font-size: clamp(24px,4vw,38px); }
.legal-document h2 { margin: 26px 0 8px; color: #fff; font-size: 18px; }
.legal-document h3 { margin: 19px 0 7px; color: #ebe7f5; font-size: 15px; }
.legal-document p { margin: 0 0 10px; color: #d7dae3; line-height: 1.62; }
.legal-document ul { display: grid; gap: 6px; margin: 8px 0 14px; padding-left: 22px; }
.legal-document li { color: #d7dae3; line-height: 1.52; }
.legal-document strong { color: #f6f3fb; }
@media (max-width: 620px) { .legal-dialog-scroll { padding: 15px; } .legal-dialog footer { align-items: stretch; flex-direction: column; } }
