/* ============================================
   EXCEED — SMOOTH & LIGHTWEIGHT (UPDATED)
   ============================================ */

:root {
  --black: #000;
  --dark: #080808;
  --dark-2: #0d0d0d;
  --dark-3: #141414;
  --border: #222;
  --border-light: #2e2e2e;
  --white: #fff;
  --w80: rgba(255,255,255,0.8);
  --w70: rgba(255,255,255,0.7);
  --w50: rgba(255,255,255,0.5);
  --w30: rgba(255,255,255,0.3);
  --w20: rgba(255,255,255,0.2);
  --w10: rgba(255,255,255,0.1);
  --w05: rgba(255,255,255,0.05);
  --accent: #c0c0c0;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --blue: #6496ff;
  --green: #64ff96;
  --orange: #ffc864;
  --mono: 'Share Tech Mono', monospace;
  --heading: 'Bebas Neue', sans-serif;
  --player-name: 'Oswald', sans-serif;
  --body: 'Rajdhani', sans-serif;
  --nav-h: 72px;
  --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --transition-fast: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

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

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0,0,0,0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: var(--transition-fast);
}

.nav-logo img:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--w50);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--white);
}

.nav-discord {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  transition: var(--transition-fast);
}

.nav-discord:hover {
  border-color: var(--white);
  transform: translateY(-1px);
}

.nav-topup {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  transition: var(--transition-fast);
  border-radius: 4px;
}

.nav-topup:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-topup svg {
  stroke: var(--accent);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.2s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mobile-link {
  font-family: var(--heading);
  font-size: 48px;
  letter-spacing: 0.1em;
  color: var(--w50);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-link:hover {
  color: var(--white);
  transform: scale(1.05);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-h) + 40px) 40px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  animation: fadeUp 1s ease-out;
}

.hero-name {
  font-family: var(--heading);
  font-size: clamp(48px, 12vw, 160px);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--white) 0%, var(--w70) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 1s ease-out 0.6s both;
}

.hero-slogan {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--w50);
  margin-bottom: 48px;
  animation: fadeUp 1s ease-out 0.8s both;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 1s both;
}

.btn-primary, .btn-ghost {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-ghost {
  border: 1px solid var(--border-light);
  color: var(--white);
}

.btn-primary:hover, .btn-ghost:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.btn-topup {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-fast);
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border: 1px solid var(--border-light);
  color: var(--white);
}

.btn-topup:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  opacity: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeIn 1.5s ease-out 1.2s both;
}

.hero-scroll span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--w30);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--w50), transparent);
  animation: scrollDown 2s ease infinite;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: var(--white);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: fit-content;
}

.marquee-content {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--heading);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--black);
  padding-right: 60px;
  animation: marqueeScroll 25s linear infinite;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--w50);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.08em;
  line-height: 1;
}

.section-title .accent {
  color: var(--accent);
}

.empty-state {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--w30);
  text-align: center;
  padding: 80px;
  border: 1px solid var(--border);
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--w80);
  margin-bottom: 48px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stat-num {
  font-family: var(--heading);
  font-size: 52px;
  line-height: 1;
  transition: var(--transition-fast);
}

.stat-item:hover .stat-num {
  transform: scale(1.05);
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--w50);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.about-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== ROSTER TABS ===== */
.roster-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--w50);
  padding: 12px 32px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -21px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.tab-btn:hover {
  color: var(--white);
}

.tab-btn.active {
  color: var(--white);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}

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

/* ===== ROSTER SLIDER ===== */
.roster-section {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.roster-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--w50);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
}

.slider-btn:hover {
  background: var(--dark-3);
  border-color: var(--white);
  color: var(--white);
  transform: scale(1.05);
}

.roster-slider-wrapper {
  overflow-x: auto;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.roster-slider-wrapper:active {
  cursor: grabbing;
}

.roster-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.roster-slider {
  display: flex !important;
  gap: 20px;
  flex-wrap: nowrap !important;
  width: fit-content;
  min-width: 100%;
  padding-bottom: 20px;
  align-items: flex-start;
}

.roster-slide {
  flex-shrink: 0;
  width: 280px;
}

/* ===== PLAYER CARDS ===== */
.player-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.player-card:hover {
  transform: translateY(-6px);
  border-color: var(--w30);
}

.player-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark-3);
}

