:root {
  --bg-color: #0b111a;
  --text-main: #f0f4fa;
  --text-muted: #95a3b8;
  --accent-cyan: #00e5ff;
  --accent-gold: #e5b94c;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================
   HEADER & GNB (1depth Only, 하위 메뉴 없음)
   ========================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem 0.8rem 4rem;
  position: relative;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  padding: 0;
}

.brand-logo-img {
  height: 64px; /* 기존 48px에서 더 큼직하고 또렷하게 확대 */
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.7)) brightness(1.15);
}

/* GNB Navigation */
.gnb-nav {
  display: flex;
  align-items: center;
}

.gnb-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.gnb-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.gnb-link:hover,
.gnb-link.active {
  color: #ffffff;
}

.gnb-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.gnb-link:hover::after,
.gnb-link.active::after {
  width: 100%;
}

/* =========================================
   MAIN CONTAINER & PAGE ROUTING VIEWS
   ========================================= */
.container {
  flex: 1;
  display: flex;
  align-items: flex-start; /* 상단 정렬로 통일하여 여백 일치 */
  justify-content: center;
  padding: 5rem 4rem 4rem 4rem; /* 상단 여백을 균형 있게 5rem으로 확대 */
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* Page View 전환 (SPA 뷰) */
.page-view {
  display: none;
  width: 100%;
  animation: fadeIn 0.4s ease forwards;
}

.page-view.active {
  display: block;
}

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

/* =========================================
   1. HOME VIEW (기본 프로필 화면)
   ========================================= */
.profile-layout {
  display: flex;
  align-items: stretch; /* 좌우 영역의 바닥 라인을 완벽히 일치시키도록 스트레치 */
  justify-content: center;
  gap: 6rem;
  width: 100%;
}

.profile-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 좌측 영역 항목 간 간격을 1.5rem으로 늘려 답답함 해소 */
  width: 340px;
}

.avatar-frame {
  width: 340px;
  height: 425px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  background-color: #121c29;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.avatar-frame:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.6);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   롤 전적 바로가기 카드 (좌측 프로필 사진 하단)
   ========================================= */
.fow-link-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem; /* 카드들 사이 간격도 약간 확대 */
  width: 100%;
}

.fow-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.fow-link-card:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 229, 255, 0.15);
  color: #ffffff;
}

