/* ============================================================
   Portal Enovatte — antarmuka lineup kanal
   Palet diambil dari brand Enovatte:
     biru  #0A3995  (dari enovatte.com)
     oranye #F17B2B (dari mark globe)
   Oranye hanya dipakai untuk "sedang mengudara": cincin fokus
   dan titik status live. Selebihnya biru, putih, dan kabut.
   ============================================================ */

:root {
  --ink:        #050A18;
  --ink-2:      #0A1226;
  --panel:      #0D1730;
  --line:       rgba(143, 163, 200, .14);
  --line-lift:  rgba(27, 87, 201, .45);

  --brand:      #0A3995;
  --brand-lift: #1B57C9;
  --signal:     #F17B2B;

  --white:      #EEF3FF;
  --haze:       #8FA3C8;
  --haze-dim:   #5C6F92;

  --display: 'Sora', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --shell: 1180px;
  --r:     14px;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

/* clip, bukan hidden: hidden akan menjadikan elemen scroll container,
   yang bisa mengganggu position:sticky pada masthead. */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(.9375rem, .9rem + .18vw, 1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

kbd {
  font-family: var(--mono);
  font-size: .6875rem;
  padding: .1em .4em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--ink-2);
  color: var(--haze);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: .75rem 1.25rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 500;
}
.skip:focus { left: 0; }

/* Cahaya biru di puncak halaman — kesan layar menyala. Menempel di halaman,
   bukan viewport, supaya memudar saat dibaca ke bawah. */
.glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 100% at 50% -20%, rgba(27, 87, 201, .28), transparent 62%),
    radial-gradient(60% 70% at 82% -10%, rgba(241, 123, 43, .07), transparent 70%);
}

main, .masthead, .footer { position: relative; z-index: 1; }


/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1.125rem clamp(1.25rem, 4vw, 2.5rem);
}

.masthead__brand { display: flex; flex: none; }
.masthead__brand img { width: 120px; height: auto; }

.masthead__rule {
  flex: none;
  width: 1px;
  height: 22px;
  background: var(--line);
}

.masthead__label {
  margin: 0;
  flex: none;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--haze);
}


/* ---------- Pencarian ---------- */

.search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  width: min(280px, 42vw);
}

.search__icon {
  position: absolute;
  left: .75rem;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--haze-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}

.search__input {
  width: 100%;
  padding: .5rem 2.25rem;
  font: inherit;
  font-size: .875rem;
  color: var(--white);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color .16s var(--ease);
}
.search__input::placeholder { color: var(--haze-dim); }
.search__input:focus-visible { border-color: var(--signal); }
.search__input::-webkit-search-cancel-button { display: none; }

.search__kbd {
  position: absolute;
  right: .6rem;
  pointer-events: none;
}
.search__input:focus-visible ~ .search__kbd { opacity: 0; }


/* ---------- Lede ---------- */

.lede {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) 0;
}

.lede__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lede__body {
  max-width: 56ch;
  margin: 1.5rem 0 0;
  color: var(--haze);
}

.lede__hint {
  margin: 1rem 0 0;
  font-size: .8125rem;
  color: var(--haze-dim);
}
.lede__hint kbd { margin-right: .15rem; }


/* ---------- Penyaring kategori ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: var(--shell);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.chip {
  padding: .4rem .9rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--haze);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--line-lift); }
.chip[aria-pressed='true'] {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand-lift);
}


/* ---------- Lineup ---------- */

.lineup {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 0;
}

.band + .band { margin-top: clamp(2.75rem, 5vw, 4rem); }
.band[hidden] { display: none; }

.band__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Biru, bukan oranye. Oranye disimpan untuk cincin fokus dan status live. */
.band__no {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--brand-lift);
  letter-spacing: .08em;
}

.band__name {
  margin: 0;
  font-family: var(--body);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

/* Garis rambut yang mengisi sisa baris — memisahkan band seperti pemisah kanal. */
.band__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.band__count {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--haze-dim);
  font-variant-numeric: tabular-nums;
}

.band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
}


/* ---------- Tile kanal ---------- */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  min-height: 210px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(160deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.tile[hidden] { display: none; }

a.tile { cursor: pointer; }
button.tile { cursor: default; }

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-lift);
}

/* Tanpa JS, cincin fokus digantikan outline biasa. Aksesibilitas tetap utuh. */
.tile:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.js .tile:focus-visible { outline: none; }

