/**
 * BJJ Tube — Main Stylesheet
 *
 * Source: Tailwind CSS 3.4.1 utility classes → plain CSS
 * Colors: HSL variables from src/app/globals.css
 * Fonts: Oswald (headings) + Roboto (body) — Google Fonts
 * Theme: Dark
 *
 * Brief Section 7: thumb-block pattern
 * Brief Section 8: SEO-friendly semantic HTML
 */

/* ============================================================
   CSS Variables (from source globals.css)
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: hsl(240 10% 3.9%);
  --fg: hsl(0 0% 98%);
  --card: hsl(240 10% 5%);
  --card-fg: hsl(0 0% 98%);
  --primary: hsl(0 72% 51%);         /* Red — #ef4444 equivalent */
  --primary-fg: hsl(0 85.7% 97.3%);
  --secondary: hsl(240 4% 16%);      /* Dark gray */
  --secondary-fg: hsl(0 0% 98%);
  --muted: hsl(240 4% 16%);
  --muted-fg: hsl(240 5% 64.9%);
  --accent: hsl(0 72% 51%);
  --accent-fg: hsl(0 85.7% 97.3%);
  --destructive: hsl(0 62.8% 30.6%);
  --border: hsl(240 4% 16%);
  --input: hsl(240 4% 16%);
  --ring: hsl(0 72% 51%);

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --header-height: 60px;
  --container-max: 1280px;
  --radius: 8px;
  --radius-sm: 6px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

img, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
}

/* ============================================================
   Header / Navbar
   Source: src/components/Navbar.tsx
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo:hover { color: var(--fg); }
.logo--vault { font-size: 1.25rem; letter-spacing: -0.025em; }
@media (min-width: 1200px) {
  .logo--vault { font-size: 1.5rem; }
}

/* Desktop nav links */
.nav-desktop {
  display: none;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--fg); background: var(--secondary); }
.nav-link.active { color: var(--fg); }

.nav-more { position: relative; }
.nav-more > summary { cursor: pointer; list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ' ▾'; }
.nav-more__links {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 170px;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
}
.nav-more__links a { display: block; padding: 0.5rem 0.75rem; font-size: 0.875rem; border-radius: var(--radius-sm); }
.nav-more__links a:hover, .nav-more__links a:focus-visible { background: var(--secondary); color: var(--fg); }

.nav-desktop-only { display: none !important; }
@media (min-width: 768px) {
  .nav-desktop-only { display: inline-flex !important; }
}

/* Search form */
.search-form {
  display: none;
  flex: 1;
  max-width: 360px;
  position: relative;
}
@media (min-width: 768px) {
  .search-form { display: flex; }
}

.search-input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--muted-fg); }

.search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-fg);
  padding: 0;
  display: flex;
}
.search-btn:hover { color: var(--fg); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Icon button (notification bell, etc.) */
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--muted-fg);
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--fg); background: var(--secondary); }

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* User menu */
.user-menu { position: relative; }

.user-menu-trigger {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 60;
  overflow: hidden;
}
.user-dropdown.open,
.user-dropdown.is-open { display: block; }

.user-dropdown-header { padding: 0.75rem 1rem; }
.user-dropdown-email { font-size: 0.875rem; font-weight: 500; color: var(--fg); }
.user-dropdown-username { font-size: 0.75rem; color: var(--muted-fg); }

.user-dropdown-divider { height: 1px; background: var(--border); }

.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-align: left;
  background: none;
  border: none;
  transition: color 0.15s, background-color 0.15s;
}
.user-dropdown-item:hover { color: var(--fg); background: var(--secondary); }
.user-dropdown-signout:hover { color: var(--primary); }

.user-dropdown-logout { margin: 0; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 40;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }

.mobile-menu-inner { padding: 1rem; }

.mobile-search {
  margin-bottom: 1.5rem;
}
.mobile-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 1rem;
}

.mobile-menu-section { margin-bottom: 1.5rem; }
.mobile-menu-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}
.mobile-menu-link {
  display: block;
  padding: 0.625rem 0.5rem;
  font-size: 1rem;
  color: var(--fg);
  border-radius: var(--radius-sm);
}
.mobile-menu-link:hover { background: var(--secondary); }

.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 0.375rem 1rem; font-size: 0.875rem; }
.btn-md { padding: 0.625rem 1.25rem; font-size: 1rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: hsl(0 72% 44%); color: var(--primary-fg); }

.btn-secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn-secondary:hover { background: hsl(240 4% 22%); color: var(--secondary-fg); }

.btn-destructive { background: var(--destructive); color: var(--fg); }
.btn-destructive:hover { background: hsl(0 62.8% 25%); }

.btn-ghost { background: transparent; color: var(--muted-fg); }
.btn-ghost:hover { background: var(--secondary); color: var(--fg); }

/* BEM double-dash aliases (templates use -- notation) */
.btn--sm { padding: 0.375rem 1rem; font-size: 0.875rem; }
.btn--md { padding: 0.625rem 1.25rem; font-size: 1rem; }
.btn--lg { padding: 0.75rem 1.5rem; font-size: 1.125rem; }
.btn--full { display: flex; width: 100%; justify-content: center; }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: hsl(0 72% 44%); color: var(--primary-fg); }
.btn--primary:disabled,
.btn--primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn--secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn--secondary:hover { background: hsl(240 4% 22%); color: var(--secondary-fg); }
.btn--ghost { background: transparent; color: var(--muted-fg); }
.btn--ghost:hover { background: var(--secondary); color: var(--fg); }

/* ============================================================
   Main Content
   ============================================================ */
.site-main {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: 1.5rem 0;
}

/* ============================================================
   Footer
   Source: src/components/Footer.tsx
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
}

.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.5; }

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.footer-col a { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

/* ============================================================
   Video Grid — Thumb Block Pattern
   Brief Section 7: server-rendered thumbnail grid
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}

.thumb-block { display: block; }
.thumb-block:hover .thumb-title { color: var(--primary); }

.thumb-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.625rem;
}
.thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 3px;
}

.thumb-meta { display: flex; gap: 0.625rem; }
.thumb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  overflow: hidden;
}
.thumb-avatar img { width: 100%; height: 100%; object-fit: cover; }

.thumb-info { flex: 1; min-width: 0; }
.thumb-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.thumb-channel {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}
.thumb-stats {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

/* ============================================================
   Section Headings
   ============================================================ */
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-heading a { transition: color 0.2s; }
.section-heading a:hover { color: var(--primary); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--muted-fg);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--fg);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--primary); }
.form-control::placeholder { color: var(--muted-fg); }
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px hsl(240 10% 3.9%) inset !important;
  -webkit-text-fill-color: hsl(0 0% 98%) !important;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

.error-msg {
  background: hsl(0 50% 12%);
  border: 1px solid var(--primary);
  color: hsl(0 90% 80%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.success-msg {
  background: hsl(142 50% 10%);
  border: 1px solid hsl(142 72% 40%);
  color: hsl(142 90% 75%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
  transition: background-color 0.2s, color 0.2s;
}
.pagination a:hover { background: var(--secondary); color: var(--fg); }
.pagination .active { background: var(--primary); color: var(--primary-fg); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   Badges / Tags
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--muted-fg);
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.tag:hover { background: hsl(240 4% 22%); color: var(--fg); }

/* ============================================================
   Utilities
   ============================================================ */
.text-muted { color: var(--muted-fg); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md-show { display: block; }
  .md-flex { display: flex; }
  .md-hidden { display: none; }
}

/* ============================================================
   Hero Section (Homepage)
   Source: HomepageClient.tsx hero section
   ============================================================ */
.hero {
  position: relative;
  margin-bottom: 2rem;
}
.hero__link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  max-height: 480px;
}
.hero__backdrop {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 480px;
  background: var(--secondary);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}
.hero__badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 0.75rem;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.hero__dot { opacity: 0.5; }
.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Hero — Static banner variant (matches HomepageClient.tsx HeroSection) */
.hero--static {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.hero--static .hero__backdrop {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  max-height: none;
}
.hero__img--desaturated {
  opacity: 0.25;
  filter: saturate(0);
  mix-blend-mode: overlay;
}
.hero__noise {
  position: absolute;
  inset: 0;
  background: url('/noise.svg');
  opacity: 0.2;
  mix-blend-mode: overlay;
  z-index: 5;
}
.hero--static .hero__gradient {
  background: linear-gradient(to top, var(--bg) 0%, hsla(var(--bg-hsl, 0 0% 7%) / 0.8) 40%, transparent 100%);
}
.hero__content--centered {
  position: relative;
  z-index: 20;
  text-align: center;
  bottom: auto;
  left: auto;
  right: auto;
  padding: 0 1rem;
}
.hero__title--large {
  font-size: clamp(2rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero__title--accent {
  background: linear-gradient(to right, hsl(0 72% 51%), hsl(0 72% 61%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc--centered {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  display: block;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1rem;
}
/* Featured video card — bottom-right corner on desktop */
.hero__featured-card {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: none;
  width: 320px;
  text-decoration: none;
}
.hero__featured-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.hero__featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.hero__featured-card:hover .hero__featured-thumb img {
  transform: scale(1.05);
}
.hero__featured-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}
.hero__featured-card:hover .hero__featured-play { opacity: 1; }
.hero__featured-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero__featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.hero__featured-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}
.hero__featured-badge {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin: 0.25rem 0 0;
}

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; gap: 1rem; }
}
@media (min-width: 1024px) {
  .hero__featured-card { display: block; }
}
@media (max-width: 768px) {
  .hero--static { height: 450px; }
  .hero__title--large { line-height: 1.1; }
  .hero__desc--centered { display: block; font-size: 0.875rem; }
}

/* Legacy hero (non-static) responsive */
@media (max-width: 768px) {
  .hero:not(.hero--static) .hero__title { font-size: 1.375rem; }
  .hero:not(.hero--static) .hero__content { padding: 1rem; }
  .hero:not(.hero--static) .hero__desc { display: none; }
}

/* ============================================================
   Home Sections (Homepage)
   Source: HomepageClient section wrappers
   ============================================================ */
.home-section {
  margin-bottom: 2.5rem;
}
.home-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.home-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.home-section__desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}
.home-section__link {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.home-section__link:hover { text-decoration: underline; }

.home-feed {
  padding-top: 1.25rem;
}

.home-feed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}

.home-feed__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-feed__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.home-feed__desc {
  max-width: 56rem;
  margin: 0.85rem 0 0;
  color: var(--muted-fg);
  font-size: 1rem;
}

.home-feed__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.home-feed__grid {
  align-items: start;
}

.home-feed__load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
}

.home-feed__load-more.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.home-feed__sentinel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
}

.home-feed__sentinel-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--muted-fg);
  opacity: 0.45;
  animation: feedPulse 1.2s ease-in-out infinite;
}

