* {
  box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 57, 70, 0.8);
}

html {
  scrollbar-color: rgba(230, 57, 70, 0.6) #1a1a1a;
}

body {
  margin: 0;
  background: #1a1a1a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* About page layout (no hero/directory, just .landing-container as direct child of body) */
body > .landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

/* ── Hero Section ── */
.hero-section {
  background: #0d0d0d;
  padding: 1rem 2rem 1.5rem;
}

.hero-inner {
  max-width: 1800px;
  margin: 0 auto;
}

.site-title {
  display: block;
  color: #ccc;
  font-size: 1rem;
  padding: 0.25rem 0;
  text-align: center;
  margin: 0 0 1rem 0;
}

.site-tagline {
  color: #aaa;
  font-size: 0.85rem;
  font-style: italic;
}

.site-title-static {
  cursor: default;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-embed {
  flex: 1 1 calc(25% - 16px);
  min-width: 300px;
  text-align: center;
}

.hero-embed iframe {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: calc((100vh - 260px) / 2);
  border: 2px solid #0d0d0d;
  border-radius: 20px;
  background: linear-gradient(270deg, #8a0038, #4a1d80, #1a4f8a, #0a6b50, #8a6500, #8a0038);
  background-size: 600% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
.hero-embed:nth-child(2) iframe { animation-delay: -0.4s; }
.hero-embed:nth-child(3) iframe { animation-delay: -0.8s; }
.hero-embed:nth-child(4) iframe { animation-delay: -1.2s; }
.hero-embed:nth-child(5) iframe { animation-delay: -1.6s; }
.hero-embed:nth-child(6) iframe { animation-delay: -2.0s; }
.hero-embed:nth-child(7) iframe { animation-delay: -2.4s; }
.hero-embed:nth-child(8) iframe { animation-delay: -2.8s; }

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

.hero-embed-label {
  color: #ccc;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-embed-label:hover {
  color: #fff;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-random-btn {
  background: rgba(230, 57, 70, 0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.hero-random-btn:hover {
  background: rgba(230, 57, 70, 0.8);
}

.hero-all-link {
  background: rgba(50, 100, 180, 0.6);
}

.hero-all-link:hover {
  background: rgba(50, 100, 180, 0.8);
}

.hero-scroll-arrows {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-scroll-arrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 0.4;
}

.hero-scroll-arrow:hover {
  opacity: 1;
}

/* Triangle */
.hero-scroll-arrow::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
}

/* Tail */
.hero-scroll-arrow::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #fff;
}

/* Down arrow: tail on top (against flat base), point at bottom */
.arrow-down {
  flex-direction: column-reverse;
}

.arrow-down::before {
  border-top: 18px solid #fff;
}

/* Up arrow: point at top, tail on bottom (against flat base) */
.arrow-up {
  flex-direction: column;
}

.arrow-up::before {
  border-bottom: 18px solid #fff;
}

/* Hero responsive */
@media (max-width: 1200px) {
  .hero-embed {
    flex: 1 1 calc(33.33% - 16px);
  }
}

@media (max-width: 900px) {
  .hero-embed {
    flex: 1 1 calc(50% - 16px);
  }
}

@media (max-width: 600px) {
  .hero-embed {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .site-title {
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
  }

  .site-tagline {
    display: block;
    margin-top: 0.25rem;
  }

  .hero-section {
    padding: 1rem 1rem 1.5rem;
  }

  .hero-grid {
    gap: 12px;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .hero-random-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .hero-scroll-arrows {
    margin-top: 1.5rem;
  }

  .directory-section {
    padding: 1.5rem 1rem;
  }
}

/* ── Directory Section ── */
.directory-section {
  background: #1a1a1a;
  padding: 3rem 2rem;
}

.landing-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.directory-columns {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.directory-col {
  flex: 1;
  min-width: 0;
}

.directory-col-wide {
  flex: 3;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  margin: 0 0 1rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(50, 100, 180, 0.6);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.section-title:hover {
  background: rgba(50, 100, 180, 0.8);
}

h2.section-title {
  cursor: default;
}

h2.section-title:hover {
  background: rgba(50, 100, 180, 0.6);
}

.link-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.link-grid-2col {
  display: block;
  columns: 3;
  column-gap: 2rem;
}

.link-grid-2col .link-item {
  display: block;
  break-inside: avoid;
}

.link-grid-2col .link-item:last-child {
  border-bottom: 1px solid #1a1a1a;
}

.link-item {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.25rem 0;
  transition: color 0.2s, padding-left 0.2s;
  border-bottom: 1px solid #1a1a1a;
}

.link-item:hover {
  color: #fff;
  padding-left: 0.5rem;
}

.link-grid-separator {
  column-span: all;
  border-top: 3px solid #333;
  margin: 0.25rem 0;
}

.link-item-red {
  color: #fff;
  background: rgba(230, 57, 70, 0.6);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  align-self: flex-start;
}

.link-item-red:hover {
  color: #fff;
  background: rgba(230, 57, 70, 0.8);
}

.link-item-subtle {
  color: #666;
  border-bottom: none;
  text-align: center;
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-item-subtle:hover {
  color: #999;
  padding-left: 0;
}

.about-text {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.about-text p {
  margin: 0 0 1rem 0;
}

.about-text p:last-child {
  color: #999;
}

.about-text a {
  color: #fff;
  text-decoration: none;
}

.about-text a.link-red {
  color: #ff6b6b;
}

.about-text a.link-orange {
  color: #ff7700;
}

.section-footer {
  margin-top: 0;
  margin-bottom: 0;
}

.link-item:last-child {
  border-bottom: none;
}

/* Tablet & Mobile */
@media (max-width: 900px) {
  .directory-columns {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .directory-col {
    flex: 1 1 calc(50% - 1rem);
  }
  .directory-col-wide {
    flex: 1 1 100%;
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem 1.5rem 2rem;
  }
  .directory-section {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .directory-columns {
    flex-direction: column;
    gap: 0;
  }
  .link-grid-2col {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .link-item {
    font-size: 0.95rem;
    padding: 0.35rem 0;
  }
}
