:root {
  color-scheme: dark;
  font-family: "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #000000;
  --bg-soft: #000000;
  --sidebar: #000000;
  --surface: #050505;
  --surface-2: #0b0b0b;
  --surface-3: #151515;
  --text: #f4f7fb;
  --muted: #a7b0bd;
  --subtle: #737f8d;
  --accent: #22c7c7;
  --accent-2: #f06292;
  --accent-ink: #061111;
  --danger: #ff7a8a;
  --border: transparent;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.22);
  --radius: 8px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #eef3f8;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf3f7;
  --surface-3: #dce8ef;
  --text: #111827;
  --muted: #475569;
  --subtle: #64748b;
  --accent: #0891b2;
  --accent-2: #e11d48;
  --accent-ink: #ecfeff;
  --danger: #dc2626;
  --border: transparent;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.1);
}

html[data-theme="manga_ink"] {
  color-scheme: light;
  --bg: #f6f1e8;
  --bg-soft: #eee5d8;
  --sidebar: #fffaf0;
  --surface: #fffaf0;
  --surface-2: #efe5d7;
  --surface-3: #ded0be;
  --text: #191817;
  --muted: #5f5650;
  --subtle: #7d7169;
  --accent: #d72638;
  --accent-2: #111827;
  --accent-ink: #fff5f5;
  --danger: #b91c1c;
  --shadow: 0 18px 54px rgba(25, 24, 23, 0.13);
  --shadow-soft: 0 12px 30px rgba(25, 24, 23, 0.09);
}

html[data-theme="sakura_dawn"] {
  color-scheme: light;
  --bg: #fff4f7;
  --bg-soft: #fdeaf1;
  --sidebar: #fffafd;
  --surface: #fffafd;
  --surface-2: #fae3ec;
  --surface-3: #f4cbdc;
  --text: #3d1f2d;
  --muted: #75465d;
  --subtle: #9a657c;
  --accent: #db2777;
  --accent-2: #0284c7;
  --accent-ink: #fff1f7;
  --danger: #e11d48;
  --shadow: 0 22px 64px rgba(219, 39, 119, 0.14);
  --shadow-soft: 0 12px 30px rgba(219, 39, 119, 0.1);
}

html[data-theme="neon_shibuya"] {
  --bg: #07040f;
  --bg-soft: #0d0717;
  --sidebar: #090512;
  --surface: #10091f;
  --surface-2: #1a0f31;
  --surface-3: #2a174f;
  --text: #f6f0ff;
  --muted: #c7b9d8;
  --subtle: #8d7ca2;
  --accent: #22d3ee;
  --accent-2: #f43f5e;
  --accent-ink: #06111a;
  --danger: #fb7185;
  --shadow: 0 22px 76px rgba(244, 63, 94, 0.22);
  --shadow-soft: 0 14px 38px rgba(34, 211, 238, 0.12);
}

html[data-theme="mecha_hangar"] {
  --bg: #0d1117;
  --bg-soft: #111820;
  --sidebar: #0f141b;
  --surface: #151a21;
  --surface-2: #1d242d;
  --surface-3: #29323d;
  --text: #edf2f7;
  --muted: #a8b3c2;
  --subtle: #748193;
  --accent: #f59e0b;
  --accent-2: #2dd4bf;
  --accent-ink: #1a1002;
  --danger: #ef4444;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme="ocean_train"] {
  --bg: #071923;
  --bg-soft: #0a2230;
  --sidebar: #081d28;
  --surface: #0d2a3a;
  --surface-2: #12384a;
  --surface-3: #174c64;
  --text: #eefcff;
  --muted: #a9c9d4;
  --subtle: #78a3b4;
  --accent: #38bdf8;
  --accent-2: #fb7185;
  --accent-ink: #04131a;
  --danger: #f97316;
  --shadow: 0 22px 70px rgba(2, 132, 199, 0.18);
  --shadow-soft: 0 14px 36px rgba(2, 132, 199, 0.12);
}

html[data-theme="shrine_sunset"] {
  --bg: #211218;
  --bg-soft: #2a1620;
  --sidebar: #25141b;
  --surface: #321827;
  --surface-2: #431f31;
  --surface-3: #5a293c;
  --text: #fff4e8;
  --muted: #ddbaa6;
  --subtle: #aa806d;
  --accent: #ef4444;
  --accent-2: #fbbf24;
  --accent-ink: #fff7ed;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(239, 68, 68, 0.18);
  --shadow-soft: 0 14px 36px rgba(251, 191, 36, 0.1);
}

html[data-theme="idol_stage"] {
  --bg: #05030a;
  --bg-soft: #0b0712;
  --sidebar: #090710;
  --surface: #12101c;
  --surface-2: #1e1930;
  --surface-3: #302648;
  --text: #fff7fd;
  --muted: #d7c4d9;
  --subtle: #9e88a3;
  --accent: #f472b6;
  --accent-2: #22d3ee;
  --accent-ink: #1f0714;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(244, 114, 182, 0.2);
  --shadow-soft: 0 14px 36px rgba(34, 211, 238, 0.11);
}

html[data-theme="witch_atelier"] {
  --bg: #171125;
  --bg-soft: #1c1530;
  --sidebar: #1a1329;
  --surface: #241936;
  --surface-2: #302145;
  --surface-3: #3f2b5b;
  --text: #f7f0ff;
  --muted: #c9bad9;
  --subtle: #907ca8;
  --accent: #84cc16;
  --accent-2: #f59e0b;
  --accent-ink: #101b03;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 36px rgba(132, 204, 22, 0.1);
}

html[data-theme="summer_festival"] {
  --bg: #101436;
  --bg-soft: #141947;
  --sidebar: #12163e;
  --surface: #181d4b;
  --surface-2: #222862;
  --surface-3: #303777;
  --text: #fffbea;
  --muted: #d8d0a7;
  --subtle: #a49b78;
  --accent: #fde047;
  --accent-2: #ef4444;
  --accent-ink: #1e1a05;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(253, 224, 71, 0.13);
  --shadow-soft: 0 14px 36px rgba(239, 68, 68, 0.12);
}

html[data-theme="winter_ova"] {
  color-scheme: light;
  --bg: #edf7ff;
  --bg-soft: #dceefb;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #e4f1fb;
  --surface-3: #cfe4f4;
  --text: #172033;
  --muted: #506070;
  --subtle: #758293;
  --accent: #0284c7;
  --accent-2: #7c3aed;
  --accent-ink: #f0f9ff;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(2, 132, 199, 0.14);
  --shadow-soft: 0 14px 36px rgba(2, 132, 199, 0.09);
}

html[data-theme="cyber_neko"] {
  --bg: #020604;
  --bg-soft: #04100b;
  --sidebar: #030b08;
  --surface: #07110d;
  --surface-2: #0d1d15;
  --surface-3: #143320;
  --text: #f2fff6;
  --muted: #b6d0bd;
  --subtle: #7ea386;
  --accent: #a3e635;
  --accent-2: #f0abfc;
  --accent-ink: #071101;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(163, 230, 53, 0.13);
  --shadow-soft: 0 14px 36px rgba(240, 171, 252, 0.1);
}

html[data-theme="bamboo_rain"] {
  color-scheme: light;
  --bg: #eef8ef;
  --bg-soft: #dceee0;
  --sidebar: #f8fff8;
  --surface: #f8fff8;
  --surface-2: #dcecdf;
  --surface-3: #c7dfcc;
  --text: #17251b;
  --muted: #46624d;
  --subtle: #64836b;
  --accent: #15803d;
  --accent-2: #0ea5e9;
  --accent-ink: #f0fdf4;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(21, 128, 61, 0.12);
  --shadow-soft: 0 14px 36px rgba(21, 128, 61, 0.08);
}

html[data-theme="sports_arc"] {
  color-scheme: light;
  --bg: #f7fafc;
  --bg-soft: #edf2f7;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #e8eef5;
  --surface-3: #d4dde8;
  --text: #102033;
  --muted: #46576b;
  --subtle: #68798c;
  --accent: #f97316;
  --accent-2: #16a34a;
  --accent-ink: #fff7ed;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.13);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.09);
}

html[data-theme="space_opera"] {
  --bg: #050816;
  --bg-soft: #090d21;
  --sidebar: #070a19;
  --surface: #111329;
  --surface-2: #1a1d3a;
  --surface-3: #252850;
  --text: #f2f4ff;
  --muted: #b8bdd9;
  --subtle: #8188ad;
  --accent: #818cf8;
  --accent-2: #fbbf24;
  --accent-ink: #080b1d;
  --danger: #fb7185;
  --shadow: 0 22px 76px rgba(129, 140, 248, 0.18);
  --shadow-soft: 0 14px 36px rgba(251, 191, 36, 0.1);
}

html[data-theme="retro_vhs"] {
  --bg: #121826;
  --bg-soft: #172033;
  --sidebar: #151c2b;
  --surface: #1f2937;
  --surface-2: #283444;
  --surface-3: #374455;
  --text: #f2f5f8;
  --muted: #b8c1ca;
  --subtle: #87929f;
  --accent: #14b8a6;
  --accent-2: #ef4444;
  --accent-ink: #031716;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(20, 184, 166, 0.13);
  --shadow-soft: 0 14px 36px rgba(239, 68, 68, 0.1);
}

html[data-theme="magical_girl"] {
  color-scheme: light;
  --bg: #fff7fb;
  --bg-soft: #fceef8;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8e7f3;
  --surface-3: #efd2e8;
  --text: #322036;
  --muted: #684b72;
  --subtle: #8f6a99;
  --accent: #ec4899;
  --accent-2: #8b5cf6;
  --accent-ink: #fff1f7;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(236, 72, 153, 0.14);
  --shadow-soft: 0 14px 36px rgba(139, 92, 246, 0.1);
}