.home-feed__sentinel-dot:nth-child(2) { animation-delay: 0.15s; }
.home-feed__sentinel-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes feedPulse {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-3px); opacity: 0.8; }
}

.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.thumb-block__feedback {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
}

.thumb-block__feedback:hover {
  color: var(--primary);
  background: rgba(255,255,255,0.06);
}

.thumb-block--dismissed {
  opacity: 0.45;
}

@media (max-width: 768px) {
  .home-feed__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-feed__actions {
    justify-content: flex-start;
  }
}

/* Category section header with icon */
.home-section__category-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.home-section__category-link:hover .home-section__title--linked {
  color: var(--primary);
}
.home-section__category-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(0 72% 51% / 0.2), hsla(0 72% 51% / 0.05));
  border: 1px solid hsla(0 72% 51% / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.home-section__category-link:hover .home-section__category-icon {
  border-color: var(--primary);
}
.home-section__title--linked {
  transition: color 0.2s;
}
.home-section__arrow {
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: opacity 0.2s, transform 0.2s;
}
.home-section__category-link:hover .home-section__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Category card icon */
.category-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: hsla(0 72% 51% / 0.1);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ============================================================
   CTA Banner Section (full-width, always visible)
   Source: HomepageClient.tsx VideoCTABannerSection
   ============================================================ */
.cta-banner-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 1rem;
}
.cta-banner-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(0 72% 20% / 0.4), var(--bg), hsla(270 30% 15% / 0.2));
}
.cta-banner-section__noise {
  position: absolute;
  inset: 0;
  background: url('/noise.svg');
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.cta-banner-section__inner {
  position: relative;
  padding: 6rem 1rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.cta-banner-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.cta-banner-section__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}
.cta-banner-section__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
}
@media (min-width: 640px) {
  .cta-banner-section__ctas { flex-direction: row; }
}

/* ============================================================
   Video Card — thumb-block (enhanced for video-card.php partial)
   Source: src/components/VideoCard.tsx
   ============================================================ */
.thumb-block__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.thumb-block__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.625rem;
}
.thumb-block__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.thumb-block:hover .thumb-block__img { transform: scale(1.05); }

.thumb-block__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
}

.thumb-block__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 3px;
  z-index: 2;
}

.thumb-block__badge {
  position: absolute;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}
.thumb-block__badge--yt {
  top: 6px;
  right: 6px;
  background: #c00;
  color: #fff;
}
.thumb-block__badge--gi {
  top: 6px;
  left: 6px;
}
.thumb-block__badge--gi-yes {
  background: hsla(217 91% 60% / 0.85);
  color: #fff;
}
.thumb-block__badge--nogi {
  background: hsla(25 95% 53% / 0.85);
  color: #fff;
}

.thumb-block__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
.thumb-block:hover .thumb-block__overlay { opacity: 1; }

.thumb-block__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.28);
  z-index: 3;
}
.thumb-block__progress span {
  display: block;
  height: 100%;
  background: var(--primary);
}

/* Hover preview overlay (video/iframe) */
.thumb-block__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
  border: none;
  animation: thumbPreviewFadeIn 0.3s ease;
  pointer-events: none;
}
@keyframes thumbPreviewFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hide badges/overlay during preview */
.thumb-block--preview-hidden { opacity: 0 !important; transition: opacity 0.15s ease; }

/* Transition for badge show/hide */
.thumb-block__duration,
.thumb-block__badge,
.thumb-block__overlay {
  transition: opacity 0.2s ease;
}

.thumb-block__info {
  display: flex;
  gap: 0.625rem;
}
.thumb-block__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-block__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-block__avatar-fallback {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-fg);
}

.thumb-block__meta { flex: 1; min-width: 0; }

.thumb-block__menu {
  position: relative;
  float: right;
  margin-left: 0.35rem;
}

.thumb-block__menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transform: rotate(90deg);
}

.thumb-block__menu-trigger:hover,
.thumb-block__menu-trigger[aria-expanded="true"] {
  color: var(--fg);
  background: rgba(255,255,255,0.08);
}

.thumb-block__menu-panel {
  position: absolute;
  top: 2rem;
  right: 0;
  z-index: 30;
  min-width: 10rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.thumb-block__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s;
}
.thumb-block:hover .thumb-block__title { color: var(--primary); }

