/* Фото — dark, photo-first. Same family as KinoHub (amber accent), quieter chrome so the photos speak. */
:root {
  --bg: #0E0F12; --bg2: #15171B; --card: #1B1D22; --card2: #23262C; --line: #2A2D34;
  --text: #ECEAE4; --muted: #9A9890; --dim: #6C6B66;
  --accent: #F0B44C; --accent2: #FFCB6B; --ok: #7FB59A; --bad: #E36B6B;
  --radius: 14px; --gap: 4px; --row: 220px;
  --top-h: 60px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       min-height: 100vh; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
input, select { font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; outline: none; }
input:focus { border-color: var(--accent); }

/* ---------- top bar ---------- */
#top { position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 20px 0; display: flex; align-items: center; gap: 24px;
  background: rgba(14,15,18,.86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.04); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.logo svg { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 2; }
#tabs { display: flex; gap: 4px; flex: 1; }
#tabs a { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; color: var(--muted);
  font-weight: 500; transition: background .15s, color .15s; }
#tabs a svg { width: 19px; height: 19px; }
#tabs a:hover { color: var(--text); background: rgba(255,255,255,.05); }
#tabs a.on { color: #16130C; background: var(--accent); }
.top-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; font-weight: 700;
  color: #16130C; background: var(--accent); flex: none; font-size: 17px; }
.avatar.sm { width: 34px; height: 34px; font-size: 15px; }

