html {
  font-family:
    Georgia,
    Cambria,
    "Times New Roman",
    Times,
    serif;
  scroll-behavior: smooth;
  background: #f8fafc;
  color: #0f172a;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
  line-height: 1.5;
}

html.dark,
html.dark body {
  background: #050505;
  color: #ffffff;
}

.app-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

html.dark .app-shell {
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.loading-header {
  height: calc(64px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) 1rem 0;
  background: rgba(248, 250, 252, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

html.dark .loading-header {
  background: rgba(0, 0, 0, 0.8);
}

.loading-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #e50914 0%, #c20812 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.loading-title {
  margin-left: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

html.dark .loading-title {
  color: #fff;
}

.loading-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

html.dark .skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.card-skeleton {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.text-skeleton {
  height: 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.text-skeleton-title {
  width: 60%;
  max-width: 280px;
  height: 2rem;
  margin-bottom: 0.75rem;
}

.text-skeleton-subtitle {
  width: 40%;
  max-width: 200px;
  height: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .loading-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .loading-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .loading-content {
    padding: 3rem 2rem;
  }

  .loading-header {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .loading-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .loading-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: #1a1a1a;
  }

  html {
    scroll-behavior: auto;
  }
}