.thumb-block__channel {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.125rem;
}
.thumb-block__channel a {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.thumb-block__channel a:hover { color: var(--fg); }
.thumb-block__verified { flex-shrink: 0; }

.thumb-block__belt {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: uppercase;
}
.thumb-block__belt--white { background: #f5f5f5; color: #333; }
.thumb-block__belt--blue { background: #1565c0; color: #fff; }
.thumb-block__belt--purple { background: #7b1fa2; color: #fff; }
.thumb-block__belt--brown { background: #6d4c41; color: #fff; }
.thumb-block__belt--black { background: #212121; color: #fff; }
.thumb-block__belt--red { background: #b71c1c; color: #fff; }
.thumb-block__belt--coral { background: #ff7043; color: #fff; }

.thumb-block__stats {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}
.thumb-block__dot { opacity: 0.5; }
.thumb-block__resume {
  margin-top: 0.25rem;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
}
.thumb-block__reason {
  margin-top: 0.25rem;
  color: var(--muted-fg);
  font-size: 0.75rem;
  line-height: 1.35;
}
.thumb-block__gym {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

/* ============================================================
   Category Grid (Homepage browse more)
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
}
.category-card:hover {
  border-color: var(--primary);
  background: hsla(0 72% 51% / 0.05);
}
.category-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.category-card__count {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CTA Banner (Homepage upload encouragement)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, hsla(0 72% 51% / 0.15), hsla(240 10% 8% / 0.8));
  border: 1px solid hsla(0 72% 51% / 0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.cta-banner__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cta-banner__text {
  color: var(--muted-fg);
  max-width: 500px;
  margin: 0 auto 1.25rem;
  font-size: 0.9375rem;
}

/* ============================================================
   Pagination (enhanced for pagination.php partial)
   ============================================================ */
.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
  transition: background 0.2s, color 0.2s;
}
.pagination__btn:hover { background: var(--secondary); color: var(--fg); }
.pagination__btn--disabled { opacity: 0.4; pointer-events: none; }

.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.pagination__page:hover { background: var(--secondary); color: var(--fg); }
.pagination__page--active {
  background: var(--primary);
  color: var(--primary-fg);
  pointer-events: none;
}

.pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 36px;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

/* ============================================================
   Listing Pages (Tag, Category, etc.)
   Source: category/[categorySlug]/page.tsx hero + filter bar
   ============================================================ */
.listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.listing-header__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.listing-header__count {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}
.listing-header__desc {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
  max-width: 600px;
}

/* Category Hero */
.listing-hero {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.listing-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.listing-hero__breadcrumb a { color: var(--primary); }
.listing-hero__breadcrumb a:hover { text-decoration: underline; }
.listing-hero__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}
.listing-hero__desc {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  max-width: 600px;
  margin-bottom: 0.75rem;
}
.listing-hero__stats {
  display: flex;
  gap: 1rem;
}
.listing-hero__stat {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Child categories / sub-tags */
.listing-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

/* Filter bar */
.listing-filter { display: flex; gap: 0.5rem; align-items: center; }
.listing-filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.listing-filter-bar select {
  max-width: 180px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-fg);
}
.empty-state__icon {
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* Categories listing grid (all categories page) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.categories-grid__card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.categories-grid__card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.categories-grid__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(0 72% 51% / 0.1);
  color: var(--primary);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}
.categories-grid__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.categories-grid__desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.categories-grid__count {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: auto;
}

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-hero__title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Search Page
   Source: src/app/search/page.tsx
   ============================================================ */

/* Search Header */
.search-header {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-header__form {
  display: flex;
  align-items: center;
}
.search-header__input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-header__icon {
  position: absolute;
  left: 0.875rem;
  color: var(--muted-fg);
  pointer-events: none;
}
.search-header__input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-header__input:focus {
  border-color: var(--primary);
}
.search-header__input::placeholder {
  color: var(--muted-fg);
}
.search-header__clear {
  position: absolute;
  right: 0.75rem;
  font-size: 1.25rem;
  color: var(--muted-fg);
  text-decoration: none;
  line-height: 1;
}
.search-header__clear:hover { color: var(--fg); }

/* Autocomplete Dropdown */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.25rem;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  max-height: 320px;
  overflow-y: auto;
}
.search-autocomplete__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.15s;
}
.search-autocomplete__item:hover,
.search-autocomplete__item--active {
  background: var(--secondary);
}
.search-autocomplete__icon {
  flex-shrink: 0;
  color: var(--muted-fg);
}
.search-autocomplete__name {
  flex: 1;
  font-size: 0.875rem;
}
.search-autocomplete__type {
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Suggestions */
.search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.search-suggestions__label {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-right: 0.25rem;
}

/* Active Filters */
.search-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.search-active-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: hsla(0 72% 51% / 0.15);
  border: 1px solid hsla(0 72% 51% / 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--fg);
}
.search-active-filters__remove {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}
.search-active-filters__remove:hover { color: var(--destructive); }
.search-active-filters__clear {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.search-active-filters__clear:hover { color: var(--fg); }

/* Search Layout (sidebar + results) */
.search-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Filter Sidebar */
.search-sidebar {
  position: sticky;
  top: 5rem;
}
.search-filter-group {
  margin-bottom: 1.25rem;
}
.search-filter-group__title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.search-filter-group__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
}
.search-filter-group__check input[type="checkbox"] {
  accent-color: var(--primary);
}

/* Results */
.search-results__summary {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

/* Search Section (Athletes / Gyms blocks) */
.search-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.search-section__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Athlete cards in search */
.search-athletes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.search-athlete {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s;
  min-width: 200px;
}
.search-athlete:hover { border-color: var(--primary); }
.search-athlete__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-athlete__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-athlete__avatar span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted-fg);
}
.search-athlete__name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
}
.search-athlete__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}

/* Gym cards in search */
.search-gyms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.search-gym {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s;
  min-width: 200px;
}
.search-gym:hover { border-color: var(--primary); }
.search-gym__logo {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: var(--secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted-fg);
}
.search-gym__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-gym__name {
  font-weight: 500;
  font-size: 0.9375rem;
}
.search-gym__meta {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .search-layout {
    grid-template-columns: 1fr;
  }
  .search-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .search-filter-group {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
  }
  .search-athletes,
  .search-gyms {
    flex-direction: column;
  }
  .search-athlete,
  .search-gym {
    min-width: 0;
  }
}

/* ============================================================
   Channel / Profile Page
   Source: src/app/user/[username]/page.tsx
   ============================================================ */

/* Banner */
.channel-banner {
  position: relative;
  width: 100%;
  height: 16rem;
  background: var(--secondary);
  overflow: hidden;
}
.channel-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.channel-banner__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent);
  opacity: 0.5;
}

/* Header */
.channel-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.channel-header--has-banner {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

/* Avatar */
.channel-avatar {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: var(--secondary);
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.channel-avatar--overlap {
  margin-top: -3rem;
}
.channel-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.channel-avatar__fallback {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--muted-fg);
  text-transform: uppercase;
}
.channel-avatar__belt-ring {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}
.channel-avatar__belt-ring--white { border-color: #f5f5f5; }
.channel-avatar__belt-ring--blue { border-color: #1565c0; }
.channel-avatar__belt-ring--purple { border-color: #7b1fa2; }
.channel-avatar__belt-ring--brown { border-color: #6d4c41; }
.channel-avatar__belt-ring--black { border-color: #212121; }
.channel-avatar__belt-ring--coral { border-color: #ff7043; }
.channel-avatar__belt-ring--red { border-color: #b71c1c; }

/* Info */
.channel-info { flex: 1; min-width: 0; }
.channel-info__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.channel-info__name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.channel-info__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.channel-info__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsla(217 91% 60% / 0.1);
  border: 1px solid hsla(217 91% 60% / 0.2);
  border-radius: 50%;
  padding: 2px;
}
.channel-info__username {
  font-size: 1.125rem;
  color: var(--muted-fg);
  font-weight: 500;
}
.channel-info__bio {
  color: var(--fg);
  max-width: 40rem;
  line-height: 1.6;
}

/* Stats */
.channel-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.channel-stats__item strong {
  color: var(--fg);
}
.channel-stats__dot {
  width: 3px;
  height: 3px;
  background: var(--border);
  border-radius: 50%;
}

/* Section title (shared across channel sections) */
.channel-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Featured Video */
.channel-featured {
  margin-bottom: 2.5rem;
}
.channel-featured__card {
  display: block;
  max-width: 40rem;
  text-decoration: none;
  color: var(--fg);
}
.channel-featured__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}
.channel-featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.channel-featured__card:hover .channel-featured__thumb img {
  transform: scale(1.05);
}
.channel-featured__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s;
}
.channel-featured__play svg {
  width: 3.5rem;
  height: 3.5rem;
  background: hsla(0 72% 51% / 0.9);
  border-radius: 50%;
  padding: 0.75rem;
  transform: scale(0.75);
  transition: transform 0.3s;
}
.channel-featured__card:hover .channel-featured__play {
  opacity: 1;
}
.channel-featured__card:hover .channel-featured__play svg {
  transform: scale(1);
}
.channel-featured__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.channel-featured__card:hover .channel-featured__title {
  color: var(--primary);
}
.channel-featured__views {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* Videos Section */
.channel-videos {
  margin-bottom: 2.5rem;
}
.channel-videos__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.channel-videos__header .channel-section__title {
  margin-bottom: 0;
}

/* About Section */
.channel-about {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.channel-about__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.channel-about__text {
  color: var(--fg);
  white-space: pre-wrap;
  line-height: 1.7;
}
.channel-about__text--empty {
  color: var(--muted-fg);
  font-style: italic;
}
.channel-about__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.channel-about__card-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}
.channel-about__gym {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}
.channel-about__gym:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.channel-about__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.channel-about__social {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  transition: background 0.2s, color 0.2s;
}
.channel-about__social:hover {
  background: hsla(0 72% 51% / 0.1);
  color: var(--primary);
}
.channel-about__joined {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* Responsive */
@media (max-width: 768px) {
  .channel-banner { height: 8rem; }
  .channel-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .channel-avatar {
    width: 7rem;
    height: 7rem;
  }
  .channel-avatar--overlap { margin-top: -2rem; }
  .channel-info__top {
    flex-direction: column;
    align-items: center;
  }
  .channel-info__name { font-size: 1.5rem; }
  .channel-stats { justify-content: center; }
  .channel-info__bio { text-align: center; }
  .channel-about__grid {
    grid-template-columns: 1fr;
  }
  .channel-videos__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Dashboard
   Source: src/app/dashboard/page.tsx
   ============================================================ */

/* Layout: sidebar + content */
.dash-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 1.5rem;
}

/* Sidebar */
.dash-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.dash-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.dash-sidebar__link:hover {
  background: var(--secondary);
  color: var(--fg);
}
.dash-sidebar__link--active {
  background: hsla(0 72% 51% / 0.1);
  color: var(--primary);
}
.dash-sidebar__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.dash-sidebar__divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* Dashboard Header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.dash-header__user {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dash-header__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-header__avatar span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted-fg);
}
.dash-header__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.dash-header__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.dash-header__badge {
  font-size: 0.6875rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: hsla(0 72% 51% / 0.1);
  color: var(--primary);
  text-transform: capitalize;
}
.dash-header__badge--verified {
  background: hsla(217 91% 60% / 0.1);
  color: hsl(217 91% 60%);
}
.dash-header__actions {
  display: flex;
  gap: 0.5rem;
}

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat {
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dash-stat svg {
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.dash-stat__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: inline;
}
.dash-stat__trend {
  font-size: 0.75rem;
  color: #22c55e;
  margin-left: 0.25rem;
}
.dash-stat__label {
  font-size: 0.6875rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.dash-section {
  margin-bottom: 2rem;
}
.dash-section--callout {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dash-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dash-section__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}
.dash-section__link {
  font-size: 0.8125rem;
  color: var(--primary);
}
.dash-section__link:hover { text-decoration: underline; }

.dash-workflow-section__summary {
  margin: 0.35rem 0 0;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

.dash-workflow-groups {
  display: grid;
  gap: 1rem;
}

.dash-workflow-group {
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dash-workflow-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.12);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
}

.dash-workflow-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.dash-workflow-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.dash-workflow-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.dash-workflow-card__status {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dash-workflow-card__context {
  color: var(--muted-fg);
  font-size: 0.8125rem;
  text-align: right;
}

.dash-workflow-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.dash-workflow-card__summary {
  margin: 0;
  color: var(--muted-fg);
  line-height: 1.5;
}

.dash-workflow-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Quick Actions */
.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-quick-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s;
}
.dash-quick-action:hover {
  border-color: var(--primary);
}
.dash-quick-action svg {
  color: var(--primary);
}
.dash-quick-action span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* List Header (history, liked, saved, watch-later) */
.dash-list-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.dash-list-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
  transition: background 0.2s;
}
.dash-list-header__back:hover { background: var(--secondary); }
.dash-list-header__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}
.dash-list-header__count {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .dash-sidebar__link {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-workflow-cards {
    grid-template-columns: 1fr;
  }
    .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-header__title {
    font-size: 1.25rem;
  }
}

/* ============================================================
   Settings Pages
   Source: src/app/settings/page.tsx, channel/page.tsx, verification/page.tsx
   ============================================================ */

/* Layout */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 1.5rem;
}

/* Settings Navigation */
.settings-nav {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.settings-nav__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.settings-nav__link:hover {
  background: var(--secondary);
  color: var(--fg);
}
.settings-nav__link--active {
  background: hsla(0 72% 51% / 0.1);
  color: var(--primary);
}

/* Content */
.settings-content__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.settings-content__desc {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

/* Cards */
.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.settings-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Form elements */
.settings-form {}
.settings-form__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Toggle switch */
.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.settings-toggle input[type="checkbox"] {
  accent-color: var(--primary);
  margin-top: 0.125rem;
}
.settings-toggle__label {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.settings-toggle__label strong {
  font-size: 0.875rem;
}
.settings-toggle__label small {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.rolling-feedback-form__header {
  margin-bottom: 1rem;
}
.rolling-feedback-form__header .settings-content__desc {
  margin-bottom: 0;
}
.rolling-feedback-options {
  display: grid;
  gap: 0.75rem;
}
.rolling-feedback-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.rolling-feedback-option input[type="radio"] {
  accent-color: var(--primary);
  margin-top: 0.1875rem;
}
.rolling-feedback-option__label {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}
.rolling-feedback-option__label strong {
  font-size: 0.9375rem;
}
.rolling-feedback-option__label small {
  font-size: 0.78125rem;
  color: var(--muted-fg);
  line-height: 1.45;
}
.rolling-feedback-private {
  margin-top: 0.875rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--secondary);
}
.rolling-feedback-private[hidden] {
  display: none !important;
}

/* Banner preview */
.settings-banner-preview {
  aspect-ratio: 6 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--secondary);
  margin-bottom: 1rem;
}
.settings-banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.alert--success {
  background: hsla(142 71% 45% / 0.1);
  border: 1px solid hsla(142 71% 45% / 0.3);
  color: #22c55e;
}
.alert--danger {
  background: hsla(0 84% 60% / 0.1);
  border: 1px solid hsla(0 84% 60% / 0.3);
  color: #ef4444;
}
.alert--warning {
  background: hsla(48 96% 53% / 0.1);
  border: 1px solid hsla(48 96% 53% / 0.3);
  color: #eab308;
}

/* Responsive */
@media (max-width: 768px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NOTIFICATION BELL & DROPDOWN
   Source: src/components/NotificationBell.tsx
   ========================================================================== */

.notif-bell {
  position: relative;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.notif-bell:hover {
  background: var(--surface);
}
.notif-bell__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 4px;
  line-height: 1;
}

.notif-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 22rem;
  max-height: 480px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 50;
}
.notif-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.notif-dropdown__header h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.notif-dropdown__mark-all {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  cursor: pointer;
}
.notif-dropdown__mark-all:hover {
  text-decoration: underline;
}

.notif-dropdown__loading,
.notif-dropdown__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

#notif-list {
  max-height: 400px;
  overflow-y: auto;
}

.notif-dropdown__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  align-items: flex-start;
}
.notif-dropdown__item:hover {
  background: var(--surface);
}
.notif-dropdown__item--unread {
  background: rgba(var(--primary-rgb, 220, 38, 38), 0.05);
}

.notif-dropdown__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.notif-dropdown__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.notif-dropdown__content {
  flex: 1;
  min-width: 0;
}
.notif-dropdown__message {
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 0;
}
.notif-dropdown__item--unread .notif-dropdown__message {
  font-weight: 500;
}
.notif-dropdown__time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
  display: block;
}
.notif-dropdown__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.5rem;
}

/* ==========================================================================
   SUBSCRIPTIONS PAGE
   Source: src/app/subscriptions/page.tsx
   ========================================================================== */

.page-subscriptions .container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.subscriptions-header {
  margin-bottom: 2rem;
}
.subscriptions-header__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Empty state (shared) */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.empty-state__icon {
  width: 4rem;
  height: 4rem;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--text-muted);
}
.empty-state__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.empty-state__desc {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .notif-dropdown {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }
}

/* ==========================================================================
   UPLOAD PAGE
   Source: src/app/upload/page.tsx
   ========================================================================== */

.upload-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 0 7rem;
}
.upload-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.upload-header__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  background: linear-gradient(135deg, var(--fg), var(--muted-fg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.upload-header__desc {
  color: var(--muted-fg);
  margin: 0;
  font-size: 0.9375rem;
}

/* Smart Upload Banner */
.upload-smart-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.8125rem;
}
.upload-smart-banner__content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--muted-fg);
}
.upload-smart-banner__icon-wrap {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb, 220, 38, 38), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upload-smart-banner__icon-wrap svg { color: var(--primary); }
.upload-smart-banner__close {
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}
.upload-smart-banner__close:hover { color: var(--fg); }

/* ====== DROPZONE — Immersive hero-style ====== */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.upload-dropzone {
  position: relative;
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  overflow: hidden;
}
.upload-dropzone::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(from var(--gradient-angle), transparent 30%, rgba(239, 68, 68, 0.3), rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  animation: rotate-gradient 4s linear infinite;
  pointer-events: none;
}
.upload-dropzone:hover::before,
.upload-dropzone--dragover::before {
  opacity: 1;
}
@keyframes rotate-gradient {
  to { --gradient-angle: 360deg; }
}
.upload-dropzone:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
.upload-dropzone--dragover {
  background: rgba(var(--primary-rgb, 220, 38, 38), 0.04);
  border-color: rgba(var(--primary-rgb, 220, 38, 38), 0.3);
  transform: scale(1.01);
}
.upload-dropzone__icon {
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
  animation: float-icon 3s ease-in-out infinite;
}
@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.upload-dropzone:hover .upload-dropzone__icon {
  color: var(--fg);
}
.upload-dropzone__text {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.375rem;
  color: var(--fg);
}
.upload-dropzone__or {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin: 0.5rem 0;
}
.upload-dropzone__browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.upload-dropzone__browse-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb, 220, 38, 38), 0.35);
}
.upload-dropzone__hint {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin: 1rem 0 0;
  opacity: 0.7;
}
/* File selected state inside dropzone (fallback) */
.upload-dropzone__selected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  color: var(--fg);
}
.upload-dropzone__file-icon { flex-shrink: 0; color: var(--muted-fg); }
.upload-dropzone__file-icon--spinning svg { animation: spin 1s linear infinite; }
.upload-dropzone__file-info { flex: 1; min-width: 0; }
.upload-dropzone__filename {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-dropzone__filesize {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.upload-dropzone__remove {
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
}
.upload-dropzone__remove:hover { color: var(--primary); }

/* ====== TWO-COLUMN WORKSPACE ====== */
.upload-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 1.5rem;
  align-items: start;
  animation: workspace-in 0.5s ease-out;
}
@keyframes workspace-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.upload-workspace__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  min-width: 0;
}
.upload-workspace__right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slide-right-in 0.5s ease-out 0.1s both;
  min-width: 0;
}
@keyframes slide-right-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ====== VIDEO PREVIEW CARD ====== */
.upload-preview {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}
.upload-preview__player {
  position: relative;
  background: #000;
  aspect-ratio: var(--upload-preview-aspect, 16 / 9);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(68vh, 720px);
}
.upload-preview__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.upload-preview--portrait .upload-preview__video,
.upload-preview--square .upload-preview__video {
  width: auto;
  max-width: 100%;
}
.upload-preview__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}
.upload-preview__details {
  flex: 1;
  min-width: 0;
}
.upload-preview__name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-preview__meta {
  font-size: 0.75rem;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.upload-preview__dot { opacity: 0.4; }
.upload-preview__change {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-fg);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.upload-preview__change:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ====== AI PIPELINE CARD ====== */
.upload-transfer {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}
.upload-transfer__header,
.upload-transfer__primary,
.upload-transfer__secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.upload-transfer__header {
  margin-bottom: 0.75rem;
}
.upload-transfer__eyebrow {
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.upload-transfer__state {
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 700;
}
.upload-transfer__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.upload-transfer__fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #f59e0b);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
  animation: pipeline-shimmer 1.8s linear infinite;
}
.upload-transfer__primary {
  margin-top: 0.75rem;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.upload-transfer__secondary,
.upload-transfer__note {
  margin-top: 0.35rem;
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.upload-transfer__note {
  color: #93c5fd;
}
.upload-transfer--failed {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}
.upload-transfer--failed .upload-transfer__state,
.upload-transfer--failed .upload-transfer__note {
  color: #f87171;
}
.upload-pipeline {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}
.upload-pipeline__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #3b82f6;
}
.upload-pipeline__title {
  font-size: 0.8125rem;
  font-weight: 600;
  flex: 1;
}
.upload-pipeline__retry-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-fg);
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  cursor: pointer;
}
.upload-pipeline__retry-btn:hover { border-color: #3b82f6; color: #3b82f6; }

/* Pipeline Steps */
.upload-pipeline__steps {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.pipeline-step__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-fg);
  transition: all 0.3s;
}
.pipeline-step__label {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  transition: color 0.3s;
}
.pipeline-step__time {
  font-size: 0.6875rem;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.3s;
}
/* Active step */
.pipeline-step--active {
  background: rgba(59, 130, 246, 0.06);
}
.pipeline-step--active .pipeline-step__icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  animation: step-pulse 1.5s ease-in-out infinite;
}
.pipeline-step--active .pipeline-step__label {
  color: var(--fg);
  font-weight: 500;
}
.pipeline-step--active .pipeline-step__time {
  opacity: 1;
  color: #3b82f6;
}
@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}
/* Done step */
.pipeline-step--done .pipeline-step__icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.pipeline-step--done .pipeline-step__label {
  color: var(--muted-fg);
}
.pipeline-step--done .pipeline-step__time {
  opacity: 1;
  color: #22c55e;
}

