:root {
  color-scheme: dark;
  --canvas: #101013;
  --surface: #1a1a20;
  --line: #30303b;
  --text: #f4f3f7;
  --muted: #aaa9b7;
  --accent: #d4f47c;
  --accent-ink: #1c2910;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.header { border-bottom: 1px solid #222229; }
.head-inner, .shell { width: min(calc(100% - 4rem), 86rem); margin-inline: auto; }
.head-inner { min-height: 4.7rem; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 850; letter-spacing: -.07em; font-size: 1.58rem; white-space: nowrap; }
.brand-dot { color: var(--accent); margin-left: -.38rem; }
.brand-icon { width: 1.64rem; height: 1.64rem; display: inline-grid; place-items: center; border-radius: .48rem; background: var(--accent); }
.brand-icon::before, .play-icon::before { content: ""; border-top: .29rem solid transparent; border-bottom: .29rem solid transparent; border-left: .45rem solid var(--accent-ink); margin-left: .1rem; }
.nav-link { font-size: .94rem; color: var(--muted); }
.nav-link:hover { color: var(--text); }
.search { display: flex; align-items: center; padding: 0 .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; gap: .65rem; width: min(100%, 24rem); margin-inline: auto; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); height: 2.62rem; }
.search input:focus-visible { outline-offset: -2px; }
.search-icon { width: .82rem; height: .82rem; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; flex: 0 0 .82rem; }
.search-icon::after { content: ""; position: absolute; width: .35rem; height: 1.5px; background: var(--muted); top: .68rem; left: .57rem; rotate: 45deg; }
.actions { display: flex; gap: .6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.65rem; padding: .56rem .9rem; white-space: nowrap; border: 1px solid transparent; border-radius: .65rem; font-weight: 680; font-size: .9rem; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { background: #e2f8a3; }
.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.secondary:hover { background: var(--surface); }

.hero { display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; min-height: clamp(24rem, 35vw, 36rem); margin-top: 1.55rem; border-radius: 1.15rem; background: #262f3b url("/images/coast.webp") center 55% / cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101219ed 0%, #101219b8 30%, #10121930 62%, #1012190d 100%), linear-gradient(0deg, #10121986, transparent 50%); }
.hero-content { padding: clamp(1.5rem, 5vw, 4.75rem); max-width: 40rem; }
.feature-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--accent); font-weight: 650; font-size: .88rem; }
.hero h1 { font-size: clamp(2.8rem, 6.25vw, 6.2rem); letter-spacing: -.075em; font-weight: 800; line-height: .99; margin: .62rem 0 1rem; }
.hero-content > p:not(.feature-meta) { color: #dedee7; line-height: 1.5; max-width: 24rem; margin: 0 0 1.4rem; }
.watch { padding-inline: 1.05rem; }
.play-icon { display: inline-grid; place-items: center; width: .85rem; }

.catalog { margin-block: 2.3rem 4rem; scroll-margin-top: 1rem; }
.catalog h2, dialog h2 { margin: 0 0 .9rem; font-size: clamp(1.58rem, 3vw, 2.25rem); letter-spacing: -.055em; line-height: 1.12; }
.filter { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.filter button { border: 1px solid var(--line); border-radius: 99rem; color: var(--muted); background: var(--surface); padding: .47rem .85rem; font-size: .9rem; font-weight: 570; }
.filter button:hover { color: var(--text); }
.filter button[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.video-card { min-width: 0; padding: 0; background: none; border: 0; color: var(--text); text-align: left; border-radius: .7rem; }
.cover, .preview-cover { display: block; aspect-ratio: 16 / 9; position: relative; background: var(--surface) center / cover no-repeat; border-radius: .7rem; }
.video-card:hover .cover { box-shadow: 0 0 0 2px var(--accent); }
.duration { position: absolute; right: .55rem; bottom: .55rem; border-radius: .28rem; padding: .16rem .35rem; background: #0c0c10e9; color: #fff; font-size: .78rem; font-variant-numeric: tabular-nums; }
.video-name { display: block; margin-top: .65rem; font-weight: 700; line-height: 1.3; }
.video-meta { display: block; margin-top: .22rem; color: var(--muted); font-size: .86rem; }
.empty { color: var(--muted); padding: 1.5rem 0; }

dialog { width: min(100% - 1.5rem, 31rem); padding: 0; border-radius: 1.1rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: 0 1.3rem 5rem #0007; }
dialog::backdrop { background: #09090caa; backdrop-filter: blur(5px); }
.dialog-inner { position: relative; padding: clamp(1.1rem, 4vw, 2rem); }
.close { position: absolute; z-index: 1; top: .7rem; right: .7rem; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; line-height: 1; background: #111116; color: var(--text); }
.close:hover { background: #2b2b35; }
.modal-mark { width: 2.45rem; height: 2.45rem; margin-bottom: .9rem; }
.check-status, #video-description { color: var(--muted); line-height: 1.5; margin: .5rem 0 1.2rem; }
#local-check label { display: block; margin-bottom: .5rem; font-weight: 650; }
.answer-row { display: flex; gap: .55rem; }
.answer-row input { width: 100%; min-width: 0; min-height: 2.65rem; border: 1px solid var(--line); background: var(--canvas); color: var(--text); border-radius: .65rem; padding: .48rem .65rem; }
#turnstile:empty { display: none; }
.preview-cover { margin-bottom: 1.1rem; }

@media (max-width: 68rem) { .grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 55rem) {
  .nav-link { display: none; }
  .head-inner, .shell { width: min(calc(100% - 2rem), 86rem); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
}
@media (max-width: 38rem) {
  .head-inner { flex-wrap: wrap; justify-content: space-between; padding-block: .75rem; gap: .7rem; }
  .search { order: 2; width: 100%; }
  .header .button { min-height: 2.45rem; padding-inline: .6rem; font-size: .86rem; }
  .hero { min-height: 25rem; align-items: end; margin-top: 1rem; }
  .hero::before { background: linear-gradient(0deg,#101219f7, #101219b9 45%, #10121921 100%); }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-content { padding: 1.3rem; }
  .catalog { margin-top: 1.65rem; }
  .grid { gap: 1rem .75rem; }
}

.image-coast { background-image: url("/images/coast.webp"); }
.image-city { background-image: url("/images/city.webp"); }
.image-coffee { background-image: url("/images/coffee.webp"); }
.image-stars { background-image: url("/images/stars.webp"); }
.image-music { background-image: url("/images/music.webp"); }