/* Yang belum jadi: arsiran halus, seperti kanal yang belum mengudara.
   Arsiran harus disebut lebih dulu — lapisan pertama tampil paling atas. */
.tile--soon {
  background-image:
    repeating-linear-gradient(-45deg, rgba(143, 163, 200, .05) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, var(--panel), var(--ink-2));
  cursor: default;
}
.tile--soon:hover { transform: none; }

.tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.tile__ch {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--haze-dim);
  font-variant-numeric: tabular-nums;
  transition: color .18s var(--ease);
}
.tile:hover .tile__ch,
.tile:focus-visible .tile__ch { color: var(--white); }

.tile__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3125rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.tile__tagline {
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--haze);
}

.tile__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem;
  margin-top: auto;
  padding-top: .875rem;
}

/* Baris aksi: satu slot, satu pesan. */
.tile__foot {
  display: flex;
  align-items: center;
  margin-top: .875rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.tile__go {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--haze);
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.tile__go svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile:hover .tile__go,
.tile:focus-visible .tile__go { color: var(--signal); gap: .6rem; }

.tag {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .02em;
  color: var(--haze-dim);
  padding: .15rem .45rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  white-space: nowrap;
}
.tag--platform {
  color: var(--haze);
  border-color: var(--line-lift);
}

/* Peringatan konfigurasi, bukan status produk. Hilang begitu url diisi. */
.tile__todo {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--haze-dim);
  border-bottom: 1px dashed var(--line-lift);
  padding-bottom: 1px;
}


/* ---------- Status ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.status--live { color: var(--signal); }
.status--live .status__dot {
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(241, 123, 43, .55);
  animation: pulse 2.4s var(--ease) infinite;
}

.status--soon { color: var(--haze-dim); }
.status--soon .status__dot { background: var(--haze-dim); }

.status--internal { color: var(--brand-lift); }
.status--internal .status__dot { background: var(--brand-lift); }

@keyframes pulse {
  0%        { box-shadow: 0 0 0 0 rgba(241, 123, 43, .5); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(241, 123, 43, 0); }
}


/* ---------- Cincin fokus: elemen khas portal ini ---------- */

.ring {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  border: 2px solid var(--signal);
  border-radius: calc(var(--r) + 3px);
  box-shadow:
    0 0 0 1px rgba(241, 123, 43, .22),
    0 0 32px -4px rgba(241, 123, 43, .45),
    0 24px 60px -20px rgba(10, 57, 149, .9);
  transition:
    transform .2s var(--ease),
    width .2s var(--ease),
    height .2s var(--ease),
    opacity .16s var(--ease);
}
.ring--on { opacity: 1; }


/* ---------- Penampil nomor kanal ---------- */

.osd {
  position: fixed;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 6;
  padding: .875rem 1.375rem;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--signal);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .14s var(--ease), transform .14s var(--ease);
}
.osd--on { opacity: 1; transform: none; }
.osd--miss { border-color: var(--haze-dim); color: var(--haze-dim); }


/* ---------- Kosong ---------- */

.empty {
  max-width: var(--shell);
  margin: 3rem auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--haze-dim);
}
.empty[hidden] { display: none; }


/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--shell);
  margin: clamp(4rem, 9vw, 6rem) auto 0;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--haze-dim);
}

.footer p { margin: 0; }
.footer__links { display: flex; gap: .625rem; }
.footer__links a {
  text-decoration: none;
  transition: color .16s var(--ease);
}
.footer__links a:hover { color: var(--white); }
.footer__links a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 3px;
}


/* ---------- Urutan "menyala" saat halaman dibuka ---------- */

.js .band {
  opacity: 0;
  transform: translateY(14px);
  animation: tune-in .5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes tune-in {
  to { opacity: 1; transform: none; }
}


/* ---------- Layar kecil ---------- */

@media (max-width: 720px) {
  .masthead__inner { flex-wrap: wrap; }
  .masthead__rule, .masthead__label { display: none; }
  .search { width: 100%; margin-left: 0; }
  /* Tidak ada keyboard di ponsel — petunjuk tombol tidak berguna. */
  .search__kbd, .lede__hint { display: none; }
  .osd { display: none; }
}


/* ---------- Hormati preferensi gerak ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .band { opacity: 1; transform: none; }
}
