/* ═══════════════════════════════════════════════
   SiftPlay — AI-Curated Video Discovery
   Aesthetic: Editorial Curation × Streaming Platform
   ═══════════════════════════════════════════════ */

:root {
  /* Palette */
  --purple:       #6C5CE7;
  --purple-light: #A29BFE;
  --purple-dark:  #4A3FC7;
  --purple-ghost: rgba(108, 92, 231, 0.08);
  --purple-glow:  rgba(108, 92, 231, 0.15);

  --surface:      #FAFAFA;
  --surface-card: #FFFFFF;
  --surface-dark: #121218;
  --surface-mid:  #16161E;

  --text-primary:   #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted:     #9CA3AF;
  --text-inverse:   #E5E7EB;
  --text-inv-muted: #9CA3AF;

  --border:       #E5E7EB;
  --border-light: #F3F4F6;

  --amber:  #F59E0B;
  --green:  #10B981;
  --teal:   #14B8A6;
  --red:    #EF4444;
  --orange: #F97316;

  /* Spacing */
  --sidebar-w: 260px;
  --header-h: 64px;

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'SF Mono', monospace;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ══════════════════════
   HEADER
   ══════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--surface-dark);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.logo-group:hover { opacity: 0.85; }

.logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1;
  font-family: var(--font-display);
}

/* Region selector */
/* ── Search Bar ── */
.search-bar {
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-inv-muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 9px 40px 9px 42px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s var(--ease-out);
}

.search-bar input::placeholder {
  color: var(--text-inv-muted);
}

.search-bar input:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.search-clear {
  position: absolute;
  right: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inv-muted);
  transition: all 0.15s;
}

.search-clear:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.region-selector {
  position: relative;
}

.region-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-inverse);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
}

.region-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
}

.region-flag { font-size: 1.1rem; }

.chevron {
  color: var(--text-inv-muted);
  transition: transform 0.2s var(--ease-out);
}

.region-selector.open .chevron {
  transform: rotate(180deg);
}

.region-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 110;
}

.region-selector.open .region-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.region-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-inverse);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  transition: background 0.15s;
}

.region-option:hover {
  background: rgba(255,255,255,0.06);
}

.region-option.active {
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}

.region-option .ro-flag { font-size: 1.15rem; }

/* Region search */
.region-search-wrap {
  padding: 6px 6px 4px;
}

.region-search {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  outline: none;
}

.region-search::placeholder {
  color: var(--text-inv-muted);
}

.region-search:focus {
  border-color: var(--purple-light);
}

.region-list {
  max-height: 280px;
  overflow-y: auto;
}

.region-list::-webkit-scrollbar { width: 4px; }
.region-list::-webkit-scrollbar-track { background: transparent; }
.region-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ══════════════════════
   APP LAYOUT
   ══════════════════════ */
.app-layout {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* ══════════════════════
   SIDEBAR
   ══════════════════════ */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface-dark);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  z-index: 90;
  transition: transform 0.3s var(--ease-out);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
}

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-inv-muted);
}

.sidebar-toggle-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-inv-muted);
  padding: 4px;
}

.category-nav {
  padding: 0 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-inv-muted);
  font-size: 0.84rem;
  font-weight: 400;
  text-align: left;
  transition: all 0.15s;
  position: relative;
}

.cat-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-inverse);
}

.cat-item.active {
  background: var(--purple-glow);
  color: var(--purple-light);
  font-weight: 600;
}

.cat-item.active .cat-icon {
  color: var(--purple);
}

.cat-icon {
  font-size: 0.7rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.cat-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-inv-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

.cat-item.active .cat-count {
  background: rgba(108, 92, 231, 0.2);
  color: var(--purple-light);
}

/* Parent category heading */
.cat-parent {
  margin-top: 8px;
  padding-top: 8px;
}

.cat-parent:first-child {
  margin-top: 0;
  padding-top: 0;
}

.cat-parent-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  cursor: default;
}