html[data-theme="kaiju_alert"] {
  --bg: #0a0a0a;
  --bg-soft: #11100f;
  --sidebar: #0d0c0b;
  --surface: #181311;
  --surface-2: #261d19;
  --surface-3: #39251f;
  --text: #fff5ed;
  --muted: #d0b1a1;
  --subtle: #9a7562;
  --accent: #ef4444;
  --accent-2: #84cc16;
  --accent-ink: #fff7ed;
  --danger: #fb7185;
  --shadow: 0 22px 76px rgba(239, 68, 68, 0.2);
  --shadow-soft: 0 14px 36px rgba(132, 204, 22, 0.1);
}

html[data-theme="cozy_slice"] {
  color-scheme: light;
  --bg: #faf3ea;
  --bg-soft: #f2e5d7;
  --sidebar: #fffaf5;
  --surface: #fffaf5;
  --surface-2: #f0dfce;
  --surface-3: #e1c8b3;
  --text: #35251d;
  --muted: #6b5143;
  --subtle: #8a6f60;
  --accent: #0f766e;
  --accent-2: #fb7185;
  --accent-ink: #ecfeff;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(53, 37, 29, 0.12);
  --shadow-soft: 0 14px 36px rgba(53, 37, 29, 0.08);
}

html[data-theme="anime_afterglow"] {
  --bg: #100817;
  --bg-soft: #160c20;
  --sidebar: #140a1d;
  --surface: #1b1026;
  --surface-2: #261635;
  --surface-3: #352044;
  --text: #fff2fb;
  --muted: #d6bad0;
  --subtle: #a986a1;
  --accent: #ff6b9a;
  --accent-2: #f8c967;
  --accent-ink: #220710;
  --danger: #ff8a80;
  --shadow: 0 22px 76px rgba(255, 107, 154, 0.2);
  --shadow-soft: 0 14px 36px rgba(248, 201, 103, 0.1);
}

html[data-theme="moonlit_senpai"] {
  --bg: #070b18;
  --bg-soft: #0b1021;
  --sidebar: #090e1c;
  --surface: #10172a;
  --surface-2: #18213a;
  --surface-3: #24304f;
  --text: #eef4ff;
  --muted: #b9c5df;
  --subtle: #8290ad;
  --accent: #93c5fd;
  --accent-2: #f9a8d4;
  --accent-ink: #07111f;
  --danger: #fb7185;
  --shadow: 0 22px 76px rgba(147, 197, 253, 0.18);
  --shadow-soft: 0 14px 36px rgba(249, 168, 212, 0.1);
}

html[data-theme="final_boss"] {
  --bg: #070208;
  --bg-soft: #0e050f;
  --sidebar: #0b040c;
  --surface: #130914;
  --surface-2: #1f0d22;
  --surface-3: #2b1230;
  --text: #fff1f8;
  --muted: #d4aec9;
  --subtle: #9f7897;
  --accent: #ef4444;
  --accent-2: #c084fc;
  --accent-ink: #fff1f2;
  --danger: #ff6b6b;
  --shadow: 0 24px 82px rgba(239, 68, 68, 0.22);
  --shadow-soft: 0 14px 40px rgba(192, 132, 252, 0.12);
}

html[data-theme="starlight_idol"] {
  --bg: #070b20;
  --bg-soft: #0b1130;
  --sidebar: #090e27;
  --surface: #101833;
  --surface-2: #1a2448;
  --surface-3: #25335f;
  --text: #f7fbff;
  --muted: #c7d2e8;
  --subtle: #8b99b8;
  --accent: #5eead4;
  --accent-2: #ff8fab;
  --accent-ink: #06221e;
  --danger: #fb7185;
  --shadow: 0 22px 76px rgba(94, 234, 212, 0.18);
  --shadow-soft: 0 14px 36px rgba(255, 143, 171, 0.1);
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  border: 0;
}

button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  flex: 0 0 auto;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 82%, white 18%);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell--admin {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  padding: 34px 18px 22px;
  background: var(--sidebar);
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--text);
  font-weight: 820;
}

.sidebar__nav,
.mobile-menu {
  display: grid;
  gap: 8px;
}

.sidebar__nav-panel {
  padding-top: 6px;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.sidebar__nav .nav-link::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.nav-link__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: currentColor;
}

.nav-link__icon .ui-icon,
.mobile-menu .nav-link__icon .ui-icon {
  width: 18px;
  height: 18px;
}

.nav-link__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  transform: translateX(2px);
}

.nav-link:hover .nav-link__icon,
.nav-link:focus-visible .nav-link__icon,
.nav-link--active .nav-link__icon {
  color: currentColor;
}

.nav-link--active,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.sidebar__nav .nav-link--active::before,
.sidebar__nav .nav-link[aria-current="page"]::before {
  background: var(--accent);
}

.account-box,
.account-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.account-box {
  margin-top: auto;
  position: relative;
}

.account-chip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.account-chip img,
.account-chip > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  object-fit: cover;
}

.account-chip > span .ui-icon,
.icon-button .ui-icon,
.button .ui-icon,
.search-box span .ui-icon {
  width: 18px;
  height: 18px;
}

.account-chip strong,
.account-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip strong {
  font-size: 0.88rem;
}

.account-chip small,
.account-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.account-box .button,
.account-box form,
.account-panel .button {
  width: 100%;
}

.account-menu__details {
  position: relative;
}

.account-menu__trigger {
  display: block;
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
}

.account-menu__trigger::-webkit-details-marker {
  display: none;
}

.account-menu__trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 82%, white 18%);
  outline-offset: 3px;
}

.account-menu__trigger .account-chip {
  min-height: 58px;
  border-radius: var(--radius);
  padding: 10px;
  background: transparent;
  transition:
    background 160ms ease;
}

.account-menu__trigger:hover .account-chip,
.account-menu__details[open] .account-menu__trigger .account-chip {
  background: var(--surface-2);
}

.account-menu__popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 6px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow);
}

.account-menu__popover::after {
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  content: "";
  transform: rotate(45deg);
}

.account-menu__item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  text-align: left;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.account-menu__item:hover,
.account-menu__item:focus-visible {
  color: var(--text);
  transform: translateX(2px);
}

.account-menu__item--primary {
  background: transparent;
  color: var(--muted);
}

.account-menu__item--primary:hover,
.account-menu__item--primary:focus-visible {
  color: var(--text);
}

.account-menu__button {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.account-menu__item .ui-icon {
  width: 18px;
  height: 18px;
}

.account-menu__item strong,
.account-menu__item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__item strong {
  font-size: 0.84rem;
}

.account-menu__item small {
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 0.74rem;
  line-height: 1.35;
}

.main-surface {
  min-width: 0;
  background: var(--bg);
}

.content-stack {
  display: grid;
  gap: 30px;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 46px) 64px;
}

.page-view {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.page-view--home {
  gap: 30px;
}

.mobile-header {
  display: none;
}

.button,
.icon-button,
.rating-picker__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button {
  padding: 0 15px;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
}

.button:hover,
.icon-button:hover,
.rating-picker__star:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button--primary:hover {
  background: color-mix(in srgb, var(--accent) 84%, white 16%);
}

.button--ghost {
  background: transparent;
  color: var(--muted);
}

.button--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.button--danger {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--border));
  background: color-mix(in srgb, var(--danger) 14%, var(--surface-2));
  color: var(--danger);
}

.button--danger:hover {
  background: color-mix(in srgb, var(--danger) 22%, var(--surface-2));
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--saved,
.icon-button--saved,
.rating-picker__star--active {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface-2));
  color: var(--accent);
}

.inline-form {
  display: inline-flex;
  min-width: 0;
}

.ui-icon {
  display: block;
  width: 1.08em;
  height: 1.08em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-header {
  display: grid;
  gap: 7px;
  padding: 2px 0 4px;
}

.page-header > span:first-child,
.section-heading span,
.hero__meta span,
.drawer__meta span,
.anime-card__meta,
.airing-day-tab span,
.airing-day header span,
.community-page-card span {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-header > span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-header h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-doc {
  width: min(100%, 920px);
  margin-inline: auto;
}

.legal-doc__body {
  display: grid;
  gap: 34px;
}

.legal-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.legal-section h2,
.legal-section p,
.legal-section ul {
  margin: 0;
}

.legal-section h2 {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  padding-left: 1.3rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  padding-top: 20px;
  color: var(--subtle);
  font-size: 0.82rem;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--accent);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading a,
.section-heading span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 840;
}

.schedule-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}

