:root {
  --green: #1aff4c;
  --red: #ff2b2b;
  --bg: #08140d;
  --card: #141a22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e6e6;
  --banner-dark: rgba(0, 0, 0, 0.7);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

[data-aos] {
  overflow-x: hidden;
}

section,
.card,
.player-card,
.winner-card {
  will-change: transform;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);

  background-size: 70px 70px;

  opacity: 0.4;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.winners-section,
.matches-section,
.bracket-section,
.players-section,
.tournament-overview,
.stream-section,
.hero {
  position: relative;
}

/* GREEN SECTION DIVIDER */
.winners-section::before,
.matches-section::before,
.bracket-section::before,
.players-section::before,
.tournament-overview::before,
.stream-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.6),
    transparent
  );
}

/* ================= HERO ================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* IMAGE BACKGROUND */
.hero-bg {
  width: 100%;
  max-width: 100%;
  display: block;
  filter: brightness(0.6) contrast(1.1);
}

/* OVERLAY ON TOP */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-content h1 {
  font-size: 54px;
  color: var(--green);
  margin: 0;
}

/* ================= COUNTDOWN ================= */

.countdown-wrapper {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0;
  flex-wrap: wrap;
}

/* MAIN CARD */
.time-box {
  background: linear-gradient(145deg, #141a22, #0d1219);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 18px 20px;
  border-radius: 14px;
  min-width: 90px;
  text-align: center;

  /* subtle depth */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);

  /* smooth feel */
  transition: 0.2s ease;
}

/* hover subtle lift */
.time-box:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.5);
}

/* NUMBER */
.time-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

/* LABEL */
.time-label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ef4444;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 1px;
}

.live-badge i {
  font-size: 10px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

/* ================= BUTTONS ================= */
.btn {
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.primary {
  background: var(--green);
  color: #000;
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.35);
}

/* subtle shine effect */
.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.primary:hover::after {
  left: 120%;
}

.secondary {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  cursor: pointer;
}

.secondary:hover {
  transform: translateY(-3px);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25);
}

/* ================= No Records Found ================= */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  width: 100%;
  margin: 0 auto;
}

.empty-state i {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--green);
  opacity: 0.6;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #e5e7eb;
}

.empty-sub {
  font-size: 12px;
  opacity: 0.7;
}

.match-list .empty-state,
.players-container .empty-state {
  grid-column: 1 / -1;
  width: 100%;
}

/* ================= SKELETON ================= */

.skeleton {
  position: relative;
  overflow: hidden;
  background: #1a212c !important;
}

/* shimmer effect */
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* MATCH */
.skeleton-box {
  height: 60px;
  width: 100%;
  border-radius: 6px;
}

.skeleton-center {
  width: 120px;
  height: 40px;
  border-radius: 6px;
}

/* BRACKET */
.skeleton-line {
  height: 12px;
  margin: 6px 0;
  border-radius: 4px;
  background: #2a313c;
}

.skeleton-line.short {
  width: 60%;
}

/* ================= SKELETON PLAYER ================= */

.skeleton.player-card {
  height: 320px;
  padding: 24px 20px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* avatar match actual card */
.skeleton-avatar {
  width: 140px;
  height: 140px;
  border-radius: 22px;
  margin-bottom: 12px;
}

/* text placeholders */
.skeleton-line {
  height: 10px;
  width: 70%;
  border-radius: 6px;
  background: #2a313c;
}

.skeleton-line.short {
  width: 45%;
}

/* weapon placeholders row */
.skeleton-weapons {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.skeleton-pill {
  width: 60px;
  height: 22px;
  border-radius: 999px;
  background: #2a313c;
}

/* ================= SKELETON GRID ================= */

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.skeleton.player-card {
  width: 100%;
  min-height: 320px;
  border-radius: 24px;
}

.skeleton.player-card,
.skeleton.player-card * {
  box-sizing: border-box;
}

/* ================= TABS ================= */

.match-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #9ca3af;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  background: #1a212c;
  color: #e5e7eb;
}

/* ACTIVE TAB */
.tab-btn.active {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--green);
  color: var(--green);
}

/* CONTENT */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ================= WINNERS ================= */