.player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.player-card:hover .player-photo {
  transform: scale(1.08);
}

.player-rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5;
}

.player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
  z-index: 2;
}

.player-card:hover .player-overlay {
  opacity: 1;
}

.player-view-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--white);
  border: 1px solid var(--w50);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.player-info {
  padding: 16px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.player-job-badge {
  font-family: var(--mono);
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.player-country {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--w30);
  border: 1px solid var(--border);
  padding: 2px 8px;
  display: inline-block;
  border-radius: 4px;
}

.player-ign {
  font-size: 22px;
  line-height: 1.1;
}

/* ===== MODAL OVERLAY (SHARED) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== PLAYER MODAL ===== */
.player-modal-box {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  border-radius: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  animation: scaleIn 0.22s ease-out;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.04);
}

/* — Left Panel — */
.pmodal-left {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--dark-3);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

/* Photo fills left panel top */
.pmodal-photo-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: #0a0a0a;
  /* Square-ish crop */
  height: 320px;
}

.pmodal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.pmodal-photo-wrap:hover .pmodal-photo {
  transform: scale(1.03);
}

/* gradient fade bottom of photo */
.pmodal-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--dark-3));
  pointer-events: none;
}

.pmodal-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w20);
  background: var(--dark-3);
}

/* Role badge on photo */
.pmodal-role-badge {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 5;
  text-transform: uppercase;
  border: 1px solid;
  backdrop-filter: blur(4px);
}

.pmodal-role-badge.role-commander   { color: var(--gold);   border-color: var(--gold);   background: rgba(255,215,0,0.08); }
.pmodal-role-badge.role-squad-leader { color: var(--blue);   border-color: var(--blue);   background: rgba(100,150,255,0.08); }
.pmodal-role-badge.role-analyst     { color: var(--green);  border-color: var(--green);  background: rgba(100,255,150,0.08); }
.pmodal-role-badge.role-coach       { color: var(--orange); border-color: var(--orange); background: rgba(255,200,100,0.08); }
.pmodal-role-badge.role-manager     { color: var(--accent); border-color: var(--accent); background: rgba(192,192,192,0.08); }
.pmodal-role-badge.role-player      { color: var(--black);    border-color: var(--border); background: transparent; }

/* Stats block */
.pmodal-stats {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.pmodal-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pmodal-stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--w30);
  text-transform: uppercase;
  flex-shrink: 0;
}

.pmodal-stat-value {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--w80);
  text-align: right;
}

/* Social links */
.pmodal-socials {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.pmodal-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--w40);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 9px 14px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pmodal-social svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.pmodal-social:hover {
  border-color: var(--w30);
  color: var(--white);
  background: var(--w05);
}

.pmodal-social:hover svg {
  opacity: 1;
}

.no-social {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--w20);
  padding: 4px 0;
}

/* — Right Panel — */
.pmodal-right {
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
  overflow-y: auto;
  background: var(--dark-2);
  min-height: 0;
}

/* Decorative top line */
.pmodal-right::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--white);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.pmodal-ign {
  font-family: var(--heading);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--white);
  flex-shrink: 0;
}

/* Separator */
.pmodal-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.pmodal-bio-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--w30);
  text-transform: uppercase;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.pmodal-bio {
  font-size: 14px;
  color: var(--w60);
  line-height: 1.75;
  margin-bottom: 32px;
  flex-shrink: 0;
}

/* Track Record */
.pmodal-ach-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.pmodal-ach-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--w30);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  background: var(--dark-2);
  padding: 0 0 8px 0;
  z-index: 2;
}

.pmodal-ach-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pmodal-ach-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--w60);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

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

.pmodal-ach-item .ach-icon {
  filter: grayscale(100%) brightness(0.9) sepia(0.3) saturate(0.5);
  color: var(--silver);
}

.ach-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.7;
}

.ach-year {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--w30);
  letter-spacing: 0.1em;
}

/* ===== ACHIEVEMENTS, SPONSORS, FOOTER ===== */
.achievements-section, .tournaments-section, .news-section, .sponsors-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-top: 30px;
}

.sponsor-item {
  flex-shrink: 0;
  transition: var(--transition-fast);
  opacity: 0.7;
  filter: grayscale(100%) brightness(0.9);
}