.cat-child {
  padding-left: 28px;
}

/* ══════════════════════
   CONTENT
   ══════════════════════ */
.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 24px 32px 60px;
  min-width: 0;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 95;
  width: 48px;
  height: 48px;
  background: var(--surface-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ── Filters ── */
.filters-bar {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--surface-card);
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

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

.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.chip:hover {
  background: var(--purple-ghost);
  border-color: var(--purple-light);
  color: var(--purple);
}

.chip.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}

/* ── Content Header ── */
.content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.results-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════
   VIDEO GRID
   ══════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Video Card ── */
.video-card {
  background: var(--surface-card);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.12);
  border-color: var(--purple-light);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

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

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card:hover .card-thumb-overlay {
  opacity: 1;
}

.play-icon {
  width: 52px;
  height: 52px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.video-card:hover .play-icon {
  transform: scale(1);
}

.play-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 2px;
}

/* Duration badge */
.badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

/* Score badge on card */
.badge-score {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
}

.badge-score .score-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.score-green  { background: var(--green); }
.score-teal   { background: var(--teal); }
.score-orange { background: var(--orange); }
.score-red    { background: var(--red); }

/* Card body */
.card-body {
  padding: 14px 16px 16px;
}

.card-channel {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-light);
  flex-shrink: 0;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-summary {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 2px solid var(--purple-light);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-meta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* ══════════════════════
   LOAD MORE
   ══════════════════════ */
.load-more-container {
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s var(--ease-out);
}

.load-more-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.25);
}

.load-more-btn svg {
  transition: transform 0.2s var(--ease-out);
}

.load-more-btn:hover svg {
  transform: translateY(2px);
}

/* ══════════════════════
   LOADING STATE
   ══════════════════════ */
.loading-state {
  display: none;
  justify-content: center;
  padding: 80px 0;
}

.loading-state.active {
  display: flex;
}

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

.loader-dot {
  width: 10px;
  height: 10px;
  background: var(--purple);
  border-radius: 50%;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

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

@keyframes loaderPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.88rem;
}

/* ══════════════════════
   PLAYER MODAL
   ══════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface-card);
  border-radius: 18px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

/* ── Desktop: 2-column player (video left, details+related right) ── */
@media (min-width: 920px) {
  .modal-content.player-modal-content {
    flex-direction: row;
    max-width: 1240px;
    max-height: 86vh;
    align-items: stretch;
  }
  .player-modal-content .player-container {
    flex: 0 0 62%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
    border-radius: 18px 0 0 18px;
    overflow: hidden;
  }
  .player-modal-content .player-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 86vh;
  }
  .player-modal-content .player-details {
    flex: 1;
    overflow-y: auto;
    border-left: 1px solid var(--border);
    border-radius: 0 18px 18px 0;
  }
  .player-modal-content .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
  }
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 210;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.7);
}

.player-container {
  position: relative;
  background: #000;
}

.player-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.player-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-details {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.pd-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pd-channel {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-channel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-ghost);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.pd-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pd-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pd-stats svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.pd-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.pd-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 8px;
}

.pd-section-title svg {
  width: 16px;
  height: 16px;
}

.pd-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 3px solid var(--purple-light);
  margin-bottom: 20px;
}

.pd-scores {
  display: flex;
  gap: 12px;
}

.pd-score-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid;
}

.pd-score-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
}

.pd-score-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ══════════════════════
   SKELETON LOADING
   ══════════════════════ */