.winners-section {
  padding: 30px 20px 50px;
  position: relative;
}

.winners-wrapper {
  max-width: 1300px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ================= CHAMPION ================= */

.champion-card {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.18), transparent 60%),
    linear-gradient(145deg, #171d26, #0f141b);

  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 28px;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(255, 215, 0, 0.08);

  animation: championGlow 4s infinite alternate;
}

@keyframes championGlow {
  from {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.45),
      0 0 25px rgba(255, 215, 0, 0.05);
  }

  to {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.45),
      0 0 45px rgba(255, 215, 0, 0.16);
  }
}

.champion-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: gold;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.champion-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.25));
}

.champion-name {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #fff;
}

.champion-title {
  color: gold;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.champion-prize {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

/* ================= OTHER WINNERS ================= */

.winners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.winner-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #141a22, #10151c);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
  transition: 0.25s ease;
}

.winner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(34, 197, 94, 0.12);
}

.winner-rank {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}

.rank-2 {
  color: #cbd5e1;
}

.rank-3 {
  color: #d6a46d;
}

.rank-mvp {
  color: #22c55e;
}

.winner-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 16px;
}

.winner-team {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.winner-desc {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

/* ================= SKELETON ================= */

.winners-loading {
  max-width: 1200px;
  margin: auto;
}

.winner-skeleton {
  height: 240px;
  border-radius: 24px;
  background: #1a212c;
  position: relative;
  overflow: hidden;
}

.winner-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.winner-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );

  animation: shimmer 1.2s infinite;
}

.winner-prize {
  margin-top: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.06);

  font-size: 13px;
  font-weight: 700;

  color: #fff;
}

.winner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .champion-name {
    font-size: 28px;
  }

  .champion-logo {
    width: 120px;
    height: 120px;
  }

  .winners-grid {
    grid-template-columns: 1fr;
  }

  .winner-skeleton-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= MATCH ================= */
.matches-section {
  padding: 20px;
  text-align: center;
  padding-top: 30px;
}

.section-title {
  color: var(--green);
  margin: 30px auto 10px;
  max-width: 800px;
  text-align: center;
}

.section-title i {
  margin-right: 8px;
}

/* LIST CENTER */
.match-list {
  max-width: 800px;
  margin: 15px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ROW */
.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.2s;
}

.match-row:hover {
  transform: translateY(-2px);
}

/* TEAM */
.team-box {
  width: 40%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #0d1f16;
  border: 1px solid rgba(26, 255, 76, 0.2);
}

.team-box.left {
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
}

.team-box.right {
  justify-content: flex-end;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.team-logo {
  width: 50px;
}

/* CENTER */
.match-center {
  text-align: center;
}

.match-score {
  font-size: 30px;
  color: var(--green);
  text-shadow: 0 0 10px var(--green);
}

.match-date {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

/* WATCH LIVE */
.watch-live {
  margin-top: 8px;
  font-size: 12px;
  color: #1877f2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.watch-live:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.watch-live i {
  font-size: 16px;
}

.winner {
  animation: winnerGlow 1s ease-in-out;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.1),
    rgba(34, 197, 94, 0.05)
  );
}

@keyframes winnerGlow {
  0% {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1);
  }
}

.winner:hover {
  background: #1a212c;
  transition: 0.2s;
}

/* CARD */
.bracket-card {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
  position: relative;
  transition: 0.2s;
  box-sizing: border-box;
}

.bracket-card + .bracket-card {
  margin-top: 4px;
}

.bracket-card:hover {
  background: #1a212c;
  transition: 0.2s;
}

/* TEAM ROW */
.bracket-team {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 6px;
}

.bracket-team span {
  margin: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 180px;
}

.bracket-team.winner {
  background: rgba(34, 197, 94, 0.08);
}

.bracket-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* default score */
.bracket-team .score {
  font-size: 13px;
  color: #9ca3af;
  transition: 0.2s;
  margin-left: auto;
  padding-left: 10px;
  font-weight: 600;
}

.score-win {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
}

/* pulsing red dot */
.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.2s infinite ease-in-out;
}

/* pulse animation */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

/* ================= BRACKET ================= */

