/*
Theme Name: VelvetLoop
Theme URI: http://127.0.0.1:8787/
Author: VelvetLoop
Description: A fast, dark video discovery theme for the VelvetLoop prototype.
Version: 0.3.1
Text Domain: velvetloop
*/

:root {
  --vl-bg: #09090b;
  --vl-surface: #121217;
  --vl-surface-2: #1a1a22;
  --vl-text: #f8f7fb;
  --vl-muted: #a5a3ad;
  --vl-border: rgba(255, 255, 255, 0.09);
  --vl-accent: #d946ef;
  --vl-accent-2: #f43f5e;
  --vl-radius: 18px;
  --vl-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vl-bg);
  color: var(--vl-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.vl-shell { width: min(calc(100% - 40px), var(--vl-width)); margin-inline: auto; }
.vl-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--vl-border);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(18px);
}
.vl-header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.vl-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.26rem; font-weight: 850; letter-spacing: -0.03em; }
.vl-brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vl-accent), var(--vl-accent-2));
  box-shadow: 0 8px 28px rgba(217, 70, 239, 0.28);
}
.vl-nav { margin-left: auto; }
.vl-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.vl-nav a { color: var(--vl-muted); font-size: 0.94rem; font-weight: 650; }
.vl-nav a:hover, .vl-nav .current-menu-item > a { color: var(--vl-text); }
.vl-search-form { display: flex; min-width: 260px; }
.vl-search-form input {
  width: 100%;
  border: 1px solid var(--vl-border);
  border-radius: 999px;
  background: var(--vl-surface);
  color: var(--vl-text);
  padding: 10px 16px;
  outline: none;
}
.vl-search-form input:focus { border-color: rgba(217, 70, 239, 0.65); }

.vl-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 94px;
  border-bottom: 1px solid var(--vl-border);
  background:
    radial-gradient(circle at 78% 22%, rgba(244, 63, 94, 0.17), transparent 34%),
    radial-gradient(circle at 20% 10%, rgba(217, 70, 239, 0.17), transparent 32%);
}
.vl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.vl-hero-content { position: relative; z-index: 1; max-width: 780px; }
.vl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #f0abfc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vl-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.vl-hero h1 { max-width: 720px; margin: 0; font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.94; letter-spacing: -0.065em; }
.vl-gradient-text { background: linear-gradient(100deg, #f0abfc, #fb7185); color: transparent; background-clip: text; }
.vl-hero p { max-width: 620px; margin: 26px 0 0; color: var(--vl-muted); font-size: 1.08rem; }
.vl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.vl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; }
.vl-button-primary { background: linear-gradient(100deg, var(--vl-accent), var(--vl-accent-2)); box-shadow: 0 12px 34px rgba(217, 70, 239, 0.2); }
.vl-button-secondary { border: 1px solid var(--vl-border); background: rgba(255,255,255,.04); }

.vl-section { padding: 72px 0; }
.vl-section + .vl-section { border-top: 1px solid var(--vl-border); }
.vl-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.vl-section-head h2, .vl-page-title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.045em; }
.vl-section-head p, .vl-page-intro { margin: 6px 0 0; color: var(--vl-muted); }
.vl-text-link { color: #f0abfc; font-weight: 750; }
.vl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.vl-card { min-width: 0; }
.vl-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius);
  background:
    radial-gradient(circle at 72% 28%, rgba(244,63,94,.5), transparent 30%),
    linear-gradient(145deg, #26202d, #111117 56%, #24111b);
}
.vl-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vl-card:hover .vl-card-media img { transform: scale(1.035); }
.vl-card-preview-frame,
.vl-card-preview-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .18s ease;
}
.vl-card.is-previewing .vl-card-preview-frame,
.vl-card.is-previewing .vl-card-preview-video { opacity: 1; }
.vl-card.is-previewing .vl-play { opacity: 0; }
.vl-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(9,9,11,.86);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: opacity .18s ease;
}
.vl-play::before { content: ""; margin-left: 3px; border-left: 10px solid white; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.vl-duration { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 8px; border-radius: 8px; background: rgba(9,9,11,.82); font-size: .75rem; font-weight: 750; }
.vl-card h3 { margin: 13px 0 5px; font-size: 1rem; line-height: 1.35; letter-spacing: -0.015em; }
.vl-card-meta { display: flex; gap: 10px; color: var(--vl-muted); font-size: .82rem; }
.vl-card-placeholder .vl-card-media::after { content: "Ready for import"; position: absolute; right: 14px; top: 14px; color: rgba(255,255,255,.65); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.navigation.pagination { margin-top: 48px; }
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.navigation.pagination .page-numbers {
  min-width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--vl-border);
  border-radius: 13px;
  background: var(--vl-surface);
  color: var(--vl-muted);
  font-size: .92rem;
  font-weight: 750;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.navigation.pagination a.page-numbers:hover {
  color: var(--vl-text);
  border-color: rgba(217, 70, 239, .6);
  transform: translateY(-2px);
}
.navigation.pagination .page-numbers.current {
  display: inline-flex !important;
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--vl-accent), var(--vl-accent-2));
  box-shadow: 0 10px 24px rgba(217, 70, 239, .22);
}
.navigation.pagination .page-numbers.dots {
  min-width: 28px;
  padding-inline: 4px;
  border-color: transparent;
  background: transparent;
}

