:root {
  --bg: #0b0b12;
  --text: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.page {
  min-height: 100vh;
  padding-top: 56px;
}

.hero {
  background-image: url("assets/hero-home.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;

  height: 56px;
  display: flex;
  align-items: center;

  padding: 0 16px;

  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;

  padding: 6px 12px;
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);

  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.hero-title {
  width: 100%;
  text-align: center;

  font-size: 40px;
  letter-spacing: 0.08em;

  padding-bottom: 8px;
  opacity: 0.95;
}
.news {
  position: relative;
  padding: 160px 16px 80px 160px;
}

.news-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.news-title {
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-bg {
  position: absolute;
  top: -80px;
  left: -0px;

  font-size: 260px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(180, 180, 180, 0.07);

  pointer-events: none;
  user-select: none;
  z-index: 0;
}


.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.news-tile {
  color: inherit;
  text-decoration: none;
}
/* news tiles */
.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.news-tile {
  display: block;
  aspect-ratio: 1 / 1;

  border-radius: 10px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.92);
  color: #1a1a22;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.news-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.tile-head {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 10px;

  background: linear-gradient(90deg, rgba(30, 30, 45, 0.95), rgba(120, 80, 255, 0.95));
  color: #ffffff;

  font-size: 12px;
  font-weight: 700;
}

.tile-date {
  opacity: 0.95;
}

.tile-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.tile-thumb {
  margin: 10px;
  border-radius: 8px;

  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, rgba(255, 78, 205, 0.75), rgba(106, 92, 255, 0.75), rgba(0, 255, 213, 0.75));
  color: rgba(255, 255, 255, 0.92);

  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .news-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

.tile-title {
  padding: 10px 12px 12px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;

  color: #2a2a35;
}

.tile-preview{
  padding: 0 12px 12px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.85;
}

/* news detail page background */
.news-bg-page {
  position: relative;
  min-height: 100vh;
  background: none;
}

/* keep all page content above the background layers */
.news-bg-page .page {
  position: relative;
  z-index: 1;
}

/* gradient layer */
.news-bg-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;

  background: linear-gradient(135deg, #ff7a00 0%, #0b0b12 55%, #000000 100%);
}

/* kaito image layer */
.news-bg-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;

  background-image: url("assets/Kaito%20News.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.22;
  filter: blur(6px);
}


.news-page {
  padding: 40px 16px 80px;
}

.news-card {
  max-width: 860px;
  margin: 0 auto;

  border-radius: 14px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.92);
  color: #1a1a22;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.news-card-head {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 12px;

  /* neon orange -> ember -> black */
  background: linear-gradient(
    90deg,
    rgba(255, 138, 0, 0.98),
    rgba(255, 72, 0, 0.92),
    rgba(10, 10, 18, 0.98)
  );
  color: #ffffff;

  box-shadow: 0 0 18px rgba(255, 120, 0, 0.22);

  font-size: 12px;
  font-weight: 700;
}


.news-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  letter-spacing: 0.06em;
  font-size: 11px;
}

.news-card-body {
  padding: 18px 18px 22px;
}

@media (max-width: 560px) {
  .news-page {
    padding: 22px 12px 60px;
  }

  .news-card-body {
    padding: 14px 14px 18px;
  }

  .news-headline {
    font-size: 26px;
  }
}


.news-feature {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, rgba(255, 78, 205, 0.75), rgba(106, 92, 255, 0.75), rgba(0, 255, 213, 0.75));
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;

  margin: 0 0 16px;
}

.news-content {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.news-text p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #2a2a35;
}

.news-side-graphic {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(20, 20, 30, 0.08);
  border: 1px solid rgba(20, 20, 30, 0.10);
  color: #2a2a35;

  font-weight: 700;
}

.news-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 820px) {
  /* Top nav becomes horizontally scrollable instead of overflowing */
  .topbar {
    height: auto;
    padding: 8px 10px;
  }

  .nav {
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 4px;
  }


  .nav-btn {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 13px;
  }

  /* Stop the On Air buttons from forcing a giant gap on small screens */
  .onair-btn,
  .onair-on,
  .onair-off {
    margin-left: 0;
  }

  /* Remove the hard top padding on smaller screens */
  .page {
    padding-top: 0;
  }

  /* Hero fills better on phones */
  .hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 38vh;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    margin-left: auto;
    margin-right: auto;
}




  /* News section loses the huge left padding on phones */
  .news {
   padding: 70px 16px 60px 16px;
}


  .news-bg {
    font-size: 160px;
    top: -40px;
  }

  /* Article layout already switches to 1 column here */
  .news-content {
    grid-template-columns: 1fr;
  }


    


}