.bracket-section {
  padding: 30px 20px;
  text-align: center;
}

.bracket-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

/* GROUP (Upper / Lower / Grand) */
.bracket-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.bracket-group h3 {
  color: var(--green);
  text-align: center;
}

/* ROUNDS CONTAINER */
.bracket-rounds {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

/* EACH ROUND COLUMN */
.bracket-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 220px;
  align-items: center;
}

.round-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;

  background: rgba(34, 197, 94, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
}

.bracket-group.grand {
  align-items: center;
}

.bracket-finals {
  max-width: 300px;
}

/* ================= BRACKET EMBED ================= */

.bracket-embed-wrapper {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
}

.bracket-embed-card {
  background: linear-gradient(145deg, #141a22, #0f141b);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 18px;
  overflow: hidden;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(34, 197, 94, 0.08);

  transition: 0.3s ease;
  position: relative;
}

/* glowing top line */
.bracket-embed-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), transparent);
}

/* header */
.embed-header {
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* iframe container */
.embed-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
}

/* actual iframe */
.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* hover effect */
.bracket-embed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(34, 197, 94, 0.15);
}

@media (max-width: 768px) {
  .embed-frame {
    padding-bottom: 120%;
  }
}

/* ================= BRACKET TABS ================= */

.bracket-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  flex-wrap: wrap;
}

.bracket-tab {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #9ca3af;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bracket-tab:hover {
  transform: translateY(-2px);
  background: #1a212c;
  color: #fff;
}

.bracket-tab.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.bracket-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.bracket-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bracket-container {
  margin-top: 10px;
}

/* ================= PLAYERS SECTION ================= */
.players-section {
  padding: 20px 20px;
  text-align: center;
}

.players-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.players-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ================= PLAYER CARD ================= */

.player-card {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.08),
    rgba(255, 255, 255, 0.02)
  );

  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 24px;
  padding: 24px 20px;
  backdrop-filter: blur(12px);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;

  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* animated glow border */
.player-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;

  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.8),
    transparent,
    rgba(34, 197, 94, 0.2)
  );

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0.7;
}

/* background glow */
.player-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;

  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 70%);

  top: -80px;
  right: -80px;
  pointer-events: none;
}

.player-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(34, 197, 94, 0.4);

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(34, 197, 94, 0.15);
}

/* ================= AVATAR ================= */

.player-avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
  border: 3px solid rgba(34, 197, 94, 0.4);
  background: #111;

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(34, 197, 94, 0.18);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.player-card:hover .player-avatar {
  transform: scale(1.04);

  box-shadow:
    0 20px 35px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(34, 197, 94, 0.25);
}

/* ================= NAME ================= */

.player-ign {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.18);
}

.player-team {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(34, 197, 94, 0.8);
  margin-bottom: 10px;
  font-weight: 700;
}

/* ================= WEAPONS ================= */

.player-weapons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.weapon-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.2s ease;
}

.weapon-item:hover {
  transform: translateY(-2px);
}

/* ROLE COLORS */

.weapon-item.role-captain {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
}

.weapon-item.role-vice-captain {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}

.weapon-item.role-m4a1 {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.weapon-item.role-ak74 {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
}

.weapon-item.role-psg {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
}

.weapon-item.role-reserved {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.08);
}

/* ================= GRID ================= */

.team-players {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .team-players {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .player-card {
    min-height: auto;
    padding: 20px;
  }

  .player-avatar {
    width: 120px;
    height: 120px;
  }

  .player-ign {
    font-size: 20px;
  }
}

/* ================= NAV BUTTONS ================= */

.nav-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--green);

  width: 40px;
  height: 40px;

  border-radius: 8px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

.nav-btn:hover {
  background: #1a212c;
  transform: translateY(-2px);
}

/* ================= DOTS ================= */

.dots {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
  transition: 0.2s ease;
}

.dot.active {
  background: var(--green);
  width: 10px;
  height: 10px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* ================= TEAM GROUP ================= */

.team-group {
  width: 100%;
  margin-bottom: 25px;
  display: block;
}

/* HEADER */
.team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.team-header-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
}

.team-players {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= TOURNAMENT OVERVIEW ================= */
.tournament-overview {
  padding: 20px 20px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), transparent);
}