.sponsor-item:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

.sponsor-item img {
  max-height: 100px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

/* ===== TOMBOL CLOSE MODAL ===== */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--w50);
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo-img {
  height: 45px;
  width: auto;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-family: var(--heading);
  font-size: 22px;
  letter-spacing: 0.15em;
  line-height: 1.2;
  color: var(--white);
}

.footer-slogan {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--w40);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--w40);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w40);
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--w30);
  width: 16px;
  height: 16px;
}

.footer-contact-item a {
  color: var(--w40);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w40);
  text-decoration: none;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.social-link:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.footer-copyright {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--w30);
  text-align: center;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-right { display: none; }
  .container { padding: 0 30px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner, .container { padding: 0 20px; }
  .roster-slide { width: 260px; }
}

/* ===== PLAYER MODAL — MOBILE FULL REDESIGN ===== */
@media (max-width: 768px) {
  /* Overlay: full screen, no padding, scrollable */
  #playerModal.modal-overlay {
    padding: 0;
    align-items: flex-start;
    overflow-y: auto;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: rgba(0,0,0,0.8); /* lebih gelap agar terlihat */
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 20;
    /* pastikan arrow bisa diklik */
    pointer-events: auto;
    touch-action: manipulation;
  }

  .roster-slider-container {
    position: relative;
  }
  
  /* Pastikan wrapper tidak blocking tombol */
  .roster-slider-wrapper {
    position: relative;
    z-index: 1;
  }
  
  .slider-btn:active {
    transform: scale(0.95);
    background: var(--dark-3);
  }
  
  .roster-slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; /* smooth scroll untuk touch */
  }

  /* Box: full width, single column, natural height (scrollable) */
  .player-modal-box {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    width: 100%;
    max-width: 100%;
    max-height: none;
    min-height: 100dvh;
    border-radius: 0;
    border: none;
    overflow: visible;
  }

  /* Close button: top-right, always visible */
  .player-modal-box .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    border-color: var(--border-light);
  }

  /* Left panel: no border, natural height */
  .pmodal-left {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    flex-shrink: 0;
  }

  /* Photo: portrait crop, taller */
  .pmodal-photo-wrap {
    height: 320px;
    flex-shrink: 0;
  }

  .sponsor-item img {
    height: 100px;
    width: 100px;
  }

  /* Role badge: stays inside photo */
  .pmodal-role-badge {
    top: 10px;
    left: 12px;
    font-size: 8px;
    padding: 4px 10px;
  }

  /* Stats rows */
  .pmodal-stats {
    padding: 16px 18px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
  }

  .pmodal-stat-label { font-size: 9px; }
  .pmodal-stat-value { font-size: 12px; }

  /* Social links: horizontal pill row */
  .pmodal-socials {
    padding: 14px 18px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }

  .pmodal-social {
    padding: 7px 14px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .pmodal-social svg { display: none; } /* icon hidden at small size */

  /* Right panel: natural height, no overflow clipping */
  .pmodal-right {
    flex: 1;
    overflow: visible;
    padding: 28px 20px 40px;
    min-height: auto;
  }

  .pmodal-right::before {
    margin-bottom: 18px;
  }

  .pmodal-ign {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .pmodal-divider { margin-bottom: 14px; }
  .pmodal-bio-label { margin-bottom: 8px; }

  .pmodal-bio {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  /* Track record: natural height, no scroll clipping */
  .pmodal-ach-section {
    overflow: visible;
    max-height: none;
    padding-top: 20px;
  }

  .pmodal-ach-title {
    position: static; /* no sticky on mobile */
    background: transparent;
    padding: 0 0 10px 0;
    margin-bottom: 4px;
  }

  .pmodal-ach-item {
    font-size: 12.5px;
    padding: 10px 0;
    line-height: 1.5;
  }

  .ach-year { display: inline; }
}

@media (max-width: 480px) {
  .roster-slide { width: 220px; }

  .pmodal-photo-wrap { height: 260px; }
  .pmodal-right { padding: 22px 16px 40px; }
  .pmodal-ign { font-size: 30px; }
  .pmodal-bio { font-size: 13px; }
  .pmodal-ach-item { font-size: 12px; }
}

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