/* ==========================================================================
   K-VOD VIP OFFICIAL STREAMING PORTAL DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-main: #080b12;
  --bg-surface: #0f1422;
  --bg-card: #141c2e;
  --bg-card-hover: #1a243b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(244, 63, 94, 0.4);
  
  --primary: #f43f5e;
  --primary-glow: rgba(244, 63, 94, 0.35);
  --primary-hover: #ff2e56;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow in background */
.ambient-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Top Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), #e11d48);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 0 16px var(--primary-glow);
}

.brand-accent {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 3px;
}

.badge-vip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

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

.header-search input {
  width: 100%;
  padding: 10px 38px 10px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

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

.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-tg:hover {
  background: rgba(56, 189, 248, 0.22);
}

.btn-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  border: none;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: var(--transition-fast);
}

.btn-vip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* ==========================================================================
   Category Navigation
   ========================================================================== */
.category-nav {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
}

.cat-pill {
  padding: 7px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cat-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================================================
   Main Container & Hero Banner
   ========================================================================== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

.hero-section {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}

.hero-section:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.hero-card {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #080b12 0%, rgba(8, 11, 18, 0.75) 45%, rgba(8, 11, 18, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-trend {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-4k {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--primary), #be123c);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition-fast);
}

.btn-hero-play:hover {
  transform: scale(1.03);
}

.btn-hero-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.btn-hero-download:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Section Title Bar
   ========================================================================== */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.title-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.video-count-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.sort-selector select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   Video Grid & Cards
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 3 / 4; /* Vertical Fancam / Shorts Golden Ratio */
  overflow: hidden;
  background: #090d16;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Prioritize upper body / subject framing */
  transition: transform 0.35s ease;
}

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

.card-hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .card-hover-play {
  opacity: 1;
}

.play-circle-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 18px var(--primary-glow);
}

.card-badge-res {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-badge-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.card-meta-left {
  display: flex;
  gap: 8px;
}

.card-tag {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Cinema Mode Player Modal
   ========================================================================== */
.player-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.player-modal-dialog {
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  margin: auto;
}

.player-modal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.modal-res-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.modal-video-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Player Viewport */
.player-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: #000;
  overflow: hidden;
  display: block; /* Not flexbox so absolute children align properly */
}

.player-blur-backdrop {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  filter: blur(32px) brightness(0.35);
  z-index: 1;
  pointer-events: none;
}

.player-bg-thumb {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 2;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 3;
  pointer-events: none;
}

.player-center-action {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: auto;
  text-align: center;
  width: max-content;
}

.btn-big-play {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--primary), #be123c);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 32px var(--primary-glow);
  animation: pulseGlow 2s infinite;
  transition: transform 0.2s ease;
}

.btn-big-play:hover {
  transform: scale(1.08);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 16px var(--primary-glow); }
  50% { box-shadow: 0 0 40px rgba(244, 63, 94, 0.6); }
  100% { box-shadow: 0 0 16px var(--primary-glow); }
}

.play-prompt {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* Buffering State */
.buffering-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.spinner-neon {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.buffering-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.progress-bar-bg {
  width: 260px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  border-radius: 99px;
  transition: width 0.3s ease;
}

.buffering-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Player Controls Bar */
.player-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 10px 16px 8px;
}

.timeline-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  margin-bottom: 8px;
}

.timeline-played {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.ctrl-time {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ctrl-badge-quality {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* ==========================================================================
   Modal CTA & Download Actions
   ========================================================================== */
.modal-cta-box {
  padding: 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-banner-text strong {
  display: block;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 4px;
}

.cta-banner-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cta-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.btn-action-primary, .btn-action-secondary, .btn-action-telegram {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.btn-action-primary {
  background: linear-gradient(135deg, var(--primary), #be123c);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--primary-glow);
}

.btn-action-secondary {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-action-secondary:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-2px);
}

.btn-action-telegram {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.btn-action-telegram:hover {
  background: rgba(34, 197, 94, 0.22);
  transform: translateY(-2px);
}

.btn-text-group {
  display: flex;
  flex-direction: column;
}

.btn-main-label {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-sub-label {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* Modal Info & Comments */
.modal-info-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.meta-row {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.meta-stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.modal-comments-section {
  padding: 18px 20px;
  max-height: 220px;
  overflow-y: auto;
}

.comments-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 6px;
}

.comment-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 8px 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 10px 14px;
  }
  .header-search {
    display: none; /* Collapsible or moved below on mobile */
  }
  .hero-card {
    height: 320px;
    padding: 20px;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-info {
    padding: 8px 10px;
  }
  .card-title {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 4px;
  }
  .player-viewport {
    height: 380px;
    max-height: 52vh;
  }
  .player-modal-backdrop {
    padding: 0;
  }
  .player-modal-dialog {
    border-radius: 0;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
  }
  .cta-buttons-grid {
    grid-template-columns: 1fr;
  }
}