/* Pipeline progress bar */
.upload-pipeline__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.upload-pipeline__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
  border-radius: 2px;
  transition: width 0.5s ease;
  background-size: 200% 100%;
  animation: gradient-shift 3s linear infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.upload-pipeline__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.375rem;
}
.upload-pipeline__elapsed {
  font-size: 0.6875rem;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

/* Pipeline success */
.upload-pipeline__success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  margin-top: 0.5rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #22c55e;
  animation: vi-banner-in 0.3s ease-out;
}
@keyframes vi-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Pipeline error */
.upload-pipeline__error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.upload-pipeline__error-btn {
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
}

/* Progress (R2 upload) */
.upload-progress { margin-bottom: 1rem; }
.upload-progress__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.upload-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #f59e0b);
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}
.upload-progress__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.upload-progress__info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.375rem;
}

/* Status */
.upload-status {
  padding: 0.625rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}
.upload-status--success {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.15);
}
.upload-status--error {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ====== FORM (right column) ====== */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
}
.upload-form__actions {
  padding-top: 0.5rem;
}
.upload-form .form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.upload-form .form-control:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.upload-form .form-control:-webkit-autofill,
.upload-form .form-control:-webkit-autofill:hover,
.upload-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px hsl(240 4% 16%) inset !important;
  -webkit-text-fill-color: hsl(0 0% 98%) !important;
  transition: background-color 5000s ease-in-out 0s;
}
.upload-form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--muted-fg);
}
.upload-form .form-row {
  gap: 1.25rem;
}
.required { color: #f87171; }
.form-group__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.form-group__meta-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.form-group__meta-wrap textarea { flex: 1; }
.form-char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.form-char-count--ok { color: #16a34a; }
.form-char-count--short { color: #f59e0b; }

/* Meta Description Label + Auto-Generate */
.upload-meta-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.upload-meta-label .form-label { margin-bottom: 0; }
.upload-meta-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.upload-meta-generate-btn:hover { opacity: 0.9; }
.upload-meta-generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Error validation state */
.form-control--error {
  border-color: var(--danger, #ef4444) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* Description with mic button */
.upload-description-wrap {
  position: relative;
}
.upload-description__mic-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--border);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.upload-description__mic-btn:hover { color: var(--primary); border-color: var(--primary); }
.upload-description__mic-btn--recording {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
  animation: pulse-mic 1.5s ease-in-out infinite;
}
@keyframes pulse-mic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

/* Category Dropdown */
.upload-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}
.upload-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(var(--primary-rgb, 220, 38, 38), 0.1);
  border: 1px solid rgba(var(--primary-rgb, 220, 38, 38), 0.2);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.upload-category-chip__remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  padding: 0;
}
.upload-category-chip__remove:hover { opacity: 1; }
.upload-categories-dropdown { position: relative; }
.upload-category-search-wrap { position: relative; }
.upload-category-search__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}
#category-search { padding-left: 2.5rem; }
.upload-categories-dropdown__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 0.25rem;
}
.upload-categories-dropdown__list.upload-categories-dropdown__list--inline {
  position: static;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--secondary);
  max-height: 15rem;
  overflow-y: auto;
  margin-top: 0.25rem;
  box-shadow: none;
}
.upload-categories-dropdown__list.upload-categories-dropdown__list--absolute {
  position: absolute;
}
.upload-categories-dropdown__section {
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  background: var(--surface);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.upload-categories-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.1s;
}
.upload-categories-dropdown__item:hover { background: var(--surface); }
.upload-categories-dropdown__item--selected {
  color: var(--primary);
  font-weight: 500;
}
.upload-categories-dropdown__check {
  color: var(--primary);
  font-size: 0.875rem;
}

