:root {
  --bg: #0a0a0a;
  --card: #ffffff;
  --ink: #0a0a0a;
  --dk: #2c2c2c;
  --lime: #bfff00;
  --pad: clamp(16px, 6vw, 110px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font: 16px/1.4 "Stack Sans Notch", system-ui, sans-serif;
}
a {
  color: inherit;
}
h1,
h2 {
  text-transform: uppercase;
  font-weight: 500;
  margin: 0.2em 0;
  letter-spacing: -0.01em;
}
small {
  opacity: 0.7;
}
.top {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid #ffffff30;
  background: #0a0a0a url(assets/navbar-bg.png) center/cover no-repeat;
  position: relative;
  z-index: 3;
}
.top img {
  height: 60px;
  display: block;
}
.landing .top {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  background: none;
  border: 0;
}
.landing main {
  padding-top: 12px;
}
main {
  padding: 0 var(--pad) 40px;
}
.btn,
.pl {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: color 0.3s;
}
.btn::before,
.pl::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform 0.35s ease;
  z-index: -1;
  background: var(--sw, var(--ink));
}
.btn:hover::before,
.pl:hover::before {
  transform: none;
}
.btn {
  background: var(--lime);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 22px;
  font-weight: 500;
}
.btn:hover {
  color: var(--lime);
}

.pl {
  --sw: var(--lime);
  background: var(--card);
  color: var(--ink);
  border-radius: 99px;
  padding: 8px 20px;
  white-space: nowrap;
}

.pl.on {
  background: var(--lime);
}

.nav {
  background: #2c2c2c;
  border-block: 1px solid #ffffff30;
  padding: 12px;
  margin: 0 calc(-1 * var(--pad));
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
}

/* MOBILE NAVIGATION */

@media screen and (max-width: 768px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }

  .pl {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
    padding: 8px 6px;
  }

  /* Baris pertama */
  .pl:nth-child(1) {
    grid-column: span 4; /* Beranda */
  }

  .pl:nth-child(2) {
    grid-column: span 8; /* Grup & Klasemen */
  }

  /* Baris kedua */
  .pl:nth-child(3) {
    grid-column: span 4; /* Bracket */
  }

  .pl:nth-child(4) {
    grid-column: span 5; /* Jadwal & Hasil */
  }

  .pl:nth-child(5) {
    grid-column: span 3; /* Admin */
  }
}

.hero {
  position: relative;
  aspect-ratio: 2576/1246;
  min-height: 380px;
  background: url(assets/landing-bg.png) center/100% 100% no-repeat;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 40px;
}
.hero h1 {
  font-size: clamp(26px, 4.6vw, 52px);
  text-shadow: 0 2px 14px #000;
}
.hero p {
  max-width: 640px;
  margin: 14px auto 0;
  text-shadow: 0 2px 10px #000;
}
.band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 calc(-1 * var(--pad));
  padding: 12px var(--pad);
  background: #2c2c2c;
  border-block: 1px solid #ffffff30;
  margin-bottom: 20px;
}
.th {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0;
}
.th h1 {
  margin: 6px 0;
  font-size: 34px;
}
.th p {
  margin: 4px 0;
  line-height: 1.6;
}
.fly {
  width: 190px;
  border-radius: 14px;
  display: block;
}