.schedule-actions span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-hub {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.profile-hub--guest {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.profile-card,
.profile-actions {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.profile-card {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.profile-card__top,
.profile-hub--guest .profile-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-hub--guest .profile-card .button,
.profile-hub--guest .profile-card p {
  grid-column: 1 / -1;
}

.profile-card__avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  object-fit: cover;
}

.profile-card__avatar .ui-icon {
  width: 28px;
  height: 28px;
}

.profile-card__top > div > span,
.profile-hub--guest .profile-card > div > span,
.profile-form label > span {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-card h2,
.profile-card p {
  margin: 0;
}

.profile-card h2 {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.5;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  padding: 0 12px;
}

.profile-form input[type="file"] {
  display: flex;
  align-items: center;
  padding: 9px 10px;
}

.profile-form input::placeholder {
  color: var(--subtle);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.profile-stats__head {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.profile-stats__head strong {
  font-size: 1rem;
  font-weight: 860;
}

.profile-stats__head span,
.profile-stat small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.profile-stat {
  display: grid;
  gap: 2px;
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.profile-stat strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 860;
}

.profile-privacy {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.profile-privacy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-privacy small {
  color: var(--muted);
}

.profile-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-content: start;
}

.profile-action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
  color: var(--text);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.profile-action:hover,
.profile-action:focus-visible {
  background: var(--surface-3);
  color: var(--text);
  transform: translateY(-1px);
}

.profile-action > span {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: span 2;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  color: currentColor;
}

.profile-action .ui-icon {
  width: 18px;
  height: 18px;
}

.profile-action strong,
.profile-action small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-action strong {
  font-size: 0.92rem;
  font-weight: 860;
}

.profile-action small {
  color: var(--muted);
  font-size: 0.78rem;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.settings-panel span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-panel h2,
.settings-panel p {
  margin: 0;
}

.settings-panel h2 {
  font-size: 1.45rem;
  letter-spacing: 0;
}

.settings-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  min-width: 0;
}

.theme-card {
  margin: 0;
}

.theme-card__button {
  display: grid;
  width: 100%;
  min-height: 168px;
  align-content: space-between;
  gap: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.theme-card__button:hover,
.theme-card__button:focus-visible,
.theme-card--active .theme-card__button {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  transform: translateY(-2px);
}

.theme-card--locked .theme-card__button {
  cursor: not-allowed;
  opacity: 0.72;
}

.theme-card--locked .theme-card__button:hover {
  background: var(--surface);
  transform: none;
}

.theme-card__top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.theme-card__top strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-card__top span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 860;
  text-transform: uppercase;
}

.theme-card__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.theme-card__swatches span {
  min-height: 38px;
  border-radius: 8px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent);
}

.theme-card__description {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-page {
  gap: 16px;
}

.admin-page-header {
  gap: 10px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.admin-sidebar__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 9px 10px;
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
}

.admin-sidebar__item:hover,
.admin-sidebar__item--active {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  color: var(--text);
}

.admin-sidebar__item .ui-icon {
  width: 18px;
  height: 18px;
}

.admin-sidebar__account {
  position: relative;
  z-index: 20;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.admin-sidebar__account .account-box {
  width: 100%;
  margin-top: 0;
}

.admin-sidebar__account .account-menu__trigger .account-chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.admin-sidebar__account .account-menu__trigger:hover .account-chip,
.admin-sidebar__account .account-menu__details[open] .account-menu__trigger .account-chip {
  background: var(--surface-3);
}

.admin-sidebar__account .account-menu__popover {
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
  left: 0;
}

.admin-sidebar__account .account-menu__popover::after {
  top: -6px;
  right: auto;
  bottom: auto;
  left: 18px;
}

.admin-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-panel,
.admin-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-panel__heading span,
.admin-stat span,
.admin-kv span,
.admin-form label > span,
.admin-url-list dt {
  color: var(--subtle);
  font-size: 0.73rem;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-panel h3,
.admin-stat strong,
.admin-stat small,
.admin-url-list,
.admin-kv {
  margin: 0;
}

.admin-muted,
.admin-stat small {
  color: var(--muted);
  line-height: 1.52;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 860;
  white-space: nowrap;
}

.admin-status--good {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface-2));
  color: var(--accent);
}

.admin-status--warn {
  background: color-mix(in srgb, var(--danger) 17%, var(--surface-2));
  color: var(--danger);
}

.admin-alert {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 760;
}

.admin-alert--ok {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
}

.admin-alert--bad {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat {
  display: grid;
  gap: 7px;
  min-height: 104px;
  align-content: space-between;
  padding: 16px;
}

.admin-stat strong {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.admin-grid--dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

.admin-panel--wide {
  grid-column: span 1;
}

.admin-panel__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel__heading h3 {
  margin-top: 5px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.admin-range-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 8px;
}

.admin-range-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 860;
}

.admin-range-tabs__item:hover,
.admin-range-tabs__item--active {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  color: var(--text);
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-chart-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.admin-chart-card .admin-panel__heading strong {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.admin-chart__svg {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
}

.admin-chart__grid,
.admin-chart__axis {
  stroke: color-mix(in srgb, var(--text) 12%, transparent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.admin-chart__axis {
  stroke: color-mix(in srgb, var(--text) 22%, transparent);
}

.admin-chart__line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.admin-chart__line--secondary {
  stroke: var(--accent-2);
}

.admin-chart__area {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}

.admin-chart__dot {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.admin-chart__legend,
.admin-chart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.admin-chart__legend {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-chart__legend i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.admin-chart__legend .admin-chart__legend-secondary {
  background: var(--accent-2);
}

.admin-bar-list {
  display: grid;
  gap: 12px;
}

.admin-bar-row {
  display: grid;
  gap: 7px;
}

.admin-bar-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-bar-row span,
.admin-bar-row small {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-bar-row strong {
  color: var(--text);
  font-size: 0.95rem;
}

.admin-bar-track {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

.admin-bar-track > span {
  display: block;
  min-width: 3px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.admin-url-list {
  display: grid;
  gap: 0;
}

.admin-url-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 50px;
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.admin-url-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-url-list dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.admin-url-list code {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: nowrap;
}

.admin-kv {
  display: grid;
  gap: 5px;
}

.admin-kv strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-copy,
.admin-cron-copy {
  display: grid;
  gap: 12px;
}

.admin-copy {
  gap: 7px;
}

.admin-copy,
.admin-cron-copy label {
  display: grid;
  gap: 7px;
}

.admin-copy span,
.admin-cron-copy span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-copy textarea,
.admin-cron-copy textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre;
  overflow: auto;
}

.admin-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-check-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 11px 12px;
  color: var(--muted);
}

.admin-check-list .pass {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--accent);
}

.admin-check-list .fail {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
  color: var(--danger);
}

.debug-trace {
  overflow: auto;
  max-height: 420px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 14px;
  white-space: pre-wrap;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  padding: 12px;
}

.admin-form select {
  min-height: 45px;
}

.admin-form textarea {
  resize: vertical;
}

.form-switch {
  display: inline-grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 45px;
  cursor: pointer;
  color: var(--text);
  font-weight: 780;
}

.form-switch > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.form-switch__track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.form-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.form-switch > input:checked + .form-switch__track {
  background: color-mix(in srgb, var(--accent) 42%, transparent);
}

.form-switch > input:checked + .form-switch__track::after {
  background: var(--accent);
  transform: translateX(20px);
}

.form-switch > input:focus-visible + .form-switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-switch > input:disabled ~ * {
  cursor: not-allowed;
  opacity: 0.48;
}

.form-switch__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.form-switch__copy strong {
  color: var(--text);
}

.form-switch__copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.admin-users-heading p {
  max-width: 780px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-user-list {
  display: grid;
  gap: 12px;
}

.admin-user-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.admin-user-card--banned {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--danger) 8%, transparent), transparent 55%),
    var(--surface-2);
}

.admin-user-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-3));
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
  object-fit: cover;
}

.admin-user-identity {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-user-title {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.admin-user-title h3,
.admin-user-title p,
.admin-user-ban-note {
  margin: 0;
}

.admin-user-title h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.admin-user-title p {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-user-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--subtle);
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 860;
}

.admin-user-badge--accent {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--accent);
}

.admin-user-badge--strong {
  border-color: color-mix(in srgb, var(--accent-2) 36%, var(--border));
  color: var(--accent-2);
}

.admin-user-badge--muted {
  color: var(--muted);
}

.admin-user-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.admin-user-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-3) 52%, transparent);
  padding: 10px;
}

.admin-user-metric small,
.admin-user-action-box > span {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 860;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-user-metric strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.admin-user-metric em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.35;
}

.admin-user-ban-note {
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface-2));
  color: var(--danger);
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 740;
}

.admin-user-manage {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 62%, var(--surface-2));
  overflow: hidden;
}

.admin-user-manage[open] {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.admin-user-manage__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 11px 12px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.admin-user-manage__summary::-webkit-details-marker {
  display: none;
}

.admin-user-manage__summary:hover {
  background: color-mix(in srgb, var(--surface-3) 72%, transparent);
}

.admin-user-manage__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.admin-user-manage__summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-user-manage__summary strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.admin-user-manage__summary small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-user-manage__chevron {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-3) 68%, transparent);
  color: var(--muted);
  transition: transform 160ms ease;
}

.admin-user-manage[open] .admin-user-manage__chevron {
  transform: rotate(90deg);
}

.admin-user-manage__chevron .ui-icon {
  width: 17px;
  height: 17px;
}

.admin-user-actions {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) minmax(220px, 0.9fr);
  gap: 10px;
  align-items: stretch;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-3) 34%, transparent);
  padding: 12px;
}

.admin-user-action-box {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.admin-user-action-box > strong {
  color: var(--text);
  font-size: 0.95rem;
}

.admin-user-action-box p,
.admin-user-action-box small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-user-premium-form small {
  min-height: 20px;
}

.admin-user-button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-button-row .button {
  flex: 1 1 110px;
}

.admin-user-danger-box {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--border));
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
}

.admin-user-confirm {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-weight: 780;
}

.admin-ad-manager {
  gap: 18px;
}

.admin-ad-manager__heading h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.admin-ad-manager__heading p {
  max-width: 680px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-ad-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-ad-summary {
  display: grid;
  gap: 6px;
  min-height: 104px;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--surface-2);
  padding: 14px;
}

.admin-ad-summary span,
.admin-ad-toolbar span,
.admin-ad-slot-actions span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-ad-summary strong {
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1;
}

.admin-ad-summary small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-ad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.admin-ad-toolbar > div {
  display: grid;
  gap: 5px;
}

.admin-ad-toolbar strong {
  color: var(--text);
}

.admin-ad-slot-list,
.admin-cron-health-list {
  display: grid;
  gap: 12px;
}

.admin-ad-slot-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 92%, var(--surface) 8%);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.admin-ad-slot-row[open] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 50%),
    var(--surface-2);
}

.admin-ad-slot-row__summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(270px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.admin-ad-slot-row__summary::-webkit-details-marker {
  display: none;
}

.admin-ad-slot-row__meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-ad-slot-row__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-3));
  color: var(--accent);
}

.admin-ad-slot-row:not([open]) .admin-ad-slot-row__summary:hover {
  background: color-mix(in srgb, var(--surface-3) 70%, transparent);
}

.admin-ad-slot-row__title,
.admin-ad-slot-row__summary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-ad-slot-row__meta strong {
  color: var(--text);
  font-size: 1rem;
}

