/* ფილმის ბობინის თბილი ტონები: ღია — ქაღალდი, მუქი — კინოდარბაზი; აქცენტი — დუბლირების სტუდიის "ჩაწერის" ნარინჯისფერი */
:root {
  --bg: #f6f4f1; --card: #ffffff; --fg: #1d1b19; --muted: #6b655e; --line: #e4dfd8;
  --accent: #c2410c; --accent-fg: #ffffff; --ok: #15803d; --bad: #b91c1c; --warn: #a16207;
  --f: "Noto Sans Georgian", system-ui, sans-serif; --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141210; --card: #1e1b18; --fg: #f1ece6; --muted: #a39a90; --line: #2f2a25;
          --accent: #fb923c; --accent-fg: #1a0e05; --ok: #4ade80; --bad: #f87171; --warn: #facc15; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--f); }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding-block: 20px 60px;
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); display: grid; gap: 28px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--card); }
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); }
.brand { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.brand.big { font-size: 1.6rem; }
.mark { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 7px; background: var(--accent); color: var(--accent-fg); }
h1, h2 { margin: 0; text-wrap: balance; } h2 { font-size: 1.15rem; }
.muted { color: var(--muted); } .small { font-size: .9rem; } .err { color: var(--bad); margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stack { display: grid; gap: 8px; }
input { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  border-radius: 8px; padding: 10px 16px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: wait; }
.link { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; }
.row { display: flex; gap: 8px; } .row input { flex: 1; }
.login { max-width: 380px; margin: 8vh auto 0; display: grid; gap: 12px; }
.est { display: grid; grid-template-columns: 180px 1fr; gap: 16px; margin-top: 14px; align-items: start; }
.est img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--line); }
.est-info { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.queue { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.queue li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; }
.q-title { font-weight: 600; overflow-wrap: anywhere; }
.q-state { font-size: .9rem; color: var(--muted); } .s-failed { color: var(--bad); } .s-blocked { color: var(--warn); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); transition: width .6s; }
.lib-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.search input { width: 220px; padding: 8px 12px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tile a { text-decoration: none; display: grid; gap: 8px; }
.tile img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--line); display: block; }
.tile .t { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.tile .meta { font-size: .85rem; display: block; margin-top: 2px; }
.empty { padding: 28px 0; }
.back { color: var(--muted); text-decoration: none; } .vt { font-size: 1.4rem; overflow-wrap: anywhere; }
.player video { width: 100%; max-height: 72vh; background: #000; border-radius: var(--r); display: block; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-weight: 600; border: 0; background: var(--card); color: var(--muted); padding: 10px 14px; cursor: pointer; }
.seg button.on { background: var(--fg); color: var(--bg); }
#cc[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; } th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl { overflow-x: auto; } .num { font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 560px) { .est { grid-template-columns: 1fr; } .search input { width: 100%; } .lib-head { display: grid; } }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
