﻿:root {
  --bg: #0f1115;
  --card: #171a21;
  --card2: #1c2030;
  --text: #ffffff;
  --text2: #c4ccd8;
  --muted: #7b8698;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --accent: #8bc34a;
  --imdb: #f5c518;
}
* { box-sizing: border-box; }
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  background: radial-gradient(circle at 92% -14%, #24345f 0%, #111728 44%, #0f1115 100%);
}
button,
input,
select,
textarea { font-family: inherit; }
#app { min-height: 100vh; max-width: 860px; margin: 0 auto; padding: 14px 14px 18px; overflow-x: clip; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.topbar-main { margin-bottom: 12px; }
.update-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(59,130,246,0.5); background: rgba(59,130,246,0.16); color: #dbeafe; font-size: 13px; }
.update-banner-actions { display: inline-flex; align-items: center; gap: 8px; }
.brand-wrap .sub:first-child { text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px; }
.brand-wrap { min-width: 0; display: grid; gap: 4px; }
.brand { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 800; line-height: 0.88; letter-spacing: 0.005em; max-width: 100%; }
.brand span { color: var(--accent); }
.sub { color: var(--text2); opacity: 0.85; font-size: 14px; }
.top-kicker, .top-user { line-height: 1.1; }
.top-user { margin-top: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex: none; padding-top: 2px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border2); background: rgba(255, 255, 255, 0.04); color: var(--text2); font-weight: 800; font-size: 21px; cursor: pointer; flex: none; position: relative; }
.notif-btn { position: relative; }
.notif-btn svg { width: 20px; height: 20px; display: block; }
.notif-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; font-size: 10px; font-weight: 800; background: #ef4444; color: #fff; border: 2px solid #11192c; }
.icon-btn.active { color: var(--accent); border-color: rgba(139, 195, 74, 0.55); background: rgba(139, 195, 74, 0.15); }
.icon-btn.filter-active { border-color: rgba(59,130,246,0.55); box-shadow: 0 0 0 1px rgba(59,130,246,0.25) inset; }
.icon-indicator { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 999px; background: #3b82f6; border: 1px solid rgba(15,17,21,0.9); }
#btn-toggle-search .icon-glyph { display: inline-block; font-size: 25px; line-height: 1; transform: translateY(-1px); }
.btn { border: 1px solid var(--border2); background: rgba(255, 255, 255, 0.03); color: var(--text); border-radius: 12px; padding: 10px 13px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--accent); color: #0b0d11; border-color: transparent; }
.add-btn { height: 42px; width: 42px; padding: 0; border-radius: 14px; font-size: 24px; line-height: 1; flex: none; }
.btn-blue { background: #3b82f6; border-color: transparent; }
.btn-fingerprint {
  color: var(--accent);
  border-color: rgba(139, 195, 74, 0.55);
  background: rgba(139, 195, 74, 0.12);
}
.btn-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.btn-ghost { background: transparent; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 270px; border-radius: 16px; border: 1px solid var(--border2); background: rgba(19, 27, 46, 0.98); padding: 10px; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4); display: none; z-index: 80; }
.menu-panel.open { display: grid; gap: 9px; }
.menu-version { margin-top: 2px; padding-top: 2px; color: var(--muted); font-size: 11px; text-align: right; }
.menu-item { width: 100%; text-align: left; border: 1px solid var(--border2); background: rgba(255, 255, 255, 0.03); color: var(--text); border-radius: 12px; padding: 10px 13px; font-size: 16px; font-weight: 700; cursor: pointer; }
.menu-item.danger { color: #ffe1e1; border-color: rgba(239, 68, 68, 0.66); background: rgba(153, 27, 27, 0.7); }
.search-panel { border: 1px solid var(--border2); border-radius: 16px; background: linear-gradient(180deg, rgba(10, 17, 34, 0.9), rgba(12, 19, 34, 0.74)); margin-bottom: 12px; padding: 0 14px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-8px); transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease; }
.search-panel.open { max-height: none; opacity: 1; transform: translateY(0); padding: 14px; overflow: visible; }
.search-input-wrap { position: relative; }
.search-input-wrap #global-search { padding-right: 42px; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border2); background: rgba(255,255,255,0.06); color: var(--text2); font-size: 16px; line-height: 1; display: none; place-items: center; cursor: pointer; }
.search-clear.show { display: grid; }
.search-filters-details { margin-top: 10px; border: 1px solid var(--border2); border-radius: 12px; background: rgba(255,255,255,0.03); }
.search-filters-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; color: var(--text); font-weight: 700; }
.search-filters-details > summary::-webkit-details-marker { display: none; }
.search-filters-details > summary::after { content: '▾'; color: var(--text2); transition: transform .18s ease; }
.search-filters-details[open] > summary::after { transform: rotate(180deg); }
.search-filters-body { padding: 0 10px 10px; }
.filter-active-count { color: var(--text2); font-size: 12px; font-weight: 600; }
.field { display: grid; gap: 7px; margin-bottom: 12px; }
label { color: var(--text2); font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; background: #091024; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); border-radius: 12px; padding: 11px 12px; font-size: 15px; }
textarea { resize: vertical; min-height: 84px; }
.filter-label { display: block; margin: 12px 0 14px; font-size: 26px; font-family: 'Barlow Condensed', sans-serif; line-height: 0.95; }
.filter-group { margin-bottom: 10px; }
.genre-group { margin-bottom: 0; }
.pill-row, .provider-wrap { display: flex; gap: 7px; flex-wrap: wrap; }
.pill { border-radius: 999px; border: 1px solid var(--border2); padding: 7px 13px; font-weight: 600; font-size: 13px; color: var(--text2); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.pill.on { color: #fff; border-color: rgba(139, 195, 74, 0.75); background: rgba(139, 195, 74, 0.3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset; }
.filter-pill-full { width: 100%; }
.filter-min { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; }
.filter-min .filter-label { grid-column: 1 / -1; }
.filter-min .filter-pill-full { grid-column: 1 / -1; }
.filter-actions { margin-top: 8px; }
.filter-actions .btn { width: 100%; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 5px; margin-bottom: 10px; position: relative; }
.tabs.hidden { display: none; }
.tabs::after { content: ''; position: sticky; right: 0; width: 26px; flex: 0 0 26px; background: linear-gradient(90deg, transparent, #0f1115); pointer-events: none; }
.tab { flex: none; white-space: nowrap; border-radius: 999px; border: 1px solid var(--border2); background: rgba(255, 255, 255, 0.04); color: var(--text2); padding: 9px 14px; font-weight: 700; font-size: 19px; font-family: 'Barlow Condensed', sans-serif; cursor: pointer; }
.search-summary { color: var(--text2); margin-bottom: 10px; font-size: 13px; }
.auto-sort-hint { margin: -2px 0 10px; border: 1px solid rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.12); color: #fde68a; border-radius: 10px; padding: 8px 10px; }
.list { display: grid; gap: 10px; }
.card { position: relative; display: flex; align-items: stretch; min-height: 112px; border: 1px solid var(--border); border-radius: 16px; background: var(--card2); overflow: hidden; cursor: pointer; }
.card-type-strip { width: 4px; flex: none; }
.poster { width: 98px; flex: none; background-size: cover; background-position: center; cursor: grab; touch-action: none; user-select: none; }
.poster:active { cursor: grabbing; }
.card.no-cover .poster, .poster.hidden { width: 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 12px 11px 12px; }
.card-stream-top { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.mini { display: flex; align-items: center; gap: 7px; padding-right: 54px; }
.type-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.type-dot { width: 6px; height: 6px; border-radius: 999px; }
.year-badge { display: inline-flex; align-items: center; border: 1px solid var(--border2); border-radius: 999px; padding: 2px 8px; color: var(--text2); font-size: 11px; font-weight: 700; }
.imdb-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--imdb); color: #0b0d11; border-radius: 5px; padding: 3px 6px; font-size: 11.5px; font-weight: 700; }
.rating-count-muted { color: var(--muted); font-size: 10.5px; font-weight: 600; line-height: 1; }
.note-indicator { font-size: 13px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.series-state { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; border: 1px solid transparent; }
.series-state.finished { color: #bbf7d0; border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.18); }
.series-state.ongoing { color: #fde68a; border-color: rgba(251, 191, 36, 0.52); background: rgba(251, 191, 36, 0.18); }
.title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.title-wrap { display: inline-flex; align-items: center; gap: 7px; min-width: 0; width: 100%; }
.card-indicators { display: inline-flex; align-items: center; gap: 6px; }
.card-indicators { margin-left: auto; justify-content: flex-end; }
.rec-thumb { font-size: 14px; line-height: 1; }
.rating-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; color: #0b0d11; background: var(--accent); }
.avg-rating-hint { font-weight: 400; font-size: 11px; opacity: 0.75; margin-left: 6px; }
.title { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; line-height: 0.95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-row { color: var(--text2); opacity: 0.82; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-status-row { margin-top: 2px; }
.search-status-label { color: var(--status-color); opacity: 0.92; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.season-wrap { flex: 1; min-width: 0; }
.season-combo { display: inline-flex; align-items: center; gap: 8px; }
.season-bar { width: 42px; height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.16); }
.season-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.season-txt, .runtime { color: var(--muted); font-size: 12px; font-weight: 600; }
.streams { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.stream-dot { width: 9px; height: 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); display: inline-block; }
.stream-dot.muted { background: rgba(255, 255, 255, 0.18); }
.stream-dot.offboard { background: rgba(123, 134, 152, 0.7); }
.users { display: flex; align-items: center; justify-content: center; padding: 12px; }
.card-user-top { display: contents; }
.card-user-bottom { position: absolute; right: 8px; bottom: 7px; padding: 0; }
.av { width: 26px; height: 26px; border-radius: 999px; border: 2px solid rgba(10, 14, 23, 0.8); display: grid; place-items: center; font-weight: 800; color: #0b0d11; font-size: 12px; }
.users .av + .av { margin-left: -8px; }
.card-stream-top .av + .av { margin-left: -7px; }
.av-sm { width: 22px; height: 22px; font-size: 10px; }
.av-more { background: rgba(255,255,255,0.18); color: #fff; font-size: 10px; }
.main { padding-right: 11px; }
.series-state-card { flex: none; margin-left: auto; text-align: right; }
.member-wrap { gap: 8px; }
.member-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--border2); padding: 6px 10px; background: rgba(255,255,255,0.04); color: var(--text2); }
.filter-user-pill { display: inline-flex; align-items: center; gap: 6px; }
.filter-user-pill .av { width: 18px; height: 18px; font-size: 9px; border-width: 1px; }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.star { color: rgba(255, 255, 255, 0.45); font-size: 16px; }
.star.on { color: #fff; }
.stars.interactive .star { border: 1px solid var(--border2); background: rgba(255,255,255,0.04); color: var(--text2); border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.stars.interactive .star.on { color: #0b0d11; background: var(--accent); border-color: rgba(139,195,74,0.8); }
.star-clear { border: 1px solid var(--border2); background: transparent; color: var(--text2); border-radius: 9px; padding: 0 10px; cursor: pointer; height: 34px; }
.error { margin-top: 10px; border-radius: 12px; padding: 10px 12px; color: #fecaca; border: 1px solid rgba(239, 68, 68, 0.55); background: rgba(239, 68, 68, 0.17); }
.hint { color: var(--text2); opacity: 0.85; font-size: 13px; }
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: stretch; justify-content: center; overflow-x: hidden; background: rgba(0, 0, 0, 0.65); }
.modal.open { display: flex; }
.panel { width: min(100%, 860px); max-width: 100%; max-height: 100vh; overflow-x: hidden; overflow-y: auto; margin: 0 auto; padding: 16px 16px 20px; border-radius: 18px 18px 0 0; border: 1px solid var(--border2); background: #11192c; }
.panel-wide { padding-left: 14px; padding-right: 14px; }
.panel.panel-detail { min-height: 72vh; }
.modal-head { margin-bottom: 14px; }
.detail-head { align-items: center; }
.detail-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.detail-back { border: none; padding-left: 0; }
.detail-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.card-poster-lg { width: 132px; height: 196px; border-radius: 13px; border: 1px solid var(--border2); background-size: cover; background-position: center; }
.detail-poster-btn { padding: 0; background-color: transparent; cursor: zoom-in; }
.detail-hero-info { display: grid; align-content: start; gap: 8px; padding-left: 2px; }
.detail-title { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; line-height: 0.92; font-weight: 800; }
.add-step { display: none; }
.add-step.open { display: block; }
.add-form-topbar { margin-bottom: 10px; align-items: center; }
.hidden { display: none !important; }
.btn-xs { width: fit-content; padding: 6px 10px; font-size: 12px; border-radius: 10px; }
.segment-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--border2); border-radius: 12px; padding: 4px; }
.segment { border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text2); height: 38px; font-weight: 700; cursor: pointer; }
.segment.on { background: var(--seg-color); color: #0b0d11; }
.status-pill.on { background: var(--status-color) !important; color: #0b0d11 !important; border-color: var(--status-color) !important; box-shadow: none; }
.strong-provider-select .pill { border-width: 2px; font-weight: 700; }
.strong-provider-select .pill.on { color: #ffffff !important; filter: saturate(1.2); box-shadow: 0 0 0 2px rgba(255,255,255,0.42) inset, 0 0 0 1px rgba(0,0,0,0.35); }
.add-preview { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 12px; border-left: 4px solid var(--accent); border-radius: 12px; border: 1px solid var(--border2); padding: 11px; margin-bottom: 14px; background: rgba(255,255,255,0.03); }
.add-preview-cover { width: 76px; height: 112px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--border2); }
.add-preview-main { min-width: 0; }
.tmdb-ok { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 7px; font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(139,195,74,0.14); border: 1px solid rgba(139,195,74,0.4); }
.season-editor-head { display: flex; align-items: center; justify-content: space-between; color: var(--text2); font-size: 13px; margin-bottom: 8px; }
.label-split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.season-editor-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; margin-bottom: 10px; }
.season-editor-bar span { display: block; height: 100%; border-radius: 999px; }
.season-editor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.season-chip { height: 44px; border-radius: 11px; border: 1px solid var(--border2); color: var(--text2); background: rgba(255,255,255,0.04); font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; cursor: pointer; }
.season-chip.done { background: var(--season-color); border-color: var(--season-color); color: #0b0d11; }
.season-chip.unavailable { background: rgba(107,114,128,0.14); border-color: rgba(107,114,128,0.35); color: rgba(107,114,128,0.65); text-decoration: line-through; }
.season-chip.unavailable-auto { position: relative; background-image: repeating-linear-gradient(135deg, rgba(148,163,184,0.12) 0 6px, rgba(71,85,105,0.22) 6px 12px); }
.season-chip.unavailable-auto::after { content: '×'; position: absolute; top: 3px; right: 7px; font-size: 13px; line-height: 1; color: rgba(248,250,252,0.6); text-decoration: none; }
.season-chip.unavailable-manual { border-style: dashed; }
.season-availability-note { margin-top: 9px; border: 1px solid rgba(148,163,184,0.26); border-radius: 10px; padding: 8px 10px; background: rgba(148,163,184,0.08); color: var(--text2); font-size: 12px; line-height: 1.35; }
.season-mode-row { display: flex; gap: 8px; margin-top: 10px; }
.rate10-grid { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 5px; }
.rate10 { height: 38px; border-radius: 9px; border: 1px solid var(--border2); background: rgba(255,255,255,0.04); color: var(--muted); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 17px; cursor: pointer; }
.rate10.filled { background: color-mix(in srgb, var(--rate-color) 20%, transparent); color: var(--rate-color); border-color: color-mix(in srgb, var(--rate-color) 50%, rgba(255,255,255,0.2)); }
.rate10.selected { background: var(--rate-color); color: #0b0d11; border-color: transparent; }
.rate10-value { text-align: center; margin-top: 7px; min-height: 18px; color: var(--text2); font-weight: 700; }
.btn-detail-save { flex: 1; }
.btn-detail-delete { width: 46px; min-width: 46px; padding: 0; display: grid; place-items: center; font-size: 17px; }
.recommend-row { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border2); background: rgba(255,255,255,0.04); border-radius: 12px; padding: 10px 12px; color: var(--text2); font-weight: 700; cursor: pointer; }
.recommend-row .toggle { width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.2); position: relative; transition: background .15s ease; }
.recommend-row .toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: left .15s ease; }
.recommend-row .toggle.on { background: rgba(139,195,74,0.75); }
.recommend-row .toggle.on i { left: 21px; }
.detail-title span { color: var(--text2); opacity: 0.75; }
.detail-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-score-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-score-row .btn { min-height: 36px; }
.detail-refresh-inline { min-width: 220px; flex: 1; display: grid; gap: 5px; }
.detail-refresh-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.detail-refresh-track span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #3b82f6, #8bc34a); transition: width .18s ease; }
.detail-refresh-text { color: var(--text2); font-size: 11px; line-height: 1.3; }
.detail-refresh-inline.is-success .detail-refresh-track span { background: linear-gradient(90deg, #34d399, #8bc34a); }
.detail-refresh-inline.is-success .detail-refresh-text { color: #bbf7d0; }
.detail-refresh-inline.is-error .detail-refresh-track span { background: linear-gradient(90deg, #ef4444, #f59e0b); }
.detail-refresh-inline.is-error .detail-refresh-text { color: #fecaca; }
.tmdb-score-mini { display: inline-flex; align-items: center; gap: 7px; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; }
.trailer-btn { border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.detail-mini-pill { border: 1px solid var(--border2); border-radius: 999px; padding: 4px 10px; color: var(--text2); font-size: 12px; }
.keyword-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.keyword-chip { border: 1px solid var(--border2); border-radius: 999px; padding: 4px 9px; color: var(--text2); background: rgba(255,255,255,0.04); font-size: 12px; }
.detail-reco-field { margin-top: 14px; }
.detail-reco-wrap { border: 1px solid var(--border2); border-radius: 12px; background: rgba(255,255,255,0.03); padding: 10px 12px; }
.detail-reco-wrap summary { cursor: pointer; font-weight: 700; color: var(--text2); }
.detail-reco-content { margin-top: 10px; display: grid; gap: 12px; }
.detail-reco-section { display: grid; gap: 8px; }
.detail-reco-section-title { color: var(--text2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.detail-reco-list { display: grid; gap: 8px; }
.detail-season-field { margin-top: 12px; }
.detail-season-wrap { padding: 9px 12px; }
.detail-season-wrap summary { cursor: pointer; font-weight: 700; color: var(--text2); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-season-wrap summary::-webkit-details-marker { display: none; }
.detail-season-count { color: var(--text2); font-size: 12px; font-weight: 600; }
.detail-season-list { display: grid; gap: 10px; margin-top: 10px; }
.detail-season-item { border: 1px solid var(--border2); border-radius: 10px; background: rgba(255,255,255,0.03); padding: 9px 10px; }
.detail-season-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-season-item summary::-webkit-details-marker { display: none; }
.detail-season-summary-left { display: grid; gap: 2px; min-width: 0; }
.detail-season-title { color: var(--text); font-size: 14px; font-weight: 800; }
.detail-season-summary-meta, .detail-season-summary-right { color: var(--text2); font-size: 11px; line-height: 1.25; }
.detail-season-summary-right { text-align: right; }
.detail-season-content { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 10px; align-items: start; }
.detail-season-content.no-cover { grid-template-columns: minmax(0, 1fr); }
.detail-season-cover { width: 72px; height: 106px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--border2); padding: 0; background-color: transparent; cursor: zoom-in; }
.detail-season-body { color: var(--text2); font-size: 13px; line-height: 1.5; }
.detail-status-row { margin-bottom: 12px; min-width: 0; }
.detail-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-status-control { position: relative; display: inline-block; }
.detail-position-box { display: inline-flex; align-items: center; gap: 8px; }
.detail-position-box label { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.auto-mini-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.16); color: #fde68a; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: none; }
.detail-position-box select { width: 74px; padding: 8px 10px; font-weight: 700; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border2); }
.detail-status-pill { border: none; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; color: #0b0d11; font-weight: 700; padding: 9px 12px; cursor: pointer; }
.detail-status-pill .dot, .detail-status-opt .dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); }
.detail-status-pill .chev { opacity: 0.55; }
.detail-status-pop { position: absolute; top: calc(100% + 7px); left: 0; min-width: 270px; border: 1px solid var(--border2); border-radius: 14px; padding: 10px; background: #182036; display: none; flex-wrap: wrap; gap: 7px; z-index: 20; }
.detail-status-pop.open { display: flex; }
.detail-status-opt { border: 1px solid transparent; border-radius: 999px; padding: 7px 10px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.description-box { border-radius: 12px; border: 1px solid var(--border2); background: rgba(255, 255, 255, 0.03); color: var(--text2); line-height: 1.56; padding: 12px; font-size: 14px; }
.description-box.collapsed { max-height: 112px; overflow: hidden; position: relative; }
.description-box.collapsed::after { content: ''; position: absolute; inset: auto 0 0 0; height: 34px; background: linear-gradient(180deg, rgba(17, 25, 44, 0), rgba(17, 25, 44, 1)); }
.detail-streaming-box { border: 1px solid var(--border2); border-radius: 14px; padding: 10px 12px; }
.provider-group { display: grid; gap: 8px; margin-bottom: 10px; }
.provider-group:last-child { margin-bottom: 0; }
.provider-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.provider-label.own { color: var(--accent); }
.provider-label.other { color: var(--muted); }
.stream { border: 1px solid transparent; border-radius: 9px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.stream-solid { color: #fff; }
.stream-soft { border-style: solid; }
.stream-with-meta { display: inline-flex; align-items: center; gap: 8px; }
.stream.stream-with-meta { color: inherit; text-decoration: none; }
.stream-meta { display: inline-flex; align-items: center; gap: 4px; }
.stream-mode { font-size: 10px; font-weight: 700; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 1px 6px; line-height: 1.1; background: rgba(0,0,0,0.18); color: rgba(255,255,255,0.92); }
.provider-link { display: inline-flex; margin-top: 4px; color: var(--text2); font-size: 12px; text-decoration: none; border-bottom: 1px dashed var(--border2); width: fit-content; }
.provider-link:hover { color: var(--text); border-bottom-color: var(--text2); }
.split-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.search-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-results { display: grid; gap: 10px; margin-top: 8px; }
.hit { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: 'cover info action' 'copy copy copy'; gap: 10px 12px; align-items: start; border-radius: 12px; border: 1px solid var(--border2); padding: 10px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.hit .cover { grid-area: cover; width: 72px; height: 106px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--border2); }
.hit-info { grid-area: info; min-width: 0; align-self: center; }
.hit-title { font-weight: 800; font-size: 18px; font-family: 'Barlow Condensed', sans-serif; }
.hit-meta { color: var(--text2); font-size: 12px; }
.hit-extra { font-size: 13px; }
.hit-overview { grid-area: copy; color: var(--text2); opacity: 0.84; font-size: 12px; line-height: 1.45; margin-top: 2px; }
.hit .btn { grid-area: action; align-self: start; }
.card.drag-ready { outline: 1px dashed rgba(139, 195, 74, 0.8); }
.card.dragging { opacity: 0.62; }
.card.drop-target { outline: 2px solid rgba(139, 195, 74, 0.75); }
.drag-ghost { position: fixed; pointer-events: none; z-index: 9999; border-radius: 16px; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32); background: var(--card2); opacity: 0.9; overflow: hidden; }
.modal-actions { display: flex; gap: 10px; margin-top: 12px; }
.row-actions .btn { min-height: 46px; }
.trailer-panel { max-width: 980px; }
.trailer-frame-wrap { position: relative; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border2); background: #000; }
.trailer-frame-wrap::before { content: ''; display: block; padding-top: 56.25%; }
.trailer-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.checkline label { display: inline-flex; align-items: center; gap: 8px; }
.import-review-wrap { margin-top: 12px; border: 1px solid var(--border2); border-radius: 12px; overflow: auto; }
.import-review-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.import-review-table th, .import-review-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 13px; }
.import-review-table th { color: var(--text2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255,255,255,0.03); }
.import-review-table tr:last-child td { border-bottom: none; }
.import-review-table select { min-width: 150px; padding: 7px 9px; border-radius: 9px; font-size: 12px; }
.import-cand-preview { display: grid; gap: 6px; min-width: 140px; max-width: 220px; }
.import-cand-cover { width: 58px; height: 86px; border-radius: 8px; border: 1px solid var(--border2); background-size: cover; background-position: center; }
.import-cand-preview details { border: 1px solid var(--border2); border-radius: 8px; background: rgba(255,255,255,0.03); padding: 4px 7px; }
.import-cand-preview summary { cursor: pointer; color: var(--text2); font-size: 12px; }
.import-cand-overview { margin-top: 6px; color: var(--text2); line-height: 1.4; font-size: 12px; }
.import-progress { margin-top: 10px; }
.import-score-wrap { min-width: 140px; }
.import-score-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; }
.import-score-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #8bc34a); }
.import-score-meta { margin-top: 5px; font-size: 12px; color: var(--text2); }
.notif-list { margin-top: 12px; display: grid; gap: 8px; }
.notif-item { text-align: left; width: 100%; border: 1px solid var(--border2); background: rgba(255,255,255,0.03); color: var(--text); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.notif-item.unread { border-color: rgba(139,195,74,0.75); background: rgba(139,195,74,0.12); }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.notif-body { font-size: 13px; line-height: 1.35; }
.notif-title { font-size: 13px; font-weight: 700; color: #fff; }
.notif-actions { display: flex; gap: 8px; margin-top: 8px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px 12px; }
.login-card { width: 100%; max-width: 460px; border-radius: 18px; border: 1px solid var(--border2); padding: 18px; background: rgba(17, 26, 42, 0.96); }
.login-title { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; line-height: 0.92; margin-bottom: 8px; }
.login-sub { margin-bottom: 12px; color: var(--text2); }
.panel-lightbox { width: min(100vw, 1000px); height: min(100vh, 1000px); max-width: 100vw; border-radius: 0; border: none; background: rgba(6, 10, 16, 0.96); display: grid; place-items: center; position: relative; }
.lightbox-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lightbox-image { width: min(88vw, 700px); height: min(88vh, 92vw); background-size: contain; background-repeat: no-repeat; background-position: center; }
@media (max-width: 780px) {
  #app { padding: 10px; }
  .brand { font-size: 30px; }
  .title { font-size: 22px; }
  .detail-title { font-size: 34px; }
  .split-two { grid-template-columns: 1fr; }
  .panel { margin-top: 0; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .card-poster-lg { width: 116px; height: 172px; }
}
@media (max-width: 520px) {
  .topbar { gap: 8px; }
  .brand { font-size: 26px; }
  .sub { font-size: 12px; }
  .topbar-actions { justify-content: flex-end; max-width: none; gap: 6px; }
  .icon-btn { width: 40px; height: 40px; font-size: 20px; }
  .add-btn { min-width: 40px; width: 40px; padding: 0; font-size: 22px; }
  .tab { font-size: 16px; }
  .card { min-height: 102px; }
  .poster { width: 82px; }
  .title { font-size: 20px; }
  .users { padding: 8px; }
  .detail-hero { grid-template-columns: 90px minmax(0, 1fr); }
  .card-poster-lg { width: 90px; height: 134px; }
  .detail-title { font-size: 29px; }
  .filter-label { font-size: 23px; }
  .hit { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: 'cover info' 'copy copy' 'action action'; }
  .hit .btn { width: 100%; }
  .login-title { font-size: 34px; }
  .import-review-table { min-width: 680px; }
}