.admin-ad-slot-row__meta small,
.admin-ad-idea-list span,
.admin-cron-health__body small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-ad-slot-row__badge {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  color: var(--accent);
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 860;
  text-transform: uppercase;
}

.admin-ad-slot-row__badge--muted {
  border-color: var(--border);
  color: var(--subtle);
}

.admin-ad-slot-row__summary-meta {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
}

.admin-ad-slot-row__summary-meta code {
  overflow: hidden;
  max-width: min(28vw, 300px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ad-slot-row__state {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--subtle);
}

.admin-ad-slot-row__state--enabled {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--accent);
}

.admin-ad-slot-row__state--paused {
  border-color: color-mix(in srgb, var(--accent-2) 34%, var(--border));
  color: var(--accent-2);
}

.admin-ad-slot-row__fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding: 14px;
}

.admin-ad-slot-row__field--place {
  grid-column: span 4;
}

.admin-ad-slot-row__field--custom {
  grid-column: span 3;
}

.admin-ad-slot-row__field--format {
  grid-column: span 2;
}

.admin-ad-slot-row__field--unit {
  grid-column: span 5;
}

.admin-ad-slot-row__field--order {
  grid-column: span 2;
}

.admin-ad-slot-row__field--max,
.admin-ad-slot-row__field--window,
.admin-ad-slot-row__field--clicks {
  grid-column: span 2;
}

.admin-ad-slot-row__enabled {
  align-self: end;
  grid-column: span 2;
  min-height: 47px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-3);
  padding-inline: 12px;
}

.admin-ad-slot-actions {
  display: flex;
  position: sticky;
  bottom: 12px;
  z-index: 5;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 12px;
  backdrop-filter: blur(18px);
}

.admin-ad-slot-row__remove {
  align-self: end;
  grid-column: span 2;
  min-height: 47px;
}

.admin-ad-idea-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-ad-idea-list li {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.admin-ad-idea-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-cron-health {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(210px, 0.75fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.admin-cron-health--good {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

.admin-cron-health--bad {
  border-color: color-mix(in srgb, var(--danger) 32%, var(--border));
}

.admin-cron-health--warn {
  border-color: color-mix(in srgb, var(--accent-2) 38%, var(--border));
}

.admin-cron-health__status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--danger);
  font-weight: 900;
}

.admin-cron-health--good .admin-cron-health__status {
  color: var(--accent);
}

.admin-cron-health--warn .admin-cron-health__status {
  color: var(--accent-2);
}

.admin-cron-health__status .ui-icon {
  width: 20px;
  height: 20px;
}

.admin-cron-health__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-cron-health__body strong,
.admin-cron-health__meta strong {
  overflow-wrap: anywhere;
}

.admin-cron-health__body span,
.admin-cron-health__meta span {
  color: var(--subtle);
  font-size: 0.73rem;
  font-weight: 840;
  text-transform: uppercase;
}

.admin-cron-health__meta {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 4px 8px;
  min-width: 0;
  font-size: 0.82rem;
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--border);
  padding: 8px 8px 8px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.search-box span {
  color: var(--accent);
}

.search-box input {
  min-width: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: var(--subtle);
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.filter-strip > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.filter-strip select,
.filter-strip input,
.review-form select {
  min-height: 40px;
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  padding: 0 38px 0 12px;
}

.filter-strip input {
  width: 112px;
  min-width: 112px;
  padding: 0 12px;
}

.filter-strip input::placeholder {
  color: var(--subtle);
}

.spotlight-grid {
  min-width: 0;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-carousel__track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-carousel__track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  display: grid;
  min-height: clamp(300px, 30vw, 390px);
  align-items: end;
  overflow: hidden;
  padding: clamp(18px, 3vw, 36px);
  padding-bottom: clamp(58px, 6vw, 72px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-slide__backdrop,
.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center center;
}

.hero-slide__backdrop {
  z-index: -2;
  object-fit: cover;
  filter: blur(22px) saturate(1.18);
  opacity: 0.52;
  transform: scale(1.12);
}

.hero-slide__image {
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-2);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.9), rgba(5, 8, 12, 0.54) 48%, rgba(5, 8, 12, 0.16)),
    linear-gradient(0deg, rgba(5, 8, 12, 0.88), transparent 58%);
}

html[data-theme="light"] .hero-slide__shade,
html[data-theme="manga_ink"] .hero-slide__shade,
html[data-theme="sakura_dawn"] .hero-slide__shade,
html[data-theme="winter_ova"] .hero-slide__shade,
html[data-theme="bamboo_rain"] .hero-slide__shade,
html[data-theme="sports_arc"] .hero-slide__shade,
html[data-theme="magical_girl"] .hero-slide__shade,
html[data-theme="cozy_slice"] .hero-slide__shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68) 50%, rgba(255, 255, 255, 0.18)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.95), transparent 62%);
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  max-width: 760px;
}

.hero-slide h1 {
  margin: 0;
  max-width: 920px;
  font-family: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  font-weight: 820;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-slide p {
  display: -webkit-box;
  max-width: 700px;
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-carousel__controls {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 34px);
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-carousel__controls > span {
  color: color-mix(in srgb, var(--text) 68%, transparent);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-carousel__dots a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
}

.hero-carousel__dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 42%, transparent);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.hero-carousel__dots a:first-child span,
.hero-carousel__dots a:hover span,
.hero-carousel__dots a:focus-visible span {
  background: var(--accent);
  transform: scale(1.45);
}

.hero-carousel--loading {
  display: grid;
  gap: 14px;
  min-height: 420px;
  align-content: end;
  padding: clamp(22px, 4vw, 48px);
}

.hero__meta,
.drawer__meta,
.anime-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero__meta span,
.drawer__meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: color-mix(in srgb, var(--text) 88%, transparent);
  padding: 0 10px;
}

.hero__meta .ui-icon,
.hero__quick-stat .ui-icon {
  width: 16px;
  height: 16px;
}

html[data-theme="light"] .hero__meta span,
html[data-theme="light"] .drawer__meta span,
html[data-theme="manga_ink"] .hero__meta span,
html[data-theme="manga_ink"] .drawer__meta span,
html[data-theme="sakura_dawn"] .hero__meta span,
html[data-theme="sakura_dawn"] .drawer__meta span,
html[data-theme="winter_ova"] .hero__meta span,
html[data-theme="winter_ova"] .drawer__meta span,
html[data-theme="bamboo_rain"] .hero__meta span,
html[data-theme="bamboo_rain"] .drawer__meta span,
html[data-theme="sports_arc"] .hero__meta span,
html[data-theme="sports_arc"] .drawer__meta span,
html[data-theme="magical_girl"] .hero__meta span,
html[data-theme="magical_girl"] .drawer__meta span,
html[data-theme="cozy_slice"] .hero__meta span,
html[data-theme="cozy_slice"] .drawer__meta span {
  background: rgba(17, 24, 39, 0.08);
}

.hero__meta span:first-child,
.drawer__meta span:first-child,
.anime-card__score,
.airing-card__time,
.airing-card__badges small:first-child {
  color: var(--accent);
}

.hero__genres,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__genres span,
.tag-cloud span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 13%, var(--surface-2));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 780;
}

.hero__quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__quick-stat {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  color: var(--text);
  font-size: 0.9rem;
}

html[data-theme="light"] .hero__quick-stat,
html[data-theme="manga_ink"] .hero__quick-stat,
html[data-theme="sakura_dawn"] .hero__quick-stat,
html[data-theme="winter_ova"] .hero__quick-stat,
html[data-theme="bamboo_rain"] .hero__quick-stat,
html[data-theme="sports_arc"] .hero__quick-stat,
html[data-theme="magical_girl"] .hero__quick-stat,
html[data-theme="cozy_slice"] .hero__quick-stat {
  background: rgba(17, 24, 39, 0.07);
}

.hero-carousel .hero__meta span,
.hero-carousel .hero__quick-stat,
.hero-carousel .hero__genres span,
html[data-theme="light"] .hero-carousel .hero__meta span,
html[data-theme="light"] .hero-carousel .hero__quick-stat,
html[data-theme="light"] .hero-carousel .hero__genres span,
html[data-theme="manga_ink"] .hero-carousel .hero__meta span,
html[data-theme="manga_ink"] .hero-carousel .hero__quick-stat,
html[data-theme="manga_ink"] .hero-carousel .hero__genres span,
html[data-theme="sakura_dawn"] .hero-carousel .hero__meta span,
html[data-theme="sakura_dawn"] .hero-carousel .hero__quick-stat,
html[data-theme="sakura_dawn"] .hero-carousel .hero__genres span,
html[data-theme="winter_ova"] .hero-carousel .hero__meta span,
html[data-theme="winter_ova"] .hero-carousel .hero__quick-stat,
html[data-theme="winter_ova"] .hero-carousel .hero__genres span,
html[data-theme="bamboo_rain"] .hero-carousel .hero__meta span,
html[data-theme="bamboo_rain"] .hero-carousel .hero__quick-stat,
html[data-theme="bamboo_rain"] .hero-carousel .hero__genres span,
html[data-theme="sports_arc"] .hero-carousel .hero__meta span,
html[data-theme="sports_arc"] .hero-carousel .hero__quick-stat,
html[data-theme="sports_arc"] .hero-carousel .hero__genres span,
html[data-theme="magical_girl"] .hero-carousel .hero__meta span,
html[data-theme="magical_girl"] .hero-carousel .hero__quick-stat,
html[data-theme="magical_girl"] .hero-carousel .hero__genres span,
html[data-theme="cozy_slice"] .hero-carousel .hero__meta span,
html[data-theme="cozy_slice"] .hero-carousel .hero__quick-stat,
html[data-theme="cozy_slice"] .hero-carousel .hero__genres span {
  background: transparent;
}

.hero-carousel .hero__meta span,
.hero-carousel .hero__quick-stat {
  padding: 0;
}