/* Tags */
.upload-tags { position: relative; }
.upload-tags__container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  align-items: center;
  min-width: 0;
}
.upload-tags__container:focus-within {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--primary);
}
.upload-tags__input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1 1 180px;
  min-width: min(180px, 100%);
  font-size: 0.875rem;
  padding: 0.25rem;
  color: var(--fg);
}
.upload-tags__input::placeholder { color: var(--muted-fg); }
.upload-tags__selected {
  display: contents;
}
.upload-tags__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  background: rgba(var(--primary-rgb, 220, 38, 38), 0.1);
  color: var(--primary);
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}
.upload-tags__tag {
  overflow-wrap: anywhere;
}
.upload-tags__remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  padding: 0;
}
.upload-tags__remove:hover { opacity: 1; }
.upload-tags__expand {
  margin-bottom: 0;
}
.upload-tags__expand-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0;
}
.upload-tags__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}
.upload-tags__suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.upload-tags__suggestion-item:hover { background: var(--surface); }
.upload-tags__suggestion-item--create {
  color: var(--primary);
  font-style: italic;
}
.upload-tags__usage-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Gi/No-Gi Toggle */
.upload-gi-toggle {
  display: flex;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  gap: 0.125rem;
}
.upload-gi-toggle__btn {
  flex: 1;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.upload-gi-toggle__btn--active {
  background: var(--background);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.upload-gi-toggle__btn:not(.upload-gi-toggle__btn--active):hover {
  color: var(--text);
}

/* Privacy-Aware Recording */
.upload-recording-destination {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}
.upload-recording-destination__header {
  margin-bottom: 0.875rem;
}
.upload-recording-destination__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.upload-recording-destination__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.upload-recording-destination__row {
  align-items: flex-end;
}
.upload-recording-destination__consent {
  margin-top: 0.25rem;
  padding: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}
.upload-recording-destination__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}
.upload-recording-destination__checkbox input {
  margin-top: 0.2rem;
}

/* Content Declaration Cards */
.upload-content-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.upload-content-card {
  cursor: pointer;
}
.upload-content-card input { display: none; }
.upload-content-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.8125rem;
}
.upload-content-card__inner strong {
  display: block;
  margin-bottom: 0.125rem;
}
.upload-content-card__inner span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.upload-content-card__inner svg { flex-shrink: 0; margin-top: 0.125rem; }
.upload-content-card input:checked + .upload-content-card__inner {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 220, 38, 38), 0.05);
}
.upload-content-card:hover .upload-content-card__inner {
  border-color: var(--text-muted);
}

/* Advanced Toggle */
.upload-advanced__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.upload-advanced__toggle:hover { color: var(--text); }
.upload-advanced__chevron {
  transition: transform 0.2s;
}
.upload-advanced__badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  background: rgba(var(--primary-rgb, 220, 38, 38), 0.1);
  color: var(--primary);
  border-radius: 2rem;
  font-weight: 600;
}
.upload-advanced__body {
  margin-top: 0.75rem;
}

/* AI Loading Indicator */
.upload-ai-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}
.upload-ai-loading__spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* AI Suggestions Inline Banner */
.upload-ai-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.upload-ai-banner__content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.upload-ai-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.upload-ai-banner__toggle,
.upload-ai-banner__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}
.upload-ai-banner__toggle:hover,
.upload-ai-banner__close:hover { color: var(--text); }
.upload-ai-banner__details {
  padding: 0.75rem 1rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.upload-ai__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.375rem;
}
.upload-ai__tag-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.upload-ai__tag-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.upload-ai__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.upload-ai__cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 2rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.upload-ai__cat-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--primary);
}
.upload-ai__cat-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.upload-ai-banner__detail-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

