/* ==== Base reset ==== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Roboto", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0a192f 0%, #020c1b 100%);
  color: #e6f1ff;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Background orbits / particles */
.bg-orbit {
  position: fixed;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15), transparent 70%);
  filter: blur(4px);
  top: -100px;
  right: -120px;
  pointer-events: none;
  z-index: -2;
  animation: orbit 28s linear infinite alternate;
}

.bg-orbit-2 {
  width: 420px;
  height: 420px;
  top: auto;
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(212, 225, 87, 0.15), transparent 70%);
  animation-duration: 32s;
}

.bg-orbit-3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1), transparent 70%);
  animation-duration: 26s;
}

@keyframes orbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-40px, 30px, 0) scale(1.05);
  }

  100% {
    transform: translate3d(30px, -20px, 0) scale(0.95);
  }
}

/* Glassmorphism base */
.glass {
  background: rgba(17, 34, 64, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(136, 146, 176, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.1),
    0 18px 55px rgba(2, 12, 27, 0.7);
  backdrop-filter: blur(22px) saturate(130%);
}

/* Anti-gravity float */
.floaty {
  animation: floaty 8s ease-in-out infinite;
}

.floaty:nth-child(2n) {
  animation-duration: 9.5s;
}

.floaty:nth-child(3n) {
  animation-duration: 7.8s;
}

@keyframes floaty {
  0% {
    transform: translateY(0px) translateZ(0) rotate3d(0, 0, 1, 0deg);
  }

  50% {
    transform: translateY(-8px) translateZ(0) rotate3d(0, 0, 1, 0.6deg);
  }

  100% {
    transform: translateY(0px) translateZ(0) rotate3d(0, 0, 1, -0.3deg);
  }
}

/* Layout containers */
.gp-header {
  position: sticky;
  top: 14px;
  margin: 14px auto 0;
  max-width: 1200px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.gp-main {
  max-width: 1200px;
  margin: 18px auto 60px;
  padding: 0 16px 40px;
}

.gp-footer {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 12px 18px;
  font-size: 0.85rem;
  color: #8892b0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-brand {
  color: #FF6B35;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: #8892b0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FF6B35;
  text-decoration: underline;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #ffe66d 0%, #ffbb1c 35%, #f48c06 70%, #ffd000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 16px rgba(255, 200, 0, 0.55),
    0 0 40px rgba(255, 200, 0, 0.2);
  overflow: hidden;
}

.logo-icon::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.7), transparent);
  mix-blend-mode: screen;
}

.logo-nano {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3a1f00;
  font-weight: 700;
}

.logo-banana {
  font-size: 1.4rem;
  transform: rotate(-18deg) translateY(3px);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.78rem;
  color: #8892b0;
}

/* Nav */
.nav-actions {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn-primary,
.btn-ghost {
  border: none;
  outline: none;
  cursor: pointer;
  font: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.18s ease-out,
    border-color 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 10% 0%, #FF6B35 0%, #F97316 100%);
  color: #020c1b;
  box-shadow:
    0 8px 28px rgba(255, 107, 53, 0.5),
    0 0 26px rgba(255, 107, 53, 0.3);
}

.btn-primary-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-glow-orb {
  position: absolute;
  left: -24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  opacity: 0.55;
  filter: blur(1px);
  animation: orb-move 2.6s ease-in-out infinite;
}

@keyframes orb-move {
  0% {
    transform: translateX(0);
    opacity: 0.3;
  }

  50% {
    transform: translateX(18px);
    opacity: 0.8;
  }

  100% {
    transform: translateX(0);
    opacity: 0.4;
  }
}

.btn-ghost {
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid rgba(136, 146, 176, 0.3);
  color: #e6f1ff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(255, 107, 53, 0.4);
}

.btn-primary:active,
.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

/* Hero section */
.hero-section {
  margin-top: 20px;
  padding: 26px 22px 24px;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-glow {
  background: linear-gradient(90deg, #FF6B35, #D4E157);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 107, 53, 0.5);
}

.hero-subtitle {
  margin-top: 4px;
  font-size: 0.98rem;
  color: #8892b0;
}

/* Search */
.search-form {
  margin: 18px auto 0;
  max-width: 600px;
}

.search-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 4px;
  background: radial-gradient(circle at 0 0, rgba(255, 107, 53, 0.08), transparent 55%),
    linear-gradient(120deg, rgba(17, 34, 64, 0.8), rgba(10, 25, 47, 0.9));
  border-radius: 999px;
  border: 1px solid rgba(136, 146, 176, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.2),
    0 14px 30px rgba(1, 2, 10, 0.9);
}

.search-input {
  flex: 1;
  background: rgba(10, 25, 47, 0.95);
  border-radius: 999px;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #e6f1ff;
}

.search-input::placeholder {
  color: #8892b0;
}

.search-input:focus {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.6);
}

.search-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #8892b0;
}