.hero-carousel .hero__genres span {
  min-height: 0;
  padding: 0;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.hero-carousel .hero__quick-stat {
  gap: 6px;
}

.hero__quick-stat small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.hero-carousel .button,
.hero-carousel .button:hover {
  box-shadow: none;
}

.hero-carousel .button--ghost,
.hero-carousel .button--ghost:hover {
  background: transparent;
}

.hero__actions,
.drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.anime-row,
.search-results,
.watchlist {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.rankings-page {
  gap: 20px;
}

.ranking-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.ranking-tab {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 68px;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ranking-tab:hover,
.ranking-tab--active {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.ranking-tab strong,
.ranking-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-tab strong {
  font-size: 0.94rem;
  font-weight: 860;
}

.ranking-tab span {
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: 0.78rem;
  font-weight: 720;
}

.ranking-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.ranking-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.1);
}

.ranking-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.92), rgba(5, 8, 12, 0.7) 48%, rgba(5, 8, 12, 0.34)),
    linear-gradient(0deg, rgba(5, 8, 12, 0.92), transparent 62%);
}

.ranking-hero__poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.ranking-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-hero__body {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: #fff;
}

.ranking-hero__body h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.ranking-hero__body p {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.55;
}

.ranking-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ranking-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-2));
  color: var(--accent);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.ranking-badge--lead {
  background: var(--accent);
  color: var(--accent-ink);
}

.ranking-stats,
.ranking-row__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ranking-stat {
  display: grid;
  gap: 2px;
  min-width: 76px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.44);
  padding: 8px 10px;
  color: #fff;
  backdrop-filter: blur(12px);
}

.ranking-row .ranking-stat {
  background: var(--surface-2);
  color: var(--text);
}

.ranking-stat small {
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ranking-stat strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ranking-podium-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.ranking-podium-card img {
  grid-row: span 2;
  width: 76px;
  height: 104px;
  border-radius: var(--radius);
  object-fit: cover;
}

.ranking-podium-card div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-podium-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 860;
  line-height: 1.2;
}

.ranking-podium-card span:last-child {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 820;
}

.ranking-board {
  display: grid;
  gap: 14px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.ranking-row__main {
  display: grid;
  grid-template-columns: 56px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ranking-row__rank {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 920;
}

.ranking-row__main img {
  width: 62px;
  height: 86px;
  border-radius: var(--radius);
  object-fit: cover;
}

.ranking-row__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-row__copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 860;
  line-height: 1.18;
}

.ranking-row__copy small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-page {
  gap: 18px;
}

.upcoming-board {
  min-width: 0;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 18px;
  min-width: 0;
}

.upcoming-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.upcoming-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.68;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.upcoming-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.upcoming-card__poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.68));
  content: "";
  pointer-events: none;
}

.upcoming-card:hover .upcoming-card__poster {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.upcoming-card:hover .upcoming-card__poster img {
  transform: scale(1.025);
}

.upcoming-card__score,
.upcoming-card__date {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  padding: 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 840;
  backdrop-filter: blur(10px);
}

.upcoming-card__score {
  left: 8px;
  bottom: 8px;
}

.upcoming-card__date {
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 62px);
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-card__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.upcoming-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.12;
}

.upcoming-card__title:hover {
  color: var(--accent);
}

.upcoming-card__meta {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.upcoming-card .inline-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.upcoming-card__save {
  width: 34px;
  height: 34px;
  min-height: 34px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  backdrop-filter: blur(10px);
}

.upcoming-card__save .ui-icon {
  width: 18px;
  height: 18px;
}

.upcoming-card__save:hover,
.icon-button--saved.upcoming-card__save {
  background: var(--accent);
  color: var(--accent-ink);
}

.poster-rail {
  display: grid;
  grid-auto-columns: minmax(190px, 215px);
  grid-auto-flow: column;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 4px 16px 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.result-grid,
.result-grid--saved {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 18px;
  min-width: 0;
}

.anime-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  scroll-snap-align: start;
}

.anime-card__poster {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.anime-card__poster::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.62));
  content: "";
  pointer-events: none;
}

.anime-card__poster-bg,
.anime-card__poster-main {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.anime-card__poster-bg {
  object-fit: cover;
  filter: blur(15px) saturate(1.12);
  opacity: 0.42;
  transform: scale(1.12);
}

.anime-card__poster-main {
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease;
}

.anime-card:hover .anime-card__poster {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.anime-card:hover .anime-card__poster-main {
  transform: scale(1.025);
}

.anime-card__score {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  min-width: 40px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(7, 10, 13, 0.78);
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 860;
  backdrop-filter: blur(10px);
}

.anime-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.anime-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.93rem;
  font-weight: 780;
  line-height: 1.28;
}

.anime-card__title:hover {
  color: var(--accent);
}

.anime-card__meta {
  gap: 7px;
  color: var(--subtle);
  font-size: 0.72rem;
}

.watchlist-status-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
}

.anime-card .inline-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.anime-card__save {
  width: 34px;
  height: 34px;
  min-height: 34px;
  background: rgba(7, 10, 13, 0.74);
  color: #fff;
  backdrop-filter: blur(10px);
}

.anime-card__save .ui-icon {
  width: 18px;
  height: 18px;
}

.anime-card__save:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.icon-button--saved.anime-card__save {
  background: var(--accent);
  color: var(--accent-ink);
}

.empty-state {
  display: grid;
  min-height: 160px;
  border: 1px solid var(--border);
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.empty-state h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
}

.airing-week {
  display: grid;
  gap: 18px;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.airing-week__mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.airing-week__mobile-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.airing-week__mobile-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.15;
}

.airing-week__mobile-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.airing-week__mobile-head .button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 12px;
}

.airing-week__batch {
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 820;
}

.airing-day-tabs {
  display: grid;
  grid-auto-columns: minmax(118px, 1fr);
  grid-auto-flow: column;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.airing-day-tab {
  display: grid;
  gap: 4px;
  min-height: 78px;
  align-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  opacity: 0.62;
  transition:
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.airing-day-tab:hover,
.airing-day-tab--active {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: var(--border);
  color: var(--text);
  opacity: 1;
  box-shadow: inset 0 -2px 0 var(--accent);
  transform: translateY(-1px);
}

.airing-day-tab strong {
  color: var(--text);
  font-size: 1rem;
}

.airing-day-tab small {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
}

.airing-week__grid {
  min-width: 0;
  background: transparent;
}

.airing-week--preview {
  gap: 12px;
}

.airing-week--preview .airing-week__grid {
  display: block;
}

.airing-week--full .airing-week__grid {
  display: grid;
  gap: 24px;
}

.airing-week--full .airing-day {
  scroll-margin-top: 86px;
}

.airing-day {
  display: grid;
  gap: 14px;
  background: transparent;
}

.airing-week--preview .airing-day {
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.airing-day header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 0;
  background: transparent;
}

.airing-day header div {
  display: grid;
  gap: 4px;
}

.airing-day header strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.airing-day header small {
  color: var(--accent);
  font-weight: 780;
}

.airing-day__list {
  display: grid;
  gap: 2px;
  background: transparent;
}

.airing-day__list p {
  margin: 0;
  color: var(--muted);
}

.airing-day__empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 84px;
  padding: 8px;
}

.airing-day__empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.airing-day__empty strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.airing-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  grid-template-rows: auto auto auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 84px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 6px;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.airing-card:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: var(--border);
  transform: translateX(2px);
}

.airing-card img {
  grid-row: 1 / 4;
  width: 52px;
  height: 72px;
  border-radius: 7px;
  object-fit: cover;
}

.airing-card__time {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 840;
  line-height: 1.2;
}

.airing-card__time .ui-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.airing-card__title {
  display: -webkit-box;
  grid-column: 2;
  overflow: hidden;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.airing-card__badges {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.airing-card__badges small {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
}

.airing-card__badges small:first-child {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  color: var(--accent);
}

.airing-card__chevron {
  display: grid;
  grid-column: 3;
  grid-row: 1 / 4;
  width: 28px;
  height: 28px;
  align-self: center;
  justify-self: end;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
}

.airing-card:hover .airing-card__chevron {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.detail-page {
  display: grid;
  gap: 0;
  width: min(100%, 1240px);
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drawer__banner {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(circle at 24% 24%, rgba(34, 199, 199, 0.16), transparent 30%),
    var(--surface-2);
}

.drawer__banner img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 0.82;
}

.drawer__banner::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.74)),
    linear-gradient(0deg, #000 4%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.12));
  content: "";
}

html[data-theme="light"] .drawer__banner::after,
html[data-theme="manga_ink"] .drawer__banner::after,
html[data-theme="sakura_dawn"] .drawer__banner::after,
html[data-theme="winter_ova"] .drawer__banner::after,
html[data-theme="bamboo_rain"] .drawer__banner::after,
html[data-theme="sports_arc"] .drawer__banner::after,
html[data-theme="magical_girl"] .drawer__banner::after,
html[data-theme="cozy_slice"] .drawer__banner::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.34) 52%, rgba(255, 255, 255, 0.76)),
    linear-gradient(0deg, var(--surface) 4%, rgba(255, 255, 255, 0.38) 58%, rgba(255, 255, 255, 0.08));
}

.drawer__intro {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  margin-top: -150px;
  padding: 0 clamp(18px, 3vw, 34px) 22px;
  position: relative;
  z-index: 1;
}