@media (max-width: 980px) {
  .navigation.pagination .vl-page-slot-8,
  .navigation.pagination .vl-page-slot-9,
  .navigation.pagination .vl-page-slot-10 { display: none; }
}

@media (max-width: 720px) {
  .navigation.pagination .vl-page-slot-6,
  .navigation.pagination .vl-page-slot-7 { display: none; }
}

@media (max-width: 540px) {
  .navigation.pagination .vl-page-slot-4,
  .navigation.pagination .vl-page-slot-5 { display: none; }
}

@media (max-width: 420px) {
  .navigation.pagination .vl-page-slot-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vl-card-preview-frame,
  .vl-card-preview-video { display: none !important; }
}

.vl-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vl-category-group + .vl-category-group { margin-top: 54px; }
.vl-category {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius);
  background: linear-gradient(135deg, rgba(217,70,239,.12), rgba(244,63,94,.04) 52%, var(--vl-surface));
}
.vl-category span { color: var(--vl-muted); font-size: .83rem; }
.vl-category strong { margin-top: 3px; font-size: 1.15rem; }

.vl-page-header { padding: 70px 0 32px; }
.vl-content { max-width: 820px; padding: 20px 0 80px; }
.vl-content a { color: #f0abfc; text-decoration: underline; text-underline-offset: 3px; }
.vl-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 36px;
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius);
  background: #030304;
}
.vl-player iframe, .vl-player video { width: 100%; height: 100%; border: 0; }
.vl-player-fullscreen-toggle {
  position: absolute;
  z-index: 20;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: #fff;
  background: rgba(3, 3, 4, .82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.vl-player-fullscreen-toggle:hover,
.vl-player-fullscreen-toggle:focus-visible {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(22, 22, 28, .96);
  outline: none;
  transform: translateY(-1px);
}
.vl-player-fullscreen-toggle svg { width: 21px; height: 21px; fill: currentColor; }
.vl-player-fullscreen-toggle .vl-icon-exit { display: none; }
.vl-player.is-vl-fullscreen .vl-player-fullscreen-toggle .vl-icon-enter { display: none; }
.vl-player.is-vl-fullscreen .vl-player-fullscreen-toggle .vl-icon-exit { display: block; }
.vl-player:fullscreen,
.vl-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
}
.vl-player-empty { height: 100%; display: grid; place-items: center; color: var(--vl-muted); text-align: center; padding: 30px; }

.vl-footer { border-top: 1px solid var(--vl-border); background: #070708; }
.vl-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; padding: 54px 0 28px; }
.vl-footer-copy { max-width: 520px; color: var(--vl-muted); }
.vl-footer-links { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: 12px 22px; color: var(--vl-muted); font-size: .9rem; }
.vl-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--vl-border); color: #777580; font-size: .82rem; }

@media (max-width: 980px) {
  .vl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vl-search-form { display: none; }
}
@media (max-width: 720px) {
  .vl-shell { width: min(calc(100% - 28px), var(--vl-width)); }
  .vl-header-inner { min-height: 64px; }
  .vl-nav { display: none; }
  .vl-hero { padding: 74px 0 68px; }
  .vl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vl-category-grid { grid-template-columns: 1fr; }
  .vl-footer-inner { grid-template-columns: 1fr; }
  .vl-footer-links { justify-content: start; }
}
@media (max-width: 460px) {
  .vl-grid { grid-template-columns: 1fr; }
  .vl-section { padding: 54px 0; }
  .vl-section-head { align-items: start; flex-direction: column; }
  .navigation.pagination .nav-links { gap: 8px; }
  .navigation.pagination .page-numbers { min-width: 40px; height: 40px; padding-inline: 11px; }
}