.news-wrapper {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-back-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.news-back-btn {
  padding: 10px 28px;
  border-radius: 999px;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;

  font-size: 14px;
  font-weight: 600;

  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.news-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
/* merch dropdown */
.nav-dd {
  position: relative;
}

/* Mobile: make Merch dropdown pop out as an overlay (not inside the scroll strip) */
@media (max-width: 820px) {
  .dd-menu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 64px !important;
    background: rgba(18, 18, 22, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);


    max-height: 70vh;
    overflow-y: auto;

    display: none !important;
    z-index: 9999;
  }

  .nav-dd[open] .dd-menu {
    display: grid !important;
    gap: 8px;
  }
}



.nav-dd > summary.nav-btn {
  list-style: none;
  cursor: pointer;
}

.nav-dd > summary.nav-btn::-webkit-details-marker {
  display: none;
}

.dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;

  padding: 10px;
  border-radius: 12px;

  background: rgba(10, 10, 18, 0.78);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  display: none;
  z-index: 50;
}

.nav-dd[open] .dd-menu {
  display: grid;
  gap: 8px;
}

.dd-item {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;

  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dd-item:hover {
  background: rgba(255, 255, 255, 0.16);
}
/* On Air indicator */
.onair-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.onair-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9a9a9a;
  box-shadow: none;
}

.onair-on {
  color: #ffffff;
  border-color: rgba(255, 80, 80, 0.55);
  background: rgba(255, 40, 40, 0.14);
  animation: onairPulse 1.15s ease-in-out infinite;
}

.onair-on::before {
  background: #ff2b2b;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.9), 0 0 22px rgba(255, 60, 60, 0.55);
  animation: onairDot 1.15s ease-in-out infinite;
}

.onair-off {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.onair-off::before {
  background: #9a9a9a;
  box-shadow: none;
}
/* Vibez Lab FM indicator (same glow + dot behavior) */
.vibez-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vibez-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9a9a9a;
  box-shadow: none;
}

.vibez-on {
  color: #ffffff;
  border-color: rgba(255, 80, 80, 0.55);
  background: rgba(255, 40, 40, 0.14);
  animation: onairPulse 1.15s ease-in-out infinite;
}

.vibez-on::before {
  background: #ff2b2b;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.9), 0 0 22px rgba(255, 60, 60, 0.55);
  animation: onairDot 1.15s ease-in-out infinite;
}

.vibez-off {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.vibez-off::before {
  background: #9a9a9a;
  box-shadow: none;
}

@keyframes onairPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 60, 60, 0.0); }
  50% { box-shadow: 0 0 18px rgba(255, 60, 60, 0.35); }
}

@keyframes onairDot {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.onair-on,
.onair-off,
.vibez-on,
.vibez-off {
  margin-left: auto;
}


/* default: OFF AIR visible */
.onair-on { display: none; }
.onair-off { display: inline-flex; }

/* when LIVE */
body.live .onair-on { display: inline-flex; }
body.live .onair-off { display: none; }

/* Vibez Lab FM toggle */
/* default: Vibez OFF AIR visible */
.vibez-on { display: none; }
.vibez-off { display: inline-flex; }

/* when Vibez is LIVE */
body.vibez-live .vibez-on { display: inline-flex; }
body.vibez-live .vibez-off { display: none; }




/* Off-air page primary button */
.news-bg-page .news-actions .nav-btn {
  background: #000000;
  color: #ffffff;

  border: 1px solid #000000;
  border-radius: 999px;

  padding: 10px 22px;
  font-weight: 600;
}

.news-bg-page .news-actions .nav-btn:hover {
  background: #111111;
}

.news-inner {
  position: relative;
  z-index: 1;
}

.news-grid::-webkit-scrollbar{
  width: 10px;
}
.news-grid::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
.news-grid::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.news-grid::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.26);
}