.drawer__intro > img {
  width: min(100%, 210px);
  aspect-ratio: 2 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.drawer__intro > div,
.drawer-section--rating > div {
  min-width: 0;
}

.drawer__intro h1,
.detail-page .drawer__intro h1 {
  margin: 10px 0 6px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.drawer__intro p {
  margin: 0 0 14px;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
  padding: 0 clamp(18px, 3vw, 34px) clamp(24px, 4vw, 40px);
}

.detail-sidebar {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.detail-main {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 16px;
  min-width: 0;
}

.drawer__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 clamp(18px, 3vw, 34px);
}

.detail-fact-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.detail-sidebar .detail-fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.detail-sidebar .drawer-section--rating {
  display: grid;
  align-items: start;
}

.detail-sidebar .rating-picker {
  justify-content: flex-start;
}

.drawer__facts div,
.watch-grid a,
.community-card,
.community-page-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.drawer__facts div {
  display: grid;
  gap: 6px;
  min-height: 78px;
  align-content: center;
  padding: 13px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-fact small {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-fact strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer__description {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.drawer-section,
.tag-cloud,
.mini-rail,
.people-grid {
  margin: 0 clamp(18px, 3vw, 34px);
}

.detail-layout .drawer-section,
.detail-layout .tag-cloud,
.detail-layout .mini-rail,
.detail-layout .people-grid,
.detail-layout .drawer__facts {
  margin: 0;
}

.drawer-section {
  display: grid;
  gap: 13px;
  padding: 18px 0 0;
}

.detail-main > .drawer-section,
.detail-sidebar > .drawer-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.drawer-section h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.drawer-section__heading,
.drawer-section--rating {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.rating-panel {
  margin-inline: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 48%),
    var(--surface);
  padding: 16px;
}

.drawer-section__heading p,
.drawer-section--rating p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.rating-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.rating-picker__star {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.rating-picker__star .ui-icon {
  width: 18px;
  height: 18px;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

.watch-grid a {
  display: grid;
  gap: 4px;
  padding: 14px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.watch-grid a:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
}

.watch-grid span {
  color: var(--text);
  font-weight: 760;
}

.watch-grid small {
  color: var(--accent);
  font-weight: 760;
}

.video-panel {
  overflow: hidden;
}

.video-panel .drawer-section__heading {
  align-items: start;
}

.video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.detail-main > .tag-cloud {
  padding: 0;
}

.detail-main > .tag-cloud span {
  border: 1px solid var(--border);
  background: var(--surface);
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-form--note {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto auto;
  align-items: center;
}

.comment-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  padding: 12px 13px;
}

.comment-form input::placeholder,
.review-form textarea::placeholder {
  color: var(--subtle);
}

.comment-form__recommend {
  display: inline-grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  padding: 0 12px;
  white-space: nowrap;
}

.review-form {
  display: grid;
  gap: 10px;
}

.comment-form--locked,
.review-form--locked {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 13px;
}

.comment-form--locked strong,
.review-form--locked strong {
  color: var(--text);
}

.comment-form--locked p,
.review-form--locked p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.review-form__top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.review-form__top label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.review-form textarea {
  min-height: 110px;
  resize: vertical;
}

.community-feed {
  display: grid;
  gap: 10px;
}

.community-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.community-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.community-card strong {
  color: var(--text);
}

.community-card span {
  color: var(--subtle);
  font-size: 0.78rem;
}

.community-card .community-card__meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.community-card__meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 8px;
}

.community-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.person {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.person img,
.person > span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--surface-2);
  object-fit: cover;
}

.person strong,
.person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person strong {
  font-size: 0.86rem;
}

.person small {
  color: var(--muted);
  font-size: 0.76rem;
}

.mini-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
  padding-bottom: 28px;
}

.mini-rail a {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mini-rail img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.mini-rail span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
}

.community-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.community-page-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.community-page-card a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.community-page-card img {
  width: 54px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
}

.community-page-card a span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 760;
}

.community-page-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.community-page-card strong {
  color: var(--accent);
}

.community-page-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
}

.skeleton,
.poster-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.skeleton::after,
.poster-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.25s infinite;
}

.poster-skeleton,
.skeleton--poster {
  aspect-ratio: 2 / 3;
}

.skeleton--line-lg {
  height: 46px;
}

.skeleton--line {
  height: 18px;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

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

.premium-page {
  display: grid;
  gap: 18px;
}

.premium-summary,
.premium-plan-grid,
.premium-admin-plans {
  display: grid;
  gap: 14px;
}

.premium-summary {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.premium-status-card,
.premium-perks,
.premium-plan,
.premium-admin-plan {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.premium-status-card span,
.premium-perks span,
.premium-plan span {
  color: var(--accent);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.premium-status-card h2,
.premium-plan h3 {
  margin: 0;
}

.premium-status-card p,
.premium-plan p,
.premium-policy-note,
.premium-plan__message {
  color: var(--muted);
}

.premium-perks ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.premium-perks li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 900;
  margin-right: 8px;
}

.premium-theme-preview {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.premium-theme-preview > div:first-child {
  display: grid;
  gap: 6px;
}

.premium-theme-preview span,
.premium-theme-card span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.premium-theme-preview h2,
.premium-theme-preview p {
  margin: 0;
}

.premium-theme-preview p,
.premium-theme-card small {
  color: var(--muted);
  line-height: 1.45;
}

.premium-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.premium-theme-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 158px;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.premium-theme-card > div:first-child {
  display: grid;
  gap: 5px;
}

.premium-theme-card strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.premium-theme-card__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.premium-theme-card__swatches span {
  min-height: 28px;
  border-radius: 6px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent);
}

.premium-plan {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.premium-plan--disabled {
  grid-template-columns: 1fr;
}

.premium-plan h3 small {
  color: var(--muted);
  font-size: 0.9rem;
}

.premium-plan__message {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 8px 0 0;
}

.premium-plan__message--bad {
  color: var(--danger);
}

.premium-admin-plan {
  display: grid;
  gap: 12px;
}

.admin-billing-connection,
.admin-billing-section,
.admin-billing-support {
  gap: 14px;
}

.admin-billing-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.6fr) minmax(140px, 0.5fr);
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 8px;
}

.admin-billing-strip > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-3) 44%, transparent);
  padding: 10px 12px;
}

.admin-billing-strip span,
.admin-billing-plan-title span,
.admin-billing-actions > span,
.admin-billing-plan-meta span,
.admin-billing-drawer__summary small {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 860;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-billing-strip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.25;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-grid label:nth-child(1),
.admin-form-grid label:nth-child(2),
.admin-form-grid label:nth-child(3) {
  grid-column: span 2;
}

.admin-form-grid label:nth-child(4),
.admin-form-grid label:nth-child(5),
.admin-form-grid label:nth-child(6) {
  grid-column: span 2;
}

.premium-admin-plans {
  gap: 12px;
}

.admin-billing-plan-card {
  border-color: var(--border);
  background: var(--surface-2);
  padding: 14px;
  overflow: hidden;
}

.admin-billing-form {
  gap: 14px;
}

.admin-billing-plan-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  gap: 14px;
  align-items: start;
}

.admin-billing-plan-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-billing-plan-title h3,
.admin-billing-plan-title p {
  margin: 0;
}

.admin-billing-plan-title h3 {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.15;
}

.admin-billing-plan-title p {
  color: var(--muted);
  line-height: 1.45;
}

.admin-billing-plan-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-billing-price {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 150px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-3));
  padding: 10px 12px;
}

.admin-billing-price strong {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1;
}

.admin-billing-price small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.admin-billing-plan-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-billing-plan-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3) 62%, transparent);
  color: var(--muted);
  padding: 0 9px;
}

.admin-billing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-3) 52%, transparent);
  padding: 12px;
}

.admin-billing-toggle {
  display: inline-grid;
  grid-template-columns: 46px minmax(0, 1fr);
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 0 11px;
}

.admin-billing-drawer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 68%, var(--surface-2));
  overflow: hidden;
}

.admin-billing-drawer[open] {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.admin-billing-plan-edit {
  margin-top: 12px;
}

.admin-billing-drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 11px 12px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.admin-billing-drawer__summary::-webkit-details-marker {
  display: none;
}

.admin-billing-drawer__summary:hover {
  background: color-mix(in srgb, var(--surface-3) 64%, transparent);
}

.admin-billing-drawer__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.admin-billing-drawer__summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-billing-drawer__summary strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.admin-billing-drawer__chevron {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-3) 68%, transparent);
  color: var(--muted);
  transition: transform 160ms ease;
}

.admin-billing-drawer[open] .admin-billing-drawer__chevron {
  transform: rotate(90deg);
}

.admin-billing-drawer__chevron .ui-icon {
  width: 17px;
  height: 17px;
}

.admin-billing-drawer__body {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-3) 32%, transparent);
  padding: 12px;
}

