/* LUMA's cinema interface. Motion is decorative; every action works without it. */
:root {
  --bg: #101115;
  --sidebar: #141519;
  --panel: #1c1e24;
  --line: #303239;
  --text: #f5f3ee;
  --muted: #a0a1aa;
  --accent: #f2c16b;
  --accent-dim: #32291e;
  --green: #a7c994;
  --ease-out: cubic-bezier(.2,.75,.25,1);
}
body { background: var(--bg); font-size: 15px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 5px;
}
.app-shell { grid-template-columns: 224px minmax(0,1fr); }
.sidebar {
  padding: 30px 16px 20px; background: linear-gradient(180deg,#191a1e,#121317);
  border-right: 1px solid #ffffff0b; overflow-y: auto; scrollbar-width: thin;
  scrollbar-color: #393a40 transparent;
}
.brand { margin: 3px 14px 34px; gap: 13px; }
.brand-word { font-size: 26px; letter-spacing: 5px; }
.brand svg { color: var(--accent); filter: drop-shadow(0 0 15px #f2c16b25); }
.side-label { font-size: 9px; color: #85858e; letter-spacing: 1.8px; }
.nav-group { gap: 6px; margin-bottom: 24px; }
.nav-item {
  min-height: 44px; border-radius: 10px; padding: 0 14px; color: #a7a7b0;
  font-size: 13px; gap: 12px;
  transition: background .22s, color .22s, transform .22s var(--ease-out);
}
.nav-item:hover { background: #ffffff08; color: #fff; transform: translateX(2px); }
.nav-item.active {
  color: #f4cc86; background: linear-gradient(100deg,#f2c16b20,#f2c16b0a);
  box-shadow: inset 0 0 0 1px #f2c16b15;
}
.nav-item.active:before { height: 22px; box-shadow: 0 0 18px #f2c16b60; }
.nav-item svg { width: 19px; height: 19px; }
.side-divider { background: #ffffff0a; margin-bottom: 23px; }
.side-spacer { min-height: 16px; }
.side-foot { color: #73747e; line-height: 1.6; }
.server-card { background: #ffffff03; border-color: #ffffff0d; border-radius: 12px; }
.server-icon { background: #aecb8c10; color: #b8c99e; border-radius: 8px; }
.server-name { font-size: 12px; }
.server-state { color: #a0b58e; }
.workspace { padding: 0 36px 28px; }
.topbar {
  height: 82px; position: sticky; top: 0; z-index: 12;
  background: #101115eb; border-bottom: 1px solid #ffffff0b;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.breadcrumb { font-size: 12px; color: #85858f; gap: 10px; }
.breadcrumb strong { color: #d7d7dd; }
.header-actions { gap: 14px; }
.header-actions > [data-scan-progress] { font-size: 10px; max-width: 155px; color: #9a9ca6; }
.search-wrap {
  width: clamp(220px,22vw,340px); padding: 11px 13px; border-radius: 11px;
  background: #ffffff04; border-color: #ffffff10;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-wrap:focus-within { border-color: #f2c16b70; background: #1b1c22; box-shadow: 0 0 0 3px #f2c16b08; }
.search-wrap input { font-size: 12px; }
.search-wrap input::placeholder, .search-wrap svg { color: #8e909b; }
.search-key { border-color: #ffffff18; color: #90919a; }
.icon-button { width: 36px; height: 36px; transition: color .2s, background .2s, transform .2s; }
.icon-button:hover { background: #ffffff0a; color: var(--accent); }
.icon-button:active { transform: scale(.92); }
.intro { padding: 30px 0 25px; align-items: flex-end; }
.intro h1 { font-size: clamp(27px,2.4vw,36px); font-weight: 650; letter-spacing: -1.2px; margin-bottom: 8px; }
.intro p { color: #9d9da7; font-size: 13px; line-height: 1.6; }
.intro .eyebrow { color: #b09a75; font-size: 9px; margin-bottom: 8px; letter-spacing: 2px; }
.intro-controls { padding-bottom: 4px; }
.connection-pill { color: #a7a6ac; font-size: 11px; }
.connection-pill:before { background: #b7c998; }
.view-count { color: #b1abb8; font-size: 12px; white-space: nowrap; }
.button {
  font-size: 12px; padding: 12px 18px; border-radius: 9px; letter-spacing: .05px;
  background: #292b32; transition: background .22s, transform .22s var(--ease-out), box-shadow .22s;
}
.button:hover { background: #363842; transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.97); }
.button.primary { background: linear-gradient(135deg,#f6cd83,#e9b75d); color: #242019; box-shadow: 0 4px 20px #e9b75d12; }
.button.primary:hover { background: linear-gradient(135deg,#ffdc9c,#f5c26a); box-shadow: 0 6px 26px #f2c16b28; }
.button.outline { border-color: #ffffff20; color: #e0dfe4; background: #ffffff02; }
.button.outline:hover { border-color: #ffffff35; background: #ffffff08; }
.button.quiet { color: #b2b2bd; }
.button.small { font-size: 11px; padding: 10px 14px; }
.chip { font-size: 12px; padding: 9px 15px; border-radius: 9px; color: #a1a1ad; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: #ffffff06; color: #efedf3; }
.chip.selected { background: #ffffff0d; border-color: #ffffff15; color: #f3f1ed; }
.home-tabs { margin-bottom: 20px; }
.hero { height: 430px; border-radius: 18px; border-color: #ffffff12; background: #191b22; box-shadow: 0 18px 45px #00000018; }
.hero-art { background-position: center top; transform-origin: center top; animation: luma-backdrop-in .55s ease-out both; }
.hero:hover .hero-art { transform: none; }
.hero-shade { background: linear-gradient(90deg,#101115f5 0%,#101115cc 27%,#10111550 60%,#10111512),linear-gradient(0deg,#10111585,transparent 75%); }
.hero-content { padding: 32px 42px; max-width: 620px; animation: luma-card-in .4s var(--ease-out) both; }
.hero-title { font-size: clamp(36px,4vw,58px); max-width: 520px; font-weight: 650; letter-spacing: -1.8px; line-height: 1.08; text-wrap: balance; margin-bottom: 20px; }
.hero-title.hero-title-long { font-size: clamp(32px,3.2vw,42px); letter-spacing: -1.3px; }
.hero-title, .hero-meta, .hero-buttons, .spotlight { flex-shrink: 0; }
.hero-title, .episode-name { overflow-wrap: anywhere; }
.hero-meta { color: #c8c7cb; font-size: 12px; gap: 10px; margin-bottom: 14px; }
.spotlight { color: #edc88c; font-size: 9px; letter-spacing: 2px; margin-bottom: 19px; }
.hero-description { max-width: 370px; font-size: 13px; color: #c0bfc5; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 25px; min-height: 1.75em; }
.hero .button { padding: 13px 19px; font-size: 12px; }
.hero .button.outline { border-color: #ffffff35; background: #14151a65; }
.hero-label { border-color: #ffffff22; border-radius: 7px; background: #10111580; backdrop-filter: blur(10px); }
.hero-bottom { color: #d1cdd0; bottom: 23px; right: 25px; }
.hero-controls, .spotlight-navigation { display: flex; align-items: center; gap: 10px; position: absolute; z-index: 2; right: 25px; bottom: 23px; }
.hero-controls .icon-button, .spotlight-control { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff2b; border-radius: 50%; background: #17181e70; color: white; backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.hero-controls .icon-button:hover, .spotlight-control:hover { background: #f2c16b; color: #201b13; transform: translateY(-2px); }
.hero-counter, .spotlight-position { font-size: 11px; font-variant-numeric: tabular-nums; color: #e2dde0; letter-spacing: 2px; padding: 0 5px; }
[data-spotlight-step="-1"] svg { transform: rotate(180deg); }
.section-head { margin: 32px 0 18px; }
.section-head h2 { font-size: 20px; letter-spacing: -.6px; }
.section-head h2 span { color: #9a9ba7; font-size: 12px; }
.section-link { font-size: 12px; color: #c0b29a; }
.section-link:hover { color: var(--accent); }
.poster-grid, .poster-grid.catalog-grid { grid-template-columns: repeat(auto-fill,minmax(156px,1fr)); gap: 26px 18px; }
.poster-card { border-radius: 11px; animation: luma-card-in .42s var(--ease-out) both; }
.poster-card:nth-child(6n+2) { animation-delay: 25ms; }
.poster-card:nth-child(6n+3) { animation-delay: 50ms; }
.poster-card:nth-child(6n+4) { animation-delay: 75ms; }
.poster-card:nth-child(6n+5) { animation-delay: 100ms; }
.poster-card:nth-child(6n) { animation-delay: 125ms; }
.poster { border-radius: 11px; border-color: #ffffff12; background: #202128; box-shadow: 0 6px 18px #00000025; transition: transform .3s var(--ease-out),box-shadow .3s,border-color .3s; }
.poster:after { background: linear-gradient(0deg,#10111545,transparent 50%); }
.poster-card:hover .poster, .poster-card:focus-visible .poster { transform: translateY(-6px) scale(1.012); border-color: #f2c16b70; box-shadow: 0 16px 30px #0006,0 0 0 1px #f2c16b18; }
.poster-hover { background: #0c0d1438; transition: opacity .25s; }
.poster-hover .circle-play { width: 48px; height: 48px; background: #f3c572ee; box-shadow: 0 5px 25px #0005; transform: scale(.8); transition: transform .3s var(--ease-out); }
.poster-card:hover .circle-play, .poster-card:focus-visible .circle-play { transform: scale(1); }
.poster .saved { background: #18191ecc; border: 1px solid #ffffff25; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.form-help.match-review-note { padding: 11px 14px; border-left: 2px solid #f2c16b; background: #f2c16b08; border-radius: 0 7px 7px 0; color: #d8bc91; }
.match-review-badge { position: absolute; z-index: 2; left: 9px; bottom: 9px; padding: 5px 8px; border: 1px solid #f2c16b45; border-radius: 6px; background: #211c16e8; color: #f4ce8d; font-size: 9px; font-weight: 600; letter-spacing: .1px; }
.empty-art { background: radial-gradient(ellipse at 80% 0%,#49403a,#26252c 60%,#17181e); color: #c8bba4; }
.poster-words, .catalog-grid .poster-words { font-size: 23px; letter-spacing: -.4px; line-height: 1.15; inset: auto 13px 23px; }
.poster-kicker { font-size: 8px; letter-spacing: 2px; }
.card-text { padding-top: 12px; }
.card-title { font-size: 13px; font-weight: 550; color: #eceaf0; }
.card-sub { font-size: 11px; color: #93949f; margin-top: 6px; }
.card-episode { color: #b7b4be; font-size: 11px; }
.continue-grid { gap: 19px; }
.landscape { border-radius: 12px; border-color: #ffffff10; }
.continue-overlay { padding: 16px; }
.continue-overlay .circle-play { width: 36px; height: 36px; }
.time-left { font-size: 10px; background: #13141bb0; border-radius: 5px; padding: 5px 7px; }
.progress-line { height: 3px; background: #ffffff24; }
.catalog-toolbar { margin-bottom: 25px; gap: 15px; }
.catalog-toolbar select, .select { font-size: 12px; padding: 9px 12px; border-radius: 9px; border-color: #ffffff18; background: #191a20; color: #c7c6d0; }
.catalog-pagination, .catalog-more { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 32px 0 12px; color: #a8a5b0; font-size: 12px; }
.catalog-progress { color: #a8a5b0; font-size: 12px; }
.catalog-load-more[hidden] { display: none; }
.collection-card { border-color: #ffffff13; border-radius: 15px; background: #1c1d24; transition: transform .3s, border-color .3s; }
.collection-card:hover { transform: translateY(-4px); }
.collection-card .collection-image { height: 190px; background: radial-gradient(ellipse at 80% 20%,#5d4936,#24232d 70%); }
.collection-card h3 { margin: 20px 21px 9px; font-size: 18px; }
.collection-card p { margin: 0 21px 23px; font-size: 12px; color: #a8a4b3; line-height: 1.7; }
.collections-note { color: #9794a4; font-size: 12px; }
.footer { border-color: #ffffff0a; font-size: 10px; color: #777783; padding-top: 24px; margin-top: 40px; }
.footer-links button { font-size: 10px; color: #92909e; }
.footer-links button:hover { color: var(--accent); }
.modal-backdrop { background: #07080dc9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: luma-backdrop-in .22s ease-out; }
.modal { background: #1a1c23; border-color: #ffffff18; border-radius: 20px; padding: 32px; box-shadow: 0 30px 100px #0008; animation: luma-dialog-in .32s var(--ease-out); scrollbar-width: thin; scrollbar-color: #4a4b55 transparent; }
.modal.wide { width: min(960px,100%); }
.modal h2 { font-size: 28px; letter-spacing: -.8px; }
.modal-lead { font-size: 13px; color: #a5a3b1; }
.modal-close { background: #101117b5; border: 1px solid #ffffff17; color: #dfdce6; }
.input { background: #12141b; border-color: #3b3d48; font-size: 13px; border-radius: 9px; padding: 13px; }
.form-group label { color: #d7d4e0; font-size: 12px; }
.form-help { color: #a29daf; font-size: 11px; }
.settings-tabs { border-color: #ffffff10; }
.settings-note { border-color: #ffffff12; background: #ffffff04; color: #b8b3c4; font-size: 12px; border-radius: 11px; }
.settings-note strong { color: #e7e2ef; }
.library-row { border-color: #ffffff12; background: #ffffff02; border-radius: 12px; padding: 19px; }
.library-row h3 { font-size: 14px; }
.library-row p, .library-row .path { color: #a7a2b6; font-size: 11px; }
.fact { border-color: #ffffff14; border-radius: 10px; }
.fact span, .platform-row p { color: #a4a0b2; }
.platform-row { border-color: #ffffff12; }
.platform-row h3 { font-size: 14px; }
.platform-row p { font-size: 12px; }
.detail-modal { padding: 0; }
.detail-image { height: 310px; background-position: center top; }
.detail-image:after { background: linear-gradient(0deg,#1a1c23 0%,#1a1c2310 85%); }
.detail-content { padding: 0 36px 34px; margin-top: -25px; }
.detail-content h2 { font-size: clamp(28px,3vw,40px); line-height: 1.15; max-width: 750px; letter-spacing: -1.1px; }
.detail-label { color: #d1b68f; font-size: 10px; letter-spacing: 2px; }
.detail-summary { color: #b9b5c4; font-size: 13px; line-height: 1.8; max-width: 760px; }
.detail-info { color: #9390a1; font-size: 11px; margin-top: 24px; }
.episode-list { border-color: #ffffff10; margin-top: 29px; padding-top: 24px; }
.episode-list h3 { font-size: 16px; color: #e7e0ed; margin: 0; }
.season-toolbar, .episode-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.season-toolbar { margin-top: 16px; }
.season-toolbar label { font-size: 12px; color: #b9b2c4; }
.season-toolbar #detail-season { width: auto; min-width: 0; flex: 1; }
.season-count { white-space: nowrap; }
.season-toolbar select, .episode-heading select, #detail-season { background: #252731; border: 1px solid #ffffff20; color: #e3dce9; padding: 10px 13px; border-radius: 9px; font: inherit; font-size: 12px; }
.episode-row { min-height: 64px; gap: 14px; padding: 14px 12px; border-color: #ffffff09; border-radius: 8px; font-size: 12px; color: #d4cfdf; transition: background .2s, transform .2s; }
.episode-row:hover, .episode-row:focus-visible { background: #ffffff07; transform: translateX(3px); }
.episode-row > span:first-child { color: #a9a0b8; font-size: 11px; flex: 0 0 auto; }
.episode-row svg { color: #e9c17e; width: 18px; height: 18px; }
.episode-title { flex: 1; min-width: 0; text-align: left; }
.episode-copy { display: grid; gap: 5px; flex: 1; min-width: 0; text-align: left; }
.episode-row .episode-name { color: #e1dbe8; font-size: 13px; line-height: 1.45; }
.episode-row .episode-state, .season-count { color: #9792a5; font-size: 11px; }
.episode-duration, .episode-meta { color: #9691a5; font-size: 11px; }
.episode-progress { height: 3px; background: #ffffff13; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.episode-progress > span { display: block; height: 100%; background: var(--accent); }
.empty-state { border-color: #ffffff17; color: #aaa3b8; padding: 65px 24px; background: #ffffff02; }
.empty-state h2 { color: #eee8f4; font-size: 24px; }
.empty-state p { font-size: 13px; }
.player-modal { background: #0b0c11; padding: 26px; }
.player-modal h2 { font-size: 20px; }
.player-status { font-size: 12px; color: #a8a1b6; }
.player-error { color: #e6b08c; }
.tmdb-credit { border-color: #ffffff12; }
.tmdb-credit p { color: #9c95ab; }
.match-actions { background: #1a1c23; border-color: #ffffff12; }
.match-option { background: #20222a; border-color: #ffffff17; }
.match-option:hover { background: #2a2a33; border-color: #b49767; }
.match-overview, .match-source { color: #b8b2c5; }
.profile-choice:hover, .profile-choice:focus-visible { background: #ffffff05; }
.profile-choice-hint, .auth-footer, .auth-footnote { color: #9892a6; }
#toast { background: #f0e9dc; color: #2a2520; border-radius: 11px; box-shadow: 0 10px 35px #0006; }
@keyframes luma-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes luma-dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes luma-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media(min-width:1800px) {
  .workspace { padding-left: 54px; padding-right: 54px; }
  .poster-grid, .poster-grid.catalog-grid { grid-template-columns: repeat(auto-fill,minmax(184px,1fr)); gap: 30px 22px; }
  .hero { height: 490px; }
}
@media(max-width:1100px) {
  .app-shell { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding: 28px 11px 20px; }
  .workspace { padding: 0 25px 25px; }
  .header-actions > [data-scan-progress] { display: none; }
  .hero { height: 400px; }
  .hero-content { padding: 32px; max-width: 560px; }
  .hero-title { font-size: 43px; }
  .hero-description { max-width: 330px; }
  .poster-grid, .poster-grid.catalog-grid { grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 24px 15px; }
}
@media(max-width:800px) {
  .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  .sidebar { padding: 27px 10px 20px; }
  .brand { margin: 0 0 30px; }
  .nav-item { padding: 0; min-height: 44px; }
  .nav-item:hover { transform: none; }
  .workspace { padding: 0 22px 25px; }
  .topbar { height: 74px; }
  .intro h1 { font-size: 28px; }
  .intro { flex-wrap: wrap; }
  .intro-controls { gap: 12px; }
  .hero-title { font-size: 38px; }
  .hero-content { padding: 30px; }
  .hero-description { font-size: 12px; max-width: 300px; }
  .poster-grid, .poster-grid.catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .card-title { font-size: 12px; }
  .card-sub { font-size: 10px; }
}
@media(max-width:580px) {
  .app-shell { display: block; }
  .sidebar { overflow: visible; height: calc(68px + env(safe-area-inset-bottom)); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: #17181ff2; border-top-color: #ffffff12; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .nav-item { height: 53px; gap: 5px; padding: 6px 0; font-size: 9px; border-radius: 11px; }
  .nav-item svg { width: 20px; height: 20px; }
  .brand { display: none; }
  .workspace { padding: 0 17px calc(94px + env(safe-area-inset-bottom)); }
  .topbar { height: 70px; gap: 13px; }
  .header-actions { gap: 10px; flex: 1; justify-content: flex-end; }
  .search-wrap { width: min(100%,230px); padding: 10px; }
  .search-wrap input { font-size: 11px; }
  .intro { padding: 25px 0 20px; display: block; }
  .intro h1 { font-size: 27px; letter-spacing: -.9px; }
  .intro p { font-size: 12px; max-width: none; }
  .intro .eyebrow { font-size: 8px; }
  .intro-controls { padding-top: 15px; justify-content: space-between; }
  .intro-controls > .button { width: auto; height: 36px; padding: 8px 12px; font-size: 11px; flex: 0 0 auto; }
  .chip { font-size: 11px; padding: 8px 12px; }
  .hero { height: auto; border-radius: 15px; }
  .hero.library-hero .hero-art { height: auto; aspect-ratio: 16/9; background-position: center top; }
  .hero.library-hero { background: #15161c; }
  .hero.library-hero .hero-shade { background: linear-gradient(0deg,#15161c,transparent 55%); }
  .hero.library-hero .hero-content { padding: 5px 23px 64px; }
  .hero-content { padding: 25px 23px 64px; }
  .hero-title { font-size: 34px; letter-spacing: -1px; margin-bottom: 14px; }
  .hero-title.hero-title-long { font-size: 29px; }
  .hero-meta { font-size: 11px; }
  .hero-description { font-size: 12px; max-width: none; margin-bottom: 20px; }
  .hero .button { padding: 11px 14px; font-size: 11px; }
  .hero-controls, .spotlight-navigation { right: 22px; bottom: 17px; }
  .hero-label { display: none; }
  .poster-grid, .poster-grid.catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 14px; }
  .poster-words, .catalog-grid .poster-words { font-size: 22px; }
  .card-title { font-size: 12px; }
  .card-sub { font-size: 10px; }
  .section-head h2 { font-size: 18px; }
  .section-link { font-size: 11px; }
  .continue-grid { gap: 14px; }
  .continue-grid .landscape { aspect-ratio: 16/10; }
  .catalog-toolbar { flex-wrap: wrap; gap: 12px; }
  .catalog-toolbar select { max-width: 150px; font-size: 11px; }
  .modal-backdrop { padding: 10px; }
  .modal { padding: 25px 21px; border-radius: 16px; max-height: 92dvh; }
  .modal h2 { font-size: 25px; }
  .detail-modal { padding: 0; }
  .detail-image { height: 220px; }
  .detail-content { padding: 0 22px 27px; }
  .detail-content h2 { font-size: 29px; }
  .detail-summary { font-size: 12px; }
  .detail-actions { gap: 8px; }
  .detail-actions .button { font-size: 11px; padding: 11px 13px; }
  .episode-row { padding: 13px 6px; gap: 9px; font-size: 11px; }
  .episode-row .episode-name { font-size: 12px; }
  .view-count { white-space: normal; font-size: 10px; max-width: none; text-align: left; }
  .episode-list h3 { font-size: 15px; }
  .catalog-pagination, .catalog-more { flex-direction: column; gap: 12px; }
  .footer-brand { font-size: 9px; }
  .footer-links { gap: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .poster-card:hover .poster, .poster-card:focus-visible .poster, .nav-item:hover, .episode-row:hover { transform: none; }
}

/* A title can have several local files; each version keeps its own history. */
.catalog-date-note, .detail-source-date, .detail-credit, .detail-metadata-status { color: #aaa3b7; font-size: 11px; line-height: 1.7; }
.catalog-date-note { margin: -6px 0 23px; }
.detail-source-date { margin: 6px 0 0; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 20px 34px; margin: 24px 0 17px; padding: 21px 0; border-top: 1px solid #ffffff12; border-bottom: 1px solid #ffffff12; }
.detail-facts > div { min-width: 105px; }
.detail-facts dt { color: #a9a2b4; font-size: 10px; letter-spacing: .04em; margin-bottom: 8px; }
.detail-facts dd { margin: 0; color: #f0eaf5; font-size: 13px; font-weight: 550; }
.detail-rating strong { color: var(--accent); font: 700 21px var(--heading); }
.detail-rating dd > span { font-size: 11px; color: #aaa2b6; }
.detail-rating small { display: block; margin-top: 5px; font-size: 10px; color: #aaa2b6; font-weight: 400; }
.detail-genres { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 23px; }
.detail-genres > span { border: 1px solid #ffffff1a; background: #ffffff04; border-radius: 20px; padding: 5px 11px; color: #d4cbdf; font-size: 10px; }
.version-picker { display: grid; grid-template-columns: minmax(100px,.65fr) minmax(0,2fr); align-items: center; gap: 10px 20px; padding: 18px; margin: 22px 0; border: 1px solid #ffffff19; border-radius: 12px; background: #ffffff03; }
.version-picker > label { font-weight: 600; font-size: 13px; }
.version-picker > label span { display: block; font-size: 10px; color: #aaa2b6; font-weight: 400; margin-top: 5px; }
.version-picker select { min-width: 0; width: 100%; font-size: 11px; }
.version-file, .version-picker .form-help { grid-column: 1/-1; margin: 0; overflow-wrap: anywhere; }
.version-file { color: #d0c8db; font-size: 11px; line-height: 1.65; }
.version-picker .form-help { font-size: 10px; }
.detail-source-order { color: #c9b391; font-size: 11px; line-height: 1.75; border-left: 2px solid #806642; padding-left: 12px; }
.detail-enrichment { margin-top: 30px; }
.detail-enrichment > section + section { margin-top: 32px; }
.detail-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 16px; margin-bottom: 17px; }
.detail-section-heading h3, .person-library-summary h3 { margin: 0; font: 650 17px var(--heading); letter-spacing: -.35px; }
.detail-section-heading p { margin: 0; font-size: 10px; color: #aaa3b7; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(98px,1fr)); gap: 20px 14px; }
.cast-person { text-align: left; min-width: 0; padding: 0 0 6px; border-radius: 9px; }
.cast-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg,#35303e,#24232d); border: 1px solid #ffffff14; transition: border-color .2s ease, transform .2s ease; }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.cast-person:hover .cast-photo, .cast-person:focus-visible .cast-photo { border-color: #ad9066; transform: translateY(-3px); }
.cast-initial { color: #c1a778; font: 600 30px var(--heading); }
.cast-name, .cast-character { display: block; overflow-wrap: anywhere; }
.cast-name { font-size: 11px; line-height: 1.45; font-weight: 600; margin-top: 10px; }
.cast-character { font-size: 10px; line-height: 1.5; color: #aaa3b7; margin-top: 4px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 12px; }
.review-card { padding: 18px; border-radius: 12px; border: 1px solid #ffffff13; background: #ffffff03; min-width: 0; }
.review-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.review-heading strong { font-size: 11px; overflow-wrap: anywhere; }
.review-heading > span { font-size: 10px; color: var(--accent); white-space: nowrap; }
.review-card p { font-size: 12px; line-height: 1.8; color: #c8c0d3; overflow-wrap: anywhere; }
.review-card a, .detail-source-links a { font-size: 10px; text-decoration: none; border-bottom: 1px solid #ac8f5c66; padding-bottom: 3px; }
.detail-source-links { display: flex; flex-wrap: wrap; gap: 15px 24px; margin: 25px 0 10px; }
.detail-credit { margin-bottom: 0; font-size: 10px; }
.detail-back { padding-left: 0; margin: 0 0 18px; font-size: 11px; max-width: calc(100% - 44px); height: auto; white-space: normal; text-align: left; line-height: 1.6; }
.detail-back svg { transform: rotate(180deg); width: 16px; }
.detail-back > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.person-heading { display: flex; align-items: center; gap: 25px; padding: 8px 0 27px; border-bottom: 1px solid #ffffff14; }
.person-heading > div:last-child { min-width: 0; }
.person-heading h2 { overflow-wrap: anywhere; margin: 0 0 11px; }
.person-heading p:last-child { margin: 0; color: #aaa3b7; line-height: 1.7; font-size: 12px; }
.person-portrait { width: 105px; aspect-ratio: 3/4; object-fit: cover; object-position: center 15%; border-radius: 12px; flex: 0 0 105px; border: 1px solid #ffffff14; }
.person-placeholder { display: grid; place-items: center; color: var(--accent); font-size: 32px; background: #302b37; }
.person-library-summary { margin: 25px 0 20px; }
.person-library-grid { grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); }
.person-empty { padding: 30px 0; text-align: center; }
.person-empty p { font-size: 15px; }.person-empty span { font-size: 12px; color: #aaa3b7; }
.episode-match-toggle { display: flex; gap: 10px; align-items: center; margin: 20px 0; font-size: 12px; color: #d8d0e2; }
.episode-match-toggle input { accent-color: var(--accent); width: 17px; height: 17px; }
.episode-match-fields { display: grid; grid-template-columns: .7fr .7fr 1.1fr; gap: 13px; border: 1px solid #ffffff1c; border-radius: 12px; padding: 16px; }
.episode-match-fields[hidden] { display: none; }
.episode-match-fields legend { color: #bfb3cb; font-size: 11px; padding: 0 7px; }
.episode-match-fields .form-group { margin: 0; min-width: 0; }
.episode-match-fields .input { min-width: 0; }
.episode-match-fields .form-help { grid-column: 1/-1; margin: 0; }
.match-episode-preview { font-size: 12px; line-height: 1.7; color: #dbbe8d; }.match-episode-preview:empty { display: none; }
.episode-entry { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #ffffff0c; }.episode-entry .episode-row { flex: 1; min-width: 0; border-bottom: 0; }.episode-fix { flex: 0 0 32px; }
.episode-file-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.episode-file-actions .icon-button { width: 32px; height: 32px; }
.episode-row .episode-source { display: grid; gap: 3px; color: #b6a98e; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.episode-source > span { color: #948da1; }
.detail-selected-file { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #ffffff12; border-radius: 8px; font-size: 11px; line-height: 1.65; color: #aaa0b4; overflow-wrap: anywhere; }
.detail-selected-file strong { color: #d1bd9c; font-weight: 500; }
@media(max-width:580px) {
 .detail-facts { gap: 17px 22px; padding: 17px 0; }.detail-facts > div { min-width: 94px; }
 .detail-facts dd { font-size: 12px; }.detail-rating strong { font-size: 19px; }
 .version-picker { grid-template-columns: 1fr; padding: 14px; }.version-picker > label span { display: inline; margin-left: 8px; }
 .cast-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px 10px; }
 .person-heading { gap: 16px; }.person-portrait { width: 78px; flex-basis: 78px; }.person-heading h2 { font-size: 23px; }
 .person-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .episode-match-fields { grid-template-columns: 1fr 1fr; }.episode-match-fields .form-group:last-of-type { grid-column: 1/-1; }
 .episode-file-actions { flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { .cast-person:hover .cast-photo, .cast-person:focus-visible .cast-photo { transform: none; } }
/* Catalogue-only annotations and explicit imports. */
.episode-edition-options{margin:14px 0;padding:14px;border:1px solid var(--line,#343831);border-radius:12px}
.episode-edition-options summary{cursor:pointer;color:var(--muted,#abb09f);padding:2px 0 12px}
.episode-parts{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.episode-parts[hidden]{display:none}
.episode-edition-options textarea{resize:vertical;min-height:88px}
.edition-label{display:inline-block;margin:4px 0 12px;padding:5px 10px;border:1px solid var(--line,#343831);border-radius:30px;color:var(--gold,#e9b659);font-size:13px}
.content-warning{display:flex;align-items:flex-start;gap:10px;padding:13px 16px;border:1px solid #765d3a;background:#30271b;border-radius:12px;color:#f0c894;line-height:1.6}
.content-warning svg{flex:none;margin-top:3px}
#import-controls{border:0;padding:0;margin:0;min-width:0}
#import-library-path{overflow-wrap:anywhere}
.import-modal .match-search-fields{margin-top:20px}
@media(max-width:520px){.episode-parts{grid-template-columns:1fr}.import-modal .match-search-fields{grid-template-columns:1fr}.episode-edition-options{padding:10px}}