.skeleton-card {
  background: var(--surface-card);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.skeleton-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 14px 16px 16px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

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

/* ══════════════════════
   CARD ENTRANCE ANIMATION
   ══════════════════════ */
.video-card {
  animation: cardEnter 0.4s var(--ease-out) backwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 95;
    width: 280px;
    top: 0;
    padding-top: var(--header-h);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle-close {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .content {
    margin-left: 0;
    padding: 20px 16px 80px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .region-name {
    display: none;
  }

  .modal-content {
    max-width: 100%;
    border-radius: 14px;
  }

  .pd-scores {
    flex-direction: column;
  }

  .content-header {
    flex-direction: column;
    gap: 4px;
  }
}

/* Sidebar overlay backdrop on mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 94;
}

.sidebar-backdrop.active {
  display: block;
}

/* ══════════════════════
   CATEGORY TABS (on-screen)
   ══════════════════════ */
.category-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.category-tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.category-tabs-bar::-webkit-scrollbar { display: none; }

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--purple-ghost);
  border: 1px solid rgba(108,92,231,0.35);
  border-radius: 20px;
  color: var(--purple);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.view-all-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.cat-tab {
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
  flex-shrink: 0;
}

.cat-tab:hover {
  background: var(--purple-ghost);
  border-color: var(--purple-light);
  color: var(--purple);
}

.cat-tab.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}

/* ── All Categories Modal ── */
.all-cats-modal {
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0;
}

.all-cats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  position: sticky;
  top: 0;
  background: var(--surface-card);
  z-index: 2;
}

.all-cats-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.all-cats-reset {
  display: block;
  margin: 0 24px 16px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--purple-ghost);
  border: 1px solid var(--purple-light);
  border-radius: 8px;
  color: var(--purple);
  cursor: pointer;
  transition: all 0.2s;
}

.all-cats-reset:hover {
  background: var(--purple);
  color: #fff;
}

.all-cats-grid {
  padding: 0 24px 24px;
}

.all-cats-parent {
  margin-bottom: 16px;
}

.all-cats-parent-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.all-cats-parent-btn:hover {
  border-color: var(--purple-light);
  background: var(--purple-ghost);
}

.all-cats-parent-btn.active {
  border-color: var(--purple);
  background: var(--purple-ghost);
}

.all-cats-parent-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--purple-ghost);
  border-radius: 8px;
  flex-shrink: 0;
}

.all-cats-parent-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.all-cats-parent-btn.active .all-cats-parent-name {
  color: var(--purple);
}

.all-cats-children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 0 46px;
}

.all-cats-child {
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.all-cats-child:hover {
  background: var(--purple-ghost);
  border-color: var(--purple-light);
  color: var(--purple);
}

.all-cats-child.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* ══════════════════════
   LIKE / DISLIKE / SHARE
   ══════════════════════ */
.pd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-out);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.action-btn:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}

.action-btn.liked {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--green);
  color: var(--green);
}

.action-btn.liked svg {
  fill: var(--green);
}

.action-btn.disliked {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--red);
  color: var(--red);
}

.action-btn.disliked svg {
  fill: var(--red);
}

.share-btn {
  margin-left: auto;
}

.share-dropdown {
  position: relative;
}

.share-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: none;
  min-width: 180px;
  z-index: 220;
}

.share-dropdown.open .share-menu {
  display: block;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-primary);
  transition: background 0.15s;
}

.share-option:hover {
  background: var(--purple-ghost);
}

.share-option svg {
  width: 16px;
  height: 16px;
}

/* ══════════════════════
   RELATED VIDEOS
   ══════════════════════ */
.pd-related {
  margin-top: 16px;
}

.pd-related-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.related-item:hover {
  background: var(--purple-ghost);
}

.related-thumb {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info {
  flex: 1;
  min-width: 0;
}

.related-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.related-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ══════════════════════
   PAYWALL MODAL
   ══════════════════════ */
.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.paywall-overlay.active {
  opacity: 1;
  visibility: visible;
}

.paywall-content {
  background: var(--surface-card);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-spring);
}

.paywall-overlay.active .paywall-content {
  transform: scale(1);
}

.paywall-icon {
  margin-bottom: 20px;
}