.search-hint span {
  color: #D4E157;
}

/* Metrics row */
.metrics-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.metric-card {
  flex: 1 1 160px;
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, rgba(255, 107, 53, 0.15), transparent 50%),
    rgba(17, 34, 64, 0.95);
  border: 1px solid rgba(136, 146, 176, 0.3);
}

.metric-label {
  font-size: 0.76rem;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Results */
.results-section {
  margin-top: 26px;
}

.section-header {
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.section-subtitle {
  font-size: 0.82rem;
  color: #8892b0;
}

.results-grid-wrapper {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.results-column {
  padding: 14px 12px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 34, 64, 0.95), rgba(10, 25, 47, 0.98));
  border: 1px solid rgba(136, 146, 176, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.15),
    0 16px 36px rgba(0, 0, 0, 0.8);
}

.results-heading {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.results-subheading {
  font-size: 0.76rem;
  color: #8892b0;
}

/* Video grid */
.video-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255, 107, 53, 0.15), rgba(10, 25, 47, 0.98));
  border: 1px solid rgba(136, 146, 176, 0.25);
  box-shadow:
    0 0 0 1px rgba(23, 42, 69, 0.8),
    0 14px 26px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

.video-card:hover {
  transform: translateY(-6px) translateZ(0) scale(1.01);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(255, 107, 53, 0.3);
  border-color: rgba(212, 225, 87, 0.6);
}

.video-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.3s ease-out;
}

.video-card:hover .video-thumb {
  transform: scale(1.05);
}

.video-duration-pill {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.9);
  color: #e6f1ff;
  border: 1px solid rgba(212, 225, 87, 0.5);
}

.video-body {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #e6f1ff;
  max-height: 3em;
  overflow: hidden;
}

.video-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.75rem;
  color: #8892b0;
}

.video-channel {
  font-weight: 500;
}

.video-stat-pill {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 42, 69, 0.9);
  border: 1px solid rgba(136, 146, 176, 0.4);
}

.video-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #8892b0;
}

.video-link {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 500;
}

.video-link:hover {
  text-decoration: underline;
}

/* Empty state */
.empty-state {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #8892b0;
  display: none;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(20, 24, 45, 0.9), rgba(4, 5, 12, 0.95));
  z-index: 50;
  transition: opacity 0.25s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
}

.particle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, #FF6B35);
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.85));
}

.p1 {
  animation: particle-orbit-1 1.9s linear infinite;
}

.p2 {
  animation: particle-orbit-2 2.3s linear infinite;
}

.p3 {
  animation: particle-orbit-3 2.6s linear infinite;
}

.p4 {
  animation: particle-orbit-4 3s linear infinite;
}

@keyframes particle-orbit-1 {
  0% {
    transform: translate(48px, 0);
  }

  25% {
    transform: translate(90px, 40px);
  }

  50% {
    transform: translate(60px, 90px);
  }

  75% {
    transform: translate(10px, 60px);
  }

  100% {
    transform: translate(48px, 0);
  }
}

@keyframes particle-orbit-2 {
  0% {
    transform: translate(70px, 10px) scale(0.9);
  }

  25% {
    transform: translate(100px, 70px) scale(1.1);
  }

  50% {
    transform: translate(40px, 100px) scale(0.85);
  }

  75% {
    transform: translate(0, 40px) scale(1);
  }

  100% {
    transform: translate(70px, 10px) scale(0.9);
  }
}

@keyframes particle-orbit-3 {
  0% {
    transform: translate(0, 20px) scale(0.8);
  }

  25% {
    transform: translate(40px, 100px) scale(1.1);
  }

  50% {
    transform: translate(100px, 60px) scale(0.95);
  }

  75% {
    transform: translate(60px, 0) scale(1.05);
  }

  100% {
    transform: translate(0, 20px) scale(0.8);
  }
}

@keyframes particle-orbit-4 {
  0% {
    transform: translate(20px, 90px) scale(0.85);
  }

  25% {
    transform: translate(80px, 100px) scale(1);
  }

  50% {
    transform: translate(100px, 20px) scale(0.9);
  }

  75% {
    transform: translate(10px, 0px) scale(1.1);
  }

  100% {
    transform: translate(20px, 90px) scale(0.85);
  }

}

