:root {
  --bg: #121212;
  --surface: #181818;
  --mid: #1f1f1f;
  --card: #252525;
  --text: #ffffff;
  --muted: #b3b3b3;
  --near: #cbcbcb;
  --accent: #1ed760;
  --accent-border: #1db954;
  --negative: #f3727f;
  --warning: #ffa42b;
  --info: #539df5;
  --border: #4d4d4d;
  --light-border: #7c7c7c;
  --shadow: rgba(0, 0, 0, 0.3) 0px 8px 8px;
  --shadow-heavy: rgba(0, 0, 0, 0.5) 0px 8px 24px;
  --inset: rgb(18, 18, 18) 0px 1px 0px, rgb(124, 124, 124) 0px 0px 0px 1px inset;
  --font: Pretendard, "SpotifyMixUI", "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --header: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #121212;
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand.compact .brand-text { font-size: 16px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #121212;
  display: grid; place-items: center;
}
.brand-mark svg { width: 16px; height: 16px; fill: currentColor; }
.brand-text {
  font-size: 18px; font-weight: 700; letter-spacing: 0.4px;
}
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--mid); color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  flex: 0 0 44px;
}
.icon-btn:hover { background: #2a2a2a; }
.icon-btn.active { background: #2a2a2a; color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: auto;
  width: min(320px, 88vw);
  background: #181818;
  z-index: 30;
  padding: 0 0 32px;
  box-shadow: var(--shadow-heavy);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
}
.site-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 12px 24px;
  flex-shrink: 0;
}
.drawer-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 16px; }
.drawer-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.drawer-nav a:hover { color: var(--text); background: var(--mid); }
.drawer-nav a.active { color: var(--text); font-weight: 700; background: var(--mid); }
.drawer-nav.sub { margin-top: auto; border-top: 1px solid #2a2a2a; padding-top: 12px; }
.drawer-nav.sub a { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; }

body.drawer-open { overflow: hidden; }

.notice-bar {
  background: #1f1f1f;
  color: var(--accent);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
}

.main {
  flex: 1;
  background: linear-gradient(180deg, #1f1f1f 0%, #121212 220px);
  padding: 32px 32px 48px;
}

.site-footer {
  background: #181818;
  padding: 32px 32px 40px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  display: grid;
  gap: 20px;
}
.footer-brand p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.hero { max-width: 820px; padding: 12px 0 32px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.save-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.save-form input[type="url"] {
  flex: 1;
  background: var(--mid);
  color: var(--text);
  border: 0;
  border-radius: 500px;
  padding: 14px 24px;
  font-size: 16px;
  box-shadow: var(--inset);
  outline: none;
}
.save-form input[type="url"]:focus {
  outline: 1px solid #000;
  box-shadow: rgb(18,18,18) 0 1px 0px, var(--accent) 0 0 0 1px inset;
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 720px;
  margin-bottom: 32px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-field svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  background: var(--mid);
  color: var(--text);
  border: 0;
  border-radius: 500px;
  padding: 14px 24px 14px 48px;
  font-size: 16px;
  box-shadow: var(--inset);
  outline: none;
}
.search-field input::placeholder { color: var(--muted); }
.search-field input:focus {
  outline: 1px solid #000;
  box-shadow: rgb(18,18,18) 0 1px 0px, var(--accent) 0 0 0 1px inset;
}
.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-hint { margin-top: 0; }
.btn-cta {
  position: relative;
  background: var(--accent);
  color: #121212;
  border: 0;
  border-radius: 500px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cta:hover { filter: brightness(1.06); }
.btn-cta.small { padding: 8px 18px; font-size: 12px; }
.btn-cta:disabled { opacity: .55; cursor: wait; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mid);
  color: var(--text);
  border: 0;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-pill:hover { background: #2a2a2a; }
.btn-pill.tiny {
  padding: 6px 12px;
  font-size: 10.5px;
  letter-spacing: 1px;
}
.btn-pill.danger { color: var(--negative); }
.btn-pill.liked {
  background: var(--accent);
  color: #121212;
}

.form-hint, .clip-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.form-hint { margin: 12px 0 0; }
.flash-error {
  color: var(--negative);
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
}
.flash-error.ok { color: var(--accent); }

.section { margin-top: 40px; }
.section-head, .page-head.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.page-head { margin-bottom: 24px; }
.text-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.text-link:hover { color: var(--text); }

.empty {
  background: var(--surface);
  border-radius: 8px;
  padding: 32px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.empty.slim { padding: 16px; background: transparent; box-shadow: none; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.clip-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  transition: background .15s ease;
}
.clip-card:hover {
  background: #282828;
  box-shadow: var(--shadow);
}
.clip-art {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
}
.clip-art img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.clip-fallback { width: 100%; height: 100%; background: #272727; }
.badge {
  position: absolute;
  z-index: 3;
  right: 8px; bottom: 8px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.33;
  text-transform: capitalize;
  padding: 2px 6px;
  border-radius: 2px;
}
.hover-play {
  position: absolute;
  z-index: 3;
  right: 10px; bottom: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #121212;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: .15s ease;
  box-shadow: var(--shadow-heavy);
}
.clip-card:hover .hover-play { opacity: 1; transform: none; }
.hover-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.clip-body { padding: 12px 4px 4px; }
.clip-title {
  font-size: 16px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-stats {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  background: var(--mid);
  color: var(--muted);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.chip.ghost {
  background: transparent;
  box-shadow: rgb(18,18,18) 0 1px 0, rgb(124,124,124) 0 0 0 1px inset;
  letter-spacing: 0.4px;
  text-transform: none;
  font-weight: 400;
}
.chip.on {
  background: var(--text);
  color: #121212;
}

.rank-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-end;
}
.cselect {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.cselect-caption {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.cselect-box { position: relative; }
.cselect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--mid);
  color: var(--text);
  border: 0;
  border-radius: 500px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--inset);
  cursor: pointer;
}
.cselect-btn:hover { background: #2a2a2a; }
.cselect.is-open .cselect-btn {
  outline: 1px solid #000;
  box-shadow: rgb(18,18,18) 0 1px 0px, var(--accent) 0 0 0 1px inset;
}
.cselect-btn svg { width: 12px; height: 8px; flex: 0 0 auto; }
.cselect.is-open .cselect-btn svg { transform: rotate(180deg); }
.cselect-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #181818;
  border-radius: 12px;
  box-shadow: var(--shadow-heavy);
}
.cselect-menu[hidden] { display: none; }
.cselect-opt {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.cselect-opt:hover { background: var(--mid); color: var(--text); }
.cselect-opt.is-on { background: var(--mid); color: var(--text); }
.prose-form .cselect { min-width: 0; width: 100%; }
.view-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
  background: var(--mid);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: var(--inset);
}
.view-btn {
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.view-btn svg { width: 18px; height: 18px; }
.view-btn:hover { color: var(--text); }
.view-btn.on {
  background: var(--text);
  color: #121212;
}
.card-rank {
  position: absolute;
  z-index: 3;
  left: 8px;
  top: 8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.rank-list { list-style: none; margin: 20px 0 0; padding: 0; }
.rank-row {
  display: grid;
  grid-template-columns: 40px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
}
.rank-row.no-n {
  grid-template-columns: 72px 1fr auto;
}
.rank-row:hover { background: var(--mid); }
.rank-n { font-size: 18px; font-weight: 700; color: var(--muted); text-align: center; }
.rank-art {
  position: relative;
  width: 72px; height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
}
.rank-art img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.rank-stat { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.watch { max-width: 1100px; }
.player-wrap {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}
.player-wrap video { width: 100%; max-height: 72vh; background: #000; display: block; position: relative; z-index: 1; }
.player-wrap video::-webkit-media-controls-download-button { display: none !important; }
.watch-head { padding: 20px 4px 8px; }
.watch-by {
  display: flex; flex-wrap: wrap; gap: 10px;
  color: var(--muted); font-size: 14px; margin-top: 8px;
}
.watch-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.watch-actions > * {
  flex: 0 0 auto;
  white-space: nowrap;
}
.watch-act {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mid);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  box-sizing: border-box;
}
a.watch-act,
button.watch-act { cursor: pointer; }
.watch-act:hover { background: #2a2a2a; }
.watch-act:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.watch-act svg { width: 20px; height: 20px; flex-shrink: 0; }
.watch-act.has-count {
  width: auto;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 9999px;
}
.watch-act-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}
.watch-act.liked,
.watch-act.is-copied {
  background: var(--accent);
  color: #121212;
}
.watch-act.liked:hover,
.watch-act.is-copied:hover { background: var(--accent-border); }
.watch-act.liked .watch-act-count,
.watch-act.is-copied .watch-act-count { color: #121212; }
.watch-act.liked .ico-fill { fill: currentColor; }
.watch-act.download {
  background: var(--accent);
  color: #121212;
}
.watch-act.download:hover {
  background: var(--accent-border);
}
.stat {
  background: var(--mid);
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.comments { margin-top: 32px; }
.comments h2 { margin-bottom: 16px; }
.comment-form {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.comment-row { display: grid; grid-template-columns: 180px 1fr; gap: 10px; }
.comment-form input, .comment-form textarea, .auth-form input {
  background: var(--mid);
  color: var(--text);
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--inset);
  outline: none;
  width: 100%;
}
.comment-form textarea { min-height: 88px; resize: vertical; }
.comment-form .btn-cta { margin-top: 12px; }
.comment {
  padding: 14px 4px;
  border-bottom: 1px solid #2a2a2a;
}
.comment header {
  display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px;
}
.comment header strong { font-size: 14px; font-weight: 700; }
.comment header time { font-size: 12px; color: var(--muted); }
.comment p { margin: 0; font-size: 14px; color: var(--near); white-space: pre-wrap; }

.pager { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.pager-info { color: var(--muted); font-size: 12px; font-weight: 700; }

.auth-wrap { min-height: 60vh; display: grid; place-items: center; }
.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-heavy);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label span {
  display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
}
.stat-card .k { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.stat-card .v { font-size: 24px; font-weight: 700; margin-top: 6px; }

.table-wrap { overflow: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 8px;
}
.admin-table td { padding: 12px 8px; vertical-align: top; border-top: 1px solid #2a2a2a; }
.row-actions { display: flex; gap: 6px; }

.creator-row, .creator-list { display: flex; flex-wrap: wrap; gap: 10px; }
.creator-list { flex-direction: column; }
.creator-chip {
  background: var(--surface);
  border-radius: 9999px;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.creator-chip span { color: var(--muted); font-size: 12px; font-weight: 700; }
.embed-field, .prose-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; max-width: 640px; }
.embed-field span, .prose-form label span {
  font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase;
}
.embed-field input, .prose-form input, .prose-form select, .prose-form textarea {
  background: var(--mid); color: var(--text); border: 0; border-radius: 8px;
  padding: 12px 14px; box-shadow: var(--inset); width: 100%;
}
.prose-form textarea { min-height: 120px; }
.prose { max-width: 720px; color: var(--near); }
.prose h2 { margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.5; }
.prose a { color: var(--accent); }
.admin-subnav {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px;
}
.admin-subnav a {
  padding: 8px 16px; border-radius: 9999px; background: var(--mid);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.admin-subnav a.on { background: var(--text); color: #121212; }
.inline-form { display: inline; }
.watch-by a { display: inline-flex; gap: 8px; color: inherit; }
.watch-by a:hover { color: var(--accent); }

@keyframes skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.skel {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, #252525 0%, #323232 45%, #252525 90%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.1s ease-in-out infinite;
  transition: opacity .2s ease;
}
.media-wait.is-ready > .skel { opacity: 0; }
.media-fade {
  opacity: 0;
  transition: opacity .25s ease;
}
.media-fade.is-loaded { opacity: 1; }
.player-wrap > .skel { z-index: 3; background: linear-gradient(90deg, #111 0%, #1c1c1c 45%, #111 90%); background-size: 200% 100%; }

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex: 0 0 auto;
}
.page-spinner {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(18,18,18,.45);
}
.page-spinner[hidden] { display: none; }

.btn-cta.is-busy,
.btn-cta.is-busy:disabled {
  opacity: 1;
  color: transparent;
  pointer-events: none;
}
.btn-cta.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(18,18,18,.22);
  border-top-color: #121212;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.watch-act {
  position: relative;
}
.watch-act.is-busy {
  pointer-events: none;
}
.watch-act.is-busy > * { visibility: hidden; }
.watch-act.is-busy::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.watch-act.liked.is-busy::after,
.watch-act.download.is-busy::after,
.watch-act.is-copied.is-busy::after {
  border-color: rgba(18,18,18,.22);
  border-top-color: #121212;
}

@media (prefers-reduced-motion: reduce) {
  .skel, .spinner, .btn-cta.is-busy::after, .watch-act.is-busy::after {
    animation: none;
  }
  .media-fade { opacity: 1; }
}

@media (max-width: 1280px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 896px) {
  .site-header { padding: 12px 16px; }
  .main { padding: 20px 16px 32px; }
  .site-footer { padding: 24px 16px 32px; }
  .save-form, .search-form { flex-direction: column; align-items: stretch; }
  .comment-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-row { grid-template-columns: 28px 56px 1fr; }
  .rank-stat { display: none; }
  .cselect { min-width: 140px; flex: 1; }
}
@media (max-width: 425px) {
  .card-grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
}