.fow-card-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.fow-icon {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.fow-link-card:hover .fow-icon {
  transform: scale(1.1);
}

.fow-account-name {
  font-family: 'Outfit', 'Pretendard', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fow-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.fow-link-card:hover .fow-arrow {
  color: var(--accent-cyan);
  transform: translate(2px, -2px);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.profile-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 좌측 SNS/SOOP 아이콘 바닥과 PERSONAL BEST 바닥선이 자동으로 정확히 일치 */
  flex: 1;
  max-width: 580px;
}

/* =========================================
   PROFILE INFORMATION CARD (우측 상단 프로필 정보 카드)
   ========================================= */
.profile-info-card {
  width: 100%;
  max-width: 580px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  font-family: 'Outfit', 'Pretendard', sans-serif;
  transition: var(--transition);
}

.profile-info-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.profile-card-header {
  display: flex;
  align-items: center;
  padding: 1.05rem 1.6rem 0.9rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-card-title i {
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.55rem; /* 항목들의 세로 간격을 살짝 줄여 카드 간 간격 여유 확보 */
  padding: 1.4rem 1.7rem;
  width: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.info-label {
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.info-value {
  font-weight: 500;
  font-size: 1.2rem;
  color: #d1d9e6;
  letter-spacing: 0.2px;
  text-align: right;
}

/* DDahyuk 안민혁 & TOP 포인트 컬러 적용 */
.info-value.highlight-accent {
  color: var(--accent-cyan);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

/* =========================================
   PERSONAL BEST CARD (심플 & 미니멀 모던 디자인)
   ========================================= */
.personal-best-card {
  width: 100%;
  max-width: 580px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  font-family: 'Outfit', 'Pretendard', sans-serif;
  transition: var(--transition);
}

.personal-best-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.personal-best-header {
  display: flex;
  align-items: center;
  padding: 1.05rem 1.6rem 0.9rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pb-title-icon {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pb-title-icon i {
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

/* 심플한 2열 그리드 */
.personal-best-body {
  padding: 1.4rem 1.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem; /* 세로/가로 그리드 간격을 1.15rem으로 살짝 조정 */
}

.pb-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.95rem 1.15rem; /* 항목 내부 패딩을 약간 줄여 균형 유지 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.pb-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.2);
}

.pb-item.pb-item-full {
  grid-column: span 2;
}

.pb-item-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pb-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pb-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pb-match {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.pb-champ-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.3);
  flex-shrink: 0;
}

.pb-stat {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-align: right;
}

.pb-stat-green {
  color: #10b981;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
}

.icon-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.instagram-link:hover {
  color: #ff3366;
  border-color: #ff3366;
  box-shadow: 0 6px 18px rgba(255, 51, 102, 0.3);
}

.soop-link:hover {
  color: #00e5ff;
  border-color: #00e5ff;
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.3);
}

.soop-svg-icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* =========================================
   서브 페이지 공통 헤더 & 스타일 (CAREER, STATS 등)
   ========================================= */
.subpage-header {
  margin-bottom: 2.8rem;
}

.subpage-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.subpage-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 45px;
  height: 3px;
  background-color: var(--accent-cyan);
}

.subpage-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* 2. CAREER 타임라인 & 섹션 스타일 (2열 배치 + 통일된 민트 포인트 + 여유로운 간격) */
.career-sections-container {
  display: flex;
  flex-direction: column;
  gap: 5.5rem; /* 직전 간격(5.5rem)으로 원복 */
  width: 100%;
}

/* 1행: 좌측 Team History, 우측 Awards (2열 그리드) - 하단 끝 정렬을 위해 stretch 적용 */
.career-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; /* 좌우 열 간격 */
  align-items: stretch;
}

.career-block {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.career-block-team {
  height: 100%;
}

.career-block-team .timeline-list {
  flex: 1;
  justify-content: space-between; /* Awards 카드의 전체 높이에 맞춰 항목 간 간격을 균등하게 넓혀 하단 끝 일치 */
  padding-bottom: 0.5rem;
}

.career-block-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.9rem;
}

.career-block-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

/* 1) Team History 타이틀 색상: 통일된 시안/민트 (#00f0ff) */
.title-team {
  color: #00f0ff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}
.title-team i {
  color: #00f0ff;
}

/* 2) Awards 타이틀 색상: Team History와 동일한 민트 (#00f0ff) */
.title-awards {
  color: #00f0ff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}
.title-awards i {
  color: #00f0ff;
}

/* 3) Events Match 타이틀 색상: Team History와 동일한 민트 (#00f0ff) */
.title-events {
  color: #00f0ff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}
.title-events i {
  color: #00f0ff;
}

/* Team History 타임라인 */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 타임라인 항목 간 간격 확대 */
  border-left: 2px solid rgba(0, 240, 255, 0.2);
  padding-left: 2rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
}

.timeline-year {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 0.8px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.3rem;
  color: #ffffff;
}

/* Awards & Events Match 기록 그룹 */
.record-groups-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem; /* 연도별 카드 간격 확대 */
}

/* Events Match는 2열 카드로 시원하게 확장 */
.events-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.record-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.career-block-awards .record-group {
  border-left: 3px solid rgba(0, 240, 255, 0.4);
}
.career-block-awards .record-group:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.career-block-events .record-group {
  border-left: 3px solid rgba(0, 240, 255, 0.4);
}
.career-block-events .record-group:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.record-year-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  display: inline-block;
  letter-spacing: 1px;
}

.badge-awards {
  color: #00f0ff;
}

.badge-events {
  color: #00f0ff;
}

.record-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem; /* 각 수상/대회 항목 간격 확대 */
}

.record-items li {
  position: relative;
  padding-left: 1.3rem;
  color: #e2e8f0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.career-block-awards .record-items li::before {
  content: '🏆';
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 1px;
}

.career-block-events .record-items li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 1px;
}

.record-team {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-left: 0.35rem;
}

.record-team.team-subline {
  display: block;
  margin-left: 0;
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

/* 3. STATISTICS 그리드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* =========================================
   3. STATISTICS — 탭, 필터 카드, 핵심 지표 & 데이터 테이블
   ========================================= */
.stats-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stats-tab {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.65rem 1.6rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.stats-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.stats-tab.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0b111a;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

/* gol.gg 바로가기 버튼 */
.gol-shortcut-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #e2e8f0;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.gol-shortcut-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

.gol-badge-text {
  color: var(--accent-cyan);
  font-weight: 800;
}

.stats-tab-content {
  display: none;
}

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

/* 필터 카드 영역: 항목들이 카드를 채울 수 있도록 간격 조절 */
.stats-filter-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.6rem 2.2rem;
  margin-bottom: 2.2rem;
  display: flex;
  justify-content: space-between; /* 양 끝 및 항목 간 여백을 채워 카드를 알차게 배치 */
  align-items: flex-end;
  gap: 1.8rem;
  backdrop-filter: blur(10px);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.filter-group-season {
  flex: 0 0 auto;
}

/* Tournament와 Champion 드롭다운이 남은 공간을 균등하게 채움 */
.filter-group-select {
  flex: 1 1 240px;
  max-width: 320px;
}

@media (max-width: 900px) {
  .stats-filter-card {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group-select {
    max-width: 100%;
    width: 100%;
  }
}

.filter-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Season 항목들이 한 줄에 깔끔하게 표시되도록 설정 */
.season-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.season-filter-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.season-filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.season-filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0b111a;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.tournament-select {
  width: 100%;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  background: #111a28;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.tournament-select:hover,
.tournament-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.tournament-select option {
  background-color: #0b111a;
  color: #ffffff;
  padding: 0.5rem;
}

/* 핵심 스탯 요약 그리드: 각 카드의 가로 너비와 카드 간 간격을 균일하게 (1줄 4개, 2줄 8개) */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .stats-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
  min-width: 0; /* flex/grid 오버플로 방지 */
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1.1;
  white-space: nowrap;
}

.stat-name {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap; /* MATCH RECORD (승-패) 등 글자 줄바꿈 방지 */
}

/* 챔피언 테이블 카드 */
.stats-table-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
}

.table-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.table-header-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.active-filter-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.stats-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Outfit', 'Pretendard', sans-serif;
}

.stats-data-table th {
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-data-table td {
  padding: 1.1rem 1.2rem;
  font-size: 1rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.stats-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.stats-data-table .champion-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.champ-avatar-small {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.winrate-high {
  color: #00f0ff;
  font-weight: 700;
}

.winrate-mid {
  color: #e2e8f0;
  font-weight: 600;
}

.winrate-low {
  color: #f87171;
  font-weight: 600;
}

/* Match Result 전용 스타일 */
.match-list-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.match-list-subdesc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.match-result-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-win {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.badge-loss {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.match-data-table td {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* 4. VIDEOS — 탭 & 카드 & 상세 */

/* 탭 바 */
.video-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.video-tab {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.55rem 1.3rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.video-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.video-tab.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0b111a;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

/* 카드 그리드 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.video-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.video-card:hover .play-btn {
  background: rgba(0, 229, 255, 0.4);
  transform: scale(1.1);
}

/* 썸네일 영역 */
.video-thumbnail {
  height: 190px;
  background: linear-gradient(135deg, #101c2c, #070d14);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumbnail img.thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.video-card:hover .thumb-bg {
  opacity: 0.6;
}

.play-btn {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  transition: var(--transition);
}

/* 카테고리 태그 */
.video-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* 카드 하단 제목 (텍스트 정보 없이 제목만) */
.video-info {
  padding: 1.2rem 1.4rem;
}

.video-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 비디오 상세 — iframe 임베드 박스 */
.video-detail-view {
  animation: fadeIn 0.3s ease forwards;
}

.video-embed-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-embed-box iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* 5. NEWS 목록 & 상세 페이지 스타일 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.news-card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.news-card-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-meta-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.news-press {
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.news-date {
  font-family: 'Outfit', sans-serif;
  color: var(--text-muted);
}

.news-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.news-card-link:hover .news-title {
  color: var(--accent-cyan);
}

.news-summary {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
  height: 3.2em; /* 2줄 높이를 가득 채우도록 고정 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.news-thumbnail-box {
  width: 170px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #121c29;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-link:hover .news-thumb-img {
  transform: scale(1.05);
}

/* 페이지네이션 (Pagination) */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0b111a;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* NEWS 상세 페이지 */
.news-detail-view {
  animation: fadeIn 0.3s ease forwards;
}

.news-detail-top {
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Pretendard', sans-serif;
}

.btn-back:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateX(-4px);
}

.news-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 3rem;
  max-width: 900px;
}

.detail-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.detail-press {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta-label {
  font-weight: 600;
  color: var(--text-dim, #718096);
}

.detail-date {
  font-family: 'Outfit', sans-serif;
}

.detail-image-box {
  width: 100%;
  max-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background-color: #0f1724;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.detail-content {
  color: #d1d9e6;
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-content p {
  margin-bottom: 1.4rem;
}

/* 6. CONTACT 스타일 */
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 650px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.contact-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.contact-val {
  color: var(--accent-cyan);
  font-size: 1.05rem;
  font-family: 'Outfit', 'Pretendard', sans-serif;
  font-weight: 600;
}

.contact-val a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 1.05rem;
  transition: var(--transition);
}

.contact-val a:hover {
  text-decoration: underline;
  color: #fff;
}

/* =========================================
   반응형 브레이크포인트
   ========================================= */
@media (max-width: 960px) {
  .header {
    padding: 1.5rem 2rem 0.8rem 2rem;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }

  .gnb-list {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .container {
    padding: 2rem 2rem 3rem 2rem;
  }

  .profile-layout {
    flex-direction: column;
    gap: 2.8rem;
    align-items: center;
  }

  .avatar-frame {
    width: 270px;
    height: 340px;
  }

  .info-list {
    column-gap: 1.8rem;
    row-gap: 1.2rem;
  }

  .info-label {
    font-size: 1.15rem;
  }

  .info-value {
    font-size: 1.1rem;
  }

  .career-top-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 580px) {
  .gnb-list {
    gap: 1rem;
  }

  .gnb-link {
    font-size: 0.85rem;
  }

  .info-list {
    grid-template-columns: 1fr;
    row-gap: 0.9rem;
  }

  .info-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .news-item {
    flex-direction: column;
    gap: 0.6rem;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
