@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* Cinematic Noir — dark is the default token set; the light theme overrides
   live in the theme foundation block near the end of this file. */
:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --bg-strong: #05060a;
  --surface: #12151e;
  --surface-soft: #1a1e2b;
  --line: #262c3d;
  --line-strong: #36405a;
  --text: #eef0f6;
  --muted: #8e98ae;
  --accent: #5e7bff;
  --accent-soft: rgba(94, 123, 255, 0.16);
  --accent-strong: #97abff;
  --success: #34d8a4;
  --warn: #ffb45e;
  --danger: #ff7080;
  --av: #ff5c8a;
  --vr: #8b7bff;
  --av-strong: #ff8fae;
  --vr-strong: #ada1ff;
  --field-bg: #161a26;
  --chip-bg: #1d2230;
  --chip-bg-hover: #252b3d;
  --chip-fg: #c3cbdd;
  --media-bg: linear-gradient(180deg, #161a26 0%, #10131c 100%);
  --page-bg:
    radial-gradient(ellipse 70% 46% at 82% -8%, rgba(139, 123, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 58% 44% at 0% 108%, rgba(255, 92, 138, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #0a0c11 0%, #0b0d13 100%);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 46px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 28px 64px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-page="yunpak"] {
  color: #e8ecf4;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(28, 52, 96, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 100%, rgba(14, 22, 38, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #080d18 0%, #0c1220 50%, #0f1628 100%);
}

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

button,
input,
select {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 0 24px;
  background: rgba(6, 7, 11, 0.86);
  backdrop-filter: blur(18px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--av) 0%, var(--vr) 100%);
  box-shadow: 0 0 10px rgba(255, 92, 138, 0.55);
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.shell-home {
  max-width: 1600px;
}

.shell-browse {
  max-width: 1680px;
  display: grid;
  gap: 0;
}

.hero-browse {
  align-items: center;
  padding: 16px 28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    radial-gradient(ellipse 60% 150% at 92% 0%, rgba(139, 123, 255, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, #0a0c12 0%, #10141f 55%, #161b29 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  box-shadow: var(--shadow-lg);
}

.hero-browse .hero-copy {
  max-width: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-browse .eyebrow {
  margin: 0;
  white-space: nowrap;
}

.hero-browse h1 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-browse .hero-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background:
    radial-gradient(ellipse 56% 110% at 88% 0%, rgba(139, 123, 255, 0.17) 0%, transparent 62%),
    radial-gradient(ellipse 48% 90% at 4% 100%, rgba(255, 92, 138, 0.13) 0%, transparent 58%),
    linear-gradient(150deg, #0a0c12 0%, #10141f 52%, #151a29 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(94, 123, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-text {
  margin: 16px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.65;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 20px 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-brand {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.eyebrow-tracker {
  margin-bottom: 6px;
}

.eyebrow-feed,
.eyebrow-shelf {
  color: var(--muted);
  font-size: 11px;
}

.eyebrow-subtle {
  color: rgba(255, 255, 255, 0.62);
}

/* Eyebrows that sit on content panels (not heroes) must follow the theme. */
.panel .eyebrow,
.workspace-body .eyebrow {
  color: var(--muted);
}

.log-eyebrow {
  color: var(--muted);
}

.hero-tracker {
  display: grid;
  grid-template-columns: minmax(124px, 148px) minmax(0, 1fr) minmax(200px, 224px);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.hero-tracker-head {
  display: grid;
  align-content: center;
  gap: 6px;
}

.hero-tracker-head h2,
.tracker-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.95);
}

.tracker-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  justify-self: start;
}

.tracker-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tracker-slot {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.tracker-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.tracker-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tracker-slot-time {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.is-success {
  background: rgba(52, 216, 164, 0.14);
  color: var(--success);
}

.status-pill.is-empty {
  background: rgba(94, 123, 255, 0.16);
  color: var(--accent-strong);
}

.status-pill.is-failed {
  background: rgba(255, 112, 128, 0.15);
  color: var(--danger);
}

.status-pill.is-late {
  background: rgba(255, 180, 94, 0.16);
  color: var(--warn);
}

.status-pill.is-missed {
  background: rgba(139, 123, 255, 0.16);
  color: var(--vr-strong);
}

.status-pill.is-scheduled {
  background: rgba(142, 152, 174, 0.14);
  color: var(--muted);
}

/* Tracker pills sit on the always-dark hero — stay bright in both themes. */
.hero-tracker .status-pill.is-success { color: #46e2af; }
.hero-tracker .status-pill.is-empty { color: #9db1ff; }
.hero-tracker .status-pill.is-failed { color: #ff96a2; }
.hero-tracker .status-pill.is-late { color: #ffc581; }
.hero-tracker .status-pill.is-missed { color: #bdb1ff; }
.hero-tracker .status-pill.is-scheduled { color: #aab6cc; }

.tracker-slot.is-success {
  border-color: rgba(13, 138, 95, 0.24);
}

.tracker-slot.is-empty {
  border-color: rgba(29, 92, 255, 0.22);
}

.tracker-slot.is-failed {
  border-color: rgba(229, 62, 62, 0.24);
}

.tracker-slot.is-late {
  border-color: rgba(255, 163, 26, 0.26);
}

.tracker-slot.is-missed {
  border-color: rgba(111, 95, 168, 0.24);
}

.tracker-slot.is-pending {
  border-color: rgba(160, 176, 198, 0.2);
}

.tracker-count-grid,
.tracker-total-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.tracker-count,
.tracker-total-chip {
  display: grid;
  gap: 4px;
  padding: 7px 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.tracker-count small,
.tracker-total-chip small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracker-count strong,
.tracker-total-chip strong {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tracker-note {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10.5px;
  line-height: 1.32;
}

.tracker-new-threads {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}

.tracker-slot.is-empty .tracker-note,
.tracker-slot.is-success:not(:has(.tracker-count-grid)) .tracker-note {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.tracker-total {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  align-content: stretch;
  min-width: 0;
  min-height: 100%;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.tracker-total:empty {
  display: none;
}

.tracker-total-top {
  display: grid;
  gap: 4px;
  align-content: start;
}

.tracker-total-clock-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-total-clock {
  color: rgba(255, 255, 255, 0.96);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tracker-total-body {
  display: grid;
  gap: 8px;
  align-content: end;
}

.tracker-total-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-total-meta {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10.5px;
  line-height: 1.35;
}

.tracker-empty {
  display: none;
  grid-column: 2 / 4;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
}

.hero-copy-home {
  max-width: 320px;
  display: grid;
  gap: 8px;
}

.hero-home-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero-text-home {
  margin: 0;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.38;
}

.hero-meta-home {
  margin-top: 0;
}

.hero-meta-home .chip {
  min-height: 36px;
  padding-inline: 13px;
  font-size: 12px;
}

.toolbar,
.panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar-home {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar-row .search-home {
  flex: 1;
  min-width: 0;
}

.toolbar-row .segmented {
  flex-shrink: 0;
}

.search input,
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field-bg);
  padding: 13px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search input:focus,
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 123, 255, 0.18);
  background: var(--surface);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment,
.quick-pill,
.chip {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
}

.segment {
  background: var(--chip-bg);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.segment.is-active {
  background: var(--accent);
  color: #ffffff;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preference-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.browse-rating-min-field {
  min-width: 132px;
  max-width: 164px;
}

.quick-pill,
.chip {
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s ease, transform 0.12s ease;
}

.quick-pill:hover,
.chip:hover {
  background: var(--chip-bg-hover);
  transform: translateY(-1px);
}

.quick-pill.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(94, 123, 255, 0.32);
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip-accent:hover {
  background: rgba(94, 123, 255, 0.26);
}

.controls-divider {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.panel-feed {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.panel-head-feed h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.link-arrow,
.meta-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.link-arrow:hover {
  color: var(--accent);
}

.shell-logs {
  max-width: 1600px;
}

.hero-logs {
  align-items: flex-start;
}

.shell-yunpak {
  max-width: 1680px;
  display: grid;
  gap: 18px;
}

.hero-yunpak {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: stretch;
}

.hero-yunpak::before {
  background: radial-gradient(ellipse, rgba(91, 124, 255, 0.14) 0%, transparent 72%);
}

.shell-yunpak .panel {
  color: #f4f7ff;
  background: rgba(8, 13, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(5, 8, 16, 0.28);
}

.shell-yunpak .panel-head h2,
.shell-yunpak .meta-note,
.shell-yunpak .link-arrow {
  color: rgba(255, 255, 255, 0.8);
}

.shell-yunpak .eyebrow {
  color: rgba(182, 194, 221, 0.58);
}

.shell-yunpak .empty-state {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

.yunpak-summary {
  gap: 16px;
}

.yunpak-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yunpak-status-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yunpak-status-card span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.yunpak-status-card strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.yunpak-summary-line {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.55;
}

.yunpak-panel {
  padding: 22px;
}

.yunpak-panel .panel-head {
  margin-bottom: 14px;
}

.yunpak-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.yunpak-card {
  display: grid;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.yunpak-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.32);
}

.yunpak-card-poster {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(29, 92, 255, 0.72) 0%, rgba(29, 92, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(16, 24, 42, 0.08) 0%, rgba(8, 12, 20, 0.9) 100%);
}

.yunpak-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yunpak-card-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.1) 0%, rgba(7, 11, 18, 0.72) 78%, rgba(7, 11, 18, 0.92) 100%);
}

.yunpak-card.kind-av .yunpak-card-poster {
  background:
    linear-gradient(135deg, rgba(255, 105, 143, 0.82) 0%, rgba(255, 105, 143, 0.18) 100%),
    linear-gradient(180deg, rgba(16, 24, 42, 0.08) 0%, rgba(8, 12, 20, 0.9) 100%);
}

.yunpak-card.kind-vr .yunpak-card-poster {
  background:
    linear-gradient(135deg, rgba(91, 124, 255, 0.82) 0%, rgba(91, 124, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(16, 24, 42, 0.08) 0%, rgba(8, 12, 20, 0.9) 100%);
}

.yunpak-card.kind-unknown .yunpak-card-poster {
  background:
    linear-gradient(135deg, rgba(107, 125, 158, 0.78) 0%, rgba(107, 125, 158, 0.18) 100%),
    linear-gradient(180deg, rgba(16, 24, 42, 0.08) 0%, rgba(8, 12, 20, 0.9) 100%);
}

.yunpak-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yunpak-card-art {
  color: rgba(255, 255, 255, 0.95);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.yunpak-card-body {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.yunpak-card-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.yunpak-card-subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.yunpak-card-meta {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.25;
}

.yunpak-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin-top: 8px;
}

.yunpak-taxonomy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(236, 242, 255, 0.9);
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
}

.yunpak-taxonomy-chip .taxonomy-chip-axis {
  color: rgba(182, 194, 221, 0.64);
}

.yunpak-taxonomy-chip strong {
  display: block;
  min-width: 0;
  max-width: min(46vw, 150px);
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yunpak-card-stream {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yunpak-card-stream.is-available {
  color: #a9f4c6;
}

.yunpak-card-stream.is-limited {
  color: #ffd58c;
}

.yunpak-card-stream.is-unsupported {
  color: #ff9ca5;
}

.yunpak-card-stream.is-unknown {
  color: rgba(255, 255, 255, 0.42);
}

.yunpak-card.is-placeholder {
  opacity: 0.92;
}

.yunpak-split {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.yp-billboard {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 48px 40px 40px;
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
}

.yp-billboard-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background 0.5s ease;
  background: linear-gradient(160deg, #0a1628 0%, #122240 35%, #1b3460 65%, #243f6e 100%);
}

.yp-billboard-backdrop[data-kind="av"] {
  background: linear-gradient(160deg, #1a0a16 0%, #331528 35%, #4a1e3a 65%, #5e2850 100%);
}

.yp-billboard-backdrop[data-kind="vr"] {
  background: linear-gradient(160deg, #080e1e 0%, #0f1d42 35%, #182c60 65%, #203a78 100%);
}

.yp-billboard-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(91, 124, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(160, 180, 220, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, transparent 30%, rgba(8, 13, 24, 0.65) 100%);
  pointer-events: none;
}

.yp-billboard-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.yp-billboard-eyebrow {
  color: rgba(255, 255, 255, 0.42);
}

.yp-billboard-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.yp-billboard-text {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.6;
}

.yp-billboard-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.yp-billboard-stat {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.yp-billboard-sync {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
}

.yp-billboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.yp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.yp-cta:hover {
  transform: translateY(-1px);
}

.yp-cta:active {
  transform: translateY(0);
}

.yp-cta-primary {
  background: #ffffff;
  color: #0b1222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.yp-cta-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  background: #f0f3fa;
}

.yp-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.yp-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.yp-cta.is-disabled,
.yp-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.yp-billboard-playback {
  border-color: rgba(255, 255, 255, 0.16);
}

.yp-billboard-playback.is-available {
  background: rgba(110, 220, 158, 0.16);
  color: #d8ffe7;
}

.yp-billboard-playback.is-limited {
  background: rgba(255, 196, 92, 0.16);
  color: #ffe4b2;
}

.yp-billboard-playback.is-unsupported {
  background: rgba(255, 110, 126, 0.16);
  color: #ffd0d6;
}

.yp-billboard-playback.is-unknown {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.yp-controls {
  padding: 20px 24px;
  border-radius: 22px;
  background: rgba(8, 13, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(5, 8, 16, 0.28);
}

.yp-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yp-controls .segment {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.yp-controls .segment:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
}

.yp-controls .segment.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.yp-summary-line {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.yp-rails {
  display: grid;
  gap: 18px;
}

.yp-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  transition: pointer-events 0s;
}

.yp-detail-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.yp-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.yp-detail-drawer[aria-hidden="false"] .yp-detail-backdrop {
  opacity: 1;
}

.yp-detail-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(520px, 92vw);
  background: #0e1526;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: grid;
  grid-template-rows: auto 1fr;
}

.yp-detail-drawer[aria-hidden="false"] .yp-detail-panel {
  transform: translateX(0);
}

.yp-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.yp-detail-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.yp-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.yp-detail-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.yp-detail-body {
  padding: 24px 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.yp-detail-poster-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.yp-detail-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.yp-detail-placeholder {
  padding: 40px 20px;
  text-align: center;
}

.yp-detail-placeholder-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  line-height: 1.6;
}

.yp-detail-kind {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.yp-detail-kind-av {
  background: rgba(255, 105, 143, 0.18);
  color: #ff698f;
}

.yp-detail-kind-vr {
  background: rgba(91, 124, 255, 0.18);
  color: #5b7cff;
}

.yp-detail-kind-unknown {
  background: rgba(107, 125, 158, 0.18);
  color: #8a9ab8;
}

.yp-detail-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

.yp-detail-playback {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-detail-playback.is-available {
  border-color: rgba(110, 220, 158, 0.2);
  background: rgba(110, 220, 158, 0.08);
}

.yp-detail-playback.is-limited {
  border-color: rgba(255, 196, 92, 0.2);
  background: rgba(255, 196, 92, 0.08);
}

.yp-detail-playback.is-unsupported {
  border-color: rgba(255, 110, 126, 0.2);
  background: rgba(255, 110, 126, 0.08);
}

.yp-detail-playback.is-unknown {
  border-color: rgba(255, 255, 255, 0.08);
}

.yp-detail-playback-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yp-detail-playback-state {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.yp-detail-playback-collection {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yp-detail-playback-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.yp-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
}

.yp-detail-cast {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.yp-detail-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.yp-detail-note {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}

.yp-detail-section {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.yp-detail-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.yp-detail-section-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.yp-detail-section-note {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.yp-detail-part-list {
  display: grid;
  gap: 10px;
}

.yp-detail-part {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-detail-part.is-available {
  border-color: rgba(110, 220, 158, 0.18);
}

.yp-detail-part.is-limited {
  border-color: rgba(255, 196, 92, 0.18);
}

.yp-detail-part.is-unsupported {
  border-color: rgba(255, 110, 126, 0.18);
}

.yp-detail-part-main {
  display: grid;
  gap: 4px;
}

.yp-detail-part-index {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yp-detail-part-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.yp-detail-part-meta {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  line-height: 1.4;
}

.yp-detail-part-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.yp-detail-part-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yp-part-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.yp-part-play.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.yunpak-card[data-multipart] .yunpak-card-poster::after {
  content: attr(data-parts);
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.album-grid-feed {
  gap: 20px;
}

.album-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.album-rail-shelf {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.album-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.album-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.album-media {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Poster jackets cluster around 1.33–1.6 (median ≈1.45); match the box to
     the median and contain instead of cover so edges are never cropped. */
  aspect-ratio: 13 / 9;
  overflow: hidden;
  background: var(--media-bg);
  border-bottom: 1px solid var(--line);
}

.album-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.album-placeholder {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  text-align: center;
}

.album-body {
  display: grid;
  gap: 5px;
  padding: 12px 14px 14px;
}

.album-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.album-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 11px;
  font-weight: 800;
}

.album-chip.kind-av {
  background: rgba(255, 92, 138, 0.92);
  color: #ffffff;
}

.album-chip.kind-vr {
  background: rgba(139, 123, 255, 0.92);
  color: #ffffff;
}

.album-code {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.album-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
}

.album-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.split-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.panel-shelf {
  background: var(--surface);
}

.panel-shelf .panel-head h2 {
  font-size: 20px;
}

.controls-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px 180px 180px;
  gap: 12px;
  align-items: end;
}

.panel-controls {
  margin-top: 2px;
  padding: 24px 24px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-top: none;
  background: var(--surface);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(300px, 336px) minmax(0, 1fr);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: var(--shadow);
  overflow: visible;
}

.workspace-body > .panel-calendar {
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: color-mix(in srgb, var(--surface-soft) 65%, transparent);
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
}

.workspace-body > .results-panel {
  margin-top: 0;
  min-width: 0;
  min-height: 100%;
  border-top: none;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.workspace-body.is-calendar-hidden > .results-panel {
  border-top: none;
  border-left: none;
  grid-column: 1 / -1;
}

.workspace-body > .results-panel > .panel-head {
  padding-top: 0;
}

.workspace-body.is-calendar-hidden > .results-panel > .panel-head {
  padding-top: 0;
}

.panel-calendar {
  margin-top: 0;
  padding: 18px 18px 20px;
}

.calendar-compact-bar {
  display: grid;
  gap: 10px;
  padding: 2px 2px 12px;
}

.calendar-compact-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.calendar-compact-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.calendar-compact-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calendar-compact-bar .calendar-toggle-button {
  width: auto;
  max-width: 100%;
  margin-left: 0;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 132px;
}

.panel-calendar.is-collapsed {
  padding-bottom: 16px;
}

.panel-calendar.is-collapsed .calendar-compact-bar {
  padding-bottom: 0;
}

.panel-calendar:not(.is-collapsed) .calendar-compact-bar {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

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

#browse-calendar-panel[hidden] {
  display: none !important;
}

.calendar-side,
.calendar-main {
  min-width: 0;
}

.calendar-side {
  display: grid;
  gap: 14px;
}

.panel-head-side {
  margin-bottom: 0;
}

.panel-head-calendar {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.calendar-nav {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.calendar-nav:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.calendar-month-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekday {
  padding: 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 58px;
  padding: 7px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  box-shadow: none;
}

a.calendar-day {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

a.calendar-day:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow: var(--shadow);
}

.calendar-day.has-data {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border-color: var(--line-strong);
}

.calendar-day.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  box-shadow: 0 0 0 2px rgba(94, 123, 255, 0.25);
}

.calendar-day.is-in-range:not(.is-selected) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.calendar-day.is-empty {
  min-height: 58px;
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  box-shadow: none;
}

.calendar-day-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.calendar-day-count {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.calendar-day-meta {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.calendar-summary-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.calendar-focus {
  display: grid;
  gap: 12px;
}

.calendar-focus-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-focus-card h3 {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.calendar-focus-value {
  margin-top: 10px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.calendar-focus-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.calendar-focus-stats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.calendar-focus-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.calendar-focus-stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-focus-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.calendar-focus-stat-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.calendar-recent-days {
  display: grid;
  gap: 10px;
}

.calendar-recent-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
}

.calendar-recent-item.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(94, 123, 255, 0.24);
}

.calendar-recent-item strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.calendar-recent-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 14px 16px;
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.summary-card[data-kind="all"] {
  border-left: 3px solid var(--accent);
}

.summary-card[data-kind="av"] {
  border-left: 3px solid var(--av);
}

.summary-card[data-kind="vr"] {
  border-left: 3px solid var(--vr);
}

.result-list,
.archive-list {
  display: grid;
  gap: 12px;
}

.browse-results-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.browse-results-footer[hidden] {
  display: none !important;
}

.browse-load-more {
  min-width: 180px;
}

.browse-results-sentinel {
  width: 100%;
  height: 1px;
}

.browse-results-sentinel[hidden] {
  display: none;
}

.result-card,
.archive-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(190px, 230px);
  gap: 24px;
  align-items: start;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.result-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.result-card.is-selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.result-card:focus-visible {
  outline: 3px solid rgba(94, 123, 255, 0.45);
  outline-offset: 2px;
}

.result-info {
  display: grid;
  gap: 10px;
}

.result-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 12px;
  font-weight: 800;
}

.result-chip-signal {
  background: rgba(255, 150, 90, 0.14);
  color: var(--warn);
  box-shadow: inset 0 0 0 1px rgba(255, 150, 90, 0.22);
}

.result-chip.kind-av {
  background: rgba(255, 92, 138, 0.16);
  color: var(--av-strong);
}

.result-chip.kind-vr {
  background: rgba(139, 123, 255, 0.16);
  color: var(--vr-strong);
}

.result-title {
  font-size: 18px;
  line-height: 1.5;
}

.result-alt-title {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.result-poster-stage {
  display: flex;
  justify-content: stretch;
  min-width: 0;
}

.result-thumb {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--media-bg);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.result-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.result-code {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.result-subtitle,
.result-meta {
  font-size: 13px;
  line-height: 1.45;
}

.result-subtitle,
.result-meta {
  color: var(--muted);
}

.result-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}

.taxonomy-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}

.taxonomy-chip-axis {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.taxonomy-chip-link strong {
  display: block;
  min-width: 0;
  max-width: min(52vw, 220px);
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-facts {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
}

.browse-result-signals {
  display: grid;
  gap: 8px;
  margin: 12px 0 10px;
}

.browse-signal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-rating-block {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.browse-rating-block.is-compact {
  gap: 6px;
  padding: 10px 12px;
}

.browse-rating-rail {
  position: relative;
  display: inline-block;
  width: max-content;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.browse-rating-track,
.browse-rating-fill {
  display: block;
  white-space: nowrap;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 2px;
}

.browse-rating-block.is-compact .browse-rating-track,
.browse-rating-block.is-compact .browse-rating-fill {
  font-size: 20px;
}

.browse-rating-track {
  color: var(--line-strong);
}

.browse-rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #ff9d4f;
  pointer-events: none;
}

.browse-rating-rail:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 123, 255, 0.28);
  border-radius: 10px;
}

.browse-rating-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browse-rating-value {
  color: var(--chip-fg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.browse-rating-clear {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.browse-rating-clear:disabled {
  cursor: default;
  opacity: 0.45;
}

.result-fact {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.result-fact dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-fact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.result-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.browse-detail-view {
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hub-detail-shell {
  --hub-detail-accent: var(--accent);
  --hub-detail-accent-soft: rgba(94, 123, 255, 0.12);
  display: grid;
  gap: 18px;
}

.hub-detail-shell--av {
  --hub-detail-accent: var(--av);
  --hub-detail-accent-soft: rgba(255, 92, 138, 0.14);
}

.hub-detail-shell--vr {
  --hub-detail-accent: var(--vr);
  --hub-detail-accent-soft: rgba(139, 123, 255, 0.14);
}

.hub-detail-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hub-detail-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-detail-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hub-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hub-detail-identity {
  display: grid;
  gap: 8px;
}

.browse-detail-view .eyebrow,
.browse-detail-view .eyebrow-subtle {
  color: var(--muted);
}

.hub-detail-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hub-detail-subtitle {
  margin: 0;
  max-width: 76ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hub-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hub-detail-main,
.hub-detail-aside {
  display: grid;
  gap: 14px;
}

.hub-detail-panel--media {
  width: min(100%, 720px);
  margin: 0 auto;
}

.hub-detail-panel--media .hub-detail-section-head {
  justify-content: center;
  text-align: center;
}

.hub-detail-panel {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hub-detail-panel--glance {
  background:
    linear-gradient(135deg, var(--hub-detail-accent-soft) 0%, transparent 70%),
    var(--surface);
  border-color: color-mix(in srgb, var(--hub-detail-accent) 28%, var(--line));
}

.hub-detail-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-detail-section-head h3 {
  margin: 2px 0 0;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.hub-detail-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hub-detail-quick-fact {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.hub-detail-quick-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-detail-quick-value {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.browse-performer-preferences,
.browse-selected-performer-panel {
  display: grid;
  gap: 10px;
}

.browse-selected-performer-panel {
  margin-bottom: 6px;
}

.browse-preference-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.browse-performer-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.browse-performer-chip-row.is-compact {
  gap: 8px;
}

.browse-performer-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.browse-performer-chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.browse-performer-chip.is-favorited {
  background: rgba(255, 92, 138, 0.14);
  border-color: rgba(255, 92, 138, 0.32);
  color: var(--av-strong);
}

.browse-performer-chip-name {
  font-size: 13px;
  font-weight: 800;
}

.browse-performer-chip-alt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.browse-performer-chip-heart {
  font-size: 15px;
  line-height: 1;
}

.browse-detail-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0;
}

.browse-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.browse-detail-actions .action {
  width: auto;
  min-width: 118px;
}

.hub-detail-fact-list {
  display: grid;
  gap: 0;
}

.hub-detail-poster-frame {
  width: 100%;
  max-width: 720px;
  min-height: 180px;
  margin: 0 auto;
}

.hub-detail-poster-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.browse-detail-view.is-poster-hidden .hub-detail-panel--media {
  display: none;
}

.workspace-body.has-browse-detail .results-panel > .panel-head {
  display: none;
}

.workspace-body.has-browse-detail .results-panel > .summary-strip[hidden] {
  display: none !important;
}

.video-link-statuses {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.video-link-statuses:empty {
  display: none;
  margin: 0;
}

.video-link-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.video-link-status.is-available {
  background: rgba(52, 216, 164, 0.13);
  color: var(--success);
}

.video-link-status.is-missing {
  background: rgba(255, 92, 138, 0.14);
  color: var(--av-strong);
}

.video-link-status.is-unknown {
  background: rgba(94, 123, 255, 0.13);
  color: var(--accent-strong);
}

.shell-yunpak-watch {
  max-width: 1600px;
}

.yp-watch-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.yp-watch-stage,
.yp-watch-sidebar {
  border-radius: 28px;
  overflow: hidden;
}

.yp-watch-stage {
  padding: 22px;
}

.yp-watch-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.yp-watch-stage-head h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.96;
}

.yp-watch-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(45, 84, 190, 0.42), transparent 50%),
    linear-gradient(140deg, rgba(5, 10, 20, 0.98), rgba(12, 18, 32, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-watch-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #03070e;
}

.yp-watch-stage-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.yp-watch-sidebar {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.yp-watch-meta {
  display: grid;
  gap: 14px;
}

.yp-watch-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.04;
}

.yp-watch-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yp-watch-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.yp-watch-cast {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.yp-watch-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.yp-watch-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.yp-watch-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c84ff, #89a3ff);
}

.yp-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yp-watch-parts {
  display: grid;
  gap: 12px;
}

.yp-watch-parts-head h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.yp-watch-part-list {
  display: grid;
  gap: 10px;
}

.yp-watch-part {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  padding: 14px;
  display: grid;
  gap: 6px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.yp-watch-part:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 163, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.yp-watch-part.is-active {
  border-color: rgba(137, 163, 255, 0.4);
  background: rgba(92, 132, 255, 0.12);
}

.yp-watch-part-index,
.yp-watch-part-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.yp-watch-part-label {
  font-size: 14px;
  line-height: 1.4;
}

.yp-watch-empty {
  display: grid;
  gap: 12px;
}

.yp-watch-empty-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.yp-watch-empty-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .yp-watch-shell {
    grid-template-columns: 1fr;
  }
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 123, 255, 0.34);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.action.secondary {
  border-color: var(--line);
  background: var(--chip-bg);
  color: var(--chip-fg);
}

.action.is-disabled {
  pointer-events: none;
  opacity: 0.56;
}

.empty-state {
  display: none;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.empty-state.small {
  margin-top: 12px;
}

.results-panel {
  margin-top: 18px;
}

.shell-taste .workspace-body {
  display: block;
}

.shell-taste .results-panel {
  margin-top: 0;
}

.logs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.logs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.logs-day-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.log-day-panel {
  display: grid;
  gap: 18px;
}

.log-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.log-day-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.log-day-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.log-day-total-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.log-day-total-row .tracker-total-chip {
  background: var(--surface-soft);
}

.log-day-total-row .tracker-total-chip small {
  color: var(--muted);
}

.log-day-total-row .tracker-total-chip strong {
  color: var(--text);
}

.log-card {
  display: grid;
  gap: 16px;
}

.log-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.log-card-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.log-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.log-count-box,
.log-meta-item {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.log-count-box span,
.log-meta-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.log-count-box strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.log-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.log-meta-item strong {
  font-size: 15px;
  line-height: 1.3;
}

.log-poster-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.log-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.log-poster-meta,
.log-poster-missing {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.log-poster-missing {
  color: var(--danger);
  font-weight: 600;
}

.log-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.log-new-threads {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.log-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.log-step {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.45;
}

.log-step.is-done {
  border-color: rgba(52, 216, 164, 0.26);
  background: rgba(52, 216, 164, 0.09);
}

.log-step.is-dim {
  color: var(--muted);
  background: var(--surface);
}

.log-step.is-failed {
  border-color: rgba(255, 112, 128, 0.28);
  background: rgba(255, 112, 128, 0.09);
}

@media (max-width: 1420px) {
  .result-card {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(170px, 210px);
    gap: 20px;
  }
}

@media (max-width: 1280px) {
  .hero-home {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-yunpak {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy-home {
    max-width: none;
  }

  .hero-tracker {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .tracker-total {
    padding-left: 0;
    padding-top: 12px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .tracker-total-body {
    align-content: start;
  }

  .tracker-empty {
    grid-column: auto;
  }

  .yp-billboard {
    min-height: 300px;
    padding: 36px 28px 32px;
  }

  .yunpak-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-body {
    grid-template-columns: minmax(280px, 308px) minmax(0, 1fr);
  }

  .result-card {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .result-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

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

  .album-rail-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .album-grid,
  .album-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .workspace-body {
    display: block;
    overflow: hidden;
  }

  .workspace-body > .panel-calendar {
    position: static;
    top: auto;
  }

  .workspace-body > .results-panel {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .workspace-body.is-calendar-hidden > .results-panel {
    grid-column: auto;
  }

  .calendar-composite {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-compact-bar {
    gap: 12px;
  }

  .calendar-compact-bar .calendar-toggle-button {
    min-width: 0;
  }

  .yunpak-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-side {
    order: 2;
  }

  .calendar-main {
    order: 1;
  }

  .calendar-day {
    min-height: 70px;
  }

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

@media (max-width: 767px) {
  .topbar,
  .hero,
  .panel,
  .toolbar {
    border-radius: 18px;
  }

  .topbar {
    position: static;
    padding: 0 16px;
  }

  .topbar-inner {
    width: 100%;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 9px 11px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .shell {
    padding: 16px 12px 28px;
  }

  .hero {
    padding: 22px 18px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head-calendar {
    gap: 14px;
  }

  .calendar-recent-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-home {
    gap: 18px;
    padding: 22px 18px;
  }

  .hero-yunpak {
    gap: 18px;
  }

  .yp-billboard {
    min-height: 260px;
    padding: 28px 20px;
  }

  .yp-billboard-title {
    font-size: 30px;
  }

  .yp-billboard-status {
    gap: 8px;
  }

  .yp-controls-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .yp-controls .segmented {
    width: 100%;
  }

  .yp-controls .segment {
    flex: 1;
  }

  .hero-tracker-head,
  .log-day-head,
  .log-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-home-title {
    font-size: 36px;
    line-height: 0.98;
  }

  .tracker-total-clock {
    font-size: 18px;
  }

  .tracker-slot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .yunpak-rail {
    grid-auto-columns: minmax(72vw, 1fr);
  }

  .calendar-composite {
    gap: 16px;
  }

  .calendar-compact-bar {
    gap: 12px;
  }

  .calendar-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 8px;
  }

  .calendar-day,
  .calendar-day.is-empty {
    min-height: 78px;
    padding: 8px;
    border-radius: 16px;
  }

  .calendar-day-count {
    font-size: 18px;
  }

  .album-grid,
  .album-rail,
  .album-rail-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .result-poster-stage {
    order: -1;
  }

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

  .yp-detail-part {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-detail-part-actions {
    justify-items: start;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .log-counts,
  .log-meta-grid,
  .log-day-total-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-feed {
    padding: 18px;
  }

  .hero-browse {
    border-radius: 18px 18px 0 0;
    padding: 14px 18px;
  }

  .hero-browse .hero-copy {
    flex-direction: column;
    gap: 4px;
  }

  .hero-browse h1 {
    font-size: 18px;
  }

  .workspace-body {
    border-radius: 18px;
  }

  .panel-controls {
    border-radius: 0 0 18px 18px;
  }
}

@media (max-width: 540px) {
  .album-grid,
  .album-rail,
  .album-rail-shelf {
    grid-template-columns: minmax(0, 1fr);
  }

  .yunpak-rail {
    grid-auto-columns: minmax(82vw, 1fr);
  }
}

.yp-rails {
  display: grid;
  gap: 20px;
}

.yp-feed-stack {
  display: grid;
  gap: 20px;
}

.yp-feed-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.yunpak-panel-featured {
  padding-bottom: 26px;
}

.yunpak-grid,
.yunpak-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr)) !important;
  gap: 20px;
  align-items: start;
  overflow: visible;
  padding-bottom: 0;
}

.yunpak-home-grid {
  gap: 22px;
}

.yunpak-card {
  width: 100%;
  max-width: none;
  cursor: pointer;
}

.yunpak-card-poster {
  padding: 0;
}

.yunpak-card-image {
  object-fit: cover;
}

.yunpak-card-body {
  gap: 6px;
  padding: 16px 18px 18px;
}

.yunpak-card-title {
  font-size: 18px;
}

.yunpak-card-subtitle {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.yunpak-card-meta,
.yunpak-card-stream {
  font-size: 12px;
}

.shell-yunpak-watch {
  max-width: 1680px;
}

.yp-watch-page {
  display: grid;
  gap: 20px;
}

.yp-watch-player-panel {
  padding: 22px;
}

.yp-watch-player-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.yp-watch-player-title {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.yp-watch-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(45, 84, 190, 0.42), transparent 50%),
    linear-gradient(140deg, rgba(5, 10, 20, 0.98), rgba(12, 18, 32, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-watch-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #03070e;
}

.yp-watch-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.12) 0%, rgba(7, 12, 22, 0.84) 100%);
}

.yp-watch-empty[hidden] {
  display: none !important;
}

.yp-watch-empty-title {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.yp-watch-empty-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.yp-watch-detail-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.yp-watch-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 12, 22, 0.22) 0%, rgba(7, 12, 22, 0.78) 55%, rgba(7, 12, 22, 0.96) 100%),
    linear-gradient(160deg, #0a1628 0%, #122240 35%, #1b3460 65%, #243f6e 100%);
  background-size: cover;
  background-position: center;
}

.yp-watch-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  padding: 28px;
}

.yp-watch-detail-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.yp-watch-detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.yp-watch-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
  max-width: 72ch;
}

.yp-watch-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yp-watch-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.yp-watch-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.yp-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yp-watch-progress {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-watch-progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.yp-watch-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f90ff 0%, #8db6ff 100%);
}

.yp-watch-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.yp-watch-progress-row strong {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.yp-watch-progress-row span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.5;
}

.yp-watch-info-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-watch-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.yp-watch-section-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.yp-watch-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yp-watch-fact {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-watch-fact-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yp-watch-fact-value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.yp-watch-poster-column {
  display: grid;
  align-content: start;
}

.yp-watch-poster {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.yp-watch-poster img,
.yp-watch-poster .album-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
}

.yp-watch-sections {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding: 0 28px 28px;
}

.yp-watch-parts {
  display: grid;
  gap: 12px;
}

@media (max-width: 1400px) {
  .yunpak-grid,
  .yunpak-rail {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .yp-feed-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .yunpak-grid,
  .yunpak-rail {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }

  .yp-watch-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-watch-poster-column {
    order: -1;
  }
}

@media (max-width: 767px) {
  .yunpak-grid,
  .yunpak-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .yp-watch-player-panel {
    padding: 16px;
  }

  .yp-watch-player-top,
  .yp-watch-progress-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .yp-watch-detail-grid {
    padding: 18px;
  }

  .yp-watch-sections {
    padding: 0 18px 18px;
  }

.yp-watch-facts {
  grid-template-columns: minmax(0, 1fr);
  }
}

/* Yunpak hard overrides for Oracle refresh */
.yp-billboard {
  min-height: 190px;
  padding: 28px 30px;
  border-radius: 22px;
}

.yp-billboard-content {
  max-width: 760px;
}

.yp-billboard-title {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1;
}

.yp-billboard-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.yp-billboard-status {
  margin-top: 14px;
}

.yp-billboard-actions {
  margin-top: 16px;
}

.yunpak-panel-featured {
  padding-top: 18px;
}

.yunpak-grid,
.yunpak-home-grid,
.yunpak-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
  gap: 18px;
}

.yunpak-card {
  align-content: start;
}

.yunpak-card-poster {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.yunpak-card-image {
  object-fit: cover;
}

.yunpak-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1.05;
}

.yunpak-card-poster-shade {
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.14) 0%, rgba(7, 11, 18, 0.56) 70%, rgba(7, 11, 18, 0.82) 100%);
}

.yunpak-card-body {
  gap: 7px;
}

.yunpak-card-title {
  font-size: 16px;
}

.yunpak-card-subtitle {
  -webkit-line-clamp: 2;
  font-size: 12px;
}

.yunpak-card-meta {
  font-size: 12px;
}

.yp-watch-detail-panel {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.98) 0%, rgba(8, 13, 24, 0.98) 100%);
}

.yp-watch-backdrop {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.yp-watch-detail-grid {
  position: relative;
  z-index: 1;
  padding: 28px;
  gap: 24px;
  align-items: start;
}

.yp-watch-copy {
  max-width: none;
}

.yp-watch-info-panel,
.yp-watch-fact {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.yp-watch-poster img,
.yp-watch-poster .album-placeholder {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
}

.yp-watch-sections {
  padding-top: 0;
}

@media (max-width: 1400px) {
  .yunpak-grid,
  .yunpak-home-grid,
  .yunpak-rail {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .yunpak-grid,
  .yunpak-home-grid,
  .yunpak-rail {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .yp-billboard {
    min-height: 0;
    padding: 22px 18px;
  }

  .yunpak-grid,
  .yunpak-home-grid,
  .yunpak-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Yunpak live cleanup */
.yp-billboard {
  min-height: 156px !important;
  padding: 24px 26px !important;
}

.yp-billboard-content {
  max-width: 760px;
}

.yp-billboard-title {
  font-size: clamp(32px, 4vw, 48px) !important;
  line-height: 0.96 !important;
}

.yp-billboard-text {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
}

.yp-billboard-actions {
  margin-top: 14px !important;
}

.yp-rails,
.yp-feed-stack {
  display: grid;
  gap: 22px;
}

.yunpak-panel {
  overflow: hidden;
}

.yunpak-grid,
.yunpak-home-grid,
.yunpak-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.yunpak-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  min-height: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(19, 26, 43, 0.96) 0%, rgba(14, 20, 34, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.yunpak-card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: linear-gradient(180deg, rgba(45, 60, 92, 0.92) 0%, rgba(11, 16, 27, 0.98) 100%);
}

.yunpak-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yunpak-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(98, 137, 255, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(31, 44, 74, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
  color: #ffffff;
}

.yunpak-card-fallback-kind {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yunpak-card-fallback-code {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.yunpak-card-fallback-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.yunpak-card-poster-shade {
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.02) 0%, rgba(7, 11, 18, 0.48) 100%);
}

.yunpak-card-badge {
  top: 12px;
  left: 12px;
}

.yunpak-card-body {
  display: grid;
  gap: 8px;
  padding: 14px 14px 16px;
}

.yunpak-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.yunpak-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
}

.yunpak-card-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: -2px -2px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.yunpak-card-favorite:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.yunpak-card-favorite.is-active {
  background: rgba(255, 105, 143, 0.18);
  border-color: rgba(255, 105, 143, 0.34);
  color: #ff7d9f;
}

.yunpak-card-favorite:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.yunpak-card-subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.yunpak-card-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.45;
}

.yunpak-card-reason {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(96, 239, 194, 0.22);
  border-radius: 999px;
  background: rgba(96, 239, 194, 0.1);
  color: rgba(211, 255, 241, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yunpak-card-stream {
  margin-top: 2px;
}

.yp-watch-detail-panel {
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.98) 0%, rgba(10, 14, 22, 0.98) 100%) !important;
}

.yp-watch-backdrop {
  display: none !important;
}

.yp-watch-detail-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.45fr) 320px;
  align-items: start;
  gap: 24px;
  padding: 28px;
}

.yp-watch-main-head {
  display: grid;
  gap: 8px;
}

.yp-watch-copy {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.yp-watch-info-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-watch-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yp-watch-fact {
  background: rgba(255, 255, 255, 0.03);
}

.yp-watch-poster {
  background: rgba(255, 255, 255, 0.03);
}

.yp-watch-poster img,
.yp-watch-poster .album-placeholder {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 1400px) {
  .yunpak-grid,
  .yunpak-home-grid,
  .yunpak-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .yunpak-grid,
  .yunpak-home-grid,
  .yunpak-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .yp-watch-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .yp-billboard {
    padding: 20px 18px !important;
  }

  .yunpak-grid,
  .yunpak-home-grid,
  .yunpak-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .yp-watch-detail-grid {
    padding: 18px;
  }

  .yp-watch-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Browse and Yunpak refinement */
.data-basis-line {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.staleness-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

.browse-taxonomy-facets {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.browse-facet-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.browse-facet-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.browse-facet-meta,
.browse-facet-active {
  align-self: center;
  font-size: 13px;
  color: var(--muted);
}

.browse-facet-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  cursor: pointer;
}

.browse-facet-active span {
  color: var(--accent-strong);
  font-weight: 700;
}

.browse-facet-groups {
  display: grid;
  gap: 14px;
}

.browse-facet-group {
  display: grid;
  gap: 8px;
}

.browse-facet-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.browse-facet-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-facet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 13px;
  cursor: pointer;
}

.browse-facet-chip span {
  display: block;
  min-width: 0;
  max-width: min(56vw, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-facet-chip strong {
  font-size: 12px;
  color: var(--muted);
}

.browse-facet-chip.is-active {
  border-color: rgba(94, 123, 255, 0.45);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.browse-facet-chip.is-active strong {
  color: inherit;
}

.calendar-recent-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.calendar-recent-bar::before {
  content: "Recent upload days";
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-recent-pill {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: none;
  text-decoration: none;
}

.calendar-recent-pill strong {
  font-size: 13px;
  letter-spacing: -0.03em;
}

.calendar-recent-pill span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.calendar-recent-pill.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  box-shadow: 0 0 0 2px rgba(94, 123, 255, 0.22);
}

.yp-header-slim {
  margin-bottom: 20px;
}

.yp-header-slim-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.55fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: end;
  padding: 24px 26px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 31, 54, 0.96) 0%, rgba(12, 18, 31, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.yp-header-slim.is-source-mode .yp-header-slim-inner {
  border-color: rgba(122, 173, 255, 0.18);
  background: linear-gradient(180deg, rgba(18, 38, 73, 0.98) 0%, rgba(10, 18, 34, 0.99) 100%);
  box-shadow: 0 18px 44px rgba(5, 18, 42, 0.28);
}

.yp-header-slim.is-source-mode .yp-header-slim-title {
  font-size: clamp(30px, 3.6vw, 48px);
}

.yp-header-slim.is-source-mode .yp-header-slim-subtitle {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.yp-header-slim-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.yp-header-slim-subtitle {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.yp-header-slim-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yp-header-slim-admin {
  display: grid;
  gap: 10px;
  align-self: stretch;
  align-content: end;
  justify-items: start;
}

.yp-sync-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #10203a;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.yp-sync-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.yp-sync-button:disabled {
  opacity: 0.58;
  cursor: wait;
  box-shadow: none;
}

.yp-sync-button.is-running {
  background: linear-gradient(180deg, #ffd580 0%, #f2b84c 100%);
  color: #2f2100;
}

.yp-sync-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.yp-sync-note.is-error {
  color: #ffb6c2;
}

.yp-sync-log {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.yp-sync-log.is-error {
  color: rgba(255, 194, 203, 0.86);
}

.yp-stat-chip {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.yp-stat-chip strong {
  font-size: 22px;
  line-height: 1;
}

.yp-stat-chip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.yp-controls-primary {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  gap: 14px;
  align-items: center;
}

.yp-search {
  display: block;
}

.yp-search input {
  width: 100%;
}

.yp-search-results,
.yp-browse-source {
  margin-top: 20px;
}

.yp-browse-cta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.yp-browse-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.yp-browse-cta-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f1b33;
  font-weight: 800;
  cursor: pointer;
}

.yp-browse-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yp-browse-cta-btn-secondary .yp-browse-cta-count {
  color: rgba(255, 255, 255, 0.72);
}

.yp-browse-cta-count {
  color: rgba(15, 27, 51, 0.72);
  font-size: 12px;
}

.yp-browse-cta-text,
.yp-bs-summary {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.yp-browse-source-head {
  align-items: start;
}

.yp-bs-search {
  margin-top: 18px;
}

.yp-bs-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.yp-bs-taxonomy {
  margin-top: 18px;
}

.yp-bs-sort {
  min-width: 160px;
}

.yp-bs-count {
  justify-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.yp-bs-load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.yp-bs-showing {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.yp-watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.yp-watch-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yp-watch-topbar-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.yp-watch-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.yp-watch-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.yp-watch-meta-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.yp-watch-info-panel[hidden],
.yp-search-results[hidden],
.yp-browse-source[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .hub-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-detail-quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-detail-aside {
    order: 1;
  }

  .hub-detail-poster-frame {
    max-width: none;
  }

  .yp-header-slim-inner,
  .yp-bs-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-header-slim-admin {
    align-content: start;
  }

  .yp-bs-count {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .hub-detail-quick-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-detail-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .hub-detail-toolbar,
  .hub-detail-toolbar-actions {
    align-items: stretch;
  }

  .hub-detail-toolbar-actions {
    justify-content: flex-start;
  }

  .yp-header-slim-inner {
    padding: 20px 18px;
  }

  .yp-header-slim-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-sync-button {
    width: 100%;
  }

  .yp-controls-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-watch-topbar,
  .yp-bs-load-more {
    align-items: stretch;
    flex-direction: column;
  }
}

.shell-login {
  min-height: calc(100dvh - 88px);
  display: grid;
  place-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.login-panel {
  width: min(100%, 520px);
}

.login-panel-head {
  gap: 14px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form .action {
  border: 0;
  min-height: 46px;
  background: linear-gradient(135deg, var(--accent) 0%, #7a5cff 100%);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(94, 123, 255, 0.28);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.login-form .action:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

.login-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
}

#security-username[readonly] {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: default;
}

/* =========================================================================
   YUNPAK visual refinement — Korean-first, dark media surface
   Scoped to body[data-page^="yunpak"] so non-YUNPAK pages are untouched.
   ========================================================================= */

body[data-page^="yunpak"] {
  /* Korean-first typography: Hangul-capable face leads the stack so mixed
     Korean + Latin codes shape from one consistent family. */
  --yp-font-kr: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Segoe UI", sans-serif;
  /* Dark media surfaces */
  --yp-surface: rgba(8, 13, 24, 0.78);
  --yp-surface-raised: rgba(255, 255, 255, 0.05);
  --yp-surface-line: rgba(255, 255, 255, 0.08);
  /* Card / pill geometry */
  --yp-card-radius: 12px;
  --yp-pill-radius: 999px;
  /* Pill controls */
  --yp-pill-bg: rgba(255, 255, 255, 0.08);
  --yp-pill-bg-hover: rgba(255, 255, 255, 0.14);
  --yp-pill-border: rgba(255, 255, 255, 0.16);
  --yp-pill-ink: rgba(255, 255, 255, 0.92);
  /* Focus ring — visible against the dark surface, not a brand colour */
  --yp-focus-ring: 0 0 0 2px #0b1222, 0 0 0 4px rgba(150, 180, 255, 0.9);
  /* Comfortable line-height for Hangul body text */
  --yp-line-body: 1.6;
}

body[data-page^="yunpak"] {
  font-family: var(--yp-font-kr);
}

body[data-page="yunpak-watch"] {
  background:
    radial-gradient(circle at top left, rgba(29, 92, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #080d18 0%, #0f1628 100%);
  color: rgba(255, 255, 255, 0.92);
}

/* --- Korean readability: neutral letter-spacing on Korean-bearing text ----
   Korean glyphs render poorly with tight negative tracking, so titles and
   body copy that may carry Hangul are reset to normal spacing. Uppercase
   Latin micro-labels keep their positive tracking. */
body[data-page^="yunpak"] .yunpak-status-card strong,
body[data-page^="yunpak"] .yunpak-card-title,
body[data-page^="yunpak"] .yunpak-card-fallback-code,
body[data-page^="yunpak"] .yp-billboard-title,
body[data-page^="yunpak"] .yp-billboard-stat,
body[data-page^="yunpak"] .yp-detail-head h2,
body[data-page^="yunpak"] .yp-detail-playback-state,
body[data-page^="yunpak"] .yp-detail-section-head h3,
body[data-page^="yunpak"] .yp-detail-part-title,
body[data-page^="yunpak"] .yp-watch-stage-head h1,
body[data-page^="yunpak"] .yp-watch-title,
body[data-page^="yunpak"] .yp-watch-player-title,
body[data-page^="yunpak"] .yp-watch-detail-title,
body[data-page^="yunpak"] .yp-watch-progress-row strong,
body[data-page^="yunpak"] .yp-watch-section-head h3,
body[data-page^="yunpak"] .yp-watch-empty-title,
body[data-page^="yunpak"] .yp-header-slim-title {
  letter-spacing: normal;
}

/* --- Korean readability: fixed (non-viewport) title sizing & line-height ---
   viewport-scaled font sizes jump unpredictably for Korean text; pin them to
   fixed sizes with comfortable line-height, stepped down via media queries. */
body[data-page^="yunpak"] .yp-billboard-title {
  font-size: 42px !important;
  line-height: 1.18 !important;
}

body[data-page^="yunpak"] .yp-header-slim-title,
body[data-page^="yunpak"] .yp-header-slim.is-source-mode .yp-header-slim-title {
  font-size: 40px;
  line-height: 1.2;
}

body[data-page^="yunpak"] .yp-watch-detail-title {
  font-size: 38px;
  line-height: 1.2;
}

body[data-page^="yunpak"] .yp-watch-player-title {
  font-size: 34px;
  line-height: 1.2;
}

body[data-page^="yunpak"] .yp-watch-stage-head h1 {
  font-size: 32px;
  line-height: 1.2;
}

body[data-page^="yunpak"] .yp-watch-title {
  font-size: 28px;
  line-height: 1.25;
}

body[data-page^="yunpak"] .yunpak-card-fallback,
body[data-page^="yunpak"] .yunpak-card-fallback-code {
  font-size: 26px;
}

@media (max-width: 767px) {
  body[data-page^="yunpak"] .yp-billboard-title {
    font-size: 30px !important;
  }

  body[data-page^="yunpak"] .yp-header-slim-title,
  body[data-page^="yunpak"] .yp-header-slim.is-source-mode .yp-header-slim-title {
    font-size: 30px;
  }

  body[data-page^="yunpak"] .yp-watch-detail-title {
    font-size: 28px;
  }

  body[data-page^="yunpak"] .yp-watch-player-title,
  body[data-page^="yunpak"] .yp-watch-stage-head h1 {
    font-size: 26px;
  }

  body[data-page^="yunpak"] .yp-watch-title {
    font-size: 23px;
  }
}

/* --- Korean readability: comfortable body line-height ------------------- */
body[data-page^="yunpak"] .yunpak-card-subtitle,
body[data-page^="yunpak"] .yunpak-summary-line,
body[data-page^="yunpak"] .yp-billboard-text,
body[data-page^="yunpak"] .yp-detail-subtitle,
body[data-page^="yunpak"] .yp-detail-cast,
body[data-page^="yunpak"] .yp-detail-playback-note,
body[data-page^="yunpak"] .yp-watch-copy,
body[data-page^="yunpak"] .yp-header-slim-subtitle {
  line-height: var(--yp-line-body);
}

/* --- Overflow containment: mixed Korean + long codes -------------------- */
body[data-page^="yunpak"] .yunpak-card-title,
body[data-page^="yunpak"] .yunpak-card-subtitle,
body[data-page^="yunpak"] .yunpak-card-meta,
body[data-page^="yunpak"] .yp-billboard-title,
body[data-page^="yunpak"] .yp-detail-head h2,
body[data-page^="yunpak"] .yp-detail-part-title,
body[data-page^="yunpak"] .yp-watch-detail-title,
body[data-page^="yunpak"] .yp-watch-player-title,
body[data-page^="yunpak"] .yp-watch-part-label,
body[data-page^="yunpak"] .yp-watch-fact-value,
body[data-page^="yunpak"] .yp-header-slim-title {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Long taxonomy / meta rows must stay inside the card. */
body[data-page^="yunpak"] .yunpak-taxonomy-row,
body[data-page^="yunpak"] .yp-detail-meta-row,
body[data-page^="yunpak"] .yp-watch-meta-row {
  min-width: 0;
  max-width: 100%;
}

body[data-page^="yunpak"] .yunpak-card-body,
body[data-page^="yunpak"] .yunpak-card-title-row {
  min-width: 0;
}

body[data-page^="yunpak"] .yunpak-card {
  border-radius: var(--yp-card-radius);
}

body[data-page^="yunpak"] .yunpak-card-poster {
  border-radius: var(--yp-card-radius) var(--yp-card-radius) 0 0;
}

/* --- .yp-inline-button: previously unstyled (browser default) ----------- */
body[data-page^="yunpak"] .yp-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--yp-pill-border);
  border-radius: var(--yp-pill-radius);
  background: var(--yp-pill-bg);
  color: var(--yp-pill-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

body[data-page^="yunpak"] .yp-inline-button:hover {
  background: var(--yp-pill-bg-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-page^="yunpak"] .yp-inline-button:active {
  transform: translateY(1px);
}

body[data-page^="yunpak"] .yp-inline-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body[data-page^="yunpak"] .yp-search input,
body[data-page^="yunpak"] .yp-bs-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--yp-pill-border);
  border-radius: var(--yp-pill-radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  padding: 0 16px;
}

body[data-page^="yunpak"] .yp-search input::placeholder,
body[data-page^="yunpak"] .yp-bs-search input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

/* --- focus-visible rings on YUNPAK controls and cards ------------------- */
body[data-page^="yunpak"] .yunpak-card:focus-visible,
body[data-page^="yunpak"] .yunpak-taxonomy-chip:focus-visible,
body[data-page^="yunpak"] .yunpak-card-favorite:focus-visible,
body[data-page^="yunpak"] .yp-cta:focus-visible,
body[data-page^="yunpak"] .yp-inline-button:focus-visible,
body[data-page^="yunpak"] .yp-part-play:focus-visible,
body[data-page^="yunpak"] .yp-detail-close:focus-visible,
body[data-page^="yunpak"] .yp-controls .segment:focus-visible,
body[data-page^="yunpak"] .yp-watch-part:focus-visible,
body[data-page^="yunpak"] .yp-sync-button:focus-visible,
body[data-page^="yunpak"] .yp-browse-cta-btn:focus-visible {
  outline: none;
  box-shadow: var(--yp-focus-ring);
}

/* Inputs / selects keep the ring without the dark inner offset. */
body[data-page^="yunpak"] .yp-search input:focus-visible,
body[data-page^="yunpak"] .yp-bs-sort:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(150, 180, 255, 0.9);
}

/* --- Reduced motion: drop card lifts and decorative transitions -------- */
@media (prefers-reduced-motion: reduce) {
  body[data-page^="yunpak"] .yunpak-card,
  body[data-page^="yunpak"] .yunpak-card:hover,
  body[data-page^="yunpak"] .yunpak-card-favorite,
  body[data-page^="yunpak"] .yunpak-card-favorite:hover,
  body[data-page^="yunpak"] .yp-cta,
  body[data-page^="yunpak"] .yp-cta:hover,
  body[data-page^="yunpak"] .yp-inline-button,
  body[data-page^="yunpak"] .yp-inline-button:active,
  body[data-page^="yunpak"] .yp-watch-part,
  body[data-page^="yunpak"] .yp-watch-part:hover,
  body[data-page^="yunpak"] .yp-sync-button,
  body[data-page^="yunpak"] .yp-sync-button:hover:not(:disabled),
  body[data-page^="yunpak"] .yp-billboard-backdrop,
  body[data-page^="yunpak"] .yp-detail-panel,
  body[data-page^="yunpak"] .yp-detail-backdrop {
    transition: none;
    transform: none;
  }
}

/* --- LADA standalone page ---------------------------------------------- */
.shell-lada {
  max-width: 1680px;
  display: grid;
  gap: 0;
}

.hero-lada {
  background:
    radial-gradient(ellipse 60% 150% at 90% 0%, rgba(173, 161, 255, 0.16) 0%, transparent 60%),
    linear-gradient(135deg, #0a0c12 0%, #12141f 50%, #181a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lada-controls {
  margin-top: 2px;
  border-top: none;
  border-radius: 0 0 22px 22px;
}

.lada-controls-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(150px, 0.7fr));
  gap: 12px;
  align-items: end;
}

.lada-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lada-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.lada-filter-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lada-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(94, 123, 255, 0.32);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.lada-results-panel {
  margin-top: 18px;
}

.lada-summary-strip .summary-card[data-kind="av"] {
  border-left-color: var(--vr);
}

.lada-summary-strip .summary-card[data-kind="vr"] {
  border-left-color: var(--success);
}

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

.lada-result-card {
  position: relative;
  min-width: 0;
  color: inherit;
  cursor: default;
  overflow: hidden;
}

.lada-result-card:hover {
  color: inherit;
}

.lada-result-card.is-lada {
  border-color: rgba(139, 123, 255, 0.38);
  box-shadow: var(--shadow);
}

.lada-result-card.is-lada::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(139, 123, 255, 0.85);
  pointer-events: none;
  z-index: 1;
}

.lada-result-card.is-private {
  border-color: var(--line-strong);
}

.lada-result-card.has-no-poster .result-thumb {
  border-style: dashed;
  box-shadow: none;
}

.lada-result-card .result-info {
  gap: 9px;
}

.lada-poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.lada-poster-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 22px;
  background: linear-gradient(135deg, rgba(28, 42, 70, 0.95) 0%, rgba(63, 71, 108, 0.95) 54%, rgba(120, 87, 162, 0.92) 100%);
  color: #fff;
  text-align: left;
}

.lada-poster-placeholder strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.lada-poster-kicker,
.lada-poster-meta {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
}

.lada-poster-meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lada-chip-lada {
  background: rgba(139, 123, 255, 0.16);
  color: var(--vr-strong);
}

.lada-chip-category {
  background: var(--chip-bg);
  color: var(--chip-fg);
}

.lada-chip-private {
  background: var(--chip-bg);
  color: var(--muted);
}

.lada-card-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.lada-detail-block {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.lada-detail-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lada-detail-label {
  margin-right: 7px;
  color: var(--chip-fg);
  font-weight: 850;
}

.lada-body-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.lada-fact {
  display: grid;
  grid-template-columns: minmax(54px, auto) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.lada-fact dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lada-fact dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lada-source-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.lada-thread-link {
  width: 100%;
  justify-content: center;
  min-width: 0;
}

.lada-ed2k-copy {
  cursor: pointer;
  font: inherit;
}

.lada-state-card {
  border-color: rgba(255, 112, 128, 0.3);
  color: var(--danger);
  background: rgba(255, 112, 128, 0.08);
}

@media (max-width: 1180px) {
  .lada-controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .shell-lada,
  .hero-lada,
  .lada-controls,
  .lada-results-panel {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-lada .hero-copy,
  .hero-lada .hero-text,
  .lada-controls-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero-lada .hero-text {
    display: block;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
  }

  .lada-controls {
    border-radius: 0 0 18px 18px;
  }

  .lada-controls-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lada-toolbar-row {
    align-items: stretch;
    flex-direction: column;
  }

  .lada-toolbar-row .quick-pill {
    width: 100%;
  }

  .lada-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .lada-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Theme foundation ---------------------------------------------------
   The default (:root) token set is the dark Cinematic Noir theme. The light
   theme below only swaps tokens — every hub component reads tokens, so no
   per-component theme override chains are needed. YUNPAK keeps its bespoke
   treatment and never inherits altered base tokens. */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] body:not([data-page^="yunpak"]) {
  --bg: #f3f5fa;
  --bg-strong: #0b1222;
  --surface: #ffffff;
  --surface-soft: #eef1f8;
  --line: #dde3ee;
  --line-strong: #c3cfe4;
  --text: #121c2d;
  --muted: #5d6c84;
  --accent: #3056e0;
  --accent-soft: #e7edff;
  --accent-strong: #2444cc;
  --success: #0d8a5f;
  --warn: #9a6200;
  --danger: #cf3a4a;
  --av: #f0457a;
  --vr: #6c5ce7;
  --av-strong: #c01e5c;
  --vr-strong: #4a3ec4;
  --field-bg: #f7f9fd;
  --chip-bg: #eef2fa;
  --chip-bg-hover: #e2e8f4;
  --chip-fg: #3c4d68;
  --media-bg: linear-gradient(180deg, #e8edf7 0%, #dde4f1 100%);
  --page-bg:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(200, 218, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(220, 228, 245, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #f6f8fc 0%, #eef1f8 100%);
  --shadow: 0 14px 30px rgba(16, 25, 39, 0.08);
  --shadow-lg: 0 20px 46px rgba(16, 25, 39, 0.12);
  --shadow-xl: 0 28px 64px rgba(16, 25, 39, 0.16);
}

/* --- Phase 1A: topbar theme selector ----------------------------------- */
.theme-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-opt {
  border: 0;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.15s ease, background 0.15s ease;
}

.theme-opt:hover {
  color: rgba(255, 255, 255, 0.95);
}

.theme-opt[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.theme-opt[aria-pressed="true"]:hover {
  color: #ffffff;
}

@media (max-width: 767px) {
  .theme-toggle {
    align-self: flex-start;
  }
}

/* =========================================================================
   YUNPAK light theme — make the Light preference visibly work for YUNPAK.
   Scoped to html[data-theme="light"] so html[data-theme="dark"] (and the
   system default) keep the bespoke dark media-library treatment untouched.
   Surfaces stay restrained — soft light panels, gentle borders, blue/pink
   accents — so YUNPAK still reads as a media library, not a plain white
   table. Korean body copy keeps comfortable contrast via the ink tokens.
   The video/player rectangle is deliberately left dark for playback — see
   the note near .yp-watch-video below, which is NOT recoloured here.
   ========================================================================= */

html[data-theme="light"] body[data-page^="yunpak"] {
  /* Light surface + control tokens (override the dark tokens at the top of
     the YUNPAK refinement section). Variable-driven controls — .yp-inline-
     button, .yp-search input, focus rings — pick these up automatically. */
  --yp-surface: #ffffff;
  --yp-surface-raised: #eef2fa;
  --yp-surface-line: rgba(15, 23, 42, 0.1);
  --yp-pill-bg: #eef2fb;
  --yp-pill-bg-hover: #e1e8f7;
  --yp-pill-border: rgba(15, 23, 42, 0.14);
  --yp-pill-ink: #1d2740;
  --yp-focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px rgba(47, 92, 255, 0.55);
  /* Ink scale for text recolouring */
  --yp-ink: #14203a;
  --yp-ink-soft: #3b455f;
  --yp-ink-muted: #5c6679;
}

/* Page surface: a light AVVR-compatible backdrop with a restrained blue/pink
   wash so the library still feels like a media space. */
html[data-theme="light"] body[data-page="yunpak"],
html[data-theme="light"] body[data-page="yunpak-watch"] {
  color: var(--yp-ink);
  background:
    radial-gradient(ellipse 58% 42% at 84% 0%, rgba(47, 92, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 54% 46% at 6% 100%, rgba(229, 85, 125, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #f5f7fc 0%, #ecf0f7 100%);
}

/* Eyebrow micro-labels (shared by home + watch). */
html[data-theme="light"] body[data-page^="yunpak"] .eyebrow {
  color: var(--yp-ink-muted);
}

/* Secondary CTA pill is dark-on-dark by default; relight it (home drawer
   + watch action bar both use it). */
html[data-theme="light"] body[data-page^="yunpak"] .yp-cta-secondary {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: #14203a;
}

html[data-theme="light"] body[data-page^="yunpak"] .yp-cta-secondary:hover {
  background: #e1e8f7;
}

/* Search fields (home library search + browse-source search). */
html[data-theme="light"] body[data-page^="yunpak"] .yp-search input,
html[data-theme="light"] body[data-page^="yunpak"] .yp-bs-search input {
  background: #ffffff;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink);
}

html[data-theme="light"] body[data-page^="yunpak"] .yp-search input::placeholder,
html[data-theme="light"] body[data-page^="yunpak"] .yp-bs-search input::placeholder {
  color: #8089a0;
}

/* --- YUNPAK home (body[data-page="yunpak"]) ----------------------------- */

/* Raised surfaces become light cards with soft borders. */
html[data-theme="light"] body[data-page="yunpak"] .shell-yunpak .panel,
html[data-theme="light"] body[data-page="yunpak"] .yp-controls,
html[data-theme="light"] body[data-page="yunpak"] .yp-browse-cta {
  color: var(--yp-ink);
  background: var(--yp-surface);
  border-color: var(--yp-surface-line);
  box-shadow: 0 14px 34px rgba(20, 32, 60, 0.1);
}

/* Header card tone is unified with the main YUNPAK panels: both use the flat
   var(--yp-surface) so the header no longer reads as a separate blue card. */
html[data-theme="light"] body[data-page="yunpak"] .yp-header-slim-inner {
  background: var(--yp-surface);
  border-color: var(--yp-surface-line);
  box-shadow: 0 14px 34px rgba(20, 32, 60, 0.1);
}

/* Source mode keeps the same surface; only the border carries the blue accent
   so it does not turn into a strong blue card again. */
html[data-theme="light"] body[data-page="yunpak"] .yp-header-slim.is-source-mode .yp-header-slim-inner {
  background: var(--yp-surface);
  border-color: rgba(47, 92, 255, 0.24);
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-status-card,
html[data-theme="light"] body[data-page="yunpak"] .yp-stat-chip {
  background: var(--yp-surface-raised);
  border-color: var(--yp-surface-line);
}

/* Heading / strong text → dark ink. */
html[data-theme="light"] body[data-page="yunpak"] .shell-yunpak .panel-head h2,
html[data-theme="light"] body[data-page="yunpak"] .yunpak-status-card strong,
html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-title,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-head h2,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-section-head h3,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-playback-state,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-part-title {
  color: var(--yp-ink);
}

/* Muted / supporting copy → readable mid ink. */
html[data-theme="light"] body[data-page="yunpak"] .shell-yunpak .meta-note,
html[data-theme="light"] body[data-page="yunpak"] .shell-yunpak .link-arrow,
html[data-theme="light"] body[data-page="yunpak"] .shell-yunpak .eyebrow,
html[data-theme="light"] body[data-page="yunpak"] .yunpak-status-card span,
html[data-theme="light"] body[data-page="yunpak"] .yunpak-summary-line,
html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-subtitle,
html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-meta,
html[data-theme="light"] body[data-page="yunpak"] .yp-summary-line,
html[data-theme="light"] body[data-page="yunpak"] .yp-header-slim-subtitle,
html[data-theme="light"] body[data-page="yunpak"] .yp-browse-cta-text,
html[data-theme="light"] body[data-page="yunpak"] .yp-bs-summary,
html[data-theme="light"] body[data-page="yunpak"] .yp-bs-count,
html[data-theme="light"] body[data-page="yunpak"] .yp-bs-showing,
html[data-theme="light"] body[data-page="yunpak"] .yp-sync-note,
html[data-theme="light"] body[data-page="yunpak"] .yp-sync-log,
html[data-theme="light"] body[data-page="yunpak"] .yp-stat-chip span {
  color: var(--yp-ink-muted);
}

/* Cards: light bodies, the colour-coded posters stay as media art. */
html[data-theme="light"] body[data-page="yunpak"] .yunpak-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%);
  border-color: var(--yp-surface-line);
  box-shadow: 0 14px 30px rgba(20, 32, 60, 0.1);
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-card:hover {
  border-color: rgba(47, 92, 255, 0.32);
  box-shadow: 0 20px 38px rgba(20, 32, 60, 0.16);
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-taxonomy-chip {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: #28304a;
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-taxonomy-chip .taxonomy-chip-axis {
  color: var(--yp-ink-muted);
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-favorite {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink-muted);
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-favorite:hover {
  background: #e1e8f7;
  border-color: rgba(47, 92, 255, 0.3);
  color: var(--yp-ink);
}

/* Playback status text — darkened so it stays legible on white cards. */
html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-stream.is-available {
  color: #0f7a52;
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-stream.is-limited {
  color: #a76a06;
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-stream.is-unsupported {
  color: #c0344b;
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-stream.is-unknown {
  color: #8089a0;
}

html[data-theme="light"] body[data-page="yunpak"] .yunpak-card-reason {
  background: rgba(15, 122, 82, 0.1);
  border-color: rgba(15, 122, 82, 0.28);
  color: #0f7a52;
}

html[data-theme="light"] body[data-page="yunpak"] .shell-yunpak .empty-state {
  background: #f4f6fb;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink-muted);
}

/* Kind segmented control inside the controls bar. */
html[data-theme="light"] body[data-page="yunpak"] .yp-controls .segment {
  background: #eef2fb;
  color: var(--yp-ink-muted);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-controls .segment:hover {
  background: #e1e8f7;
  color: var(--yp-ink);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-controls .segment.is-active {
  background: #2f5cff;
  color: #ffffff;
}

html[data-theme="light"] body[data-page="yunpak"] .yp-sync-button {
  border-color: var(--yp-surface-line);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-browse-cta-btn-secondary {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: #14203a;
}

html[data-theme="light"] body[data-page="yunpak"] .yp-browse-cta-btn-secondary .yp-browse-cta-count {
  color: var(--yp-ink-muted);
}

/* Detail drawer (injected by app.js) — light slide-in panel. */
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-panel {
  background: #ffffff;
  border-left-color: var(--yp-surface-line);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-detail-head {
  border-bottom-color: var(--yp-surface-line);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-detail-close {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink-soft);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-detail-close:hover {
  background: #e1e8f7;
  color: var(--yp-ink);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-detail-poster-wrap,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-playback,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-part {
  background: var(--yp-surface-raised);
  border-color: var(--yp-surface-line);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-detail-subtitle,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-cast,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-playback-note,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-meta-row,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-section-note,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-part-index,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-part-meta,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-placeholder-text,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-note {
  color: var(--yp-ink-muted);
}

html[data-theme="light"] body[data-page="yunpak"] .yp-detail-playback-collection,
html[data-theme="light"] body[data-page="yunpak"] .yp-detail-part-state,
html[data-theme="light"] body[data-page="yunpak"] .yp-part-play {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink-soft);
}

/* --- YUNPAK Watch (body[data-page="yunpak-watch"]) ---------------------- */
/* The detail panel forces a dark background with !important upstream, so the
   light override must also use !important to win. */
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-detail-panel {
  background: #ffffff !important;
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-detail-title,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-player-title,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-section-head h3,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-fact-value,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-progress-row strong {
  color: var(--yp-ink);
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-copy,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-meta-row,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-fact-label,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-progress-row span {
  color: var(--yp-ink-muted);
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-info-panel,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-fact,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-progress,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-poster,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-part {
  background: var(--yp-surface-raised);
  border-color: var(--yp-surface-line);
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-part:hover {
  background: #e7edf9;
  border-color: rgba(47, 92, 255, 0.3);
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-part.is-active {
  background: rgba(47, 92, 255, 0.1);
  border-color: rgba(47, 92, 255, 0.4);
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-badge,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-meta-row span,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-topbar-pill {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink-soft);
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-watch-progress-track {
  background: #dde3ef;
}

/* File-selection / detail-part blocks rendered by renderYunpakWatch reuse the
   shared .yp-detail-* classes. The home light overrides above are scoped to
   body[data-page="yunpak"], so without these the Watch list text stays white
   and disappears on the light panels. */
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-section-head h3,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-part-title,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-playback-state {
  color: var(--yp-ink);
}

html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-section-note,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-part-index,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-part-meta,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-playback-note {
  color: var(--yp-ink-muted);
}

/* Raised surfaces become light cards with soft borders. */
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-part,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-playback {
  background: var(--yp-surface-raised);
  border-color: var(--yp-surface-line);
}

/* State pill + play control: light pill surface with dark readable ink. */
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-part-state,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-detail-playback-collection,
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-part-play {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink-soft);
}

/* Status pills injected into the Watch header (.yp-billboard-stat) need a light
   pill too; their available/limited/unknown accents stay untouched. */
html[data-theme="light"] body[data-page="yunpak-watch"] .yp-billboard-stat {
  background: #eef2fb;
  border-color: var(--yp-surface-line);
  color: var(--yp-ink-soft);
}

/* Player rectangle stays dark for playback contrast: .yp-watch-player-wrap
   and .yp-watch-video keep their dark/black backgrounds and are intentionally
   NOT recoloured by this light theme. The .yp-watch-empty-title/.yp-watch-empty-text
   overlay also stays white because it sits inside that dark player rectangle. */
