:root {
  color-scheme: dark;
  --background: #111111;
  --surface: #1c1c1c;
  --surface-raised: #242424;
  --surface-hover: #2b2b2b;
  --border: #303030;
  --text: #f1f1f1;
  --muted: #a1a1a1;
  --subtle: #777777;
  --brand: #d7ed79;
  --sidebar-width: 76px;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, select { -webkit-tap-highlight-color: transparent; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #111;
  background: var(--brand);
  border-radius: 6px;
}

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  align-items: center;
  padding: 83px 8px 16px;
  background: var(--background);
  border-right: 1px solid #252525;
}

.primary-nav { display: grid; width: 100%; gap: 7px; }
.nav-link {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 3px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 500;
}
.nav-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
.nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.is-active { color: var(--brand); background: #22241d; }

.main-column { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 64px;
  align-items: center;
  gap: 30px;
  padding: 0 32px;
  background: #111111f2;
  border-bottom: 1px solid #242424;
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.topbar-brand { flex: 0 0 auto; }
.brand-word {
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.brand-period { color: var(--brand); }
.search-form {
  display: flex;
  width: min(590px, 58%);
  height: 40px;
  align-items: center;
  gap: 11px;
  margin: 0 auto;
  padding: 0 13px;
  background: #191919;
  border: 1px solid #393939;
  border-radius: 22px;
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: #777; box-shadow: 0 0 0 1px #777; }
.search-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-form input { width: 100%; min-width: 0; padding: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; }
.search-form input::placeholder { color: var(--subtle); }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-form kbd { padding: 2px 6px; color: var(--muted); background: #232323; border: 1px solid #383838; border-radius: 4px; font-size: 10px; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; margin-left: auto; }
.language-select { padding: 8px 9px; color: #d4d4d4; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 700; }
.language-select:hover { background: var(--surface); }
.language-select:focus-visible { outline: 2px solid #aebd72; outline-offset: 2px; }
.language-select option { color: var(--text); background: var(--surface); }
.menu-toggle { display: none; }
.icon-button { color: var(--text); background: transparent; border: 0; cursor: pointer; }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

main { max-width: 1900px; margin: 0 auto; padding: 0 34px; }
.catalog-page { padding-top: 21px; }
.catalog-header { display: flex; min-height: 51px; align-items: center; }
.catalog-header h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -.65px; }
.catalog-filters {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
  scrollbar-width: none;
}
.catalog-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  min-height: 33px;
  flex: 0 0 auto;
  padding: 0 13px;
  color: #e4e4e4;
  background: #272727;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { background: #383838; }
.filter-chip.is-active { color: #161616; background: var(--brand); font-weight: 700; }
.filter-divider { width: 1px; height: 23px; flex: 0 0 auto; margin: 0 2px; background: #3a3a3a; }
.video-section { padding-top: 16px; }
.video-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.video-section-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.catalog-count { color: var(--subtle); font-size: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 17px; }
.video-card { min-width: 0; }
.video-thumbnail { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #242424; border-radius: 11px; }
.video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-duration { position: absolute; right: 7px; bottom: 7px; padding: 3px 5px; color: white; background: #111111e8; border-radius: 4px; font-size: 10px; font-variant-numeric: tabular-nums; }
.video-card-details { display: flex; gap: 11px; padding-top: 11px; }
.creator-avatar { width: 36px; height: 36px; flex: 0 0 auto; object-fit: cover; background: #303030; border-radius: 50%; }
.video-card-copy { min-width: 0; }
.video-card-copy h3 { display: -webkit-box; overflow: hidden; margin: 0 0 5px; color: #ededed; font-size: 13px; font-weight: 600; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.creator-name, .video-meta { overflow: hidden; margin: 0; color: #a0a0a0; font-size: 11px; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.video-meta { color: #858585; font-size: 10px; }
.empty-state { display: flex; min-height: 156px; align-items: center; gap: 17px; padding: 22px 24px; background: #191919; border: 1px solid #292929; border-radius: 10px; }
.empty-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #c3d783; background: #292b24; border-radius: 9px; }
.empty-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.empty-icon svg path { fill: currentColor; stroke: none; }
.empty-copy h3 { margin: 0 0 5px; color: #e6e6e6; font-size: 13px; font-weight: 600; }
.empty-copy p { max-width: 450px; margin: 0; color: #999; font-size: 11px; line-height: 1.65; }
.search-feedback { margin: 0 0 15px; padding: 10px 13px; color: #c6c6c6; background: #1d1d1d; border: 1px solid #333; border-radius: 7px; font-size: 11px; line-height: 1.6; }
.footer { display: flex; min-height: 57px; align-items: center; justify-content: flex-end; color: #777; font-size: 9px; }
.footer-credit { letter-spacing: 1px; }
.footer-credit strong { color: #aaa; }
