/* ==========================================================================
   Gernets Video - Main Stylesheet
   Modern, Dark Mode First, High Performance & Responsive
   ========================================================================== */

:root {
  --bg-body: #0c0d12;
  --bg-header: rgba(12, 13, 18, 0.92);
  --bg-card: #15161f;
  --bg-card-hover: #1c1d29;
  --bg-surface: #191a24;
  --bg-input: #1f202c;
  --border-subtle: #252636;
  --border-hover: #3b3d54;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --brand-primary: #6366f1;
  --brand-cyan: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  background-color: var(--bg-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Header & Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo svg {
  height: 38px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-surface);
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: #232535;
}

.search-icon-left {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  padding: 4px;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--text-secondary);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

/* --------------------------------------------------------------------------
   Category Filter Chips Subheader
   -------------------------------------------------------------------------- */
.chips-bar {
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 64px;
  z-index: 90;
  padding: 10px 0;
}

.chips-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.chips-container::-webkit-scrollbar {
  height: 4px;
}

.chips-container::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.chip-btn.active {
  background: var(--text-main);
  color: #0b0c10;
  border-color: var(--text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Main Content Layout
   -------------------------------------------------------------------------- */
.main-wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.section-more-link {
  font-size: 13px;
  color: var(--brand-cyan);
  font-weight: 500;
  transition: opacity 0.2s;
}

.section-more-link:hover {
  text-decoration: underline;
}

/* 3x3 Responsive Desktop Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Video Card Component
   -------------------------------------------------------------------------- */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-card:hover .thumbnail-svg {
  transform: scale(1.04);
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

.resolution-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.5px;
}

.play-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .play-hover-overlay {
  opacity: 1;
}

.play-hover-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0b0c10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.video-card:hover .play-hover-btn {
  transform: scale(1);
}

.video-info {
  padding: 14px;
  display: flex;
  gap: 12px;
  flex: 1;
}

.channel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #252636;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.video-meta {
  flex: 1;
  min-width: 0;
}

.video-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.video-card:hover .video-title {
  color: #818cf8;
}

.video-channel {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.verified-icon {
  width: 13px;
  height: 13px;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.video-stats {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-category-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
}

.video-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Populated Secondary Catalog Section
   -------------------------------------------------------------------------- */
.sub-catalog {
  margin-top: 20px;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 36px 0;
}

/* --------------------------------------------------------------------------
   Video Watch Page Layout
   -------------------------------------------------------------------------- */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.watch-primary {
  min-width: 0;
}

/* Video Player Container */
.player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.player-screen {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #141520 0%, #06070a 100%);
}

/* Loading Simulation */
.player-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 20px;
  z-index: 10;
}

.player-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--brand-cyan);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.player-status-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Neutral Delay Warning Bar */
.player-notice-bar {
  display: none;
  background: rgba(30, 27, 75, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #e0e7ff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  backdrop-filter: blur(8px);
  margin-top: 10px;
  max-width: 440px;
  line-height: 1.4;
  animation: fadeIn 0.4s ease;
}

.player-notice-bar.unavailable {
  background: rgba(69, 10, 10, 0.85);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fee2e2;
}

.retry-playback-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-playback-btn:hover {
  background: var(--bg-card-hover);
}

/* Video Player Controls Bar */
.player-controls {
  height: 50px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bar-container {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar-container:hover {
  height: 6px;
}

.progress-buffered {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 14%;
  background: rgba(255, 255, 255, 0.35);
  transition: width 1s ease;
}

.progress-current {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--brand-primary);
}

.ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.ctrl-btn:hover {
  color: var(--brand-cyan);
}

.ctrl-time {
  font-size: 12px;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.ctrl-spacer {
  flex: 1;
}

.quality-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Watch Meta Details */
.watch-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1.3;
}

.watch-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.creator-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-details {
  display: flex;
  flex-direction: column;
}

.creator-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.creator-subs {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-subscribe {
  background: #ffffff;
  color: #0b0c10;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.btn-subscribe.subscribed {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.watch-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.action-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* Description Box */
.watch-description-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
}

.desc-stats-row {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.desc-text {
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Comments Section */
.comments-section {
  margin-top: 28px;
}

.comments-header {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-comment-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 0;
  outline: none;
  font-size: 13.5px;
}

.comment-input:focus {
  border-bottom-color: var(--brand-primary);
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.comment-notice {
  display: none;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-top: 8px;
}

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}

.comment-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.comment-likes {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Sidebar Up Next */
.watch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compact-video-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 6px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.compact-video-card:hover {
  background: var(--bg-surface);
}

.compact-thumb {
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}

.compact-info {
  flex: 1;
  min-width: 0;
}

.compact-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.compact-channel {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.compact-views {
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Auth Modals (Non-functional, 100% Client-Side, Safe)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalScale 0.2s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.form-link {
  color: var(--brand-cyan);
}

.form-link:hover {
  text-decoration: underline;
}

.form-alert {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  animation: fadeIn 0.25s ease;
}

.form-alert.info {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

/* --------------------------------------------------------------------------
   Generic Content Pages (About, Help, Privacy, Terms, Contact)
   -------------------------------------------------------------------------- */
.page-container {
  max-width: 900px;
  margin: 30px auto 80px;
  padding: 0 20px;
  flex: 1;
}

.page-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-block {
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.content-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  font-size: 14.5px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #090a0e;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 20px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .watch-sidebar {
    margin-top: 20px;
  }
}

@media (max-width: 860px) {
  .header-nav {
    display: none;
  }
  .search-wrapper {
    max-width: 260px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding: 10px 0;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 8px;
  }
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .watch-action-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
