@import url("/skins/hub/fonts.css");

:root {
  --bg: #0f0f0f;
  --glass: rgba(128, 128, 128, .1);
  --glass-2: rgba(128, 128, 128, .2);
  --line: rgba(128, 128, 128, .2);
  --sheet: rgba(15, 15, 15, .7);
  --text: #fff;
  --muted: #666;
  --accent: #3ea6ff;
  --green: #28a746;
  --nav-h: 52px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.25 'Google Sans Flex', 'Google Sans', 'Product Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Backdrop: soft stage light from the top, cool tint rising from the bottom corners. */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.stage span { position: absolute; display: block; }
.stage span:nth-child(1) {
  inset: 0;
  background:
    radial-gradient(ellipse 46% 62% at 50% -6%, rgba(186, 190, 210, .52), rgba(128, 134, 160, .20) 46%, transparent 76%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(12, 30, 54, .7), transparent 70%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(12, 30, 54, .7), transparent 70%),
    linear-gradient(180deg, rgba(34, 36, 46, .9), rgba(15, 18, 26, .9) 62%, rgba(10, 18, 32, .9));
}
.stage span:nth-child(2) {
  left: 50%; top: -12%; width: 130vmax; height: 120vh; transform: translateX(-50%);
  background: repeating-conic-gradient(from 138deg at 50% 0, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .13) 5deg, rgba(255, 255, 255, 0) 11deg, rgba(255, 255, 255, .07) 15deg, rgba(255, 255, 255, 0) 21deg);
  -webkit-mask-image: radial-gradient(ellipse 50% 78% at 50% 0, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 78% at 50% 0, #000 12%, transparent 72%);
  filter: blur(14px);
}
.stage span:nth-child(3) { inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .45)); }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h);
  padding-top: 2px; border-bottom: 1px solid var(--line);
  transition: transform .3s, opacity .3s;
}
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sheet); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.nav-inner { position: relative; display: flex; align-items: center; max-width: 1100px; margin: 0 auto; }
.nav-item {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 47px; padding: 15px 16px 14px; border-radius: 10px;
  font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: color .3s, background-color .3s, border-radius .3s;
}
.nav-item svg { width: 20px; height: 18px; }
.nav-item:hover { background: var(--glass); }
.nav-item.is-active:hover { background: none; }
.nav-indicator {
  position: absolute; left: 0; top: 0; z-index: 0; height: 47px; width: 0; opacity: 0;
  background: rgba(255, 255, 255, .2); border-radius: 10px; pointer-events: none;
  transition: transform .3s var(--ease), width .3s var(--ease), opacity .2s;
}
.nav-gap { flex: 1; }
.nav-lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
.nav-lang:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-lang .lang-short { display: none; }
.nav-lang .lang-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Layout ---------- */
main { flex: 1; margin: var(--nav-h) 26px 0; position: relative; }
.wrap { max-width: 1100px; margin: 0 auto; }
section { scroll-margin-top: calc(var(--nav-h) + 8px); }

.lead-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; margin-top: 32px; padding: 0 16px; }
.pill {
  display: flex; align-items: center; min-height: 68px; max-width: 100%;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500; text-align: left; transition: background-color .3s, border-color .3s, transform .3s;
}
.pill-show { border: 2px solid #fff; border-radius: 12px; overflow: hidden; padding-right: 18px; }
.pill-art { align-self: stretch; width: 51px; margin-right: 16px; position: relative; overflow: hidden; }
.pill-art::before, .pill-art::after { content: ""; position: absolute; border-radius: 50%; }
.pill-art::before { width: 34px; height: 34px; left: -8px; bottom: -6px; background: rgba(255, 255, 255, .22); }
.pill-art::after { width: 20px; height: 20px; right: 4px; top: 8px; border: 3px solid rgba(255, 255, 255, .5); }
.pill-text { display: block; min-width: 0; }
.pill-show strong { display: block; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.pill-show small { display: block; margin-top: 2px; font-size: 12px; opacity: .7; }
.pill-link { padding: 0 16px; gap: 10px; }
.pill-link:hover { background: var(--glass-2); }
.pill-link strong { font-weight: 700; }
.pill-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); font-size: 14px; flex: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; min-height: 64px; margin-bottom: 16px; padding: 0 16px; }
.section-head h2 { font-size: 20px; font-weight: 700; line-height: 25px; }
.arrows { display: flex; gap: 8px; margin-bottom: 2px; }
.arrow {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--glass-2); border: 1px solid #383838; font-size: 14px;
  transition: background .2s, transform .2s, opacity .2s;
}
.arrow:hover:not(:disabled) { background: rgba(128, 128, 128, .4); transform: scale(1.08); }
.arrow:disabled { opacity: .3; cursor: default; }

