:root {
  --bg: #0d1321;
  --bg-soft: #141b2e;
  --card: #1a2237;
  --card-hover: #212b45;
  --text: #eef1f8;
  --text-dim: #8b93a7;
  --accent: #ffd447;
  --accent-2: #7c5cff;
  --radius: 14px;
  --nav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 19, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 58px; }
.logo { font-size: 19px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; white-space: nowrap; }
.logo-mark { color: var(--accent); font-size: 14px; margin-right: 2px; }
.logo-accent { color: var(--accent); }
.desktop-nav { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.search {
  background: var(--bg-soft); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 8px 14px; color: var(--text);
  font-size: 13.5px; width: 100%; max-width: 210px; outline: none; min-width: 0;
}
.search::placeholder { color: var(--text-dim); }
.search:focus { border-color: var(--accent-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #0d1321;
}

/* ---------- Hero ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 28px 0 6px; }
.hero.compact { padding-bottom: 0; }
.hero h1 { font-size: 25px; letter-spacing: -0.5px; }
.sub { color: var(--text-dim); margin-top: 2px; font-size: 14.5px; }
.sub strong { color: var(--accent); }
.hero-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--bg-soft); border: 1px solid rgba(255,255,255,0.07);
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim);
}
.chip-num { color: var(--text); font-weight: 700; margin-right: 4px; }

/* ---------- Sections ---------- */
section { margin: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
h2 { font-size: 18px; letter-spacing: -0.3px; }
h2 em { color: var(--accent); font-style: normal; }
.see-all { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- Up next cards ---------- */
.row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ep-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
  text-align: left;
}
.ep-card:active { transform: scale(0.985); }
.ep-banner { height: 96px; position: relative; }
.ep-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13,19,33,0.75));
}
.show-initials {
  position: absolute; top: 10px; left: 12px; font-size: 32px; font-weight: 900;
  opacity: 0.25; letter-spacing: -2px;
}
.ep-body { padding: 12px 14px 14px; }
.ep-show { font-weight: 700; font-size: 15px; }
.ep-info { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.progress { height: 4px; background: rgba(255,255,255,0.09); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s ease; }
.watch-btn {
  margin-top: 12px; width: 100%; border-radius: 8px;
  background: rgba(255,212,71,0.12); color: var(--accent);
  font-weight: 700; font-size: 13px; padding: 9px 0;
  transition: background .15s ease;
}
.watch-btn:hover { background: rgba(255,212,71,0.22); }
.watch-btn.watched { background: rgba(124,92,255,0.15); color: var(--accent-2); }

/* ---------- Horizontal poster scroller ---------- */
.poster-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.poster-scroll::-webkit-scrollbar { display: none; }
.poster-scroll .poster { flex: 0 0 128px; scroll-snap-align: start; }

/* ---------- Posters ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; margin-top: 18px; }
.poster {
  aspect-ratio: 2 / 3; border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 10px; cursor: pointer;
  transition: transform .15s ease; text-align: left; width: 100%;
}
.poster:active { transform: scale(0.97); }
.poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,19,33,0.85));
}
.p-initials {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  font-size: 36px; font-weight: 900; opacity: 0.3; letter-spacing: -2px;
}
.p-meta { position: relative; z-index: 1; }
.p-title { font-weight: 700; font-size: 13px; line-height: 1.25; }
.p-rating { font-size: 11.5px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.p-follow {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(13,19,33,0.65); backdrop-filter: blur(4px);
  display: grid; place-items: center; font-size: 15px; color: var(--text);
  transition: background .15s ease;
}
.p-follow.following { background: var(--accent); color: #0d1321; }

/* ---------- Filter pills ---------- */
.filter-pills { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); color: var(--text-dim); border: 1px solid rgba(255,255,255,0.08);
  transition: all .15s ease;
}
.pill.active { background: var(--accent); color: #0d1321; border-color: var(--accent); }

.empty { color: var(--text-dim); text-align: center; padding: 40px 0; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  border: 1px solid rgba(255,255,255,0.05);
}
.stat-card.big { grid-column: 1 / -1; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.stat-value span { font-size: 13px; color: var(--text-dim); font-weight: 600; margin: 0 6px 0 4px; letter-spacing: 0; }
.stat-label { color: var(--text-dim); font-size: 12.5px; margin-top: 4px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 16px; }
.spark i {
  flex: 1; height: var(--h); border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(124,92,255,0.25));
}
.stat-foot { color: var(--text-dim); font-size: 11.5px; margin-top: 8px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(13,19,33,0.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-dim);
}
.bottom-nav button.active { color: var(--accent); }
.bn-icon { font-size: 19px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; padding: 22px 0; }
.footer p { color: var(--text-dim); font-size: 12.5px; text-align: center; }

/* ---------- Show detail sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(3px);
}
.sheet {
  position: fixed; z-index: 31; left: 0; right: 0; bottom: 0;
  max-height: 86vh; overflow-y: auto;
  background: var(--bg-soft); border-radius: 20px 20px 0 0;
  animation: slideUp .25s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-banner { height: 150px; position: relative; border-radius: 20px 20px 0 0; }
.sheet-banner::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 20%, var(--bg-soft)); border-radius: 20px 20px 0 0; }
.sheet-grab { position:absolute; top:10px; left:50%; transform:translateX(-50%); width:42px; height:4px; border-radius:2px; background:rgba(255,255,255,0.35); z-index:2; }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(13,19,33,0.6); display: grid; place-items: center; font-size: 15px;
}
.sheet-body { padding: 0 18px 26px; margin-top: -34px; position: relative; }
.sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.sheet-meta { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.sheet-meta b { color: var(--accent); }
.sheet-desc { color: var(--text-dim); font-size: 13.5px; margin-top: 12px; line-height: 1.6; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn {
  flex: 1; padding: 11px 0; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  transition: all .15s ease; text-align: center;
}
.btn-primary { background: var(--accent); color: #0d1321; }
.btn-primary.following { background: rgba(255,212,71,0.15); color: var(--accent); }
.btn-ghost { background: rgba(255,255,255,0.07); color: var(--text); }
.sheet h3 { font-size: 15px; margin: 22px 0 10px; }
.ep-list { display: flex; flex-direction: column; gap: 8px; }
.ep-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 10px; padding: 11px 13px;
  text-align: left; width: 100%;
}
.ep-check {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255,255,255,0.25); display: grid; place-items: center;
  font-size: 12px; color: transparent; transition: all .15s ease;
}
.ep-item.done .ep-check { background: var(--accent); border-color: var(--accent); color: #0d1321; }
.ep-item.done .ep-name { color: var(--text-dim); text-decoration: line-through; }
.ep-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.ep-len { color: var(--text-dim); font-size: 12px; }

/* ---------- Upcoming (Airing Soon) ---------- */
.upcoming-list { display: flex; flex-direction: column; gap: 10px; }
.up-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border-radius: 12px; padding: 11px 13px;
}
.up-thumb { width: 44px; height: 60px; border-radius: 8px; flex: none; background-size: cover; background-position: center; }
.up-info { flex: 1; min-width: 0; }
.up-show { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-ep { color: var(--text-dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-when { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.bell {
  width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 15px;
  background: rgba(255,255,255,0.06); display: grid; place-items: center;
  transition: all .15s ease;
}
.bell.on { background: rgba(255,212,71,0.18); }

/* ---------- Friends activity feed ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border-radius: 12px; padding: 12px 13px;
}
.feed-ava {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #0d1321;
}
.feed-text { font-size: 13.5px; flex: 1; }
.feed-text b { font-weight: 700; }
.feed-text .fx { color: var(--accent); font-weight: 600; }
.feed-time { color: var(--text-dim); font-size: 11.5px; margin-top: 2px; }

/* ---------- Media toggle (Shows/Movies) ---------- */
.media-toggle {
  display: flex; gap: 4px; background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 4px;
}
.media-toggle button {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-dim);
  transition: all .15s ease;
}
.media-toggle button.active { background: var(--accent); color: #0d1321; }

/* ---------- Profile ---------- */
.profile-id { display: flex; align-items: center; gap: 14px; }
.avatar-big { width: 58px; height: 58px; font-size: 24px; border-radius: 50%; }
.gold { color: var(--accent); font-weight: 700; }
.badge-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge {
  background: var(--card); border-radius: 12px; padding: 14px 6px 10px; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--text-dim);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  opacity: 0.35; filter: grayscale(1);
}
.badge.earned { opacity: 1; filter: none; color: var(--text); border: 1px solid rgba(255,212,71,0.25); }
.badge span { font-size: 26px; }
.providers { display: flex; flex-wrap: wrap; gap: 8px; }
.provider {
  padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--bg-soft); color: var(--text-dim); border: 1px solid rgba(255,255,255,0.08);
  transition: all .15s ease;
}
.provider.on { background: rgba(255,212,71,0.14); color: var(--accent); border-color: rgba(255,212,71,0.4); }
.hint { color: var(--text-dim); font-size: 12px; margin-top: 10px; }

/* ---------- Where to watch chips (detail sheet) ---------- */
.watch-on { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.watch-on .provider { pointer-events: none; }

/* ---------- Also watched carousel ---------- */
.also-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.also-row::-webkit-scrollbar { display: none; }
.also-row .poster { flex: 0 0 104px; }
.also-row .p-title { font-size: 11.5px; }

/* ---------- Comments ---------- */
.comments { display: flex; flex-direction: column; gap: 10px; }
.comment {
  background: var(--card); border-radius: 12px; padding: 12px 13px;
  display: flex; gap: 11px; align-items: flex-start;
}
.comment .feed-ava { width: 30px; height: 30px; font-size: 12px; }
.c-body { flex: 1; min-width: 0; }
.c-user { font-size: 12.5px; font-weight: 700; }
.c-user .c-time { color: var(--text-dim); font-weight: 500; margin-left: 6px; font-size: 11.5px; }
.c-text { font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.c-like { font-size: 12px; color: var(--text-dim); flex: none; padding: 4px 6px; border-radius: 8px; }
.c-reply { font-size: 11.5px; color: var(--text-dim); font-weight: 700; margin-top: 5px; }
.c-reply:hover { color: var(--accent); }
.ep-rewatch { font-size: 13px; flex: none; padding: 3px 5px; opacity: 0.65; }
.c-like.liked { color: var(--accent); }
.spoiler-wrap { position: relative; }
.spoiler-wrap.blurred .comments { filter: blur(9px); pointer-events: none; user-select: none; }
.spoiler-cover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
}
.spoiler-cover p { font-weight: 700; font-size: 14px; }
.spoiler-cover .btn { flex: none; padding: 10px 22px; }
.composer {
  display: flex; gap: 8px; margin-top: 12px; align-items: center;
  background: var(--card); border-radius: 12px; padding: 8px 10px;
}
.composer input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-size: 13.5px; min-width: 0;
}
.composer input::placeholder { color: var(--text-dim); }
.composer .tool { font-size: 15px; opacity: 0.75; padding: 4px; }
.composer .send { color: var(--accent); font-weight: 800; font-size: 13px; padding: 4px 8px; }

/* ---------- Reaction modal ---------- */
.reaction-modal {
  position: fixed; z-index: 45; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);
  transform: translateX(-50%);
  background: var(--bg-soft); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 16px 18px; width: min(400px, 92vw);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  animation: popUp .22s ease;
}
@keyframes popUp {
  from { transform: translateX(-50%) translateY(30px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.reaction-modal h4 { font-size: 14px; margin-bottom: 10px; }
.emotions { display: flex; gap: 6px; flex-wrap: wrap; }
.emotion {
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.06); transition: all .15s ease;
}
.emotion.picked { background: var(--accent); color: #0d1321; }
.stars { display: flex; gap: 4px; margin-top: 12px; font-size: 24px; }
.stars button { opacity: 0.3; transition: opacity .1s ease, transform .1s ease; }
.stars button.lit { opacity: 1; }
.stars button:active { transform: scale(1.25); }
.reaction-done { margin-top: 12px; width: 100%; }

/* ---------- Notification bell ---------- */
.bell-btn { position: relative; font-size: 18px; flex: none; padding: 4px; }
.bell-dot {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px;
  background: #ff5c7a; color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
}
.notif-panel {
  position: fixed; z-index: 35; top: 64px; right: 12px; width: min(360px, 94vw);
  background: var(--bg-soft); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; box-shadow: 0 14px 44px rgba(0,0,0,0.55);
  padding: 14px; animation: fadeDown .18s ease;
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.notif-panel h4 { font-size: 14px; margin-bottom: 10px; }
.notif {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 6px;
  border-radius: 10px; width: 100%; text-align: left;
}
.notif:hover { background: rgba(255,255,255,0.05); }
.notif.unread { background: rgba(255,212,71,0.06); }
.notif .n-icon { font-size: 17px; flex: none; }
.notif .n-text { font-size: 13px; line-height: 1.45; }
.notif .n-time { color: var(--text-dim); font-size: 11.5px; }

/* ---------- Groups ---------- */
.groups { display: grid; grid-template-columns: 1fr; gap: 12px; }
.group-card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
}
.group-emoji {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 24px;
}
.group-info { flex: 1; min-width: 0; }
.group-name { font-weight: 700; font-size: 14.5px; }
.group-meta { color: var(--text-dim); font-size: 12.5px; margin-top: 1px; }
.group-join {
  flex: none; padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255,212,71,0.12); color: var(--accent); transition: all .15s ease;
}
.group-join.joined { background: rgba(124,92,255,0.15); color: var(--accent-2); }

/* ---------- Lists ---------- */
.lists { display: flex; flex-direction: column; gap: 10px; }
.list-card {
  background: var(--card); border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
}
.list-emoji { font-size: 22px; flex: none; }
.list-info { flex: 1; }
.list-name { font-weight: 700; font-size: 14px; }
.list-count { color: var(--text-dim); font-size: 12.5px; }
.list-share { flex: none; font-size: 15px; opacity: 0.8; padding: 6px; }

/* ---------- Settings ---------- */
.settings { display: flex; flex-direction: column; gap: 8px; }
.setting-row {
  background: var(--card); border-radius: 12px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left; font-size: 14px; font-weight: 600;
}
.setting-val { color: var(--text-dim); font-size: 13px; font-weight: 600; }
.setting-val.gold { color: var(--accent); }

/* ---------- Custom poster picker ---------- */
.poster-picker { display: flex; gap: 10px; margin-top: 12px; }
.pp-opt {
  width: 56px; height: 80px; border-radius: 10px; border: 3px solid transparent;
  background-size: cover; background-position: center;
}
.pp-opt.picked { border-color: var(--accent); }

/* ---------- Skeleton shimmer ---------- */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--card) !important; border-radius: var(--radius);
  min-height: 40px; pointer-events: none;
}
.ep-card.skeleton { height: 220px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Confetti ---------- */
.confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; }

/* ---------- Share stats button ---------- */
.share-stats { display: block; width: 100%; max-width: 420px; margin: 20px 0 4px; padding: 13px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  z-index: 40; background: var(--card); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none; transition: all .25s ease; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .container { padding: 0 24px; }
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; gap: 20px; margin-left: 12px; flex: 1; }
  .desktop-nav a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 6px 2px; }
  .desktop-nav a.active, .desktop-nav a:hover { color: var(--text); }
  .desktop-nav a.active { box-shadow: 0 2px 0 var(--accent); }
  .topbar-inner { height: 64px; }
  .topbar-actions { flex: none; }
  .search { width: 200px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 30px; }
  .row { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .ep-card:hover { transform: translateY(-3px); background: var(--card-hover); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .poster:hover { transform: scale(1.03); }
  .poster-scroll .poster { flex-basis: 150px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card.big { grid-column: span 2; }
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -50%); width: min(560px, 92vw);
    border-radius: 20px; max-height: 82vh;
    animation: fadeIn .2s ease;
  }
  @keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -48%);} to { opacity: 1; transform: translate(-50%, -50%);} }
  .sheet-banner { border-radius: 20px 20px 0 0; }
  .sheet-grab { display: none; }
  .toast { bottom: 34px; }
  .badge-shelf { grid-template-columns: repeat(8, 1fr); }
  .reaction-modal { bottom: 34px; }
  .upcoming-list { display: grid; grid-template-columns: 1fr 1fr; }
  .groups { grid-template-columns: 1fr 1fr; }
}
