/* =====================================================================
   Videoclipuri versuri-versuri.ro — mobile-first stylesheet (2026)
   Light theme by default, automatic dark mode, manual override via
   <html data-theme="light|dark">.
   ===================================================================== */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #14171c;
  --text-2: #4b5563;
  --muted: #6b7280;
  --border: #e3e6ea;
  --accent: #15803d;
  --accent-hover: #166534;
  --accent-soft: #e8f5ec;
  --accent-contrast: #ffffff;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --warning: #a16207;
  --warning-soft: #fdf6e3;
  --badge-new: #15803d;
  --badge-pop: #c2410c;
  --star: #f59e0b;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .16);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 56px;
  --gutter: 16px;
  --maxw: 1320px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --plyr-color-main: var(--accent);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1f232b;
    --text: #eef0f3;
    --text-2: #c2c7d0;
    --muted: #9aa1ad;
    --border: #2a2f39;
    --accent: #22c55e;
    --accent-hover: #4ade80;
    --accent-soft: #11291b;
    --accent-contrast: #06210f;
    --danger: #f87171;
    --danger-soft: #2c1414;
    --warning: #fbbf24;
    --warning-soft: #2b2312;
    --badge-new: #16a34a;
    --badge-pop: #ea580c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a20;
  --surface-2: #1f232b;
  --text: #eef0f3;
  --text-2: #c2c7d0;
  --muted: #9aa1ad;
  --border: #2a2f39;
  --accent: #22c55e;
  --accent-hover: #4ade80;
  --accent-soft: #11291b;
  --accent-contrast: #06210f;
  --danger: #f87171;
  --danger-soft: #2c1414;
  --warning: #fbbf24;
  --warning-soft: #2b2312;
  --badge-new: #16a34a;
  --badge-pop: #ea580c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.375rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-contrast); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- icons */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; letter-spacing: -.01em; margin-right: auto; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-contrast); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 16px; height: 16px; margin-left: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-text strong { font-size: 1.05rem; text-transform: uppercase; }
.brand-text span { font-size: .72rem; font-weight: 600; color: var(--accent); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }

.search-form { display: none; position: relative; }
.search-form.is-open {
  display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  padding: 8px var(--gutter) 12px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.search-box { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; outline: none; }
.search-box button { border: 0; background: transparent; padding: 0 14px; height: 42px; color: var(--muted); cursor: pointer; }
.search-box button:hover { color: var(--accent); }
.suggest-list { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 4px; z-index: 60; }
.suggest-list[hidden] { display: none; }
.suggest-list a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.suggest-list a:hover, .suggest-list a[aria-selected="true"] { background: var(--surface-2); text-decoration: none; }

.main-nav { display: none; }
.header-account { display: none; }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(86vw, 340px); z-index: 90;
  background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; visibility: hidden;
}
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); min-height: var(--header-h); }
.drawer-body { overflow-y: auto; padding: 8px 0 24px; }
.drawer-section { padding: 8px 16px; }
.drawer-section h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0; }
.drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-links a, .drawer-links button { display: flex; width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.drawer-links button:hover, .drawer-links a:hover { background: var(--surface-2); text-decoration: none; }
.drawer-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }

/* category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.is-active, .chip[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chips-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.chips-bar .chips { max-width: var(--maxw); margin: 0 auto; }

/* ---------------------------------------------------------------- layout */
.page { padding: 16px 0 32px; }
.layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.section { margin-bottom: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 1.125rem; }
.section-head a { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.page-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 16px; }
.page-title h1 { margin: 0; }
.page-title .count { color: var(--muted); font-size: .9rem; }
.breadcrumbs { font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.narrow { max-width: 560px; margin: 0 auto; }

/* ---------------------------------------------------------------- video grid & cards */
.grid { display: grid; gap: 16px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vcard { position: relative; min-width: 0; }
.vcard-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vcard:hover .vcard-thumb img { transform: scale(1.04); }
.vcard-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%); opacity: 0; transition: opacity .2s; }
.vcard:hover .vcard-thumb::after { opacity: 1; }
.vcard-time { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: .72rem; font-weight: 600; padding: 1px 6px; border-radius: 4px; z-index: 1; }
.badge { display: inline-block; font-size: .65rem; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; color: #fff; }
.badge-new { background: var(--badge-new); }
.badge-pop { background: var(--badge-pop); }
.vcard-badges { position: absolute; left: 6px; top: 6px; display: flex; gap: 4px; z-index: 1; }
.vcard-body { padding-top: 8px; }
.vcard-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.vcard-title:hover { color: var(--accent); text-decoration: none; }
.vcard-meta { font-size: .78rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-artist { font-size: .82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 2px; }

/* horizontal scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }

/* compact list items (top charts, sidebars) */
aside .vitem, .sidebar-col .vitem { grid-template-columns: auto 112px minmax(0, 1fr); }
aside .vitem.no-rank, .sidebar-col .vitem.no-rank { grid-template-columns: 112px minmax(0, 1fr); }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vitem { display: grid; grid-template-columns: auto 128px minmax(0, 1fr); gap: 10px; align-items: center; }
.vitem.no-rank { grid-template-columns: 128px minmax(0, 1fr); }
.vitem-rank { width: 26px; text-align: center; font-weight: 800; color: var(--muted); font-size: .95rem; }
.vitem:nth-child(-n+3) .vitem-rank { color: var(--accent); }
.vitem-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.vitem-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vitem-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .875rem; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.vitem-title:hover { color: var(--accent); text-decoration: none; }
.vitem-meta { font-size: .78rem; color: var(--muted); }
.vitem.is-playing { background: var(--accent-soft); border-radius: var(--radius-sm); }
.vitem.is-playing .vitem-title { color: var(--accent); }

/* ---------------------------------------------------------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.actions-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.actions-bar::-webkit-scrollbar { display: none; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); min-height: 44px;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.radio-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-info { background: var(--surface-2); color: var(--text-2); }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------- player */
.player-wrap { position: relative; background: #000; border-radius: 0; overflow: hidden; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 16 / 9; }
.player-wrap > iframe, .player-wrap > video, .player-wrap .plyr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-wrap .plyr__video-embed { position: absolute; inset: 0; padding: 0 !important; height: 100% !important; }
.player-wrap .plyr__video-embed iframe { width: 100%; height: 100%; }
.player-wrap .plyr__poster { background-size: cover; }
.player-unavailable { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; background: center/cover no-repeat; }
.player-unavailable::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.player-unavailable p { position: relative; margin: 0; max-width: 32ch; font-weight: 600; }
.plyr { --plyr-color-main: var(--accent); --plyr-video-control-color-hover: #fff; height: 100%; }
.plyr--video .plyr__control--overlaid { background: var(--accent); }

body.cinema .site-header, body.cinema .chips-bar { opacity: .15; transition: opacity .3s; }
body.cinema .cinema-dim { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 40; }
body.cinema .player-col { position: relative; z-index: 45; }

/* ---------------------------------------------------------------- video page */
.video-head { padding-top: 14px; }
.video-head h1 { font-size: 1.2rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.video-artist { font-weight: 600; color: var(--text-2); }
.video-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--muted); margin: 6px 0 12px; }
.video-meta .dot::before { content: "·"; margin-right: 12px; }
.rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--border); line-height: 0; }
.stars button svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.stars button.on { color: var(--star); }
.stars:not([data-locked]) button:hover, .stars:not([data-locked]) button:hover ~ button { color: var(--border); }
.stars:not([data-locked]):hover button { color: var(--star); }
.stars:not([data-locked]) button:hover ~ button { color: var(--border); }
.stars[data-locked] button { cursor: default; }
.rating-info { font-size: .85rem; color: var(--muted); }
.desc { color: var(--text-2); font-size: .92rem; overflow-wrap: anywhere; }
.desc p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .8rem; }
.tag:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.share-panel { display: grid; gap: 12px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-size: .82rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ad-slot { text-align: center; margin: 16px 0; overflow: hidden; }
.ad-slot > * { max-width: 100%; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1 1 auto; border: 0; background: none; padding: 10px 8px; font-weight: 600; font-size: .875rem; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
[role="tabpanel"][hidden] { display: none; }

/* comments */
.comments { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: .875rem; }
.comment-head strong a { color: var(--text); }
.comment-body { font-size: .92rem; overflow-wrap: anywhere; color: var(--text-2); }
.comment.is-new { animation: flash 1.6s ease; border-radius: var(--radius-sm); }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }

.avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .85rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--muted); margin-right: 4px; }
.status-dot.on { background: #22c55e; }

/* ---------------------------------------------------------------- home */
.hero { display: grid; gap: 16px; }
.hero-info .eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero-info h2 { font-size: 1.25rem; margin: 4px 0; }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats-list li { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.stats-list strong { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.stats-list span { font-size: .78rem; color: var(--muted); }
.cloud { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.cloud a { color: var(--text-2); }
.cloud a:hover { color: var(--accent); }
.cloud .s0 { font-size: .8rem; } .cloud .s1 { font-size: .9rem; } .cloud .s2 { font-size: 1rem; } .cloud .s3 { font-size: 1.15rem; font-weight: 600; } .cloud .s4 { font-size: 1.3rem; font-weight: 700; }

/* ---------------------------------------------------------------- tables & lists */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.member { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.member-info { min-width: 0; }
.member-info a { font-weight: 700; color: var(--text); }
.member-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.letters a { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--text); }
.letters a.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.search-terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.search-terms li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.search-terms a { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* ---------------------------------------------------------------- pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 24px 0 8px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .875rem; }
.pagination a:hover { border-color: var(--accent); text-decoration: none; }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.pagination .gap { border: 0; background: none; min-width: 20px; }
.pagination .pg-label { display: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 32px; font-size: .875rem; color: var(--text-2); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-grid h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--text-2); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-partners { margin-top: 16px; font-size: .78rem; color: var(--muted); line-height: 1.8; }
.footer-partners a { color: var(--muted); }
.theme-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.theme-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: .78rem; cursor: pointer; color: var(--text-2); }
.theme-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.lang-form select { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: .82rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .875rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* embed page */
.embed-body { margin: 0; background: #000; }
.embed-body .player-wrap { margin: 0; height: 100vh; aspect-ratio: auto; }
.embed-brand { position: absolute; right: 10px; top: 10px; z-index: 5; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; }

/* ---------------------------------------------------------------- breakpoints */
@media (min-width: 480px) {
  .scroller { grid-auto-columns: 42%; }
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  :root { --gutter: 20px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .scroller { grid-auto-columns: 30%; }
  .player-wrap { margin: 0; border-radius: var(--radius); }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pagination .pg-label { display: inline; }
  h1 { font-size: 1.6rem; }
  .video-head h1 { font-size: 1.4rem; }
}

@media (min-width: 900px) {
  .search-form, .search-form.is-open { display: block; position: static; flex: 1; max-width: 560px; margin: 0 auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .suggest-list { left: 0; right: 0; }
  .js-search-toggle { display: none; }
  .brand { margin-right: 0; }
  .header-account { display: flex; align-items: center; gap: 8px; }
  .scroller { grid-auto-columns: 23%; }
}

@media (min-width: 1024px) {
  :root { --header-h: 64px; }
  .main-nav { display: block; border-top: 1px solid var(--border); }
  .main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--maxw); }
  .main-nav a { display: block; padding: 10px 14px; color: var(--text-2); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; }
  .main-nav a:hover { color: var(--text); text-decoration: none; }
  .main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
  .layout.with-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .layout.with-sidebar-left { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .grid.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .drawer, .chips-bar, .ad-slot { display: none !important; }
}
