:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --ink: #0f172a;
  --bg: #f8fafc;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --glow: 0 0 0 1px rgba(37, 99, 235, 0.16), 0 10px 30px rgba(37, 99, 235, 0.16);
  --radius: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(6, 182, 212, 0.16), transparent 55%),
    radial-gradient(640px 360px at 70% 18%, rgba(124, 58, 237, 0.1), transparent 60%),
    var(--bg);
  color: var(--ink);
  min-width: 320px;
}
h1, h2, .block-title, .hero h1, .hero h2, .player-meta h1 {
  font-family: Sora, Inter, sans-serif;
}
button, .chip, .partner, .lang, .pager, .search button, .browse > button {
  font-family: "Space Grotesk", Inter, sans-serif;
}
img { max-width: 100%; }
a { color: var(--blue); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.sr, .skip { position: absolute; left: -999px; top: auto; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 40; border-radius: 10px; }
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; max-width: 1440px; margin: 0 auto;
}
.burger, .browse > button, .search button, .shift, .chip, .lang { min-height: 44px; min-width: 44px; }
.burger {
  width: 48px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ink); display: grid; gap: 5px; place-content: center; padding: 12px;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35), 0 8px 24px rgba(37, 99, 235, 0.28);
}
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; }
.search { display: flex; flex: 1; gap: 8px; min-width: 0; }
.search input {
  flex: 1; min-width: 0; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 999px;
  padding: 0 16px; font: inherit; color: var(--ink);
  background: var(--glass-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}
.search input::placeholder { color: #94a3b8; }
.search button, .browse > button {
  border: 0; border-radius: 999px; color: #fff; font-weight: 600; letter-spacing: 0.01em;
  padding: 0 18px; cursor: pointer;
  background: linear-gradient(100deg, var(--blue), var(--cyan) 70%, var(--violet));
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32), 0 0 18px rgba(6, 182, 212, 0.25);
}
.search button:hover, .browse > button:hover { filter: brightness(1.06); }
.browse { position: relative; }
.browse div, .menu {
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow), 0 0 0 1px rgba(37, 99, 235, 0.05);
}
.browse div {
  position: absolute; right: 0; top: calc(100% + 8px);
  border-radius: 16px; min-width: 190px; padding: 8px; display: grid;
}
.browse div[hidden] { display: none; }
.browse a, .menu a { text-decoration: none; color: var(--ink); font-weight: 600; }
.browse a { padding: 10px 12px; border-radius: 12px; }
.browse a:hover, .menu a:hover, .fold-body a:hover { background: rgba(37, 99, 235, 0.08); }
.lang {
  display: grid; place-items: center; padding: 0 14px; border-radius: 999px;
  border: 1px dashed rgba(37, 99, 235, 0.35); color: var(--muted); font-size: .85rem;
  background: rgba(255, 255, 255, 0.45);
}
.menu {
  position: absolute; left: 12px; top: 72px; width: min(420px, calc(100vw - 24px));
  border-radius: 22px; padding: 12px; max-height: min(78vh, 720px); overflow: auto;
}
.menu-home, .menu-random, .fold > button, .fold-body a {
  display: flex; align-items: center; width: 100%; text-align: left; gap: 8px;
  min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 0;
  background: transparent; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.fold > button { justify-content: space-between; font-family: "Space Grotesk", Inter, sans-serif; }
.fold > button::after { content: "+"; color: var(--blue); font-weight: 700; }
.fold > button[aria-expanded="true"]::after { content: "–"; }
.countries a em { margin-left: auto; color: var(--muted); font-style: normal; }
main { max-width: 1440px; margin: 0 auto; padding: 28px 12px 48px; }
.hero { padding: 8px 4px 4px; }
.hero h1 {
  margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -0.045em;
  line-height: 1.05; color: var(--ink);
}
.hero h2, .hero p {
  margin: 0; max-width: 46rem; color: var(--muted);
  font-family: Inter, sans-serif; font-weight: 500; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.55;
}
.block-title { margin: 28px 0 14px; color: var(--ink); font-size: 1.35rem; letter-spacing: -0.03em; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #e2e8f0; }
.card-media picture:first-child, .card-media picture:first-child img, .card-media > img:first-child {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-media picture:first-child { position: absolute; inset: 0; }
.partner {
  position: absolute; left: 8px; bottom: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  color: #fff; border-radius: 999px; padding: 4px 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
  backdrop-filter: blur(8px);
}
.flag, .flag img {
  position: absolute; right: 8px; bottom: 8px; width: 22px; height: 16px; object-fit: cover;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .85);
}
.flag img { position: static; box-shadow: none; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 10px 12px 12px; }
.name { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.views { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.tagbar { display: flex; align-items: center; gap: 8px; }
.tag-window { overflow: hidden; flex: 1; }
.tag-track { display: flex; gap: 8px; width: calc(15 / var(--visible, 2) * 100%); transition: transform .2s ease; }
.chip {
  flex: 1 1 0; border: 1px solid rgba(255, 255, 255, 0.9); cursor: pointer;
  background: var(--glass-strong); border-radius: 999px; font-weight: 600; color: var(--ink);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.chip.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(100deg, var(--blue), var(--violet));
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}
.shift {
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 14px; background: var(--glass-strong);
  color: var(--ink); font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow);
}
.shift:disabled { opacity: .35; cursor: default; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pager a, .pager span {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px;
  border-radius: 12px; text-decoration: none; color: var(--ink);
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.9);
}
.pager [aria-current="page"] {
  background: var(--ink); color: #fff; border-color: transparent;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
}
.pager .off { color: #94a3b8; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; }
.empty, .player-error { padding: 24px; text-align: center; color: var(--muted); background: var(--glass-strong); border-radius: var(--radius); }
.skeleton {
  height: 220px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.08));
  background-size: 200% 100%; animation: shine 1.2s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.site-footer {
  background:
    radial-gradient(600px 180px at 10% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(500px 160px at 90% 20%, rgba(6, 182, 212, 0.22), transparent 55%),
    var(--ink);
  color: #e2e8f0; padding: 36px 16px 48px;
}
.site-footer p { max-width: 900px; margin: 0 auto 16px; line-height: 1.6; }
.faq { max-width: 900px; margin: 0 auto 12px; }
.faq h2 { margin: 0 0 10px; }
.faq details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; margin: 8px 0; padding: 8px 14px;
  backdrop-filter: blur(10px);
}
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.fine { font-size: .85rem; color: #94a3b8; }
.player-body {
  background:
    radial-gradient(700px 280px at 50% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
    var(--ink);
  color: #fff;
}
.player-top, .player-wrap { max-width: 1100px; margin: 0 auto; padding: 12px; }
.player-top { display: flex; justify-content: space-between; align-items: center; }
.back { color: #fff; font-weight: 700; text-decoration: none; }
.stage {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.45), 0 0 40px rgba(37, 99, 235, 0.35);
}
.stage video { width: 100%; height: 100%; background: #000; }
.player-error { position: absolute; inset: 0; display: grid; place-items: center; }
.player-error[hidden] { display: none; }
.player-meta h1 { margin: 16px 0 4px; letter-spacing: -0.03em; }
@media (min-width: 640px) {
  .grid-6, .grid-4 { grid-template-columns: 1fr 1fr; }
  .logo img { height: 58px; }
}
@media (min-width: 900px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .bar { gap: 16px; padding: 12px 20px; }
}
@media (max-width: 720px) {
  .browse, .lang { display: none; }
  .search button { padding: 0 12px; }
}
