:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --border: #1f1f1f;
  --border-strong: #333333;
  --text: #ededed;
  --muted: #a1a1a1;
  --faint: #6b6b6b;
  --accent: #ff6a00;
  --accent-soft: rgba(255, 106, 0, 0.12);
  --primary-bg: #ededed;
  --primary-text: #0a0a0a;
  --grid-line: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --header-h: 56px;
  --max-w: 1280px;
  --font: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #f5f5f5;
  --border: #eaeaea;
  --border-strong: #cfcfcf;
  --text: #171717;
  --muted: #666666;
  --faint: #8f8f8f;
  --primary-bg: #171717;
  --primary-text: #ffffff;
  --grid-line: rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--mono);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: transform 0.25s ease;
}

.nav-hidden .reel-col {
  top: 24px;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 7px solid #000;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transform: translateX(1px);
}

.logo:has(.logo-img) {
  gap: 0;
  margin: 0;
  padding: 0;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
}

.header-inner:has(.logo-img) {
  gap: 16px;
}

.wordmark span {
  color: var(--accent);
}

.divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
  transform: rotate(18deg);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav a.active {
  color: var(--text);
}

.nav .count {
  margin-left: 2px;
}

.nav a.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  position: relative;
  width: 260px;
}

.search input {
  width: 100%;
  height: 36px;
  padding: 0 46px 0 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search input::placeholder {
  color: var(--faint);
}

.search input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  pointer-events: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--primary-bg);
  color: var(--primary-text);
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  opacity: 1;
  border-color: var(--border-strong);
}

.count[hidden] {
  display: none;
}

.count {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
}

/* Toolbar / tabs */
.toolbar {
  display: grid;
  gap: 10px;
  padding: 14px 0 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.chips {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip.active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.select {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  animation: fadeUp 0.4s ease both;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--surface);
}

.thumb img,
.thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .thumb img {
  transform: scale(1.04);
}

.thumb video {
  opacity: 0;
  transition: opacity 0.3s;
}

.thumb video.ready {
  opacity: 1;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.badge.top-left {
  left: 10px;
  top: 10px;
}

.badge.top-right {
  right: 10px;
  top: 10px;
}

.badge.bottom-left {
  left: 10px;
  bottom: 10px;
}

.badge.live {
  background: var(--accent);
  border-color: transparent;
  color: #000;
  font-weight: 600;
}

.badge.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  animation: blink 1.2s steps(2) infinite;
}

.heart-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.card:hover .heart-btn,
.heart-btn.on {
  opacity: 1;
}

.heart-btn.on {
  background: var(--accent);
  border-color: transparent;
  color: #000;
}

.heart-btn.on svg {
  fill: currentColor;
}

.heart-btn.pop {
  animation: pop 0.3s ease;
}

.card-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
}

.card-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.meta .creator-name {
  color: var(--muted);
}

/* Skeleton */
.skeleton {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 9 / 16;
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--surface) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 10px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}

.page-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty h3 {
  color: var(--text);
  margin: 0 0 6px;
}

/* Page header */
.page-hero {
  padding: 48px 0 24px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-bottom: 14px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

/* Post */
.watch {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  padding: 32px 0 48px;
  align-items: start;
  border-bottom: 1px solid var(--border);
}

.reel-col {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  transition: top 0.25s ease;
}

.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - var(--header-h) - 64px);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.08), 0 40px 80px -40px rgba(255, 106, 0, 0.35);
}

.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  accent-color: var(--accent);
}

.unmute {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
}

.unmute[hidden] {
  display: none;
}

.watch-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}

.stat {
  padding: 14px 16px;
  background: var(--bg-2);
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.creator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 180deg, var(--accent), #ffb37a, var(--accent));
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
}

.actions {
  display: flex;
  gap: 8px;
}

.action.on {
  border-color: var(--accent);
  color: var(--accent);
}

.action.on svg {
  fill: currentColor;
}

.section-label {
  margin: 32px 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.description {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  animation: fadeUp 0.4s ease both;
  transition: border-color 0.2s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  border-color: var(--accent);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 18px;
}

.more-head h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.more-head a {
  color: var(--muted);
  font-size: 0.875rem;
}

.more-head a:hover {
  color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lb-img {
  max-width: min(92vw, 720px);
  max-height: 84vh;
  border-radius: 12px;
  border: 1px solid #222;
  object-fit: contain;
}

.lb-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #ededed;
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color 0.15s, color 0.15s;
}

.lb-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lb-close {
  top: 20px;
  right: 20px;
  font-size: 0.9rem;
}

.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-count {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #a1a1a1;
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cat-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  transition: border-color 0.2s;
}

.cat-card:hover {
  border-color: var(--accent);
}

.cat-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.cat-grid.small .cat-card {
  aspect-ratio: 3 / 4;
  padding: 16px;
}

.cat-grid.small .cat-card h3 {
  font-size: 1.1rem;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85));
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.cat-card p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.8;
}

/* Prose pages */
.prose-wrap {
  max-width: 720px;
  padding: 0 0 60px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 28px;
}

.panel h2 {
  margin: 28px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.panel h2:first-child {
  margin-top: 0;
}

.panel p,
.panel li {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.875rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.toast.show {
  opacity: 1;
  transform: none;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 24px;
}

.footer-inner p {
  color: var(--muted);
  max-width: 340px;
  font-size: 0.875rem;
}

.footer-inner h4 {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--text);
}

.copyright {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50e3c2;
}

.to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

@keyframes pop {
  50% {
    transform: scale(1.2);
  }
}

@media (max-width: 1180px) {
  .search {
    width: 190px;
  }
}

@media (max-width: 900px) {
  .watch {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .reel-col {
    position: static;
  }

  .reel {
    max-width: 420px;
  }
}

@media (max-width: 1000px) {
  .menu-btn {
    display: grid;
  }

  .divider {
    display: none;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .search {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .result-count {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 14px;
  }

  .logo-img {
    height: 38px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 10px;
  }

  .heart-btn {
    opacity: 1;
  }

  .toolbar .select {
    display: none;
  }
}

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