@media (max-width: 820px) {
  .premium-summary,
  .premium-plan,
  .premium-theme-grid {
    grid-template-columns: 1fr;
  }

  .admin-billing-strip,
  .admin-billing-plan-head,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid label:nth-child(n) {
    grid-column: 1;
  }

  .admin-billing-plan-side,
  .admin-billing-price {
    justify-items: start;
  }

  .admin-billing-price {
    width: 100%;
  }

  .admin-billing-actions,
  .admin-billing-actions .button,
  .admin-billing-toggle {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .content-stack {
    padding-inline: 22px;
  }

  .hero-slide {
    min-height: 330px;
  }

  .admin-ad-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-chart-grid,
  .admin-grid--dashboard {
    grid-template-columns: 1fr;
  }

  .admin-ad-slot-row__summary {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-ad-slot-row__summary-meta {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-ad-slot-row__summary-meta code {
    max-width: min(55vw, 420px);
  }

  .admin-ad-slot-row__fields {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .admin-ad-slot-row__field--place,
  .admin-ad-slot-row__field--unit {
    grid-column: span 6;
  }

  .admin-ad-slot-row__field--custom {
    grid-column: span 3;
  }

  .admin-ad-slot-row__field--format,
  .admin-ad-slot-row__field--max,
  .admin-ad-slot-row__field--window,
  .admin-ad-slot-row__field--clicks,
  .admin-ad-slot-row__enabled,
  .admin-ad-slot-row__remove {
    grid-column: span 2;
  }

  .admin-ad-slot-row__field--order {
    grid-column: span 2;
  }

  .admin-ad-slot-row__enabled {
    align-self: end;
  }

  .admin-user-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-user-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    gap: 0;
    background: color-mix(in srgb, var(--sidebar) 88%, transparent);
    padding: 10px 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
  }

  .mobile-menu-bar > span {
    color: var(--text);
    font-family: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 820;
  }

  .mobile-menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
  }

  .mobile-menu-button .ui-icon {
    width: 23px;
    height: 23px;
  }

  .mobile-drawer {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height 220ms ease,
      opacity 160ms ease,
      transform 160ms ease;
  }

  .mobile-menu-toggle:checked ~ .mobile-drawer {
    max-height: 560px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 0 4px;
  }

  .mobile-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .mobile-menu .nav-link {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 42px;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  }

  .mobile-menu .nav-link__icon {
    width: 22px;
    height: 22px;
  }

  .content-stack {
    padding: 22px 14px 42px;
  }

  .profile-hub,
  .profile-hub--guest {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-cron-health {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-cron-health__meta {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hero-slide {
    min-height: 360px;
    padding: 22px;
    padding-bottom: 70px;
  }

  .hero-carousel__controls {
    right: auto;
    left: 22px;
    bottom: 22px;
  }

  .drawer__intro {
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 16px;
    margin-top: -92px;
  }

  .drawer__intro > img {
    width: 138px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar,
  .detail-main {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

  .drawer__facts {
    grid-template-columns: 1fr;
  }

  .detail-sidebar .detail-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawer-section__heading,
  .drawer-section--rating {
    display: grid;
  }

  .rating-picker {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .search-box {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .search-box .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .filter-strip {
    display: grid;
  }

  .filter-strip select,
  .filter-strip input,
  .filter-strip .button {
    width: 100%;
    min-width: 0;
  }

  .poster-rail {
    grid-auto-columns: minmax(170px, 52vw);
  }

  .hero-slide {
    min-height: 390px;
    padding: 18px;
    padding-bottom: 72px;
  }

  .hero-slide h1 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .hero-slide p {
    -webkit-line-clamp: 4;
    font-size: 0.9rem;
  }

  .hero-carousel__controls > span {
    display: none;
  }

  .result-grid,
  .result-grid--saved {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .upcoming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .airing-card {
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    gap: 4px 10px;
  }

  .airing-card__chevron {
    width: 24px;
    height: 24px;
  }

  .airing-week__mobile-head {
    align-items: start;
  }

  .airing-week__mobile-head h2 {
    font-size: 1.05rem;
  }

  .airing-week--preview .airing-day {
    padding: 6px;
  }

  .drawer__intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin-top: -116px;
  }

  .drawer__intro > img {
    width: 118px;
  }

  .detail-layout {
    padding: 0 14px 26px;
  }

  .drawer__intro h1,
  .detail-page .drawer__intro h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 10vw, 2.35rem);
    white-space: normal;
  }

  .drawer__actions .button,
  .hero__actions .button,
  .hero__actions .inline-form,
  .drawer__actions .inline-form {
    flex: 1 1 100%;
  }

  .hero__actions .button,
  .drawer__actions .button {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  .comment-form,
  .comment-form--locked,
  .review-form--locked,
  .review-form__top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .comment-form .icon-button {
    width: 100%;
  }

  .admin-stat-grid,
  .admin-ad-summary-grid,
  .admin-ad-toolbar,
  .admin-ad-slot-row__summary,
  .admin-ad-slot-row__fields,
  .admin-user-main,
  .admin-user-title,
  .admin-user-metrics,
  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-user-main {
    align-items: start;
  }

  .admin-user-title {
    display: grid;
  }

  .admin-user-button-row,
  .admin-user-button-row .button,
  .admin-user-action-box .button {
    width: 100%;
  }

  .admin-ad-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-ad-slot-actions {
    align-items: stretch;
  }

  .admin-ad-toolbar .button,
  .admin-ad-slot-actions .button {
    width: 100%;
  }

  .admin-ad-slot-row__icon,
  .admin-ad-slot-row__summary-meta,
  .admin-ad-slot-row__field--place,
  .admin-ad-slot-row__field--custom,
  .admin-ad-slot-row__field--format,
  .admin-ad-slot-row__field--unit,
  .admin-ad-slot-row__field--order,
  .admin-ad-slot-row__field--max,
  .admin-ad-slot-row__field--window,
  .admin-ad-slot-row__field--clicks,
  .admin-ad-slot-row__enabled,
  .admin-ad-slot-row__remove {
    grid-column: 1;
  }

  .admin-ad-slot-row__summary-meta code {
    max-width: 100%;
  }

  .admin-url-list > div,
  .admin-url-list dd {
    grid-template-columns: 1fr;
  }

  .admin-url-list .button {
    width: 100%;
  }

  .ranking-tabs,
  .ranking-podium {
    grid-template-columns: 1fr;
  }

  .ranking-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ranking-hero__poster {
    width: 120px;
  }

  .ranking-hero__body h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .ranking-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .ranking-row__main {
    grid-template-columns: 44px 56px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-row__main img {
    width: 56px;
    height: 78px;
  }

  .ranking-row__stats {
    grid-column: 1 / -1;
    padding-left: 54px;
  }
}

@media (max-width: 420px) {
  .content-stack {
    padding-inline: 10px;
  }

  .airing-week,
  .empty-state,
  .account-panel,
  .community-page-card {
    border-radius: var(--radius);
  }

  .mobile-menu {
    grid-template-columns: 1fr;
  }

  .detail-sidebar .detail-fact-grid {
    grid-template-columns: 1fr;
  }

  .profile-card__top,
  .profile-hub--guest .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card__avatar {
    width: 58px;
    height: 58px;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .ranking-row,
  .ranking-row__main {
    grid-template-columns: 1fr;
  }

  .ranking-row__rank,
  .ranking-row__main img {
    width: 100%;
  }

  .ranking-row__main img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .ranking-row__stats {
    padding-left: 0;
  }
}

*,
*::before,
*::after {
  border-width: 0 !important;
}

/* Borderless surfaces: hierarchy comes from spacing, type, and interactive state. */
:where(
  .profile-card,
  .profile-actions,
  .profile-card__avatar,
  .profile-stats,
  .profile-stat,
  .profile-privacy,
  .profile-action,
  .profile-action:hover,
  .profile-action:focus-visible,
  .profile-action > span,
  .settings-panel,
  .theme-card__button,
  .theme-card__button:hover,
  .theme-card__button:focus-visible,
  .theme-card--active .theme-card__button,
  .theme-card--locked .theme-card__button:hover,
  .admin-sidebar,
  .admin-sidebar__item:hover,
  .admin-sidebar__item--active,
  .admin-sidebar__account .account-chip,
  .admin-panel,
  .admin-stat,
  .admin-status,
  .admin-alert,
  .admin-range-tabs,
  .admin-range-tabs__item:hover,
  .admin-range-tabs__item--active,
  .admin-chart-card,
  .admin-url-list code,
  .admin-copy textarea,
  .admin-cron-copy textarea,
  .admin-check-list li,
  .debug-trace,
  .admin-user-card,
  .admin-user-card--banned,
  .admin-user-avatar,
  .admin-user-metric,
  .admin-user-ban-note,
  .admin-user-manage,
  .admin-user-manage__summary:hover,
  .admin-user-manage__chevron,
  .admin-user-actions,
  .admin-user-action-box,
  .admin-user-danger-box,
  .admin-ad-summary,
  .admin-ad-toolbar,
  .admin-ad-slot-row,
  .admin-ad-slot-row[open],
  .admin-ad-slot-row__icon,
  .admin-ad-slot-row:not([open]) .admin-ad-slot-row__summary:hover,
  .admin-ad-slot-row__enabled,
  .admin-ad-slot-actions,
  .admin-cron-health,
  .search-box,
  .filter-strip,
  .ranking-tab,
  .ranking-tab:hover,
  .ranking-tab--active,
  .ranking-badge,
  .ranking-badge--lead,
  .ranking-stat,
  .ranking-row .ranking-stat,
  .ranking-podium-card,
  .ranking-row,
  .ranking-row__rank,
  .watchlist-status-form select,
  .empty-state,
  .airing-week__batch,
  .airing-day-tab,
  .airing-day-tab:hover,
  .airing-day-tab--active,
  .airing-week--preview .airing-day,
  .airing-day__empty > span,
  .airing-card,
  .airing-card:hover,
  .airing-card__badges small,
  .airing-card:hover .airing-card__chevron,
  .detail-page,
  .drawer__facts div,
  .watch-grid a,
  .watch-grid a:hover,
  .community-card,
  .community-page-card,
  .detail-main > .drawer-section,
  .detail-sidebar > .drawer-section,
  .rating-panel,
  .detail-main > .tag-cloud span,
  .comment-form__recommend,
  .comment-form--locked,
  .review-form--locked,
  .community-card__meta span,
  .person > span,
  .premium-status-card,
  .premium-perks,
  .premium-plan,
  .premium-admin-plan,
  .premium-theme-preview,
  .premium-theme-card,
  .admin-billing-strip,
  .admin-billing-strip > div,
  .admin-billing-plan-card,
  .admin-billing-price,
  .admin-billing-plan-meta span,
  .admin-billing-actions,
  .admin-billing-toggle,
  .admin-billing-drawer,
  .admin-billing-drawer__summary:hover,
  .admin-billing-drawer__chevron,
  .admin-billing-drawer__body,
  .mobile-menu .nav-link
) {
  background: transparent !important;
  box-shadow: none !important;
}

:where(
  .profile-form,
  .admin-form,
  .search-box,
  .filter-strip,
  .review-form,
  .comment-form,
  .watchlist-status-form
) :where(input:not([type="checkbox"]):not([type="hidden"]), select, textarea) {
  background: transparent !important;
  box-shadow: none !important;
}

input[type="file"]::file-selector-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button:not(.button--primary),
.icon-button,
.rating-picker__star {
  background: transparent !important;
  box-shadow: none !important;
}

.button:not(.button--primary):hover,
.icon-button:hover,
.rating-picker__star:hover {
  background: transparent !important;
  color: var(--accent);
}

.anime-card__save,
.upcoming-card__save {
  background: rgba(7, 10, 13, 0.72) !important;
}

.icon-button--saved.anime-card__save,
.icon-button--saved.upcoming-card__save {
  background: var(--accent) !important;
  color: var(--accent-ink);
}

.admin-sidebar__item--active,
.admin-range-tabs__item--active,
.ranking-tab--active,
.theme-card--active .theme-card__button {
  color: var(--accent);
}

.profile-card,
.profile-actions,
.profile-stats,
.profile-privacy,
.settings-panel,
.admin-sidebar,
.admin-panel,
.admin-stat,
.admin-chart-card,
.admin-user-card,
.admin-ad-summary,
.admin-ad-toolbar,
.admin-ad-slot-row,
.admin-cron-health,
.search-box,
.filter-strip,
.ranking-podium-card,
.ranking-row,
.empty-state,
.detail-main > .drawer-section,
.detail-sidebar > .drawer-section,
.premium-status-card,
.premium-perks,
.premium-plan,
.premium-theme-preview,
.premium-theme-card,
.premium-admin-plan {
  padding-inline: 0;
}

.profile-action,
.profile-stat,
.theme-card__button,
.admin-user-metric,
.admin-user-action-box,
.admin-billing-strip > div {
  padding-inline: 0;
}

.profile-action > span,
.admin-user-avatar,
.admin-ad-slot-row__icon {
  color: var(--accent);
}

.admin-grid,
.profile-hub,
.premium-summary,
.premium-plan-grid {
  gap: 24px;
}

.admin-status--bad {
  color: var(--danger);
}

.admin-diagnostic-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-diagnostic-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.admin-diagnostic-metric,
.admin-diagnostic-fact {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
}

.admin-diagnostic-metric > span,
.admin-diagnostic-fact > span {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-diagnostic-metric > strong {
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.admin-diagnostic-metric > small,
.admin-diagnostic-row__body small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-diagnostic-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.admin-diagnostic-group {
  align-self: start;
}

.admin-diagnostic-list {
  display: grid;
  gap: 14px;
}

.admin-diagnostic-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding-block: 6px;
}

.admin-diagnostic-row__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.admin-diagnostic-row__icon .ui-icon,
.admin-diagnostic-row__action .ui-icon {
  width: 18px;
  height: 18px;
}

.admin-diagnostic-row__body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-diagnostic-row__body > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-diagnostic-row__body strong,
.admin-diagnostic-row__body small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-diagnostic-row__state {
  flex: none;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-diagnostic-row--good .admin-diagnostic-row__icon,
.admin-diagnostic-row--good .admin-diagnostic-row__state {
  color: var(--accent);
}

.admin-diagnostic-row--warn .admin-diagnostic-row__icon,
.admin-diagnostic-row--warn .admin-diagnostic-row__state,
.admin-status--warn {
  color: var(--accent-2);
}

.admin-diagnostic-row--bad .admin-diagnostic-row__icon,
.admin-diagnostic-row--bad .admin-diagnostic-row__state {
  color: var(--danger);
}

.admin-diagnostic-row__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-diagnostic-row__action:hover,
.admin-diagnostic-row__action:focus-visible {
  color: var(--text);
}

.admin-diagnostic-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.admin-diagnostic-fact > strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

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

  .admin-diagnostic-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-diagnostic-overview-panel .admin-panel__heading {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-diagnostic-heading-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-diagnostic-overview-panel .admin-muted,
  .admin-diagnostic-groups,
  .admin-diagnostic-group,
  .admin-diagnostic-list {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-diagnostic-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .admin-diagnostic-row__action {
    grid-column: 2;
    justify-self: start;
  }

  .admin-diagnostic-row__body > div {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 420px) {
  .admin-diagnostic-overview,
  .admin-diagnostic-facts {
    grid-template-columns: 1fr;
  }
}

/* Dashboard visual polish */
.admin-page {
  gap: 22px;
}

.admin-page-header {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 92%, var(--accent)), var(--surface));
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.admin-page-header::after {
  position: absolute;
  right: 24px;
  bottom: -32px;
  width: 120px;
  height: 120px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.admin-page-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  letter-spacing: -0.04em;
}

.admin-page-header > span {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--muted);
}

.admin-shell {
  gap: 22px;
}

.admin-content {
  gap: 22px;
}

.admin-stat-grid--dashboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-grid--dashboard .admin-stat {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent) 13%, var(--border));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 78%, var(--accent)), var(--surface));
  padding: 18px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-stat-grid--dashboard .admin-stat::after {
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 108px;
  height: 108px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.admin-stat-grid--dashboard .admin-stat:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  transform: translateY(-2px);
}

.admin-stat-grid--dashboard .admin-stat strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 2.7vw, 2.45rem);
  letter-spacing: -0.05em;
}

.admin-stat-grid--dashboard .admin-stat small {
  position: relative;
  z-index: 1;
  max-width: 24ch;
}

.admin-chart-grid,
.admin-grid--dashboard {
  gap: 18px;
}

.admin-chart-card,
.admin-grid--dashboard .admin-panel {
  border-color: color-mix(in srgb, var(--text) 9%, var(--border));
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 48%, var(--surface)), var(--surface));
  padding: 20px;
}

.admin-chart-card {
  gap: 14px;
}

.admin-chart-card .admin-panel__heading h3,
.admin-grid--dashboard .admin-panel__heading h3 {
  letter-spacing: -0.025em;
}

.admin-chart__svg {
  height: 230px;
  margin-block: 2px;
}

.admin-range-tabs {
  width: fit-content;
  max-width: 100%;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
  padding: 6px;
}

.admin-range-tabs__item {
  min-height: 34px;
  border-radius: 9px;
  padding-inline: 14px;
}

@media (max-width: 1180px) {
  .admin-stat-grid--dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-page-header {
    border-radius: 14px;
    padding: 18px;
  }

  .admin-stat-grid--dashboard {
    grid-template-columns: 1fr;
  }

  .admin-chart-card,
  .admin-grid--dashboard .admin-panel {
    padding: 16px;
  }

  .admin-range-tabs {
    width: 100%;
  }

  .admin-range-tabs__item {
    flex: 1 1 auto;
  }
}
.not-found-page {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
  min-height: min(620px, calc(100vh - 180px));
  padding: clamp(28px, 7vw, 88px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 12px);
  background: radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%), linear-gradient(135deg, var(--surface), var(--surface-alt));
  box-shadow: var(--shadow-soft);
}

.not-found-page__visual {
  position: relative;
  display: grid;
  width: min(32vw, 310px);
  aspect-ratio: 1;
  margin-inline: auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  color: var(--accent);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 5%, transparent), 0 0 80px color-mix(in srgb, var(--accent) 18%, transparent);
}

.not-found-page__visual strong {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 1;
  transform: translateX(-0.08em);
}

.not-found-page__ring,
.not-found-page__ring::after {
  position: absolute;
  inset: 12%;
  border: 1px dashed color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 50%;
  content: '';
  animation: not-found-spin 18s linear infinite;
}

.not-found-page__ring::after {
  inset: 13%;
  border-style: solid;
  border-color: transparent color-mix(in srgb, var(--accent) 46%, transparent) transparent;
  animation-direction: reverse;
  animation-duration: 11s;
}

.not-found-page__dot {
  position: absolute;
  top: 16%;
  right: 17%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 26px var(--accent);
}

.not-found-page__copy {
  max-width: 600px;
}

.not-found-page__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.not-found-page__copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.not-found-page__copy p {
  max-width: 48ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.not-found-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

@keyframes not-found-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .not-found-page {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 22px 42px;
    text-align: center;
  }

  .not-found-page__visual {
    width: min(64vw, 250px);
  }

  .not-found-page__copy h1,
  .not-found-page__copy p {
    margin-inline: auto;
  }

  .not-found-page__actions {
    justify-content: center;
  }
}
.admin-user-library-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-library-links a,
.admin-user-library-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  padding: 0 11px;
  font-size: 0.76rem;
  font-weight: 820;
}

.admin-user-library-links a:hover,
.admin-user-library-tabs a:hover,
.admin-user-library-tabs a.admin-user-library-tab--active {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-3));
  color: var(--text);
}