.card:hover {
  background: #1a212c;
  transform: translateY(-3px);
}

.card h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* INFO LIST */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card h3,
.prize-card h3 {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* EACH ITEM */
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.2s;
}

.info-item:hover {
  background: rgba(34, 197, 94, 0.06);
}

/* ICON */
.info-item i {
  color: var(--green);
  font-size: 14px;
  width: 18px;
  text-align: center;
  opacity: 0.9;
}

/* TEXT */
.info-item span {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}

.info-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ================= PRIZE ================= */
.prize,
.prize::before,
.prize::after {
  content: none !important;
}

.prize i {
  display: inline-block !important;
  margin-right: 8px;
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prize {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: 0.2s;
}

.prize:hover {
  background: rgba(34, 197, 94, 0.06);
}

/* ICON SIZE */
.prize i {
  font-size: 14px;
}

/* TEXT */
.prize span {
  font-size: 13px;
  font-weight: 600;
}

/* COLORS */
.prize.first i {
  color: gold;
}

.prize.second i {
  color: silver;
}

.prize.third i {
  color: #cd7f32;
}

.prize.participation i {
  color: #4caf50;
}

.prize::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 10px;
}

/* ================= STREAM ================= */
.stream-section {
  padding: 20px 20px;
}

.stream-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.stream-card {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: 0.3s ease;
}

.stream-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.stream-card iframe {
  width: 100%;
  height: 500px;
}

/* ================= RULES MODAL ================= */
.rules-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 9999;
}

.rules-modal.show {
  opacity: 1;
  visibility: visible;
}

.rules-modal-content {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;

  background: linear-gradient(180deg, #141a22, #0f141b);

  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: 0.25s ease;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(34, 197, 94, 0.12);
}

.rules-modal.show .rules-modal-content {
  transform: translateY(0) scale(1);
}

.rules-modal-content h2 {
  color: var(--green);
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rules-group {
  margin-bottom: 22px;
}

.rules-group h3 {
  color: var(--green);
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.rules-group ul {
  margin: 0;
  padding-left: 20px;
}

.rules-group li {
  color: #d1d5db;
  margin-bottom: 10px;
  line-height: 1.7;
}

.rules-group li::marker {
  color: var(--green);
}

.rules-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: 0.2s;
}

.rules-close:hover {
  background: rgba(255, 43, 43, 0.15);
  color: var(--red);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .countdown-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
  }

  .time-box {
    width: 100%;
    min-width: unset;
  }

  .rules-modal-content {
    width: 95%;
    padding: 22px 18px;
  }

  .rules-modal-content h2 {
    font-size: 20px;
  }

  .rules-group li {
    font-size: 14px;
  }

  /* MATCHES */
  .match-row {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
  }

  .team-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .team-box.left {
    justify-content: flex-start;
  }

  .team-box.right {
    justify-content: flex-end;
  }

  .match-center {
    order: -1;
  }

  .match-score {
    font-size: 20px;
  }

  /* TABS */
  .match-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 10px;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .bracket-rounds {
    flex-direction: column;
    align-items: center;
  }

  .bracket-column {
    width: 100%;
    max-width: 300px;
  }

  /* PLAYERS GRID */
  .players-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .players-container {
    padding: 0 5px;
  }

  .team-players {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .player-card {
    padding: 14px;
  }

  .player-ign {
    font-size: 14px;
  }

  .player-avatar {
    width: 65px;
    height: 65px;
  }

  /* WEAPONS */
  .player-weapons {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
  }

  .weapon-item {
    font-size: 12px;
    padding: 4px 6px;
  }

  /* NAV BUTTONS */
  .nav-btn {
    width: 36px;
    height: 36px;
  }

  .stream-card iframe {
    height: 220px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .match-list {
    max-width: 100%;
    padding: 0 15px;
  }

  .team-box {
    width: 45%;
  }

  .match-center {
    width: 10%;
  }

  .players-wrapper {
    max-width: 100%;
    gap: 8px;
  }

  .players-container {
    padding: 0 15px;
  }

  .team-players {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .player-card {
    padding: 16px;
  }
}