.footage-context {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.footage-context--upload {
  margin-top: 0.75rem;
}

.footage-context__header h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
}

.footage-context__header p {
  margin: 0;
}

.footage-context__eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-foreground, #b3b3b3);
  margin: 0;
}

.footage-context__copy {
  margin: 0;
  color: var(--muted-foreground, #c7c7c7);
  font-size: 0.92rem;
}

.footage-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.footage-context__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
}

.footage-context__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.footage-context__fact {
  min-width: 0;
}

.footage-context__fact dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground, #b3b3b3);
  margin-bottom: 0.2rem;
}

.footage-context__fact dd {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.video-insights {
  margin: 1.5rem 0;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.video-insights__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.video-insights__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground, #b3b3b3);
}

.video-insights__header h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.video-insights__copy {
  margin: 0.35rem 0 0;
  color: var(--muted-foreground, #b3b3b3);
  line-height: 1.55;
}

.video-insights__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.video-insights__status--info {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.video-insights__status--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.video-insights__status--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.video-insights__status--muted {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted-foreground, #b3b3b3);
}

/* VI compat — hidden old elements */
.upload-vi__keyframe-progress,
.upload-vi__keyframe-shimmer { display: none; }
.upload-vi__titles {
  margin-top: 0.5rem;
}
.upload-vi__titles-label,
.upload-vi__metas-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: #3b82f6;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}
.upload-vi__titles-list,
.upload-vi__metas-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.upload-vi__title-card,
.upload-vi__meta-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-vi__title-card:hover,
.upload-vi__meta-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
  transform: translateX(2px);
}
.upload-vi__title-card--active,
.upload-vi__meta-card--active {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.upload-vi__title-card__num,
.upload-vi__meta-card__num {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #3b82f6;
}
.upload-vi__title-card--active .upload-vi__title-card__num,
.upload-vi__meta-card--active .upload-vi__meta-card__num {
  background: #3b82f6;
  color: #fff;
}
.upload-vi__title-card__text,
.upload-vi__meta-card__text {
  flex: 1;
  line-height: 1.3;
}
.upload-vi__title-card__chars {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: var(--muted-fg);
}
.upload-vi__metas {
  margin-top: 0.5rem;
}

/* Submit Button */
.upload-form__actions .btn--lg {
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}
.upload-form__actions .btn--primary:not(:disabled) {
  box-shadow: 0 8px 24px rgba(var(--primary-rgb, 220, 38, 38), 0.3);
}
.upload-form__actions .btn--primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb, 220, 38, 38), 0.4);
}
#submit-btn:disabled,
#sticky-submit-btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-fg);
  cursor: not-allowed;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.06);
}

/* Description Textarea Resize */
#video-description { resize: vertical; }
#video-meta-description { resize: none; }

/* Tag & Category Add Animations */
.upload-tags__tag,
.upload-category-chip {
  animation: fadeSlideIn 0.2s ease-out;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sticky Mobile Submit */
.upload-sticky-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--background);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

/* Spinner */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 769px) {
  .upload-sticky-btn { display: none !important; }
}
@media (max-width: 960px) {
  .upload-workspace {
    grid-template-columns: 1fr;
  }
  .upload-workspace__left {
    position: static;
  }
}
@media (max-width: 768px) {
  .upload-page { padding: 1rem 0 6rem; }
  .upload-dropzone { padding: 2.5rem 1.25rem; }
  .upload-form { padding: 1rem; }
  .upload-recording-destination { padding: 0.875rem; }
  .upload-content-cards { grid-template-columns: 1fr; }
}

/* ========== GYM PROFILE ========== */

.gym-profile__cover {
  height: 200px;
  background-color: var(--card);
  background-size: cover;
  background-position: center;
}
.gym-profile__cover--default {
  background: linear-gradient(135deg, hsl(0, 72%, 40%), hsl(0, 72%, 25%));
}
.gym-profile__header-content {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: -3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.gym-profile__logo {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--background);
  background: var(--card);
  flex-shrink: 0;
}
.gym-profile__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gym-profile__logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--card);
}
.gym-profile__info {
  flex: 1;
  min-width: 0;
}
.gym-profile__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gym-profile__affiliation {
  display: inline-block;
  padding: 2px 10px;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.gym-profile__location {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}
.gym-profile__stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
.gym-profile__body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
}
.gym-profile__section {
  margin-bottom: 2rem;
}
.gym-profile__section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.gym-profile__description {
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* Gym Schedule */
.gym-schedule__day {
  margin-bottom: 1.25rem;
}
.gym-schedule__day h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.gym-schedule__class {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.gym-schedule__time {
  min-width: 120px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.gym-schedule__name {
  font-weight: 500;
}
.gym-schedule__instructor {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

/* Gym Instructors Grid */
.gym-instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gym-instructor-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.gym-instructor-card:hover {
  border-color: var(--primary);
}
.gym-instructor-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.gym-instructor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gym-instructor-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.gym-instructor-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}
.gym-instructor-card__belt {
  font-size: 0.75rem;
}
.gym-instructor-card__position {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Gym Sidebar */
.gym-sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.gym-sidebar-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.gym-sidebar-card__item {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.gym-sidebar-card__item a {
  color: var(--primary);
}
.gym-sidebar-card__owner {
  color: var(--primary);
  font-weight: 500;
}
.gym-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gym-benefits-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.gym-benefits-list li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}

/* ========== GYM DIRECTORY ========== */

.gym-directory__header {
  text-align: center;
  margin-bottom: 2rem;
}
.gym-directory__header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
}
.gym-directory__subtitle {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
.gym-directory__cta {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Country Sections */
.gym-country-section {
  margin-bottom: 2rem;
}
.gym-country-section__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.gym-country-section__header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  margin: 0;
}
.gym-country-section__count {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* City Grid */
.gym-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.gym-city-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.gym-city-card:hover {
  border-color: var(--primary);
}
.gym-city-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}
.gym-city-card__count {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ========== GYM CARDS (City Page) ========== */

.gym-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gym-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: flex-start;
}
.gym-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--muted);
}
.gym-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gym-card__logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.gym-card__content {
  flex: 1;
  min-width: 0;
}
.gym-card__name {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}
.gym-card__name a {
  color: inherit;
  text-decoration: none;
}
.gym-card__name a:hover {
  color: var(--primary);
}
.gym-card__affiliation {
  display: inline-block;
  font-size: 0.75rem;
  padding: 1px 8px;
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.gym-card__address,
.gym-card__description {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0;
}
.gym-card__stats {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
.gym-card__actions {
  flex-shrink: 0;
  align-self: center;
}

/* ========== GYM CREATE / EDIT PAGES ========== */

.gym-create-page,
.gym-edit-page {
  max-width: 960px;
}
.gym-create-page {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}
.gym-create-page__subtitle {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* ========== GYM MANAGE PAGE ========== */

.gym-manage-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.gym-manage-page__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gym-manage-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.gym-manage-page__section--wide {
  grid-column: 1 / -1;
}
.gym-class-replay-form,
.gym-class-replay-edit {
  display: grid;
  gap: 0.75rem;
}
.form-grid {
  display: grid;
  gap: 0.75rem;
}
.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gym-class-replay-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.gym-class-replay-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 1fr;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--card);
}
.gym-class-replay-card h3 {
  margin: 0 0 0.35rem;
}
.gym-class-replay-card p {
  color: var(--muted-foreground);
  margin: 0 0 0.5rem;
}
.gym-class-replay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gym-class-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gym-class-library-card {
  display: grid;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--card);
}
.gym-class-library-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--muted);
  border-radius: 6px;
  overflow: hidden;
}
.gym-class-library-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gym-class-library-card__status {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.gym-class-library-card h2,
.gym-class-library-card h3 {
  margin: 0;
}
.gym-class-library-card p {
  margin: 0;
  color: var(--muted-foreground);
}
.gym-class-library-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.gym-class-library-card__topics span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}
.gym-class-replay-player {
  margin-bottom: 2rem;
}
.gym-class-replay-player video,
.gym-class-replay-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}
.gym-class-cue-list {
  display: grid;
  gap: 0.5rem;
}
.gym-class-cue-list__item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

/* ========== GYM INSTRUCTORS PAGE ========== */