/* Hide flyer on mobile */
@media screen and (max-width: 768px) {
  .fly {
    display: none !important;
  }
}
.th .btn {
  margin-left: auto;
}
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.g4 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.cols {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ses {
  margin: 26px 0 6px;
  font-size: 22px;
  font-weight: 500;
}
.lp {
  margin-bottom: 8px;
}
.c {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 18px 20px;
  position: relative;
}
.c.s {
  padding-bottom: 20px;
}
.c.g1 {
  background: var(--lime);
}
.c small {
  opacity: 0.65;
}
.fc {
  display: block;
  text-decoration: none;
  padding: 0;
  overflow: hidden;
}
.fc img {
  width: 100%;
  display: block;
}
.ft {
  padding: 12px 18px;
}
.ft h2 {
  font-size: 20px;
}
.c.ph {
  display: grid;
  place-items: center;
  min-height: 340px;
  background: #151515;
  color: #777;
  border: 1px dashed #555;
  padding: 0;
}
.bd {
  display: inline-block;
  background: var(--dk);
  color: var(--lime);
  border-radius: 99px;
  padding: 3px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.bd.wait {
  color: #aaa;
}
.bd.live {
  background: #d33;
  color: #fff;
  animation: bl 1s infinite;
}
@keyframes bl {
  50% {
    opacity: 0.45;
  }
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #0000004d;
}
.row.l {
  opacity: 0.5;
}
.row.w .n b::after {
  content: " ✓";
}
.n b {
  font-size: 20px;
  font-weight: 700;
}
.n small {
  display: block;
  font-size: 14px;
  opacity: 0.85;
}
.ph {
  opacity: 0.55;
}
.cat {
  background: var(--dk);
  color: var(--lime);
  font-size: 10px;
  border-radius: 99px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 400;
}
.sc {
  font-size: 34px;
  font-weight: 700;
}
.ent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
}
.ent b {
  font-size: 28px;
}
.ent input {
  width: 92px;
  height: 44px;
  border-radius: 47px;
  border: 1px solid #000;
  text-align: center;
  font: 700 18px inherit;
  background: #fff;
}
.ent .btn {
  margin-left: auto;
  border-radius: 12px;
}
.flash {
  animation: fl 2.5s;
}
@keyframes fl {
  0%,
  70% {
    box-shadow: 0 0 0 5px var(--lime);
  }
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  padding: 6px;
  text-align: left;
  border-bottom: 1px solid #00000040;
}
tr.q td:first-child {
  border-left: 4px solid var(--lime);
}
input,
select {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #888;
  background: #fff;
  color: #111;
  max-width: 100%;
  font: inherit;
}
.form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.form label {
  font-size: 12px;
  display: grid;
  gap: 3px;
}
.pod {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 99px;
  font-weight: 700;
  z-index: 9;
}
.slider {
  overflow-x: auto;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar {
  display: none;
}
.br {
  display: flex;
  gap: 48px;
  min-width: max-content;
  padding: 8px 4px;
}
.rd {
  width: 360px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.pr {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
}
.bm {
  position: relative;
  margin: 8px 0;
}
.rd:not(.fin) .bm::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 50%;
  width: 24px;
  border-top: 2px solid var(--lime);
}
.pr::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 25%;
  bottom: 25%;
  border-right: 2px solid var(--lime);
}
.pr::before {
  content: "";
  position: absolute;
  right: -48px;
  width: 24px;
  top: 50%;
  border-top: 2px solid var(--lime);
}
.bar {
  height: 10px;
  background: #3a3a3a;
  border-radius: 9px;
  margin: 16px 0;
  cursor: pointer;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 9px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  border-top: 1px solid #ffffff30;
}
.fl {
  display: flex;
  gap: 18px;
  align-items: center;
}
.fl img {
  height: 60px;
}
.fl p {
  margin: 0;
  font-size: 14px;
}
.soc {
  display: flex;
  gap: 10px;
}
.soc a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.pg {
  padding-top: 40px;
}
.cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
a.pl {
  display: inline-block;
  text-decoration: none;
}
.wheel {
  max-width: 340px;
  margin: 16px auto;
}
.wheel svg {
  width: 100%;
  overflow: visible;
}
.btn.g {
  background: #34343a;
  color: #fff;
}
.btn.g:hover {
  color: var(--lime);
}
.kop {
  display: none;
}
@media (max-width: 800px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pod {
    grid-template-columns: 1fr;
  }
  .th {
    flex-direction: column;
  }
  .th .btn {
    margin-left: 0;
  }
  .rd {
    width: 84vw;
  }
  .nav {
    justify-content: flex-start;
  }
  footer {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .top img {
    height: 46px;
  }
}
@media (max-width: 480px) {
  .g4 {
    grid-template-columns: 1fr;
  }
  .sc {
    font-size: 28px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  body {
    background: #fff;
    color: #000;
  }
  .pg {
    padding-top: 0;
  }
  .top,
  .nav,
  footer,
  .noprint,
  .th,
  .btn,
  .band,
  .bar {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .kop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #000;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }
  .kop img {
    height: 60px;
  }
  .kop h2 {
    margin: 0;
  }
  .kop p {
    margin: 4px 0;
    font-size: 12px;
  }
  .c {
    border: 1px solid #888;
    break-inside: avoid;
  }
  .bd {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
  .slider {
    overflow: visible;
  }
  .cat {
    background: #000;
    color: #fff;
  }
}

/* Pembatas fase (Grup, 16 besar, quarter final, semifinal, final) */
.stg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 44px 0 6px;
  padding: 14px 20px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 14px;
  text-transform: uppercase;
}
.stg:first-child {
  margin-top: 0;
}
.stg b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stg span {
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--lime);
  border-radius: 99px;
  padding: 3px 14px;
}
.stg + .grid {
  margin-top: 14px;
}
@media print {
  .stg {
    background: none;
    border: 2px solid #000;
    break-after: avoid;
  }
  .stg span {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
}