.admin-user-library-links span,
.admin-user-library-tabs span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.admin-user-library-panel {
  gap: 14px;
}

.admin-user-library-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-user-library-header > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-user-library-header > div > span {
  color: var(--subtle);
  font-size: 0.73rem;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-user-library-header h3,
.admin-user-library-header p {
  margin: 0;
}

.admin-user-library-header h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.admin-user-library-header p {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 820;
}

.admin-back-link .ui-icon {
  width: 15px;
  height: 15px;
}

.admin-user-library-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.admin-user-anime-list {
  display: grid;
  gap: 10px;
}

.admin-user-anime-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 11px;
}

.admin-user-anime-poster {
  width: 56px;
  height: 78px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--subtle);
  object-fit: cover;
}

.admin-user-anime-poster--empty {
  display: grid;
  place-items: center;
}

.admin-user-anime-poster--empty .ui-icon {
  width: 20px;
  height: 20px;
}

.admin-user-anime-main,
.admin-user-anime-details {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-user-anime-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-anime-heading a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.admin-user-anime-heading a:hover {
  color: var(--accent);
}

.admin-user-anime-details {
  grid-template-columns: auto auto 1fr;
  align-items: start;
}

.admin-user-anime-rating,
.admin-user-anime-status {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-3));
  color: var(--accent);
  padding: 5px 8px;
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-user-anime-rating small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.admin-user-anime-meta,
.admin-user-anime-alerts {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-user-anime-text {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.admin-user-anime-text strong {
  color: var(--subtle);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-user-anime-text p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: normal;
}

.admin-user-anime-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .admin-user-library-header {
    display: grid;
  }

  .admin-user-anime-details {
    grid-template-columns: 1fr;
  }

  .admin-user-anime-text {
    grid-column: auto;
  }
}