@import url("fonts.css");

:root {
  --bg: #222427;
  --bg-2: #2b2e32;
  --bg-3: #34383d;
  --line: #45494f;
  --line-2: #5a5f66;
  --text: #ffffff;
  --text-2: #c9ccd1;
  --text-3: #8d9299;
  --ok: #7ee08a;
  --warn: #ffd166;
  --bad: #ff6b6b;
  --font: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 500 16px/1.5 var(--font);
  font-feature-settings: "tnum" 1;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.06), transparent 60%),
    var(--noise);
  background-size: auto, 160px 160px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: var(--noise);
  background-size: 160px 160px;
  opacity: .35;
  mix-blend-mode: soft-light;
}

a { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text-3); }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 2px; }
b, strong, h1, h2, h3 { font-weight: 800; }
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
h2 { font-size: 20px; margin: 0 0 10px; }
p { margin: 0 0 12px; color: var(--text-2); font-weight: 600; }
.sr-only { position: absolute; left: -9999px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 56px; }
.grow { flex: 1 1 auto; }

/* --- ortak üst çizgi / ad --- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 18px; border-bottom: 3px solid var(--text); margin-bottom: 26px; }
.topbar .tag { color: var(--text-3); font-weight: 700; font-size: 14px; }
.foot { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* --- düğmeler / alanlar --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 6px; cursor: pointer;
  font: 800 15px/1 var(--font); letter-spacing: .01em; text-decoration: none;
  background: #fff; color: #111; border: 2px solid #fff;
}
.btn:hover { background: #e6e6e6; border-color: #e6e6e6; }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 5px; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: rgba(255,107,107,.12); }
.btn.quiet { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn.quiet:hover { border-color: #fff; color: #fff; background: transparent; }
.btn[disabled] { opacity: .45; cursor: default; }
input[type=text], input[type=search], input[type=password], .select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 6px;
  background: var(--bg-2); color: #fff; border: 2px solid var(--line-2);
  font: 700 16px/1.3 var(--font);
}
.select { width: auto; cursor: pointer; }
.select.sm { min-height: 36px; padding: 4px 10px; font-size: 13px; border-radius: 5px; }
input::placeholder { color: var(--text-3); font-weight: 600; }
input:focus, .select:focus { outline: none; border-color: #fff; }
.mono { font-family: var(--mono); font-weight: 600; }
.chip { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line-2); background: transparent; color: var(--text-2); font: 800 13px/1 var(--font); cursor: pointer; }
.chip:hover { border-color: #fff; color: #fff; }
.chip.is-on { background: #fff; color: #111; border-color: #fff; }

/* --- açılış / 404 / işleniyor --- */
.page-landing .wrap, .page-404 .wrap, .page-processing .wrap, .page-notice .wrap { max-width: 720px; padding-top: 10vh; }
.hero h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 900; letter-spacing: -.035em; line-height: .95; margin: 0 0 18px; }
.hero p { font-size: 20px; }
.hero .muted { color: var(--text-3); font-size: 16px; }