.paywall-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.paywall-content > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.paywall-plans {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.paywall-plan {
  flex: 1;
  padding: 20px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  text-align: center;
  transition: all 0.2s var(--ease-out);
  position: relative;
}

.paywall-plan:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
}

.paywall-plan.featured {
  border-color: var(--purple);
  background: var(--purple-ghost);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-price {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

.paywall-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px;
  transition: color 0.2s;
}

.paywall-dismiss:hover {
  color: var(--text-primary);
}

/* ══════════════════════
   CREATOR MODAL
   ══════════════════════ */
.creator-modal {
  max-width: 560px;
}

.creator-form-wrap {
  padding: 32px;
}

.creator-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.creator-form-wrap > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--purple);
}

.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--purple);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

/* ══════════════════════
   SIFTPLAY STATS ON CARD
   ══════════════════════ */
.card-sp-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-sp-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-sp-stats svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ══════════════════════
   MOBILE SEARCH
   ══════════════════════ */
@media (max-width: 768px) {
  .search-bar {
    max-width: none;
    margin: 0 12px;
  }

  .category-tabs-bar {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
  }

  .paywall-plans {
    flex-direction: column;
  }

  .related-thumb {
    width: 90px;
  }
}

/* ══════════════════════════════════════════════
   AUTH — User button & dropdown
   ══════════════════════════════════════════════ */

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.15s;
  white-space: nowrap;
}
.user-btn:hover { background: var(--purple-ghost); border-color: var(--purple-light); }

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.user-menu-wrap {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 300;
  display: none;
}
.user-menu-wrap.open .user-dropdown { display: block; }

.user-dropdown-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.user-dropdown-name { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.user-dropdown-email { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }

.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  border: none; background: none; width: 100%; text-align: left;
  transition: background 0.12s;
}
.user-dropdown-item:hover { background: var(--purple-ghost); }
.user-dropdown-item.danger { color: var(--red); }
.user-dropdown-item svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════════════ */

.auth-modal {
  max-width: 420px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.auth-modal-header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  padding: 28px 28px 24px;
  position: relative;
}
.auth-modal-logo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.auth-modal-logo svg { width: 28px; height: 28px; }
.auth-modal-logo span { font-weight: 800; font-size: 1.1rem; color: #fff; }
.auth-modal-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.8); }

.auth-tabs {
  display: flex;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: 14px;
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border: none; background: none;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.auth-tab.active { color: var(--purple); border-bottom-color: var(--purple); }

.auth-body { padding: 24px 28px 28px; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.auth-field input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--text-primary); background: var(--surface);
  transition: border-color 0.15s;
  outline: none;
}
.auth-field input:focus { border-color: var(--purple); background: #fff; }

.auth-submit-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; border: none; border-radius: 12px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s; margin-top: 4px;
}
.auth-submit-btn:hover { opacity: 0.9; }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  color: var(--red); font-size: 0.82rem; margin-top: -8px; margin-bottom: 12px;
  display: none;
}
.auth-error.visible { display: block; }

/* ══════════════════════════════════════════════
   SUBMIT VIDEO MODAL
   ══════════════════════════════════════════════ */

.submit-modal {
  max-width: 560px;
  padding: 0;
  border-radius: 20px;
  overflow: visible;
}

