/* ==========================================================================
   GBblitz - Dark Mode Video Gallery & Cycling Photo Showcase
   ========================================================================== */

:root {
  --bg-main: #060709;
  --bg-surface: #0e1117;
  --bg-surface-elevated: #151921;
  --bg-surface-hover: #1c222d;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(56, 189, 248, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);
  --accent-teal: #2dd4bf;
  --accent-amber: #fbbf24;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--accent-cyan);
  selection-color: #000;
}

/* Ambient dynamic backdrops */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
}

.ambient-glow-top {
  top: -150px;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(45, 212, 191, 0) 70%);
}

.ambient-glow-bottom {
  bottom: -150px;
  left: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0284c7 0%, rgba(0, 0, 0, 0) 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(6, 7, 9, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.4);
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: #f8fafc;
  color: #060709;
  border-color: #f8fafc;
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent-cyan);
  color: #060709;
}

.btn-accent:hover {
  background: #7dd3fc;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.btn-icon-only svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.btn-icon-only:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  color: #fff;
  transform: scale(1.05);
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.modal-floating-close-btn {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1005;
  transition: all var(--transition-fast);
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.modal-floating-close-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.modal-floating-close-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.7);
  color: #fca5a5;
  transform: scale(1.1);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.6rem;
}

.badge-accent {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Main Layout */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.35rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ==========================================================================
   Cycling Photo Album Carousel
   ========================================================================== */
.album-section {
  position: relative;
}

.album-container {
  width: 100%;
}

.carousel-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
}

.carousel-track-container {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  list-style: none;
  display: flex;
  height: 100%;
  transition: transform var(--transition-smooth);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease-out;
}

.carousel-slide.active .carousel-img {
  transform: scale(1.04);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 9, 0.1) 0%,
    rgba(6, 7, 9, 0.4) 50%,
    rgba(6, 7, 9, 0.9) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.carousel-caption {
  max-width: 700px;
}

.carousel-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.carousel-slide-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.carousel-wave-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.carousel-slide-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.carousel-slide-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.carousel-play-btn {
  margin-top: 1.25rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: #f8fafc;
  color: #060709;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-play-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.4);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 17, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-nav svg {
  width: 22px;
  height: 22px;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 1.25rem;
}

.carousel-next {
  right: 1.25rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 1.25rem;
  right: 2.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 28px;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 44px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.carousel-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 12;
}

.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
}

/* ==========================================================================
   Video Gallery & Glowing Hover Cards
   ========================================================================== */
.gallery-section {
  position: relative;
}

.gallery-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.drive-status-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 420px;
}

.drive-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drive-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.drive-status-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drive-status-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.drive-folder-id {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Search & Filter Toolbar */
.gallery-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  min-width: 280px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  width: 100%;
}

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

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.filter-pill.active {
  background: var(--accent-cyan);
  color: #060709;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
}

.filter-pill-winner.active {
  background: #facc15;
  color: #000;
  border-color: #facc15;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.4);
}

.filter-pill-runner.active {
  background: #fb923c;
  color: #000;
  border-color: #fb923c;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.4);
}

.filter-pill-approved.active {
  background: #2dd4bf;
  color: #000;
  border-color: #2dd4bf;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.4);
}

.video-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Video Card with Rounded Glowing Thumbnail */
.video-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), 
              border-color var(--transition-normal), 
              box-shadow var(--transition-normal);
  will-change: transform, box-shadow;
}

/* Glow Effect on Hover */
.video-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.9),
              0 0 28px -2px rgba(56, 189, 248, 0.45);
}

/* Thumbnail / Preview Area */
.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  background: #000;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-fast), transform var(--transition-smooth);
}

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

/* Hover Video & Live Preview Element */
.preview-iframe-slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.video-preview-iframe {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border: none;
  pointer-events: none;
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card.is-playing .video-preview-iframe {
  opacity: 1;
  transform: scale(1);
}

.video-card.is-playing .video-thumb-img {
  opacity: 0.15;
}

/* Preview Overlays & Badges */
.thumb-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.wave-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(14, 17, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-highlight {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.badge-winner {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.3);
}

.badge-runner-up {
  background: rgba(251, 146, 60, 0.2);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.4);
}

.badge-approved {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.badge-general {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-wave-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.video-designation-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.card-highlight:hover {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.9),
              0 0 32px -2px rgba(56, 189, 248, 0.5);
}

.card-winner:hover {
  border-color: rgba(250, 204, 21, 0.6);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.9),
              0 0 32px -2px rgba(250, 204, 21, 0.4);
}

.duration-pill {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hover Playing Pill */
.hover-play-indicator {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.9);
  color: #060709;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
  z-index: 4;
}

.video-card.is-playing .hover-play-indicator {
  opacity: 1;
  transform: translateY(0);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #060709;
  animation: pulseAnimation 1.2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Hover Scrub Bar */
.hover-scrub-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 4;
}

.hover-scrub-progress {
  height: 100%;
  width: 0%;
  background: var(--accent-cyan);
}

.video-card.is-playing .hover-scrub-bar {
  opacity: 1;
}

/* Card Body */
.video-card-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.6rem;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.video-category-tag {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: capitalize;
}

.video-click-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-cyan);
  font-weight: 600;
  opacity: 0.85;
}

.video-click-prompt svg {
  width: 14px;
  height: 14px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.25rem;
  color: #fff;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Theater Video Modal (Enlarged Player)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 6, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.theater-card {
  width: 100%;
  max-width: 1050px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.9),
              0 0 50px -10px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .theater-card {
  transform: scale(1) translateY(0);
}

.theater-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 17, 23, 0.95);
}

.theater-title-group {
  min-width: 0;
}

.theater-badge {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.theater-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theater-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

.theater-iframe-element {
  width: 100%;
  height: 100%;
  border: none;
}

.theater-footer {
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 17, 23, 0.95);
}

.theater-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.theater-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ==========================================================================
   Drive Configuration Modal
   ========================================================================== */
.config-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .config-card {
  transform: scale(1);
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.config-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.config-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.config-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 2.75rem;
  width: 100%;
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.config-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1.75rem 0;
}

.quick-add-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 7, 9, 0.95);
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot-separator {
  color: var(--border-active);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .carousel-track-container {
    height: 380px;
  }
  
  .carousel-overlay {
    padding: 1.5rem;
  }
  
  .carousel-slide-title {
    font-size: 1.4rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0.85rem 1rem;
  }
  
  .main-content {
    padding: 1.25rem 1rem 3.5rem;
    gap: 2.5rem;
  }
  
  .carousel-track-container {
    height: 280px;
  }
  
  .carousel-nav {
    display: none;
  }
  
  .gallery-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .theater-header {
    padding: 1rem;
  }
  
  .theater-footer {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}