.loading-text {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #8892b0;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 27, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Modal Content */
.modal-content {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(17, 34, 64, 0.95);
  border: 1px solid rgba(136, 146, 176, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  0% {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 107, 53, 0.8);
}

/* Video Wrapper */
.modal-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-video-wrapper.is-short {
  aspect-ratio: 9 / 16;
  padding-bottom: 0;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  height: auto;
}

/* Modal Details */
.modal-details {
  padding: 20px 24px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e6f1ff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #8892b0;
  margin-bottom: 16px;
}

.modal-channel {
  font-weight: 600;
  color: #d4d9ff;
}

.modal-dot {
  opacity: 0.5;
}

.modal-description-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(136, 146, 176, 0.1);
}

.modal-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #8892b0;
  white-space: pre-wrap;
  /* Preserve newlines */
  max-height: 200px;
  overflow-y: auto;
}

/* Scrollbar for description */
.modal-description::-webkit-scrollbar {
  width: 6px;
}

.modal-description::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.modal-description::-webkit-scrollbar-thumb {
  background: rgba(136, 146, 176, 0.3);
  border-radius: 3px;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .modal-content {
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-close-btn {
    top: 6px;
    right: 6px;
  }
}

/* Enhanced Modal Styles */
.modal-channel-large {
  font-size: 1.1rem;
  color: #d4d9ff;
  margin-bottom: 18px;
  font-weight: 500;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(136, 146, 176, 0.2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e6f1ff;
}

.desc-label {
  font-size: 0.9rem;
  color: #d4d9ff;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Remove old modal meta styles if they conflict, but keeping them safe */
.modal-meta-row {
  display: none;
  /* Hiding old row in favor of grid */
}

/* Modal Tags */
.modal-tags-container {
  margin-top: 20px;
}

.modal-tags-container.hidden {
  display: none;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 0.75rem;
  color: #8892b0;
  background: rgba(136, 146, 176, 0.1);
  border: 1px solid rgba(136, 146, 176, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.tag-pill:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.5);
  color: #e6f1ff;
}

/* Region Filter Nav */
.region-nav {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.region-btn {
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid rgba(136, 146, 176, 0.3);
  color: #8892b0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.region-btn:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.4);
  color: #e6f1ff;
  transform: translateY(-1px);
}

.region-btn.active {
  background: rgba(255, 107, 53, 0.15);
  border-color: #FF6B35;
  color: #FF6B35;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.2);
}

/* Settings Modal */
.settings-content {
  max-width: 500px;
  max-height: auto;
  overflow: visible;
  padding: 0;
}

.settings-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-title {
  font-size: 1.5rem;
  color: #e6f1ff;
  margin: 0;
}

.settings-desc {
  font-size: 0.95rem;
  color: #8892b0;
  line-height: 1.5;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 0.85rem;
  color: #d4d9ff;
  font-weight: 600;
}

.settings-input {
  background: rgba(2, 12, 27, 0.6);
  border: 1px solid rgba(136, 146, 176, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: #e6f1ff;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}

.settings-input:focus {
  outline: none;
  border-color: #FF6B35;
}

.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.settings-note {
  font-size: 0.85rem;
  color: #8892b0;
  margin-top: 10px;
  text-align: center;
}

.link-highlight {
  color: #FF6B35;
  text-decoration: none;
}

.link-highlight:hover {
  text-decoration: underline;
}

/* Responsive Design */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
  .gp-main {
    padding: 0 20px 40px;
  }

  .results-grid-wrapper {
    gap: 20px;
  }
}

/* Mobile & Tablet */
@media (max-width: 900px) {
  .gp-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .logo-area {
    margin-bottom: 4px;
  }

  .results-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .results-column {
    margin-bottom: 20px;
  }
}

/* Small Mobile */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.8rem;
  }

  /* Search Bar Fix for Mobile */
  .search-bar {
    flex-direction: column;
    border-radius: 24px;
    /* Change from pill to rounded card */
    padding: 8px;
    gap: 12px;
  }

  .search-input {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  /* Metrics */
  .metrics-row {
    gap: 8px;
  }

  .metric-card {
    flex: 1 1 100%;
    /* Stack metrics on very small screens */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Modals */
  .modal-content {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .modal-video-wrapper {
    flex-shrink: 0;
  }

  .modal-details {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }

  .modal-close-btn {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
  }

  /* Region Nav */
  .region-nav {
    flex-wrap: wrap;
  }

  .region-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    display: flex;
  }
}

/* Settings Modal Responsive */
@media (max-width: 500px) {
  .settings-content {
    width: 90%;
    max-height: 80vh;
    border-radius: 16px;
  }

  .settings-body {
    padding: 20px;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-actions button {
    width: 100%;
  }
}