@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f3f8;
  --line: #e3e7ef;
  --text: #20283a;
  --muted: #7d8799;
  --muted-2: #a4adbb;
  --primary: #4b68d1;
  --primary-deep: #344daf;
  --primary-soft: #e9edff;
  --mint: #d9f1e9;
  --mint-text: #1f846b;
  --peach: #ffeadc;
  --peach-text: #c46c43;
  --lilac: #ede6ff;
  --lilac-text: #7552ba;
  --yellow: #fff1c8;
  --yellow-text: #a57716;
  --danger: #c65e68;
  --shadow: 0 8px 26px rgba(52, 71, 120, .055);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

body[data-theme="dark"] {
  --bg: #111726;
  --surface: #182033;
  --surface-soft: #222c42;
  --line: #2d3951;
  --text: #edf1fa;
  --muted: #a5afc2;
  --muted-2: #758198;
  --primary: #8da4ff;
  --primary-deep: #c3ceff;
  --primary-soft: #29365c;
  --mint: #1e423f;
  --mint-text: #86d7bb;
  --peach: #4b302c;
  --peach-text: #ffb99e;
  --lilac: #382d5a;
  --lilac-text: #d2baff;
  --yellow: #4b4127;
  --yellow-text: #f2ce73;
  --danger: #ff9ca6;
  --shadow: 0 12px 34px rgba(0,0,0,.18);
}
body[data-theme="dark"] .sidebar { background: rgba(17,23,38,.9); }
body[data-theme="dark"] .bottom-nav { background: rgba(24,32,51,.92); border-color: rgba(65,78,107,.8); }
body[data-theme="dark"] .cover::before { background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 50%, rgba(0,0,0,.3)); }
body[data-theme="dark"] .global-search kbd { border-color: var(--line); }
body[data-theme="dark"] .home-week { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
body[data-theme="dark"] .home-event-chip { background: #285657; color: #b9eee2; }
body[data-theme="dark"] .home-event-chip.alt { background: #44366b; color: #dfceff; }
body[data-theme="dark"] .home-calendar-add { background: var(--surface-soft); border-color: var(--line); color: var(--primary); box-shadow: 0 5px 12px rgba(0,0,0,.24); }
body[data-theme="dark"] .calendar-day { border-color: var(--line); }
body[data-theme="dark"] .calendar-day:nth-child(7n+1) { border-left-color: var(--line); }
body[data-theme="dark"] .calendar-day.muted-day { background: rgba(255,255,255,.025); color: var(--muted-2); }
body[data-theme="dark"] .calendar-event { background: var(--primary-soft); color: var(--primary); }
body[data-theme="dark"] .calendar-event.watch { background: var(--mint); color: var(--mint-text); }

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: 'Noto Sans SC', 'DM Sans', sans-serif; font-size: 15px; line-height: 1.55; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(75,104,209,.28); outline-offset: 2px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 246px; flex: 0 0 246px; border-right: 1px solid var(--line); background: rgba(250,251,253,.88); display: flex; flex-direction: column; padding: 27px 16px 20px; position: sticky; top: 0; height: 100vh; }
.brand, .mobile-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 800; font-size: 19px; box-shadow: 0 8px 18px rgba(75,104,209,.23); }
.brand strong { display: block; font-size: 17px; letter-spacing: .02em; }
.brand span, .brand small { display: block; color: var(--muted-2); font-size: 9px; letter-spacing: .17em; font-weight: 700; }
.sidebar-section-label { font-size: 11px; color: var(--muted-2); font-weight: 700; letter-spacing: .12em; margin: 48px 13px 11px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border-radius: 12px; text-align: left; transition: .2s ease; }
.nav-item:hover { color: var(--text); background: #eef1f8; }
.nav-item.active { color: var(--primary-deep); background: var(--primary-soft); font-weight: 700; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item .nav-count { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--surface); padding: 2px 7px; border-radius: 10px; }
.sidebar-footer { margin-top: auto; display: grid; gap: 15px; }
.sync-pill { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; padding: 0 11px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ac99f; box-shadow: 0 0 0 4px #ddf5eb; }
.profile-mini { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; display: flex; align-items: center; gap: 9px; padding: 9px; color: var(--text); text-align: left; }
.profile-mini strong, .profile-mini small { display: block; }
.profile-mini strong { font-size: 12px; }
.profile-mini small { font-size: 11px; color: var(--muted); }
.profile-mini .chevron { margin-left: auto; color: var(--muted-2); font-size: 20px; }
.avatar { width: 29px; height: 29px; border-radius: 10px; display: grid; place-items: center; background: #dfe7ff; color: var(--primary-deep); font-weight: 800; font-size: 12px; flex: 0 0 auto; }

.main-content { width: min(1420px, 100%); margin: 0 auto; padding: 0 48px 60px; }
.topbar { position: sticky; top: 0; z-index: 35; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 13px; }
.breadcrumb b { color: #cad0db; font-weight: 400; }
.breadcrumb strong { color: var(--text); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search { width: min(310px, 32vw); height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--muted); }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.global-search kbd { color: var(--muted-2); font-size: 10px; white-space: nowrap; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; }
.icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; }
.icon svg { display: block; width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn, .filter-btn, .secondary-btn, .primary-btn, .danger-btn, .today-btn { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface-soft); color: var(--text); }
.icon-btn.soft { background: var(--surface-soft); color: var(--muted); }
.icon-btn.soft:hover { background: var(--primary-soft); color: var(--primary); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); padding: 2px 0 2px 7px; font-size: 13px; font-weight: 600; }
.user-chip .icon { width: 14px; color: var(--muted); }
.mobile-brand { display: none; }

.page { display: none; padding-top: 42px; animation: fade-in .28s ease both; }
.page.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.intro-home { margin-bottom: 28px; }
.home-calendar-hero { position: relative; margin-bottom: 34px; padding: 2px 0 0; }
.home-calendar-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.home-calendar-head h1 { margin: 0; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-size: clamp(42px, 6vw, 65px); font-weight: 500; letter-spacing: -.07em; line-height: .95; }
.home-calendar-head h1 em { color: var(--muted-2); font-style: normal; margin: 0 5px; }
.home-calendar-head h1 strong { color: var(--primary); font-weight: 700; }
.home-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 23px; padding: 12px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.6); box-shadow: var(--shadow); }
.home-day { min-width: 0; min-height: 116px; padding: 8px 6px 7px; border-radius: 14px; text-align: center; color: var(--muted); }
.home-day.current { background: transparent; color: var(--muted); box-shadow: none; }
.home-day .weekday, .home-day .day-number { display: block; }
.home-day .weekday { font-size: 11px; font-weight: 700; color: var(--muted-2); }
.home-day .day-number { margin-top: 3px; font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); }
.home-day.current .day-number { color: var(--primary); }
.home-day-events { display: grid; gap: 4px; margin-top: 9px; }
.home-event-chip { display: block; overflow: hidden; border-radius: 5px; padding: 4px 4px; background: #dceff3; color: #3d7985; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.home-event-chip.alt { background: #ece8ff; color: #725fb7; }
.home-calendar-add { position: absolute; z-index: 2; right: 16px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--primary); box-shadow: 0 5px 12px rgba(42,57,100,.12); }
.home-calendar-add .icon { width: 15px; height: 15px; }
.floating-add { position: fixed; z-index: 45; right: 31px; bottom: 30px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 12px 26px rgba(75,104,209,.25); transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .72s cubic-bezier(.22,1,.36,1), background .2s ease; }
.floating-add[hidden] { display: none; }
.floating-add:hover { background: var(--primary-deep); transform: translateY(-2px); }
.floating-add .icon { width: 25px; height: 25px; }
.floating-today { font-size: 18px; font-weight: 800; letter-spacing: -.08em; }
.floating-quick-add { width: 48px; height: 48px; }
.floating-add.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px) scale(.94); }
.eyebrow { margin: 0 0 7px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; letter-spacing: -.04em; font-size: clamp(28px, 4vw, 42px); line-height: 1.16; }
h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.025em; }
.intro-copy { margin-bottom: 0; color: var(--muted); }
.primary-btn { background: var(--primary); color: #fff; border-radius: 11px; padding: 12px 17px; font-weight: 700; box-shadow: 0 8px 18px rgba(75,104,209,.18); }
.primary-btn:hover { background: var(--primary-deep); transform: translateY(-1px); }
.secondary-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 11px; padding: 10px 14px; font-weight: 600; }
.secondary-btn:hover { border-color: #c7d0e5; background: var(--surface-soft); }
.secondary-btn.small { padding: 7px 10px; font-size: 12px; }
.text-btn { border: 0; background: transparent; color: var(--primary); padding: 5px 0; font-size: 13px; font-weight: 700; }
.text-btn span { margin-left: 4px; }

.home-stats, .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 42px; }
.stat-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); padding: 18px 19px; min-height: 108px; box-shadow: var(--shadow); }
.stat-card .stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.stat-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; }
.stat-icon.blue { background: var(--primary-soft); color: var(--primary); }
.stat-icon.mint { background: var(--mint); color: var(--mint-text); }
.stat-icon.peach { background: var(--peach); color: var(--peach-text); }
.stat-icon.yellow { background: var(--yellow); color: var(--yellow-text); }
.stat-value { font-size: 29px; font-weight: 800; line-height: 1; margin-top: 15px; letter-spacing: -.05em; }
.stat-suffix { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 500; }
.section-heading, .panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.section-heading { margin-bottom: 16px; }
.continue-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 38px; }
.home-recent-panel { margin-top: 17px; }
.continue-card { display: grid; grid-template-columns: 86px minmax(0,1fr); min-height: 128px; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.continue-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(52,71,120,.1); }
.continue-card:focus-visible { outline: 3px solid rgba(75,104,209,.28); outline-offset: 3px; }
.continue-card .cover { width: calc(100% - 8px); height: auto; align-self: center; margin: 8px 0 8px 8px; aspect-ratio: .72; min-height: 0; border-radius: 12px; }
.cover { position: relative; overflow: hidden; aspect-ratio: .72; padding: 13px; display: flex; align-items: flex-end; color: #fff; border-radius: 14px; }
.cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.19), transparent 50%, rgba(0,0,0,.2)); }
.cover::after { content: ''; position: absolute; width: 120px; height: 120px; right: -20px; top: -30px; border: 1px solid rgba(255,255,255,.33); border-radius: 48%; transform: rotate(25deg); }
.cover span { position: relative; z-index: 1; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.cover-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-image span { display: none; }
.cover.has-image::before { background: linear-gradient(145deg, rgba(255,255,255,.08), transparent 48%, rgba(0,0,0,.28)); }
.cover.has-image::after { opacity: .55; }
.cover-ocean { background: linear-gradient(135deg, #214267, #65a0ba 50%, #c1dfce); }
.cover-plum { background: linear-gradient(135deg, #2e2547, #7b4c93 50%, #ecadbe); }
.cover-sand { background: linear-gradient(135deg, #77522e, #d9985c 52%, #f5d89a); }
.cover-night { background: linear-gradient(135deg, #171a38, #303c76 55%, #a1b5e4); }
.cover-rose { background: linear-gradient(135deg, #692b42, #bd607b 50%, #ffc2b5); }
.cover-moss { background: linear-gradient(135deg, #1f463d, #4d8674 52%, #d6d2a3); }
.continue-body { padding: 12px 14px; display: grid; align-content: center; gap: 10px; }
.continue-card .work-title-row { align-items: center; }
.work-title-row { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.work-title-row > div:first-child { min-width: 0; flex: 1; }
.work-title-row h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; margin: 0 0 3px; letter-spacing: -.025em; }
.work-meta { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.rating { white-space: nowrap; color: #d79a2c; font-size: 12px; font-weight: 700; }
.rating-picker { display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.rating-star { width: 20px; height: 30px; padding: 0; border: 0; background: transparent; color: #dce1eb; font-size: 17px; line-height: 1; cursor: pointer; }
.rating-star.is-full { color: #d79a2c; }
.rating-star.is-half { color: transparent; background: linear-gradient(90deg, #d79a2c 50%, #dce1eb 50%); background-clip: text; -webkit-background-clip: text; }
.rating-star:hover { transform: scale(1.12); }
.progress-row { display: flex; align-items: end; gap: 11px; }
.progress-row .progress-wrap { min-width: 0; flex: 1; }
.episode-stepper { display: flex; gap: 4px; align-items: center; padding-bottom: 1px; }
.episode-stepper button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 19px; line-height: 1; }
.episode-stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.progress-wrap { display: grid; gap: 7px; }
.progress-info { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.progress-track { height: 7px; border-radius: 20px; background: #edf0f5; overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #8c9ff3); }
.quick-actions { display: flex; gap: 8px; }
.quick-actions button { flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 36px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.quick-actions button.primary-action { background: var(--primary-soft); border-color: transparent; color: var(--primary-deep); }
.quick-actions button:hover { background: var(--surface-soft); }
.home-columns, .stats-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.calendar-support-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 17px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: 21px; box-shadow: var(--shadow); }
.panel-heading { margin-bottom: 20px; }
.update-list, .timeline-list { display: grid; gap: 9px; }
.update-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eef0f4; }
.update-item:last-child { border-bottom: 0; }
.mini-cover { width: 39px; height: 47px; border-radius: 8px; flex: 0 0 auto; }
.update-item .update-main { min-width: 0; flex: 1; }
.update-main strong, .update-main span { display: block; }
.update-main strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-main span { color: var(--muted); font-size: 11px; }
.update-badge { padding: 5px 8px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-deep); font-size: 10px; font-weight: 700; white-space: nowrap; }
.timeline-item { display: grid; grid-template-columns: 74px 1fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eef0f4; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-date { color: var(--muted); font-size: 11px; padding-top: 2px; }
.timeline-event { position: relative; padding-left: 17px; font-size: 12px; }
.timeline-event::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline-event strong { font-size: 13px; }
.timeline-event span { color: var(--muted); display: block; margin-top: 2px; }

.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.segmented { display: flex; gap: 3px; background: var(--surface-soft); border-radius: 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 13px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 7px rgba(30,45,80,.08); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filter-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); padding: 9px 12px; font-size: 12px; font-weight: 700; }
.filter-btn.icon-only { width: 39px; display: grid; place-items: center; padding: 9px; }
.filter-btn.icon-only .icon { width: 16px; height: 16px; }
.filter-btn:hover { color: var(--text); background: var(--surface-soft); }
.library-search-row { width: min(245px, 28vw); height: 40px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.library-search-row .icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.library-search-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.filter-drawer { display: none; gap: 10px; align-items: end; padding: 14px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.filter-drawer.is-open { display: flex; }
.filter-drawer label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-drawer select, .setting-row select { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); padding: 8px 10px; min-width: 130px; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.library-grid.list-view { grid-template-columns: 1fr; }
.library-grid:not(.list-view) { display: block; column-count: 4; column-gap: 16px; }
.library-grid:not(.list-view) .library-card { break-inside: avoid; margin-bottom: 16px; }
.library-card { border: 1px solid var(--line); background: var(--surface); border-radius: 17px; overflow: visible; box-shadow: var(--shadow); transition: .2s ease; }
.library-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(52,71,120,.1); }
.library-card .cover { width: calc(100% - 16px); height: auto; margin: 8px 8px 0; aspect-ratio: .72; border-radius: 12px; }
.library-card .cover span { font-size: 18px; }
.library-card-body { padding: 9px; }
.library-card-body h3 { margin: 0 0 3px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-card-body .meta { font-size: 11px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag { background: var(--surface-soft); color: var(--muted); padding: 3px 7px; font-size: 10px; border-radius: 6px; }
.status-badge { padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-watching { background: var(--primary-soft); color: var(--primary-deep); }
.status-want { background: var(--yellow); color: var(--yellow-text); }
.status-done { background: var(--mint); color: var(--mint-text); }
.status-paused { background: var(--peach); color: var(--peach-text); }
.status-dropped { background: #f4e4e7; color: var(--danger); }
.library-card .progress-wrap { margin-top: 7px; gap: 5px; }
.library-card .quick-actions { margin-top: 7px; }
.library-card .quick-actions button { min-height: 32px; }
.list-view .library-card { display: grid; grid-template-columns: 110px 1fr; }
.list-view .library-card .cover { width: calc(100% - 8px); height: auto; align-self: start; margin: 8px 0 8px 8px; aspect-ratio: .72; min-height: 0; border-radius: 12px; }
.list-view .library-card-body { padding: 9px 12px; }
.list-view .tag-row { display: none; }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; text-align: center; border: 1px dashed #cbd3e1; border-radius: 20px; color: var(--muted); }

.calendar-panel { padding: 20px; }
.calendar-header { display: flex; align-items: center; justify-content: center; gap: 19px; margin-bottom: 22px; }
.calendar-header > div { min-width: 130px; text-align: center; }
.calendar-header strong, .calendar-header span { display: block; }
.calendar-header strong { font-size: 18px; letter-spacing: -.03em; }
.calendar-header span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.today-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 7px 12px; color: var(--primary); font-weight: 700; font-size: 12px; margin-left: 8px; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { color: var(--muted-2); font-size: 11px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.calendar-day { display: block; width: 100%; min-height: 111px; border: 0; border-top: 1px solid #edf0f5; border-right: 1px solid #edf0f5; padding: 9px; position: relative; background: var(--surface); color: var(--text); text-align: left; vertical-align: top; }
.calendar-day:nth-child(7n+1) { border-left: 1px solid #edf0f5; }
.calendar-day.muted-day { background: #fafbfc; color: #c5cad4; }
.calendar-day > .day-number { position: absolute; top: 9px; left: 0; width: 100%; height: 26px; display: block; line-height: 26px; border-radius: 50%; font-size: 12px; text-align: center; }
.calendar-day.today .day-number { background: transparent; color: var(--primary); font-weight: 800; }
.calendar-day.selected { box-shadow: inset 0 0 0 2px var(--primary); z-index: 1; }
.calendar-day.selected .day-number { color: var(--primary); font-weight: 800; }
.calendar-day:hover { background: var(--surface-soft); }
.calendar-event { display: block; border-radius: 6px; padding: 4px 5px; margin: 4px 0; font-size: 10px; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--primary-soft); color: var(--primary-deep); }
.calendar-day > .calendar-event:nth-child(2) { margin-top: 36px; }
.calendar-event.watch { background: var(--mint); color: var(--mint-text); }
.calendar-legend { display: flex; gap: 15px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin-top: 14px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; background: var(--primary); }
.legend-dot.watch { background: #72cba9; }
.calendar-detail-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.calendar-day-detail { display: grid; gap: 8px; }
.calendar-detail-item { display: flex; align-items: center; width: 100%; gap: 10px; min-width: 0; padding: 10px 0; border: 0; border-bottom: 1px solid #eef0f4; background: transparent; color: var(--text); text-align: left; }
.calendar-detail-item:last-child { border-bottom: 0; }
.calendar-detail-item:hover { background: var(--surface-soft); }
.calendar-detail-mark { flex: 0 0 auto; padding: 4px 6px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-deep); font-size: 10px; font-weight: 700; }
.calendar-detail-item.watch .calendar-detail-mark { background: var(--mint); color: var(--mint-text); }
.calendar-detail-main { min-width: 0; flex: 1; }
.calendar-detail-main strong, .calendar-detail-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-detail-main strong { font-size: 13px; }
.calendar-detail-main span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.calendar-detail-item > b { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 600; }
.calendar-detail-empty { padding: 18px 0; color: var(--muted); font-size: 12px; text-align: center; }

.stats-grid { margin-bottom: 18px; }
.stats-columns { margin-top: 16px; }
.chart-label { color: var(--muted); font-size: 12px; }
.bar-chart { height: 220px; display: flex; align-items: end; gap: 12px; padding: 20px 6px 0; border-bottom: 1px solid var(--line); }
.bar-group { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.bar-value { color: var(--muted); font-size: 10px; }
.bar { width: 100%; max-width: 31px; min-height: 8px; border-radius: 7px 7px 2px 2px; background: #cfd7f5; }
.bar.highlight { background: var(--primary); }
.bar-month { color: var(--muted); font-size: 10px; }
.platform-bars { display: grid; gap: 19px; padding: 8px 0; }
.platform-row { display: grid; grid-template-columns: 86px 1fr 35px; gap: 10px; align-items: center; font-size: 12px; }
.platform-row > span:first-child { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-track { background: #edf0f5; height: 9px; border-radius: 20px; overflow: hidden; }
.platform-fill { height: 100%; background: var(--primary); border-radius: inherit; }
.platform-row strong { text-align: right; font-size: 12px; }

.settings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.settings-card { padding: 23px; }
.setting-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #edf0f5; }
.setting-row strong, .setting-row span { display: block; }
.setting-row strong { font-size: 13px; }
.setting-row span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.danger-row strong { color: var(--danger); }
.danger-btn { border: 1px solid #f0ccd0; background: #fff5f6; color: var(--danger); border-radius: 9px; padding: 7px 11px; font-size: 12px; font-weight: 700; }

.bottom-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(26,34,54,.38); display: grid; place-items: center; padding: 20px; animation: fade-in .18s ease both; }
.modal { width: min(640px, 100%); max-height: min(850px, 92vh); overflow: auto; scrollbar-width: none; -ms-overflow-style: none; background: var(--surface); border-radius: 25px; box-shadow: 0 30px 80px rgba(24,36,80,.22); padding: 25px; animation: modal-in .22s ease both; }
.modal::-webkit-scrollbar { display: none; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header { position: sticky; z-index: 4; top: -25px; display: flex; justify-content: space-between; align-items: start; gap: 16px; margin: -25px 0 20px; padding: 25px 0 16px; background: var(--surface); }
.modal-header h2 { font-size: 23px; }
.modal-close { border: 0; background: var(--surface-soft); color: var(--muted); width: 35px; height: 35px; border-radius: 10px; }
.custom-platform-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(26,34,54,.28); animation: fade-in .18s ease both; }
.custom-platform-dialog { width: min(360px, 100%); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 25px 60px rgba(24,36,80,.22); padding: 20px; }
.custom-platform-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.custom-platform-header h3 { margin: 0; font-size: 18px; }
.custom-platform-dialog .form-field + .form-field { margin-top: 15px; }
.custom-platform-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.quick-update-backdrop { place-items: center; }
.quick-update-modal { width: min(430px, 100%); max-height: min(640px, 88vh); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.work-form-grid { grid-template-columns: 1fr; gap: 30px; }
.form-field { display: grid; gap: 9px; }
.form-field[hidden] { display: none; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 700; color: var(--text); }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--surface); color: var(--text); outline: 0; }
.form-field textarea { min-height: 82px; resize: vertical; }
.form-help { color: var(--muted); font-size: 11px; }
.cover-editor { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.cover-editor-preview { width: 92px; min-height: 0; aspect-ratio: .78; border-radius: 13px; }
.cover-editor-preview.cover span { font-size: 15px; }
.cover-editor-tools { display: grid; gap: 9px; min-width: 0; }
.cover-action-row, .cover-url-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cover-url-row input { min-width: 0; flex: 1; }
.cover-search-btn { justify-self: start; font-size: 12px; }
.file-btn { cursor: pointer; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { border: 1px solid transparent; background: var(--surface-soft); color: var(--muted); border-radius: 10px; padding: 8px 13px; font-size: 12px; font-weight: 700; transition: .2s ease; }
.choice-chip:hover { color: var(--text); background: var(--primary-soft); }
.choice-chip.active { background: var(--primary); color: #fff; box-shadow: 0 5px 13px rgba(75,104,209,.16); }
.choice-chip.choice-add { border-color: var(--line); background: var(--surface); color: var(--primary); }
.repeat-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.repeat-options select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--surface); color: var(--text); outline: 0; }
.update-rule-choices { margin-top: 1px; }
.schedule-rule-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; background: var(--surface-soft); color: var(--text); font-size: 13px; font-weight: 700; text-align: left; }
.schedule-rule-trigger > span:last-child { color: var(--muted-2); font-size: 22px; line-height: 1; }
.schedule-picker-backdrop { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 18px; background: rgba(26,34,54,.3); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.schedule-picker-backdrop.is-open { opacity: 1; pointer-events: auto; }
.schedule-picker-panel { width: min(560px, 100%); max-height: min(780px, 88vh); overflow: auto; scrollbar-width: none; -ms-overflow-style: none; border-radius: 24px; background: var(--surface); box-shadow: 0 28px 70px rgba(24,36,80,.22); padding: 12px 0; transform: translateY(10px) scale(.98); transition: transform .24s cubic-bezier(.22,1,.36,1); }
.schedule-picker-panel::-webkit-scrollbar { display: none; }
.schedule-picker-panel[hidden] { display: none; }
.schedule-picker-backdrop.is-open .schedule-picker-panel { transform: none; }
.schedule-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 13px; border-bottom: 1px solid var(--line); }
.schedule-picker-header h3 { margin: 0; font-size: 18px; }
.schedule-option-list { display: grid; }
.schedule-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); padding: 16px 20px; font-size: 15px; font-weight: 600; text-align: left; }
.schedule-option:last-child { border-bottom: 0; }
.schedule-option:hover { background: var(--surface-soft); }
.schedule-radio { width: 21px; height: 21px; flex: 0 0 auto; border: 3px solid #dfe2e7; border-radius: 50%; }
.schedule-option.active .schedule-radio { border-color: #2c7cf5; box-shadow: inset 0 0 0 4px var(--surface), 0 0 0 1px #2c7cf5; background: #2c7cf5; }
.custom-schedule-header { display: flex; align-items: center; gap: 14px; padding: 15px 20px 17px; border-bottom: 1px solid var(--line); }
.custom-schedule-header h3 { margin: 0; font-size: 24px; }
.custom-back-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--text); font-size: 34px; line-height: 1; }
.custom-schedule-caption { margin: 24px 20px 13px; color: var(--muted); font-size: 13px; }
.custom-setting-list { margin: 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.custom-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 16px; background: var(--surface); font-size: 16px; font-weight: 700; }
.custom-setting-row + .custom-setting-row { border-top: 1px solid var(--line); }
.custom-setting-value { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.custom-setting-value select, .custom-setting-value input { min-width: 55px; border: 0; background: transparent; color: var(--muted); font: inherit; text-align: right; outline: 0; }
.custom-setting-value input { width: 54px; }
.custom-setting-value em { font-style: normal; }
.custom-setting-value b { color: var(--muted-2); font-size: 24px; font-weight: 400; line-height: 1; }
.custom-save-btn { margin: 22px 20px 4px; width: calc(100% - 40px); }
.rating-form-picker { display: flex; align-items: center; gap: 1px; }
.rating-form-picker .rating-star { width: 30px; height: 36px; font-size: 26px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 22px; margin-top: 18px; border-top: 1px solid #edf0f5; }
.work-editor-modal .modal-footer [data-action="delete-work"] { color: var(--danger); background: transparent; border-color: #f0ccd0; }
.detail-layout { display: grid; grid-template-columns: 155px 1fr; gap: 20px; }
.detail-cover { aspect-ratio: .78; border-radius: 16px; }
.detail-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.detail-title-row h3 { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-info h3 { margin: 0 0 4px; font-size: 22px; }
.detail-info .creator { color: var(--muted); font-size: 12px; }
.detail-work-link { display: inline-block; margin-top: 8px; color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }
.detail-work-link:hover { text-decoration: underline; }
.detail-info .tag-row { margin-top: 14px; }
.detail-progress { margin-top: 20px; }
.episode-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; margin-top: 18px; }
.episode-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; min-height: 34px; color: var(--muted); font-size: 11px; }
.episode-btn.watched { background: var(--primary); color: #fff; border-color: var(--primary); }
.episode-btn.current { box-shadow: 0 0 0 3px var(--primary-soft); }
.viewing-section { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.viewing-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.viewing-heading h2 { margin: 0; }
.session-work-name { margin: -8px 0 20px; color: var(--muted); font-size: 13px; }
.session-modal { width: min(520px, 100%); }
.viewing-timeline { display: grid; gap: 0; }
.viewing-entry { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 13px; }
.viewing-entry:last-child { padding-bottom: 0; }
.viewing-entry::before { content: ''; position: absolute; left: 7px; top: 13px; bottom: 0; width: 1px; background: var(--line); }
.viewing-entry:last-child::before { display: none; }
.viewing-entry-marker { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.viewing-entry-main { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.viewing-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.viewing-entry-head strong { font-size: 13px; }
.viewing-entry-head time { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.viewing-entry-main p { margin: 6px 0 0; color: var(--text); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.viewing-entry-main .viewing-entry-placeholder { color: var(--muted); }
.viewing-empty { padding: 16px 14px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 15px; border-radius: 11px; background: #1f2940; color: #fff; box-shadow: 0 12px 30px rgba(20,30,60,.2); font-size: 12px; transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .sidebar { width: 215px; flex-basis: 215px; }
  .main-content { padding-left: 28px; padding-right: 28px; }
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-grid:not(.list-view) { column-count: 3; }
}
@media (max-width: 780px) {
  body { padding-bottom: 72px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 0 16px 28px; }
  .topbar { min-height: 69px; gap: 12px; }
  .mobile-brand { display: flex; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 15px; }
  .mobile-brand strong { font-size: 17px; }
  .breadcrumb { display: none; }
  .topbar-actions { display: none; }
  .global-search { width: 42px; height: 40px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .global-search input, .global-search kbd { display: none; }
  .user-chip { padding-left: 0; }
  .user-chip-name, .user-chip > .icon { display: none; }
  .page { padding-top: 28px; }
  .page-intro { display: none; }
  .page-intro .primary-btn, .page-intro .secondary-btn { align-self: stretch; }
  .intro-home { gap: 3px; }
  .home-calendar-head { align-items: center; }
  .home-calendar-head h1 { font-size: 48px; }
  .home-week { gap: 4px; margin-top: 17px; padding: 8px 5px; border-radius: 17px; }
  .home-day { min-height: 104px; padding: 7px 2px 5px; border-radius: 11px; }
  .home-day .weekday { font-size: 10px; }
  .home-day .day-number { font-size: 15px; }
  .home-event-chip { font-size: 8px; padding: 3px 2px; }
  h1 { font-size: 31px; }
  .home-stats, .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 30px; }
  .stat-card { min-height: 94px; padding: 14px; }
  .stat-value { font-size: 25px; }
  .continue-grid { grid-template-columns: 1fr; gap: 12px; }
  .continue-card { min-height: 122px; grid-template-columns: 78px minmax(0,1fr); }
  .continue-card .cover { min-height: 0; }
  .continue-body { padding: 10px 11px; gap: 8px; }
  .continue-card .work-title-row h3 { font-size: 15px; }
  .continue-card .work-meta { font-size: 11px; }
  .rating-star { width: 18px; font-size: 15px; }
  .episode-stepper { gap: 2px; }
  .episode-stepper button { width: 34px; height: 34px; font-size: 17px; }
  .home-columns, .stats-columns, .settings-layout, .calendar-support-panels { grid-template-columns: 1fr; }
  .panel { padding: 17px; border-radius: 19px; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .segmented { max-width: 100%; }
  .toolbar-actions { justify-content: stretch; }
  .library-search-row { width: auto; min-width: 0; flex: 1; }
  .filter-drawer.is-open { flex-wrap: wrap; }
  .filter-drawer label { flex: 1; min-width: 130px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .library-grid:not(.list-view) { column-count: 2; column-gap: 10px; }
  .library-card .cover { aspect-ratio: .72; height: auto; }
  .library-card-body { padding: 9px; }
  .library-card-body h3 { font-size: 13px; }
  .list-view .library-card { grid-template-columns: 90px 1fr; }
  .list-view .library-card .cover { aspect-ratio: .72; min-height: 0; height: auto; }
  .calendar-panel { padding: 12px 8px; overflow: hidden; }
  .calendar-header { gap: 4px; justify-content: space-between; }
  .calendar-header > div { min-width: 106px; }
  .calendar-header .icon-btn { width: 35px; }
  .today-btn { margin-left: 0; padding: 7px 9px; }
  .calendar-day { min-height: 79px; padding: 5px 3px; }
  .calendar-day > .day-number { top: 5px; width: 100%; height: 23px; line-height: 23px; margin: 0; font-size: 11px; }
  .calendar-day > .calendar-event:nth-child(2) { margin-top: 32px; }
  .calendar-event { font-size: 8px; padding: 3px 2px; }
  .weekdays { font-size: 10px; }
  .bar-chart { gap: 6px; }
  .platform-row { grid-template-columns: 75px 1fr 28px; }
  .bottom-nav { position: fixed; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 63px; border: 1px solid rgba(255,255,255,.75); border-radius: 19px; background: rgba(255,255,255,.9); box-shadow: 0 11px 30px rgba(42,57,100,.14); backdrop-filter: blur(16px); padding: 6px 5px 5px; }
  .bottom-nav .nav-item { flex-direction: column; justify-content: center; gap: 2px; padding: 5px 2px; font-size: 10px; }
  .bottom-nav .nav-item .icon { width: 18px; height: 18px; }
  .bottom-nav .nav-item .nav-count { display: none; }
  .home-calendar-add { right: 15px; bottom: 12px; }
  .floating-add { right: 21px; bottom: calc(87px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .floating-quick-add { width: 48px; height: 48px; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { border-radius: 23px 23px 15px 15px; padding: 20px; max-height: 90vh; }
  .modal-header { top: -20px; margin: -20px 0 20px; padding: 20px 0 16px; }
  .floating-today { font-size: 17px; }
  .custom-platform-backdrop { padding: 16px; }
  .quick-update-backdrop { align-items: center; padding: 16px; }
  .work-form-grid { gap: 26px; }
  .repeat-options { grid-template-columns: 1fr; gap: 9px; }
  .schedule-picker-backdrop { align-items: end; padding: 10px; }
  .schedule-picker-panel { max-height: 88vh; border-radius: 23px 23px 15px 15px; }
  .schedule-picker-header { padding: 12px 16px; }
  .schedule-option { padding: 15px 17px; font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-field.full { grid-column: auto; }
  .detail-layout { grid-template-columns: 100px 1fr; gap: 14px; }
  .detail-info h3 { font-size: 18px; }
  .viewing-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .viewing-heading .secondary-btn { align-self: stretch; }
  .viewing-entry-main { padding: 9px 10px; }
  .viewing-entry-head { align-items: start; flex-direction: column; gap: 2px; }
  .episode-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