.gym-instructor-search {
  position: relative;
  margin-bottom: 2rem;
  max-width: 480px;
}
.instructor-list--manage .instructor-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.instructor-list__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.instructor-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instructor-list__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.instructor-list__name {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.instructor-list__username {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.instructor-list__belt {
  font-size: 0.75rem;
}
.instructor-list__position {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.instructor-list__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Gym class management items */
.gym-classes-list {
  margin-top: 1rem;
}
.gym-class-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.gym-class-item__day {
  min-width: 40px;
  font-weight: 600;
  color: var(--primary);
}

/* ========== GYM CITY PAGE ========== */

.gym-city-page__header {
  margin-bottom: 2rem;
}
.gym-city-page__header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
}
.gym-city-page__subtitle {
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
.gym-city-page__nearby {
  margin-top: 3rem;
}
.gym-city-page__nearby h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ========== GYM RESPONSIVE ========== */

@media (max-width: 768px) {
  .gym-profile__body {
    grid-template-columns: 1fr;
  }
  .gym-profile__header-content {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -2rem;
  }
  .gym-create-page {
    grid-template-columns: 1fr;
  }
  .gym-manage-page__grid {
    grid-template-columns: 1fr;
  }
  .form-grid--3,
  .gym-class-replay-card {
    grid-template-columns: 1fr;
  }
  .gym-card {
    flex-direction: column;
  }
  .gym-card__actions {
    align-self: flex-start;
  }
}

/* ========== PLAYLISTS & SAVED VIDEOS ========== */

/* Playlist Page */
.playlist-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.playlist-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.playlist-header__info {
  flex: 1;
}

.playlist-header__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.playlist-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.playlist-header__owner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
}

.playlist-header__owner:hover {
  color: hsl(var(--primary));
}

.playlist-header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.playlist-header__avatar--default {
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.playlist-header__badge {
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.playlist-header__badge--private {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.playlist-header__badge--official {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}

.playlist-header__description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.playlist-header__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.playlist-header__thumb {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.playlist-header__thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.playlist-header__thumb-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Playlist Video List */
.playlist-videos {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.playlist-video-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  transition: background 0.15s;
}

.playlist-video-item:hover {
  background: hsl(var(--muted) / 0.5);
}

.playlist-video-item__number {
  width: 24px;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  flex-shrink: 0;
}

.playlist-video-item__thumb {
  width: 160px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.playlist-video-item__thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.playlist-video-item__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: hsl(var(--muted));
}

.playlist-video-item__info {
  flex: 1;
  min-width: 0;
}

.playlist-video-item__title {
  display: block;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-video-item__title:hover {
  color: hsl(var(--primary));
}

.playlist-video-item__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.playlist-video-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.375rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.playlist-video-item__remove:hover {
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
}

/* Playlist Card (grid) */
.playlist-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: hsl(var(--card));
  transition: transform 0.15s, box-shadow 0.15s;
}

.playlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.playlist-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: hsl(var(--muted));
  overflow: hidden;
}

.playlist-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
}

.playlist-card__count-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 0.25rem 0.625rem;
  border-radius: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.playlist-card__info {
  padding: 0.75rem;
}

.playlist-card__title {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-card__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.playlist-card__private-badge {
  background: hsl(var(--muted));
  padding: 0 0.375rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Playlist Grid */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 640px) {
  .playlist-header {
    flex-direction: column-reverse;
  }
  .playlist-header__thumb {
    width: 100%;
  }
  .playlist-video-item__thumb {
    width: 120px;
  }
  .playlist-video-item__number {
    display: none;
  }
}

/* ========== STATIC PAGES ========== */

.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.static-page__container {
  width: 100%;
}

.static-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.static-hero--left {
  text-align: left;
}

.static-hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.static-hero__subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-fg));
  line-height: 1.6;
}

.static-hero__subtitle--muted {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
}

.static-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.static-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.static-card__heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.static-card__subheading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.static-card__subheading--green {
  color: #22c55e;
}

.static-card__subheading--red {
  color: #ef4444;
}

.static-card__text {
  color: hsl(var(--muted-fg));
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.static-card__text:last-child {
  margin-bottom: 0;
}

.static-card__text--sm {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  line-height: 1.6;
}

.static-card__subsections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .static-card__subsections {
    grid-template-columns: 1fr;
  }
}

.static-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.static-list li {
  padding-left: 1.25rem;
  position: relative;
  color: hsl(var(--muted-fg));
  line-height: 1.5;
}

.static-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.static-list--red li::before {
  content: "\2717";
  color: #ef4444;
}

.static-grid {
  display: grid;
  gap: 1.5rem;
}

.static-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .static-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ========== MARKETING PAGES ========== */

.marketing-page {
  width: 100%;
}

.marketing-hero {
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.marketing-hero--purple {
  background: linear-gradient(135deg, hsl(270 50% 15%), hsl(270 40% 8%));
}

.marketing-hero--blue {
  background: linear-gradient(135deg, hsl(220 50% 15%), hsl(220 40% 8%));
}

.marketing-hero__inner {
  max-width: 700px;
  margin: 0 auto;
}

.marketing-hero__badge {
  display: inline-block;
  background: hsla(270, 70%, 50%, 0.2);
  color: hsl(270 80% 70%);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.marketing-hero__badge--blue {
  background: hsla(220, 70%, 50%, 0.2);
  color: hsl(220 80% 70%);
}

.marketing-hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient--purple {
  background-image: linear-gradient(135deg, hsl(270 70% 60%), hsl(290 80% 70%));
}

.text-gradient--blue {
  background-image: linear-gradient(135deg, hsl(220 70% 60%), hsl(200 80% 70%));
}

.marketing-hero__subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-fg));
  line-height: 1.7;
  margin-bottom: 2rem;
}

.marketing-hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.marketing-section {
  padding: 4rem 1.5rem;
}

.marketing-section--alt {
  background: hsl(var(--card));
}

.marketing-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.marketing-section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.marketing-section__subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-fg));
}

.marketing-benefit {
  text-align: center;
  padding: 1.5rem;
}

.marketing-benefit__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: hsla(270, 70%, 50%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: hsl(270 70% 60%);
}

.marketing-benefit__icon--blue {
  background: hsla(220, 70%, 50%, 0.15);
  color: hsl(220 70% 60%);
}

.marketing-benefit h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.marketing-benefit p {
  color: hsl(var(--muted-fg));
  font-size: 0.9rem;
  line-height: 1.6;
}

.marketing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.marketing-features--reverse {
  direction: rtl;
}

.marketing-features--reverse > * {
  direction: ltr;
}

.marketing-features__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.marketing-features__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, hsla(270, 50%, 30%, 0.3), hsla(270, 50%, 20%, 0.1));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}

.marketing-features__placeholder--blue {
  background: linear-gradient(135deg, hsla(220, 50%, 30%, 0.3), hsla(220, 50%, 20%, 0.1));
}

.marketing-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marketing-checklist li {
  padding-left: 2rem;
  position: relative;
  line-height: 1.5;
}

.marketing-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 1.125rem;
}

.marketing-checklist li strong {
  display: block;
  margin-bottom: 0.125rem;
}

.marketing-checklist li span {
  color: hsl(var(--muted-fg));
  font-size: 0.875rem;
}

.marketing-stats {
  padding: 3rem 1.5rem;
  background: hsl(var(--card));
}

.marketing-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.marketing-stat__value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.marketing-stat__label {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  margin-top: 0.25rem;
}

.marketing-cta {
  text-align: center;
  padding: 5rem 1.5rem;
}

.marketing-cta--purple {
  background: linear-gradient(135deg, hsl(270 50% 12%), hsl(270 40% 6%));
}

.marketing-cta--blue {
  background: linear-gradient(135deg, hsl(220 50% 12%), hsl(220 40% 6%));
}

.marketing-cta__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.marketing-cta__text {
  font-size: 1rem;
  color: hsl(var(--muted-fg));
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .marketing-hero__title { font-size: 2rem; }
  .marketing-features { grid-template-columns: 1fr; }
  .marketing-features--reverse { direction: ltr; }
  .marketing-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== CONTACT PAGE ========== */

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-sidebar__card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-sidebar__card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-sidebar__card ul {
  list-style: none;
}

.contact-sidebar__card li {
  color: hsl(var(--muted-fg));
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.contact-form-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-form-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  color: hsl(var(--fg));
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsla(var(--ring), 0.25);
}

.contact-success,
.contact-error {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.contact-success {
  background: hsla(142, 70%, 45%, 0.15);
  color: #22c55e;
  border: 1px solid hsla(142, 70%, 45%, 0.3);
}

.contact-error {
  background: hsla(0, 70%, 45%, 0.15);
  color: #ef4444;
  border: 1px solid hsla(0, 70%, 45%, 0.3);
}

@media (max-width: 768px) {
  .contact-page {
    grid-template-columns: 1fr;
  }
}

/* ========== PAGE HEADER (Trending, Latest) ========== */

.page-header {
  margin-bottom: 2rem;
}

.page-header__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.page-subtitle {
  color: hsl(var(--muted-fg));
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========== ATHLETES PAGE ========== */

.athletes-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.athlete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.athlete-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

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

.athlete-card__image {
  position: relative;
  aspect-ratio: 1;
  background: hsl(var(--secondary));
  overflow: hidden;
}

.athlete-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--muted-fg));
  background: hsl(var(--secondary));
}