.submit-modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.submit-modal-header h2 {
  font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.submit-modal-header p { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.submit-modal-body { padding: 24px 28px 28px; }

.submit-field { margin-bottom: 20px; }
.submit-field label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.submit-field input,
.submit-field select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--text-primary); background: var(--surface);
  outline: none; transition: border-color 0.15s;
}
.submit-field input:focus,
.submit-field select:focus { border-color: var(--purple); background: #fff; }

.submit-region-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.submit-region-chip {
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
  cursor: pointer; transition: all 0.12s;
}
.submit-region-chip.selected {
  border-color: var(--purple); background: var(--purple-ghost); color: var(--purple);
}

.video-preview-box {
  display: none;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-top: 10px;
  align-items: flex-start;
}
.video-preview-box.visible { display: flex; }
.video-preview-thumb {
  width: 100px; flex-shrink: 0;
  aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
}
.video-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-preview-info h4 { font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
.video-preview-info p { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

.submit-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; border: none; border-radius: 12px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s;
}
.submit-btn:hover { opacity: 0.9; }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.submit-result {
  display: none; padding: 14px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 500; text-align: center;
  margin-top: 12px;
}
.submit-result.success { display: block; background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.submit-result.error { display: block; background: rgba(239,68,68,0.08); color: var(--red); border: 1px solid rgba(239,68,68,0.15); }

/* My submissions panel */
.my-submissions-modal {
  max-width: 640px;
}
.submission-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.submission-row:last-child { border-bottom: none; }
.submission-thumb {
  width: 80px; flex-shrink: 0;
  aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface);
}
.submission-thumb img { width: 100%; height: 100%; object-fit: cover; }
.submission-info { flex: 1; min-width: 0; }
.submission-info h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.submission-info p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.submission-status {
  font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.submission-status.approved { background: rgba(16,185,129,0.1); color: var(--green); }
.submission-status.pending { background: rgba(245,158,11,0.1); color: var(--amber); }
.submission-status.rejected { background: rgba(239,68,68,0.08); color: var(--red); }

/* ── Submit video btn in header ── */
.submit-video-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 0.83rem; font-weight: 700;
  transition: opacity 0.15s; white-space: nowrap;
}
.submit-video-btn:hover { opacity: 0.88; }
.submit-video-btn svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
  .submit-video-btn span { display: none; }
  .submit-video-btn { padding: 8px; border-radius: 50%; }
}

/* ── Subscription badge in user dropdown ── */
.sub-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.sub-badge.pro {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
}
.sub-badge.free {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
}
.sub-badge.expired {
  background: rgba(239,68,68,0.08); color: var(--red);
  border: 1px solid rgba(239,68,68,0.15);
}

/* ── Subscribe / pricing modal ── */
.pricing-modal {
  max-width: 540px;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
}
.pricing-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2A5E 100%);
  padding: 32px 32px 28px;
  text-align: center;
}
.pricing-header h2 {
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.pricing-header p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

.pricing-perks {
  display: flex; flex-direction: column; gap: 6px;
  margin: 20px 0 0;
}
.pricing-perk {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,0.85);
}
.pricing-perk svg { color: var(--purple-light); flex-shrink: 0; }

.pricing-plans {
  display: flex; gap: 16px;
  padding: 28px 28px 24px;
  background: var(--surface-card);
}

.pricing-plan-card {
  flex: 1; padding: 20px 16px;
  border: 2px solid var(--border); border-radius: 16px;
  cursor: pointer; background: none;
  font-family: var(--font-display);
  text-align: center; transition: all 0.2s;
  position: relative;
}
.pricing-plan-card:hover { border-color: var(--purple-light); background: var(--purple-ghost); }
.pricing-plan-card.featured {
  border-color: var(--purple); background: var(--purple-ghost);
}
.pricing-plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.pricing-plan-price {
  font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1;
}
.pricing-plan-price sup { font-size: 1rem; vertical-align: super; }
.pricing-plan-period { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 8px; }
.pricing-plan-name { font-size: 0.85rem; font-weight: 700; color: var(--purple); }
.pricing-plan-saving { font-size: 0.72rem; color: var(--green); font-weight: 600; margin-top: 4px; }

.pricing-footer {
  padding: 0 28px 28px;
  text-align: center;
  background: var(--surface-card);
}
.pricing-footer p { font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }
.pricing-login-hint { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.pricing-login-hint button {
  background: none; border: none; color: var(--purple); font-weight: 600;
  cursor: pointer; font-size: inherit; font-family: inherit;
}