/* --- oynatıcı / fotoğraf sayfası --- */
.page-player .wrap, .page-photo .wrap { max-width: 1180px; }
.player { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.stage { position: relative; background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.stage video { display: block; width: 100%; max-height: 78vh; background: #000; }
.stage.portrait { max-width: 440px; margin: 0 auto; }
.stage.portrait video { max-height: 82vh; }
.pmsg { position: absolute; left: 0; right: 0; top: 0; padding: 10px 14px; background: rgba(0,0,0,.72); color: #fff; font-weight: 800; font-size: 14px; text-align: center; }
.speed { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.speed-label { font-weight: 800; color: var(--text-3); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.speed-hint { color: var(--text-3); font-size: 12px; font-weight: 700; margin-left: 6px; }
.hint { color: var(--text-3); font-size: 13px; margin-top: 10px; }
.photo-stage { display: flex; align-items: center; justify-content: center; background: #0d0e10; }
.photo-stage a.tile { display: block; width: 100%; line-height: 0; cursor: zoom-in; }
.photo-stage img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.stage.portrait.photo-stage { max-width: 520px; }
.info h1 { font-size: 30px; }
.facts { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.facts li span:first-child { color: var(--text-3); }
.linkbox { display: flex; gap: 8px; margin-bottom: 10px; }
.linkbox input { font-family: var(--mono); font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
@media (max-width: 860px) {
  .player { grid-template-columns: 1fr; gap: 18px; }
  .info h1 { font-size: 26px; }
  .stage video { max-height: 62vh; }
  .wrap { padding: 16px 14px 40px; }
  .speed-hint { display: none; }
}

/* --- albüm sayfası --- */
.page-album .wrap { max-width: 1320px; }
.album-hero { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 18px; }
.album-hero .hero-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(34px) saturate(1.2); opacity: .35; pointer-events: none; }
.album-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,36,39,.92), rgba(34,36,39,.55)); pointer-events: none; }
.album-hero .hero-in { position: relative; z-index: 1; padding: 30px 28px 26px; }
.album-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 6px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.album-meta { color: var(--text-2); font-weight: 700; margin: 0 0 18px; }
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-actions .linkbox { flex: 1 1 320px; max-width: 520px; margin: 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.gallery:not(.is-laid) .tile { width: calc(25% - 6px); aspect-ratio: 4 / 3; }
.tile { display: block; position: relative; overflow: hidden; border-radius: 6px; background: #0d0e10; text-decoration: none; }
.gallery .tile { flex: 0 0 auto; }
.gallery .tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery .tile:hover img { transform: scale(1.04); }
.gallery .tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); border-radius: 6px; pointer-events: none; transition: box-shadow .2s; }
.gallery .tile:hover::after { box-shadow: inset 0 0 0 2px #fff; }
.tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tile-n { position: absolute; left: 8px; bottom: 8px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font: 800 12px/26px var(--font); text-align: center; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-n, .tile:focus-visible .tile-n { opacity: 1; }
.tile.is-processing { display: flex; align-items: center; justify-content: center; color: var(--text-3); font-weight: 800; font-size: 13px; background: repeating-linear-gradient(45deg, var(--bg-2) 0 10px, var(--bg-3) 10px 20px); }
@media (max-width: 700px) {
  .album-hero .hero-in { padding: 20px 16px 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .gallery:not(.is-laid) .tile { width: calc(50% - 3px); }
  .tile-n { opacity: 1; }
}

/* --- tam ekran görüntüleyici --- */
body.lb-on { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(10,11,13,.97); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; font-weight: 800; }
.lb-count { font-family: var(--mono); color: var(--text-2); font-size: 14px; white-space: nowrap; }
.lb-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-grow { flex: 1; }
.lb-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 6px; border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: 800 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.lb-btn:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.lb-close { font-size: 18px; padding: 6px 12px; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb-stage.is-zoomed { overflow: auto; align-items: flex-start; justify-content: flex-start; cursor: zoom-out; touch-action: auto; }
.lb-frame { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; transition: transform .12s ease-out; }
.lb-frame.is-zoomed { width: max-content; height: max-content; min-width: 100%; min-height: 100%; padding: 8px; }
.lb-frame img { max-width: calc(100vw - 16px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); cursor: zoom-in; transition: opacity .18s; user-select: none; -webkit-user-drag: none; }
.lb-frame.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; box-shadow: none; }
.lb-frame img.is-loading { opacity: .5; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 84px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font: 900 44px/1 var(--font); cursor: pointer; transition: background .15s; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-bottom { padding: 6px 14px 12px; }
.lb-foot { color: var(--text-3); font-weight: 700; font-size: 13px; text-align: center; min-height: 18px; margin-bottom: 8px; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 6px; justify-content: safe center; }
.lb-th { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 5px; background: #0d0e10; cursor: pointer; overflow: hidden; opacity: .55; transition: opacity .15s, border-color .15s; }
.lb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-th:hover { opacity: .9; }
.lb-th.is-on { opacity: 1; border-color: #fff; }
.lb.is-playing .lb-strip { opacity: .4; }
@media (max-width: 700px) {
  .lb-nav { display: none; }
  .lb-top { gap: 6px; padding: 8px 10px; }
  .lb-btn { padding: 6px 10px; font-size: 13px; }
  #lbShare, #lbPlay { display: none; }
  .lb-th { width: 52px; height: 40px; }
}

/* --- giriş --- */
.page-login .wrap { max-width: 420px; padding-top: 14vh; }
.login h1 { font-size: 28px; }
.login label { display: block; font-weight: 800; margin-bottom: 8px; }
.login input { margin-bottom: 14px; }
.login .btn { width: 100%; }
.alert { background: rgba(255,107,107,.12); border: 2px solid var(--bad); color: #fff; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; }

/* --- yönetim --- */
.page-admin .wrap { max-width: 1240px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .grow { flex: 1 1 220px; }
.toolbar form { margin: 0; }
.toolbar.list-tools { margin-top: 26px; }
.toolbar.filters { margin: -6px 0 6px; }
.toolbar.filters .grow { flex: 1 1 260px; max-width: 420px; }
.toolbar h2 { margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.summary { color: var(--text-2); font-weight: 700; }
.drop {
  border: 3px dashed rgba(255,255,255,.45); border-radius: 10px; padding: 34px 20px; text-align: center;
  font-weight: 800; font-size: 18px; color: var(--text-2); cursor: pointer; background: rgba(255,255,255,.02);
}
.drop:hover, .drop.is-over { border-color: #fff; color: #fff; background: rgba(255,255,255,.05); }
.drop small { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); font-weight: 600; }

/* albüm sorusu (kipli pencere) */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,11,13,.8); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 560px; background: var(--bg-2); border: 2px solid #fff; border-radius: 14px; padding: 26px 26px 20px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.modal-box h2 { font-size: 28px; margin: 0 0 6px; }
.modal-box h2 strong { font-size: 34px; }
.modal-box p { margin-bottom: 18px; }
.modal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 18px 16px; border-radius: 10px; border: 2px solid var(--line-2); background: var(--bg-3); color: #fff; font-family: var(--font); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover, .choice:focus-visible { border-color: #fff; background: #3c4046; }
#askAlbum { background: #fff; color: #111; border-color: #fff; }
#askAlbum:hover, #askAlbum:focus-visible { background: #e6e6e6; }
#askAlbum .choice-sub { color: #444; }
.choice-title { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.choice-sub { font-size: 13px; font-weight: 700; color: var(--text-3); }
.modal-title { display: block; font-weight: 800; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.modal-title small { font-weight: 600; }
.modal-cancel { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--text-3); font: 700 14px/1 var(--font); text-decoration: underline; cursor: pointer; }
.modal-cancel:hover { color: #fff; }
@media (max-width: 520px) { .modal-choices { grid-template-columns: 1fr; } .modal-box { padding: 20px 16px 16px; } }

.selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 14px; border-radius: 8px; background: #fff; color: #111; font-weight: 700; }
.selbar[hidden], .queue[hidden], .speed[hidden] { display: none; }
.selbar strong { font-size: 18px; }
.selbar .btn.sm { background: #111; color: #fff; border-color: #111; }
.selbar .btn.sm.quiet { background: transparent; color: #111; border-color: #999; }
.selbar .select { background: #fff; color: #111; border-color: #999; }

.queue { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 14px 16px; }
.queue-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.queue-head strong { font-size: 18px; }
.queue ol { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.q { display: grid; grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, 1.2fr) minmax(110px, .8fr) auto; gap: 10px 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.q:first-child { border-top: 0; }
.q-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-size { color: var(--text-3); font-weight: 700; text-align: right; }
.q-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.q-bar > i { display: block; height: 100%; width: 0; background: #fff; transition: width .25s; }
.q.is-done .q-bar > i, .q.is-processing .q-bar > i { background: var(--ok); }
.q.is-duplicate .q-bar > i { background: var(--warn); }
.q.is-error .q-bar > i { background: var(--bad); }
.q-info { font-weight: 700; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q.is-done .q-info { color: var(--ok); } .q.is-duplicate .q-info { color: var(--warn); } .q.is-error .q-info { color: var(--bad); }
.q-act { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.q a.link { font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--text-2); }
@media (max-width: 760px) {
  .q { grid-template-columns: minmax(0, 1fr) 70px; }
  .q-bar, .q-info { grid-column: 1 / -1; }
  .q-act { grid-column: 1 / -1; justify-content: flex-start; }
}

.list { width: 100%; border-collapse: collapse; margin-top: 12px; }
.list th { text-align: left; font-size: 12px; font-weight: 800; color: var(--text-3); padding: 6px 10px; border-bottom: 2px solid var(--line-2); white-space: nowrap; }
.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:hover td { background: rgba(255,255,255,.03); }
.list tr.is-selected td { background: rgba(255,255,255,.07); }
.list .c-num { text-align: right; white-space: nowrap; color: var(--text-2); font-weight: 700; }
.c-thumb { white-space: nowrap; }
.pick { display: inline-block; vertical-align: middle; margin-right: 8px; }
.pick input { width: 20px; height: 20px; accent-color: #fff; cursor: pointer; }
.thumb { display: inline-block; vertical-align: middle; width: 96px; height: 54px; object-fit: cover; border-radius: 4px; background: #000; border: 1px solid var(--line); }
.thumb.is-portrait { object-fit: contain; background: #0a0a0a; }
.thumb.is-empty { background: repeating-linear-gradient(45deg, var(--bg-2) 0 8px, var(--bg-3) 8px 16px); }
.thumb.is-album { box-shadow: 3px -3px 0 -1px var(--bg-3), 6px -6px 0 -2px var(--line); }
.title { font-weight: 800; font-size: 16px; }
.sub { color: var(--text-3); font-size: 13px; font-weight: 600; word-break: break-all; }
.kind { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: var(--bg-3); color: var(--text-2); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.kind.is-album { background: #fff; color: #111; }
.status { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 4px; background: var(--bg-3); color: var(--text-2); }
.status.is-processing { color: var(--warn); } .status.is-failed { color: var(--bad); }
.c-link a.link { font-family: var(--mono); font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; border-bottom: 2px solid var(--line-2); }
.c-link a.link:hover { border-color: #fff; }
.c-act { white-space: nowrap; text-align: right; }
.c-act .btn + .btn { margin-left: 6px; }
.c-act .btn.sm { margin-bottom: 4px; }
.btn.sm.toggle { min-width: 110px; }
.empty { color: var(--text-3); font-weight: 700; padding: 24px 10px; text-align: center; }

/* albüm paneli */
.list tr.panel:hover td { background: transparent; }
.list tr.panel td { padding: 0 0 14px; }
.apanel { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); padding: 12px 14px 14px; }
.apanel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.apanel-hint { color: var(--text-3); font-size: 13px; font-weight: 700; }
.atiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.atile { position: relative; border-radius: 8px; overflow: hidden; background: #0d0e10; border: 2px solid var(--line); aspect-ratio: 4 / 3; cursor: grab; transition: border-color .15s, transform .15s; }
.atile img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.atile.is-cover { border-color: #fff; }
.atile.is-drag { opacity: .4; }
.atile.is-over { border-color: var(--ok); transform: scale(1.03); }
.atile.is-processing, .atile.is-failed { cursor: default; display: flex; align-items: center; justify-content: center; }
.atile-empty { color: var(--text-3); font-weight: 800; font-size: 13px; }
.atile-n { position: absolute; left: 8px; top: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.7); color: #fff; font: 800 12px/24px var(--font); text-align: center; }
.atile-star { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 4px; background: #fff; color: #111; font: 800 11px/1.5 var(--font); }
.atile-title { position: absolute; left: 0; right: 0; bottom: 34px; padding: 4px 8px; color: #fff; font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .15s; }
.atile-acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; padding: 4px; background: rgba(0,0,0,.78); opacity: 0; transition: opacity .15s; }
.atile:hover .atile-acts, .atile:focus-within .atile-acts, .atile:hover .atile-title { opacity: 1; }
.ib { flex: 1 1 auto; min-width: 0; height: 26px; padding: 0 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.12); color: #fff; font: 800 12px/1 var(--font); cursor: pointer; }
.ib:hover { background: rgba(255,255,255,.3); }
.ib.is-on { background: #fff; color: #111; }
.ib.danger { color: var(--bad); }
.ib[disabled] { opacity: .3; cursor: default; }
.atile-add { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line-2); background: transparent; color: var(--text-2); font: 800 14px/1.3 var(--font); cursor: pointer; }
.atile-add:hover { border-color: #fff; color: #fff; }
@media (pointer: coarse) {
  .atile-acts, .atile:hover .atile-title { opacity: 1; }
  .atile { cursor: default; }
}
@media (max-width: 900px) {
  .list th:nth-child(3), .list td:nth-child(3), .list th:nth-child(5), .list td:nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .list, .list tbody, .list tr, .list td { display: block; }
  .list thead { display: none; }
  .list tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .list td { border: 0; padding: 4px 0; }
  .list .c-num { text-align: left; display: inline-block; margin-right: 12px; }
  .c-act { text-align: left; padding-top: 8px; }
  .list tr.panel td { padding: 0 0 10px; }
  .atiles { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 6px; }
}

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #fff; color: #111; font-weight: 800; padding: 12px 18px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 60; }
#toast.on { opacity: 1; transform: translateX(-50%); }