.athlete-card__belt {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.belt--white  { background: #f1f5f9; color: #1e293b; }
.belt--blue   { background: #3b82f6; color: #fff; }
.belt--purple { background: #a855f7; color: #fff; }
.belt--brown  { background: #92400e; color: #fff; }
.belt--black  { background: #1e293b; color: #fff; border: 1px solid #475569; }
.belt--coral  { background: linear-gradient(90deg, #ef4444, #1e293b); color: #fff; }
.belt--red    { background: #ef4444; color: #fff; }
.belt--gray   { background: #64748b; color: #fff; }

.athlete-card__verified {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: hsla(220, 90%, 55%, 0.9);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.athlete-card__info {
  padding: 1rem;
}

.athlete-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.athlete-card__username {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  margin-bottom: 0.5rem;
}

.athlete-card__location,
.athlete-card__team {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  margin-bottom: 0.25rem;
}

.athlete-card__stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
}

.athlete-card__stats strong {
  color: hsl(var(--fg));
}

@media (max-width: 640px) {
  .athletes-header {
    flex-direction: column;
  }
}

/* ========== TRENDING PAGE ========== */

.thumb-block__rank {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: hsla(0, 0%, 0%, 0.8);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.thumb-block__corner-badge,
.thumb-block__hot-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.thumb-block__corner-badge--hot,
.thumb-block__hot-badge {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.thumb-block__corner-badge--new,
.thumb-block__new-badge {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.thumb-block__corner-badge--default {
  background: rgba(0, 0, 0, 0.8);
}

.trending-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.trending-info__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.trending-info__item {
  text-align: center;
  padding: 1.25rem;
}

.trending-info__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: hsl(var(--muted-fg));
}

.trending-info__item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.trending-info__item p {
  font-size: 0.85rem;
  color: hsl(var(--muted-fg));
  line-height: 1.5;
}

/* ========== ABOUT PAGE ========== */

.about-hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-hero__subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-fg));
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-section p {
  color: hsl(var(--muted-fg));
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-values {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.about-value-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.about-value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsla(0, 72%, 51%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: hsl(var(--primary));
}

.about-value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-value-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  line-height: 1.6;
}

.about-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
  background: hsl(var(--card));
  border-radius: var(--radius);
}

.about-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-cta p {
  color: hsl(var(--muted-fg));
  margin-bottom: 1.5rem;
}

.about-cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BADGES ========== */

.badge-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.badge-display__item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: default;
  transition: transform 0.15s;
}

.badge-display__item:hover {
  transform: scale(1.15);
}

/* Sizes */
.badge-display--small .badge-display__item { width: 24px; height: 24px; font-size: 0.75rem; }
.badge-display--medium .badge-display__item { width: 32px; height: 32px; font-size: 1rem; }
.badge-display--large .badge-display__item { width: 48px; height: 48px; font-size: 1.5rem; }

/* Tiers */
.badge-display__item--bronze {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  box-shadow: 0 0 6px rgba(205, 127, 50, 0.4);
}

.badge-display__item--silver {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  box-shadow: 0 0 6px rgba(192, 192, 192, 0.4);
}

.badge-display__item--gold {
  background: linear-gradient(135deg, #ffd700, #daa520);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.badge-display__icon {
  line-height: 1;
}

.badge-display__more {
  font-size: 0.7rem;
  color: hsl(var(--muted-fg));
  padding: 0.125rem 0.375rem;
  background: hsl(var(--muted));
  border-radius: 9999px;
  font-weight: 600;
  cursor: default;
}

/* ========== ANALYTICS ========== */

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-period {
  display: flex;
  gap: 0.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.25rem;
}

.analytics-period__btn {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--muted-fg));
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.analytics-period__btn:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--fg));
}

.analytics-period__btn--active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-fg));
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
}

.analytics-card__label {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.analytics-card__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

.analytics-card__sub {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  margin-top: 0.25rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.analytics-section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
}

.analytics-section__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.analytics-empty {
  color: hsl(var(--muted-fg));
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem 0;
}

/* Chart */
.analytics-chart {
  height: 200px;
}

.analytics-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
}

.analytics-chart__bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: default;
}

.analytics-chart__bar {
  width: 100%;
  background: hsl(var(--primary));
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: opacity 0.15s;
}

.analytics-chart__bar-wrap:hover .analytics-chart__bar {
  opacity: 0.75;
}

/* Top Video */
.analytics-top-video {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.analytics-top-video__thumb {
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: hsl(var(--secondary));
}

.analytics-top-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analytics-top-video__info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.analytics-top-video__info p {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
}

/* Table */
.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.analytics-table th {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-fg));
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.analytics-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.analytics-table tbody tr:hover {
  background: hsla(0, 0%, 100%, 0.02);
}

.analytics-table__video-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.analytics-table__video-link:hover span {
  text-decoration: underline;
}

.analytics-table__thumb {
  width: 48px;
  aspect-ratio: 16/9;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .analytics-header { flex-direction: column; align-items: flex-start; }
  .analytics-cards { grid-template-columns: repeat(2, 1fr); }
  .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .analytics-cards { grid-template-columns: 1fr; }
}

/* ========== ANNOUNCEMENT BANNER ========== */

.announcement-banner {
  width: 100%;
}

.announcement-banner__item {
  padding: 0.625rem 1rem;
}

.announcement-banner__item--hidden {
  display: none;
}

.announcement-banner__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.announcement-banner__icon {
  flex-shrink: 0;
}

.announcement-banner__text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
}

.announcement-banner__text strong {
  margin-right: 0.375rem;
}

.announcement-banner__text span {
  color: hsl(var(--muted-fg));
}

.announcement-banner__cta {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: hsla(0, 0%, 100%, 0.1);
  color: hsl(var(--fg));
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.announcement-banner__cta:hover {
  background: hsla(0, 0%, 100%, 0.18);
}

.announcement-banner__pagination {
  flex-shrink: 0;
}

.announcement-banner__counter {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
}

.announcement-banner__dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: hsl(var(--muted-fg));
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.announcement-banner__dismiss:hover {
  background: hsla(0, 0%, 100%, 0.1);
  color: hsl(var(--fg));
}

@media (max-width: 768px) {
  .announcement-banner__pagination { display: none; }
  .announcement-banner__content { gap: 0.5rem; }
}

/* ========== REPORT MODAL ========== */

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.report-modal__dialog {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  width: 90%;
  max-width: 480px;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.report-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.report-modal__header h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.report-modal__close {
  background: none;
  border: none;
  color: hsl(var(--muted-fg));
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}

.report-modal__close:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--fg));
}

.report-modal__footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.report-modal__message {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.report-modal__message--success {
  background: hsla(142, 70%, 45%, 0.15);
  color: #22c55e;
  border: 1px solid hsla(142, 70%, 45%, 0.3);
}

.report-modal__message--error {
  background: hsla(0, 70%, 45%, 0.15);
  color: #ef4444;
  border: 1px solid hsla(0, 70%, 45%, 0.3);
}
.rolling-feedback-hub,
.rolling-feedback-page__hero,
.rolling-feedback-detail__header,
.rolling-feedback-response-card,
.review-request-card,
.rolling-feedback-note {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.rolling-feedback-page {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.rolling-feedback-page__hero,
.rolling-feedback-hub,
.rolling-feedback-detail__header {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.rolling-feedback-hub__eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--muted-foreground, #b3b3b3);
}

.rolling-feedback-request-form,
.rolling-feedback-response-form {
    display: grid;
    gap: 1rem;
}

.rolling-feedback-request-form label,
.rolling-feedback-response-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rolling-feedback-request-form input,
.rolling-feedback-request-form select,
.rolling-feedback-request-form textarea,
.rolling-feedback-response-form input,
.rolling-feedback-response-form textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: inherit;
    padding: 0.8rem 0.9rem;
}

.rolling-feedback-request-form__actions,
.rolling-feedback-detail__actions,
.rolling-feedback-detail__meta,
.review-request-card__meta,
.review-request-card__footer,
.rolling-feedback-response-card__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.rolling-feedback-request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.rolling-feedback-request-grid--stacked {
    grid-template-columns: 1fr;
}

.rolling-feedback-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rolling-feedback-panel {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.rolling-feedback-panel__header {
    margin-bottom: 1rem;
}

.review-request-card {
    overflow: hidden;
}

.review-request-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.review-request-card h3,
.rolling-feedback-detail__header h1,
.rolling-feedback-response-card h3 {
    margin: 0;
}

.review-request-card p,
.rolling-feedback-page__hero p,
.rolling-feedback-hub__intro p,
.rolling-feedback-detail__question,
.rolling-feedback-note,
.rolling-feedback-response-card p {
    color: var(--muted-foreground, #c7c7c7);
}

.review-request-card__belt,
.review-request-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 0.82rem;
}

.rolling-feedback-detail {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.rolling-feedback-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
}

.rolling-feedback-detail__main {
    min-width: 0;
}

.rolling-feedback-detail__header {
    margin-top: 1rem;
}

.rolling-feedback-responses {
    margin-top: 1.5rem;
}

.rolling-feedback-response-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.rolling-feedback-response-card {
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.6rem;
}

.rolling-feedback-note {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 960px) {
    .rolling-feedback-panels {
        grid-template-columns: 1fr;
    }

    .rolling-feedback-detail__layout {
        grid-template-columns: 1fr;
    }
}