.scroller { display: flex; gap: 16px; padding: 0 16px 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.scroller::-webkit-scrollbar { display: none; }

.thumb { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }

.mini {
  position: relative; flex: none; width: calc((100% - 48px) / 4); aspect-ratio: 16 / 9;
  border-radius: 12px; background: #212121; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); overflow: hidden; scroll-snap-align: start;
}
.badge {
  position: absolute; left: 8px; top: 10px; z-index: 1; padding: 4px 8px; border-radius: 6px;
  font-size: 14px; line-height: 21px; font-weight: 700; letter-spacing: .5px; box-shadow: 0 0 6px rgba(0, 0, 0, .25);
}
.badge.green { background: var(--green); }
.badge.blue { background: #1a7fd6; }
.seen-dot {
  position: absolute; right: 8px; top: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .8); font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.mini-over {
  position: absolute; inset: -1px; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  font-size: 18.4px; line-height: 1.4; font-weight: 700; text-align: center; opacity: 0; transition: opacity .3s;
}
.mini-over span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover .mini-over, .mini:focus-visible .mini-over { opacity: 1; }

/* ---------- Episodes ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 32px 0; }
.dropdown { position: relative; }
.dropbtn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 200px; height: 50px; padding: 0 16px;
  background: var(--glass); border-radius: 10px; font-weight: 700; font-size: 16px; transition: background-color .3s;
}
.dropbtn svg { font-size: 19px; transition: transform .3s; }
.dropbtn:hover, .dropdown.open .dropbtn { background: var(--glass-2); }
.dropdown.open .dropbtn svg { transform: rotate(180deg); }
.dropmenu {
  position: absolute; left: 0; top: 100%; z-index: 10; width: 203px; max-height: min(60vh, 420px); overflow-y: auto;
  background: var(--sheet); border: 2px solid var(--line); border-radius: 10px; box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: drop .18s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.dropmenu button { display: block; width: 100%; padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 16px; line-height: 20px; text-align: center; transition: background-color .2s; }
.dropmenu button:hover { background: var(--glass-2); }
.dropmenu button[aria-selected="true"] { background: linear-gradient(45deg, #fff 30%, #f0f0f0 90%); color: #000; }

.viewmodes { display: flex; gap: 10px; padding: 5px; height: 50px; background: var(--glass); border-radius: 10px; }
.viewmodes button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 1px 0; border-radius: 8px; font-size: 18px; transition: background-color .3s, color .3s; }
.viewmodes button:hover { background: var(--glass-2); }
.viewmodes button.active { background: #fff; color: #000; }
.viewmodes button svg { transition: transform .3s; }
.viewmodes button.flipped svg { transform: scaleY(-1); }

.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 5px; margin-bottom: 40px; }
.ep {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: #212121; transition: box-shadow .3s;
}
.ep:hover, .ep-row:hover { box-shadow: 0 0 0 3px var(--glass-2); }
.ep-num {
  position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .8); font-weight: 700; font-size: 16px;
}
.ep-flag {
  position: absolute; right: 10px; top: 10px; height: 30px; padding: 0 10px; border-radius: 10px;
  display: flex; align-items: center; gap: 7px; background: rgba(0, 0, 0, .8); font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.ep-flag svg { font-size: 15px; color: var(--accent); }
.ep-flag.is-seen span { display: none; }
.ep-flag.is-seen, .ep:hover .ep-flag, .ep:focus-visible .ep-flag, .ep-row:hover .ep-flag { opacity: 1; }
.ep:hover .ep-flag.is-seen span, .ep-row:hover .ep-flag.is-seen span { display: inline; }
.ep-fade {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 15px; text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
}
.ep-title { display: block; font-weight: 700; font-size: 16px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ep-list { display: block; padding-top: 5px; margin-bottom: 55px; }
.ep-row {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 202px; margin-bottom: 20px; padding-right: 20px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 10px; text-align: left; transition: box-shadow .3s;
}
.ep-row .thumb { position: relative; inset: auto; flex: none; width: 356px; max-width: 42%; aspect-ratio: 16 / 9; align-self: stretch; border-radius: 10px 0 0 10px; }
.ep-row .ep-flag { right: auto; left: 10px; top: 8px; height: 40px; }
.row-text { display: block; padding: 14px 10px 14px 20px; min-width: 0; }
.row-text strong { display: block; font-size: 24px; line-height: 30px; font-weight: 700; }
.row-pos { display: block; font-size: 20px; line-height: 25px; }
.row-syn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 14px; line-height: 21px; opacity: .7; }

#specials .section-head { min-height: 40px; }

.panel { margin: 32px 0 0; padding: 20px; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; }
.panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.panel p { font-size: 14.4px; line-height: 1.5; max-width: 80ch; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 50px; background: rgba(128, 128, 128, .08); border: 1px solid rgba(128, 128, 128, .25); font-size: 13px; font-weight: 500; }
.chips svg { font-size: 14px; color: var(--accent); }

.to-top { display: flex; justify-content: center; padding: 40px 0 26px; }
.to-top a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); font-size: 16px; transition: background-color .3s, transform .3s; }
.to-top a:hover { background: var(--glass-2); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 16px 26px 4px; background: var(--sheet); border-top: 1px solid #272727; color: var(--muted); text-align: center; }
.site-footer p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 16px 0; }
.site-footer svg { width: 20px; height: 16px; }
.foot-brand { color: #999; font-weight: 700; font-size: 18px; gap: 10px !important; }
.foot-brand svg { width: 40px; height: 40px; filter: saturate(.2) brightness(.8); }
.foot-links a { display: inline-flex; align-items: center; gap: 4px; transition: color .3s; }
.foot-links a:hover { color: #fff; }
.foot-note { font-size: 14px; }

/* ---------- Onboarding dialog ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: none; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
dialog[open] { animation: pop .28s cubic-bezier(.32, .72, 0, 1); }
dialog[open]::backdrop { animation: fade .28s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

.onboard {
  width: min(462px, calc(100vw - 24px)); border-radius: 16px; overflow: hidden;
  background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.ob-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.ob-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 800; font-size: 17px; letter-spacing: -.2px; }
.ob-brand svg { width: 22px; height: 22px; }
.ob-lang { position: relative; display: flex; align-items: center; gap: 6px; width: 150px; height: 24px; font-size: 13px; opacity: .85; }
.ob-lang svg { font-size: 14px; }
.ob-lang select {
  flex: 1; min-width: 0; border: 0; background: transparent no-repeat right 2px center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.500 1.500 6 6l4.500-4.500' fill='none' stroke='%23fff' stroke-width='1.800'/%3E%3C/svg%3E");
  appearance: none; -webkit-appearance: none; padding: 2px 18px 2px 6px; font-size: 13px; cursor: pointer; text-overflow: ellipsis;
}
.ob-x { display: flex; padding: 4px; font-size: 14px; opacity: .8; transition: opacity .2s; }
.ob-x:hover { opacity: 1; }
.ob-progress { height: 4px; margin: 0 18px; border-radius: 999px; background: var(--glass); overflow: hidden; }
.ob-progress div { height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .35s var(--ease); }
.ob-count { padding: 8px 18px 0; font-size: 12px; opacity: .7; }
.ob-body section { padding: 6px 18px 14px; animation: step .3s var(--ease); }
@keyframes step { from { opacity: 0; transform: translateX(16px); } }
.ob-icon { height: 32px; margin: 6px 0 10px; font-size: 28px; color: var(--accent); }
.ob-body h2 { font-size: 20px; font-weight: 700; line-height: 26px; margin-bottom: 8px; }
.ob-body p { font-size: 15px; line-height: 21px; }
.ob-field { display: block; margin-top: 14px; }
.ob-field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.ob-field select {
  width: 100%; height: 38px; padding: 0 34px 0 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 15px;
  background: rgba(0, 0, 0, .35) no-repeat right 12px center / 11px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.500 1.500 6 6l4.500-4.500' fill='none' stroke='%23fff' stroke-width='1.800'/%3E%3C/svg%3E");
  appearance: none; -webkit-appearance: none; transition: border-color .2s;
}
.ob-field select:hover { border-color: rgba(128, 128, 128, .5); }
.ob-foot { padding: 12px 18px 16px; border-top: 1px solid rgba(128, 128, 128, .12); }
.ob-secondary { display: flex; justify-content: flex-end; gap: 16px; min-height: 22px; }
.ob-secondary button { padding: 4px 2px; font-size: 12.5px; font-weight: 600; opacity: .65; transition: opacity .2s; }
.ob-secondary button:hover { opacity: 1; text-decoration: underline; }
.ob-primary { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; min-height: 60px; }
.ob-btn { min-width: 100px; height: 50px; padding: 0 30px; border-radius: 10px; background: var(--glass); font-size: 17px; font-weight: 500; transition: background-color .3s; }
.ob-btn:hover { background: var(--glass-2); }
.ob-next { margin-left: auto; }
.ob-next:focus-visible, .ob-next:focus { outline: 2px solid #9ccfff; outline-offset: 0; }

/* ---------- Episode dialog ---------- */
dialog:not(.onboard) {
  width: min(1100px, calc(100vw - 52px)); max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 14px; background: rgba(17, 18, 22, .86); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); scrollbar-width: thin; scrollbar-color: #444 transparent;
}
.player { position: relative; aspect-ratio: 16 / 9; margin: 16px 16px 0; border-radius: 10px; overflow: hidden; background: #000; display: grid; place-items: center; box-shadow: 0 0 80px rgba(120, 150, 210, .12); }
.player video { width: 100%; height: 100%; background: #000; }
.player .notice { max-width: 520px; margin: 16px; padding: 14px 18px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-align: center; font-size: 14px; line-height: 21px; }
.big-play {
  display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%;
  background: rgba(0, 0, 0, .2); border: 3px solid #fff; font-size: 26px; padding-left: 4px; transition: background-color .3s, transform .3s;
}
.big-play:hover { background: rgba(0, 0, 0, .5); transform: scale(1.06); }

.dialog-body { display: flex; flex-direction: column; padding: 12px 16px 16px; }
.dialog-body > p { padding: 20px; font-size: 15px; opacity: .8; }
.dialog-body .error { color: #ff9b9b; }
.dialog-body h2 { font-size: 28px; line-height: 33.6px; font-weight: 600; }
.meta { margin-top: 6px; font-size: 14px; opacity: .75; }
.meta.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; opacity: 1; }
.ep-code { flex: 0 0 100%; margin-bottom: 8px; font-size: 13px; opacity: .65; }
.stat {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 66px; padding: 12px 10px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}
.stat-v { display: flex; align-items: center; gap: 6px; font-size: 14px; text-align: center; }
.stat-v svg { font-size: 15px; color: var(--accent); }
.stat.gold .stat-v svg { color: #f5c518; }
.stat-l { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; opacity: .6; }
.desc { margin-top: 12px; padding: 14px 18px; background: var(--glass); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); }
.desc h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.overview { font-size: 14px; line-height: 21px; }
.dialog-body > .overview { margin-top: 12px; opacity: .85; }
.overview:empty::before { content: "—"; opacity: .5; }

.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; margin-top: 8px; }
.btn, .chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 35px; padding: 0 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: background-color .2s, border-color .2s;
}
.btn:hover, .chip-btn:hover { background: var(--glass-2); }
.btn svg, .chip-btn svg { font-size: 13px; }
.btn:not(.ghost) { background: #fff; color: #000; border-color: #fff; }
.btn:not(.ghost):hover { background: #e4e4e4; }

.strip { order: 5; margin-top: 8px; background: rgba(128, 128, 128, .06); border: 1px solid var(--line); border-radius: 10px; }
.strip-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(128, 128, 128, .12); }
.strip-gap { flex: 1; }
.chip-btn { height: 30px; border-radius: 6px; padding: 0 10px; }
.strip-label { display: inline-block; margin: 12px 0 0 12px; padding: 5px 12px; border-radius: 8px; background: var(--glass); font-size: 13px; font-weight: 700; }
.strip-row { position: relative; display: flex; gap: 10px; padding: 10px 12px 14px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.strip-card { position: relative; flex: none; width: 190px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #212121; transition: box-shadow .3s; }
.strip-card:hover { box-shadow: 0 0 0 3px var(--glass-2); }
.strip-card[aria-current="true"] { box-shadow: 0 0 0 2px #fff; }
.strip-card .ep-num { left: 7px; top: 7px; width: 22px; height: 22px; font-size: 12px; }
.strip-card .ep-fade { padding: 14px 8px 7px; }
.strip-card .ep-title { font-size: 12.5px; line-height: 16px; font-weight: 600; }

/* Player dialog used without the dressing (loading / error states) */
.eps-tabs { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; }
.eps-tabs button { border-radius: 10px; padding: 8px 14px; background: var(--glass); white-space: nowrap; font-weight: 700; }
.eps-tabs button[aria-selected="true"] { background: #fff; color: #000; }
.eps { list-style: none; margin: 12px 0 0; padding: 0; max-height: 240px; overflow-y: auto; display: grid; gap: 6px; }
.eps button { width: 100%; text-align: left; border-radius: 8px; padding: 9px 12px; background: var(--glass); }
.eps button[aria-current="true"] { box-shadow: 0 0 0 2px #fff inset; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  main { margin: 0 13px; }
  .lead-bar { margin-top: 32px; }
  .navbar {
    top: auto; bottom: 12px; left: 50%; right: auto; transform: translateX(-50%);
    width: max-content; max-width: calc(100vw + 2px); height: 53px; padding: 2px 3px 0;
    border: 1px solid var(--line); border-radius: 9999px; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .4); overflow: hidden;
  }
  .navbar::before { border-radius: inherit; }
  .nav-inner { justify-content: center; }
  .nav-gap { display: none; }
  .nav-item { flex-direction: column; gap: 0; min-width: 76px; height: 47px; padding: 6px 12px; border-radius: 9999px; font-size: 12px; line-height: 15px; }
  .nav-item svg { width: 20px; height: 20px; padding: 2px 0; }
  .nav-item:hover { background: none; }
  .nav-indicator { border-radius: 9999px; }
  .nav-lang .lang-name { display: none; }
  .nav-lang .lang-short { display: inline; }
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding-bottom: 84px; }
  dialog:not(.onboard) { width: calc(100vw - 26px); }
  .ep-row { min-height: 0; }
  .row-text strong { font-size: 19px; line-height: 24px; }
  .row-pos { font-size: 16px; }
}
@media (max-width: 767px) {
  .ep-grid { grid-template-columns: minmax(0, 1fr); }
  .mini { width: 216px; }
  .lead-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 32px -13px 0; padding: 0 29px; }
  .lead-bar::-webkit-scrollbar { display: none; }
  .pill { flex: none; max-width: 86vw; }
  .pill-show strong { max-width: 56vw; }
  .section-head { min-height: 56px; }
  .toolbar { gap: 20px; }
  .dropdown { flex: 1; max-width: 200px; }
  .dropbtn { width: 100%; }
  .row-syn { display: none; }
  .player { margin: 10px 10px 0; }
  .dialog-body { padding: 10px; }
  .dialog-body h2 { font-size: 22px; line-height: 27px; }
  .stat { flex-basis: 30%; padding: 10px 6px; }
  .stat-v { font-size: 13px; flex-wrap: wrap; justify-content: center; }
  .strip-card { width: 150px; }
  .big-play { width: 56px; height: 56px; font-size: 20px; }
}
@media (max-width: 420px) {
  .navbar { width: calc(100vw + 2px); }
  .nav-item { min-width: 0; flex: 1; padding: 6px 4px; }
  .ep-num { width: 24px; height: 24px; font-size: 13px; }
  .ep-title { font-size: 14px; }
  .ob-lang { width: 120px; }
  .ob-btn { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