#view { padding: 18px 20px calc(80px + var(--safe-b)); max-width: 2200px; margin: 0 auto; }
h1 { font-size: 30px; line-height: 1.15; margin: 6px 0 4px; letter-spacing: -.3px; }
h2 { font-size: 21px; margin: 30px 0 12px; display: flex; align-items: baseline; gap: 12px; letter-spacing: -.1px; }
h2 a.more { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: auto; }
h2 a.more:hover { color: var(--accent); }
.sub { color: var(--muted); margin: 0 0 14px; }
.empty { color: var(--muted); padding: 60px 10px; text-align: center; font-size: 16px; }
.empty b { color: var(--text); display: block; font-size: 20px; margin-bottom: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.btn { background: var(--card2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 16px;
  font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.btn:hover { border-color: #444851; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #16130C; font-weight: 600; }
.btn.danger { color: var(--bad); }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--card2);
  font-size: 14px; border: 1px solid transparent; }
.chip img, .chip .avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; font-size: 12px; }
.chip.auto { border-style: dashed; border-color: #5a5d66; }
.chip.plain { padding: 5px 12px; }
.chip:hover { border-color: var(--accent); }

/* ---------- justified grid ---------- */
.month { margin-bottom: 22px; }
.month-h { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 5; padding: 12px 0 10px;
  font-weight: 650; font-size: 17px; background: linear-gradient(var(--bg) 75%, rgba(14,15,18,0)); display: flex; align-items: center; gap: 10px; }
.month-h small { color: var(--dim); font-weight: 500; font-size: 13px; }
.month-h .pick { margin-left: auto; font-size: 13px; color: var(--dim); background: none; border: 0; }
.month-h .pick:hover { color: var(--accent); }
.jrow { display: flex; gap: var(--gap); margin-bottom: var(--gap); }
.tile { position: relative; overflow: hidden; background: var(--card); flex: none; border-radius: 3px; cursor: pointer; outline: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s, transform .3s; }
.tile img.ok { opacity: 1; }
.tile.bad img { display: none; }
.tile.bad::after { content: "⚠ файл повреждён"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 12.5px; }
.tile:hover img { transform: scale(1.025); }
.tile .badge { position: absolute; right: 6px; bottom: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: rgba(0,0,0,.55); color: #fff; display: flex; gap: 4px; align-items: center; pointer-events: none; }
.tile .badge svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
.tile .fav { position: absolute; left: 7px; bottom: 6px; color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; pointer-events: none; }
.tile .q { position: absolute; left: 7px; top: 6px; font-size: 11px; background: rgba(0,0,0,.55); color: #ddd; border-radius: 6px;
  padding: 1px 6px; pointer-events: none; }
.tile .chk { position: absolute; left: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.2); opacity: 0; transition: opacity .15s; display: grid; place-items: center; }
.tile:hover .chk, .selecting .tile .chk { opacity: 1; }
.tile.sel .chk { background: var(--accent); border-color: var(--accent); opacity: 1; }
.tile.sel .chk::after { content: "✓"; color: #16130C; font-weight: 800; font-size: 14px; }
.tile.sel img { transform: scale(.9); border-radius: 8px; }
.tile.sel { background: #2b2516; }
.placeholder { background: transparent; }

/* year rail */
#view.with-rail { padding-right: 64px; }
#rail { position: fixed; right: 4px; top: calc(var(--top-h) + 20px); bottom: 30px; z-index: 6; display: flex; flex-direction: column;
  justify-content: space-between; padding: 4px 0; font-size: 11.5px; color: var(--dim); user-select: none; }
#rail a { padding: 1px 8px; border-radius: 6px; text-align: right; }
#rail a:hover, #rail a.on { color: var(--accent); background: rgba(240,180,76,.08); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); position: relative; outline: none;
  transition: transform .18s, box-shadow .18s; }
.card:hover, .card:focus { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.card .img { height: 0; padding-top: 75%; background: var(--card2) center / cover no-repeat; }
.card .meta { padding: 11px 14px 13px; }
.card .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card.overlay .meta { position: absolute; top: auto; right: 0; bottom: 0; left: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.card.overlay .d { color: #d4d2cc; }
.card.year .img { padding-top: 62.5%; position: relative; background: none; }
.card.year .m { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; grid-gap: 2px; }
.card.year .m div { background: var(--card2) center / cover no-repeat; }
.card.year .m div:first-child { grid-row: 1 / 3; }
.card.year .t { font-size: 26px; font-weight: 750; letter-spacing: -.5px; }
.card.folder .img { padding-top: 66.7%; }

.shelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; flex: none; }
.shelf .card { width: 280px; }

/* on this day hero */
.otd { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.otd::-webkit-scrollbar { display: none; }
.otd .mem { flex: none; width: 230px; height: 307px; border-radius: 18px; overflow: hidden; position: relative; background: var(--card) center / cover;
  outline: none; transition: transform .18s; }
.otd .mem:hover, .otd .mem:focus { transform: translateY(-3px) scale(1.01); }
.otd .mem::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.75)); }
.otd .mem b { position: absolute; left: 16px; bottom: 34px; z-index: 1; font-size: 22px; }
.otd .mem span { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #ddd; font-size: 13px; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 22px 14px; }
.person { text-align: center; outline: none; }
.person .face { width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 50%; background: var(--card2) center / cover; display: grid; place-items: center;
  font-size: 38px; font-weight: 700; color: var(--dim); transition: transform .18s, box-shadow .18s; }
.person:hover .face, .person:focus .face { transform: scale(1.05); box-shadow: 0 0 0 3px var(--accent); }
.person .n { color: var(--dim); font-size: 13px; }
.shelf .person { width: 104px; }
.shelf .person .face { width: 92px; height: 92px; }
.person-head { display: flex; align-items: center; gap: 20px; margin: 4px 0 8px; flex-wrap: wrap; }
.person-head .face { width: 96px; height: 96px; border-radius: 50%; background: var(--card2) center / cover; flex: none; }
.tabs2 { display: flex; gap: 6px; margin: 0 0 18px; }
.tabs2 a { padding: 7px 16px; border-radius: 999px; background: var(--card); color: var(--muted); font-weight: 500; }
.tabs2 a.on { background: var(--text); color: var(--bg); }
.tabs2 a .cnt { background: var(--accent); color: #16130C; border-radius: 999px; padding: 0 7px; margin-left: 6px; font-size: 12px; font-weight: 700; }

/* who is this */
.group { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.group .faces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.group .faces img, .facegrid img { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; background: var(--card2); cursor: pointer;
  transition: opacity .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: -3px; }
.group .faces img.off, .facegrid img.off { opacity: .28; outline-color: var(--bad); }
.group form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.group form input { flex: 1; min-width: 180px; }
.facegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.facegrid img { width: 100%; height: 110px; }

/* event / folder header */
.hero { position: relative; border-radius: 20px; overflow: hidden; margin: 0 0 18px; min-height: 240px; background: var(--card) center / cover;
  display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82)); }
.hero .in { position: relative; padding: 22px 24px; width: 100%; }
.hero h1 { font-size: 36px; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero .sub { color: #ddd; margin: 4px 0 0; }
.crumbs { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.crumbs a:hover { color: var(--accent); }

/* ---------- selection bar ---------- */
#selbar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b)); display: flex; align-items: center; gap: 10px;
  background: #24262C; border: 1px solid #353841; border-radius: 999px; padding: 8px 10px 8px 8px; box-shadow: 0 14px 40px rgba(0,0,0,.6);
  width: min(720px, calc(100vw - 24px)); }
#selbar .grow { flex: 1; }
#selbar button { background: var(--card2); border: 0; border-radius: 999px; padding: 9px 15px; font-weight: 500; }
#selbar button.primary { background: var(--accent); color: #16130C; }
#selbar .x { width: 38px; height: 38px; padding: 0; }
#selCount { font-weight: 600; }

/* ---------- viewer ---------- */
#viewer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; background: #000; display: flex; user-select: none; }
#viewer .stage { position: relative; flex: 1; overflow: hidden; touch-action: none; }
#viewer .slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template: 100% / 100%; place-items: center; }
#viewer .slide img, #viewer .slide video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; transform-origin: center; }
#viewer .slide .broken { color: #bbb; font-size: 16px; text-align: center; line-height: 1.6; }
#viewer .slide .ph { position: absolute; filter: blur(18px); transform: scale(1.04); opacity: .55; max-width: 100%; max-height: 100%; }
#viewer .bar { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 6px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 30px; background: linear-gradient(rgba(0,0,0,.6), transparent); transition: opacity .25s; }
#viewer .bar .title { flex: 1; min-width: 0; color: #eee; font-size: 14.5px; }
#viewer .bar .title b { display: block; font-size: 16px; }
#viewer .bar .title, #viewer .bar .title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#viewer .bar button { background: none; border: 0; color: #fff; padding: 9px; border-radius: 50%; display: grid; place-items: center; }
#viewer .bar button:hover, #viewer .bar button:focus { background: rgba(255,255,255,.14); outline: none; }
#viewer .bar button.on svg { fill: var(--accent); stroke: var(--accent); }
#viewer .nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
#viewer .stage:hover .nav { opacity: 1; }
#viewer .nav.prev { left: 14px; } #viewer .nav.next { right: 14px; }
#viewer.chrome-off .bar, #viewer.chrome-off .nav { opacity: 0; pointer-events: none; }
#viewer .live { position: absolute; z-index: 3; left: 16px; bottom: calc(18px + var(--safe-b)); background: rgba(0,0,0,.5); color: #fff; border: 0;
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; }
#viewer .boxes { position: absolute; pointer-events: none; }
#viewer .boxes .fb { position: absolute; border: 2px solid rgba(255,255,255,.9); border-radius: 8px; pointer-events: auto; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
#viewer .boxes .fb.auto { border-style: dashed; border-color: var(--accent2); }
#viewer .boxes .fb.none { border-color: rgba(255,255,255,.45); }
#viewer .boxes .fb span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; white-space: nowrap;
  background: rgba(0,0,0,.7); color: #fff; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; }
#viewer .info { width: 360px; flex: none; background: var(--bg2); overflow-y: auto; padding: 18px 20px calc(30px + var(--safe-b)); border-left: 1px solid var(--line); }
#viewer .info h3 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--dim); font-weight: 600; }
#viewer .info .big { font-size: 20px; font-weight: 650; }
#viewer .info .kv { color: var(--muted); font-size: 14px; margin: 3px 0; word-break: break-word; }
#viewer .info .kv a { color: var(--accent); }
#viewer .info .chips { display: flex; flex-wrap: wrap; gap: 7px; }
#viewer .info .act { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
#viewer .info .act .btn { justify-content: center; }
.counter { color: #bbb; font-size: 13px; }

/* ---------- modal, toast, login ---------- */
#modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
#modal .box { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(460px, 100%);
  max-height: 86vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
#modal h3 { margin: 0 0 14px; font-size: 19px; }
#modal .list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 46vh; overflow: auto; }
#modal .list button { text-align: left; background: var(--card); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; display: flex;
  justify-content: space-between; gap: 10px; }
#modal .list button:hover, #modal .list button:focus { border-color: var(--accent); outline: none; }
#modal .list small { color: var(--dim); }
#modal input { width: 100%; }
#modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
#toast { position: fixed; z-index: 70; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); background: #2E3038; color: #fff;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-weight: 500; max-width: 90vw; }
.login { max-width: 640px; margin: 8vh auto 0; text-align: center; }
.login .who { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin: 34px 0; }
.login .who button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 18px; outline: none; }
.login .who .avatar { width: 112px; height: 112px; font-size: 44px; transition: transform .18s, box-shadow .18s; }
.login .who button:hover .avatar, .login .who button:focus .avatar { transform: scale(1.06); box-shadow: 0 0 0 4px var(--text); }
.login form { display: flex; gap: 8px; justify-content: center; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.status-grid .card { padding: 16px; }
.status-grid .card b { font-size: 26px; display: block; }
.bar-p { height: 6px; background: var(--card2); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.bar-p i { display: block; height: 100%; background: var(--accent); }
.log { font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); background: var(--bg2); border-radius: 12px; padding: 12px; overflow-x: auto; }
.log .warn { color: var(--accent2); } .log .error { color: var(--bad); }
code.tok { background: var(--card2); padding: 3px 8px; border-radius: 6px; word-break: break-all; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --row: 116px; --gap: 2px; --top-h: 52px; }
  /* backdrop-filter on the header would make it the containing block of the fixed bottom tab bar */
  #top { padding-left: 14px; padding-right: 10px; gap: 10px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .logo span { font-size: 18px; }
  #tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 0;
    padding: 6px 4px calc(6px + var(--safe-b)); background: rgba(14,15,18,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.06); }
  #tabs a { flex-direction: column; gap: 2px; padding: 4px 6px; font-size: 10.5px; border-radius: 10px; }
  #tabs a svg { width: 23px; height: 23px; }
  #tabs a.on { background: none; color: var(--accent); }
  #tabs a[data-tab="folder"] { display: none; }
  .top-right { margin-left: auto; }
  #view { padding: 10px 6px calc(90px + var(--safe-b)); }
  h1 { font-size: 25px; } h2 { font-size: 19px; margin: 24px 6px 10px; }
  h1, .sub, .row-actions, .crumbs, .tabs2 { margin-left: 6px; margin-right: 6px; }
  .month-h { padding-left: 6px; font-size: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card .meta { padding: 8px 10px 10px; } .card .t { font-size: 14px; }
  .card.year .t { font-size: 21px; }
  .shelf .card { width: 200px; }
  .otd .mem { width: 150px; height: 200px; border-radius: 14px; } .otd .mem b { font-size: 18px; }
  .people { grid-template-columns: repeat(3, 1fr); gap: 16px 6px; }
  .person .face { width: 90px; height: 90px; }
  .hero { border-radius: 0; margin: -10px -6px 14px; min-height: 220px; } .hero h1 { font-size: 27px; }
  #rail { display: none; }
  #view.with-rail { padding-right: 6px; }
  #viewer { flex-direction: column; }
  #viewer .info { width: auto; max-height: 52vh; border-left: 0; border-top: 1px solid var(--line); }
  #viewer .nav { display: none; }
  #selbar { bottom: calc(76px + var(--safe-b)); }
  #selbar button { padding: 8px 11px; font-size: 14px; }
  #toast { bottom: calc(150px + var(--safe-b)); }
  .tile .chk { display: none; }
  .selecting .tile .chk { display: grid; }
}

/* ---------- TV (remote): bigger, focus = lift + white ring ---------- */
body.tv { --row: 250px; --gap: 8px; font-size: 18px; }
body.tv #view { padding: 22px 46px 60px; }
body.tv #tabs a:focus { outline: none; box-shadow: 0 0 0 3px var(--text); color: var(--text); }
body.tv .tile:focus { z-index: 2; transform: scale(1.06); box-shadow: 0 0 0 4px #fff, 0 16px 40px rgba(0,0,0,.7); border-radius: 6px; transition: transform .15s; }
body.tv .card:focus { box-shadow: 0 0 0 4px #fff, 0 16px 40px rgba(0,0,0,.6); transform: scale(1.04); }
body.tv .otd .mem:focus { box-shadow: 0 0 0 4px #fff; transform: scale(1.05); }
body.tv .btn:focus, body.tv button:focus { outline: none; box-shadow: 0 0 0 3px #fff; }
body.tv .tile .chk, body.tv #rail, body.tv .month-h .pick { display: none; }
body.tv #viewer .info { width: 420px; }
