/* =====================================================
   롤 전적 검색 사이트 - style.css
   ===================================================== */

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

:root {
  --gold:        #C89B3C;
  --gold-light:  #F0D080;
  --blue:        #0BC4E3;
  --dark-bg:     #0A0E1A;
  --card-bg:     #0F1827;
  --card-border: rgba(200,155,60,0.25);
  --text-primary:   #E8E0D0;
  --text-secondary: #8A8A9A;
  --red:    #E84057;
  --green:  #00C853;
}

html, body {
  min-height: 100vh;
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── 배경 파티클 ── */
.bg-particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-particles span { position: absolute; display: block; border-radius: 50%; animation: float 18s infinite ease-in-out; opacity: 0.07; }
.bg-particles span:nth-child(1) { width:400px; height:400px; background:radial-gradient(circle,#C89B3C,transparent); top:-100px; left:-100px; animation-duration:20s; }
.bg-particles span:nth-child(2) { width:300px; height:300px; background:radial-gradient(circle,#0BC4E3,transparent); top:30%; right:-80px; animation-duration:15s; animation-delay:-5s; }
.bg-particles span:nth-child(3) { width:250px; height:250px; background:radial-gradient(circle,#7B2FBE,transparent); bottom:10%; left:10%; animation-duration:22s; animation-delay:-10s; }
.bg-particles span:nth-child(4) { width:180px; height:180px; background:radial-gradient(circle,#C89B3C,transparent); bottom:20%; right:20%; animation-duration:17s; animation-delay:-3s; }
.bg-particles span:nth-child(5) { width:120px; height:120px; background:radial-gradient(circle,#0BC4E3,transparent); top:60%; left:40%; animation-duration:25s; animation-delay:-8s; }
.bg-particles span:nth-child(6) { width:200px; height:200px; background:radial-gradient(circle,#E84057,transparent); top:20%; left:50%; animation-duration:19s; animation-delay:-12s; }
.bg-particles span:nth-child(7) { width:350px; height:350px; background:radial-gradient(circle,#7B2FBE,transparent); bottom:-80px; right:-80px; animation-duration:23s; animation-delay:-6s; }
.bg-particles span:nth-child(8) { width:150px; height:150px; background:radial-gradient(circle,#C89B3C,transparent); top:45%; left:5%; animation-duration:16s; animation-delay:-14s; }
@keyframes float { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(30px,-40px) scale(1.05);} 66%{transform:translate(-20px,20px) scale(0.95);} }

/* ── 레이아웃 ── */
.layout-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.container {
  position: relative; z-index: 1;
  flex: 1;
  max-width: 900px; /* 기존 680px에서 대폭 늘려 더 시원하게 보여줍니다 */
  padding: 60px 0 80px;
  display: flex; flex-direction: column; gap: 28px;
  min-width: 0;
}

/* ── 헤더 ── */
.header { text-align: center; animation: fadeDown 0.7s ease both; margin-bottom: 8px; }
.logo-icon {
  font-size: 56px; display: inline-block; margin-bottom: 8px;
  filter: drop-shadow(0 0 25px rgba(11,196,227,0.7));
  animation: pulse-glow 3s ease-in-out infinite, float-motion 4s ease-in-out infinite;
}
@keyframes float-motion {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}
@keyframes pulse-glow { 
  0%,100%{filter:drop-shadow(0 0 20px rgba(11,196,227,0.5));} 
  50%{filter:drop-shadow(0 0 45px rgba(11,196,227,1));} 
}
.logo-title {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-dot {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(200,155,60,0.8);
  animation: neon-flicker 2s infinite alternate;
}
.logo-accent {
  background: linear-gradient(135deg, #0BC4E3, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(11,196,227,0.4));
  font-style: italic;
  margin-left: 2px;
}
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.logo-subtitle { 
  margin-top: 12px; 
  color: var(--text-secondary); 
  font-size: 1.05rem; 
  font-weight: 500;
  letter-spacing: -0.01em;
  background: rgba(255,255,255,0.03);
  padding: 6px 18px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── 검색 카드 ── */
.search-card {
  background: linear-gradient(145deg,rgba(15,24,39,0.95),rgba(10,14,26,0.98));
  border: 1px solid var(--card-border);
  border-radius: 20px; padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(200,155,60,0.1), 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(200,155,60,0.15);
  animation: fadeUp 0.7s ease 0.1s both;
  display: flex; flex-direction: column; gap: 24px;
}
.search-wrapper { display: flex; flex-direction: column; gap: 18px; }
.input-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }

.region-select {
  width: 100%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(200,155,60,0.3); border-radius: 12px;
  color: var(--text-primary); padding: 12px 40px 12px 14px; font-size: 0.95rem; font-family: inherit;
  cursor: pointer; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C89B3C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.region-select option { background: #0F1827; }
.region-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,155,60,0.15); }

.input-row { display: flex; gap: 10px; }
.input-wrapper { flex: 1; position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 13px; font-size: 1rem; pointer-events: none; opacity: 0.5; }
.summoner-input {
  width: 100%; padding: 13px 14px 13px 38px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(200,155,60,0.3); border-radius: 12px;
  color: var(--text-primary); font-size: 0.95rem; font-family: inherit; outline: none;
  transition: all 0.3s;
}
.summoner-input::placeholder { color: var(--text-secondary); }
.summoner-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(200,155,60,0.15); }

.search-btn {
  display: flex; align-items: center; gap: 8px; padding: 13px 26px;
  background: linear-gradient(135deg,#C89B3C,#8B6914);
  border: none; border-radius: 12px;
  color: #0A0E1A; font-size: 0.95rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.3s; white-space: nowrap; position: relative; overflow: hidden;
}
.search-btn::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,#F0D080,#C89B3C); opacity:0; transition:opacity 0.3s; }
.search-btn:hover::before { opacity: 1; }
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,155,60,0.4); }
.search-btn:active { transform: translateY(0); }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.search-btn .btn-text, .search-btn .btn-icon { position: relative; z-index: 1; }

/* ── 결과 영역 ── */
.result-area { display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* 로딩 */
.loading { display:flex; flex-direction:column; align-items:center; gap:14px; padding:28px; color:var(--text-secondary); }
.spinner { width:38px; height:38px; border:3px solid rgba(200,155,60,0.2); border-top-color:var(--gold); border-radius:50%; animation:spin 0.8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── 결과 카드 ── */
.result-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg,rgba(200,155,60,0.07),rgba(11,196,227,0.04));
  border: 1px solid rgba(200,155,60,0.3);
  border-radius: 16px;
  animation: fadeUp 0.4s ease both;
}

/* 소환사 헤더 */
.result-header {
  display: flex; align-items: center; gap: 16px;
}

.profile-wrap { position: relative; flex: none; }
.profile-icon {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(200,155,60,0.4);
}
.level-badge {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,#C89B3C,#8B6914);
  color: #0A0E1A; font-size: 0.72rem; font-weight: 900;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}

.summoner-info { flex: 1; min-width: 0; }
.result-name {
  font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(90deg,#F0D080,#C89B3C);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tier-pill {
  display: inline-block; margin-top: 6px;
  padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: rgba(200,155,60,0.15); border: 1px solid rgba(200,155,60,0.4); color: var(--gold-light);
}

/* 티어 색상 */
.tier-pill.iron       { background:rgba(100,100,100,0.2); border-color:#6d6d6d; color:#9a9a9a; }
.tier-pill.bronze     { background:rgba(140,105,39,0.2); border-color:#8C6927; color:#c49a45; }
.tier-pill.silver     { background:rgba(160,160,160,0.15); border-color:#A0A0A0; color:#cfcfcf; }
.tier-pill.gold       { background:rgba(200,155,60,0.15); border-color:#C89B3C; color:#F0D080; }
.tier-pill.platinum   { background:rgba(0,170,140,0.15); border-color:#00aa8c; color:#00d4b0; }
.tier-pill.emerald    { background:rgba(0,191,165,0.15); border-color:#00BFA5; color:#00e5c8; }
.tier-pill.diamond    { background:rgba(11,196,227,0.15); border-color:#0BC4E3; color:#4dd8f0; }
.tier-pill.master     { background:rgba(156,39,176,0.2); border-color:#9C27B0; color:#ce93d8; }
.tier-pill.grandmaster{ background:rgba(232,64,87,0.2); border-color:#E84057; color:#ff8a9a; }
.tier-pill.challenger { background:rgba(240,208,128,0.2); border-color:#F0D080; color:#F0D080; }

/* 통계 행 */
.stat-row {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden;
}
.stat-box {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stat-box.rank-box {
  position: relative;
  padding-left: 135px;
  min-height: 125px;
  align-items: center;
}
.rank-info-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.tier-img {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 105px;
  height: 105px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(240, 208, 128, 0.35));
}
.tier-lp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.wl-winrate-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.lp-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F0D080;
  background: rgba(240, 208, 128, 0.12);
  border: 1px solid rgba(240, 208, 128, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 0 !important;
}
.wl-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-winrate-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #00e5c8;
}
.stat-divider { width: 1px; background: rgba(255,255,255,0.08); }
.adsense-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.015);
  min-height: 125px;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.adsense-box:hover {
  background: rgba(255, 255, 255, 0.03);
}
.adsense-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  width: 100%;
  height: 100%;
  min-height: 93px;
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.1);
}
.adsense-label {
  font-size: 0.6rem;
  color: #F0D080;
  opacity: 0.7;
  letter-spacing: 0.15em;
  font-weight: 800;
  margin-bottom: 4px;
}
.adsense-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  opacity: 0.85;
  font-weight: 600;
}
.adsense-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-top: 3px;
}
.stat-label { font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.stat-value { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.stat-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 3px; }

/* 최근 게임 */
.match-section { display: flex; flex-direction: column; gap: 10px; }
.match-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.05em; }
.match-list-container { display: flex; flex-direction: column; gap: 10px; }

.match-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.match-card.win-card  { border-color: rgba(0,200,83,0.3);  background: rgba(0,200,83,0.05); }
.match-card.lose-card { border-color: rgba(232,64,87,0.3); background: rgba(232,64,87,0.05); }

.match-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 96px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 16px;
}

.match-badge {
  padding: 4px 0; border-radius: 6px;
  font-size: 0.75rem; font-weight: 900;
  width: 100%;
  text-align: center;
  flex: none;
}
.match-badge.win  { background: rgba(0,200,83,0.2);  color: #00C853; border: 1px solid rgba(0,200,83,0.4); }
.match-badge.lose { background: rgba(232,64,87,0.2); color: #E84057; border: 1px solid rgba(232,64,87,0.4); }
.match-badge.arena-first { background: rgba(240, 208, 128, 0.2); color: #F0D080; border: 1px solid rgba(240, 208, 128, 0.4); }
.match-badge.arena-win { background: rgba(52, 152, 219, 0.2); color: #3498DB; border: 1px solid rgba(52, 152, 219, 0.4); }
.match-badge.arena-lose { background: rgba(232, 64, 87, 0.2); color: #E84057; border: 1px solid rgba(232, 64, 87, 0.4); }

.match-champ-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.champ-icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  object-fit: cover; flex: none;
}

.match-kda-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: none;
  margin-left: 12px; /* 룬 바로 오른쪽에 깔끔하게 배치 */
}
.match-kda-ratio {
  font-size: 0.7rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.match-kda-ratio.kda-gray {
  color: #848B9F;
}
.match-kda-ratio.kda-green {
  color: #2ECC71;
}
.match-kda-ratio.kda-blue {
  color: #3498DB;
}
.match-kda-ratio.kda-red {
  color: #E74C3C;
}
.match-kda-ratio.perfect {
  color: #E74C3C;
  font-weight: 600;
}
.match-kda {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}
.match-kda .kills, .match-kda .assists {
  color: var(--text-primary);
}
.match-kda .deaths {
  color: #E84057;
  font-weight: 800;
}
.match-type { font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); text-align: center; white-space: nowrap; }

/* 매치 상세 정보 스타일 */
.match-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.match-card {
  border-radius: 12px 12px 0 0 !important;
  border-bottom: none !important;
}
.match-card:not(.expanded) {
  border-radius: 12px !important;
}
.match-card.expanded {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

/* 상세보기 토글 버튼 */
.detail-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.detail-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}
.detail-toggle-btn .toggle-icon {
  transition: transform 0.3s ease;
}
.detail-toggle-btn.active {
  background: rgba(240, 208, 128, 0.12);
  border-color: rgba(240, 208, 128, 0.3);
  color: #F0D080;
}
.detail-toggle-btn.active .toggle-icon {
  transform: rotate(180deg);
}

/* 매치 상세 정보 패널 */
.match-details-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: slideDown 0.3s ease-out both;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 팀 테이블 랩 */
.team-table-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.team-table-wrap.win-team {
  background: rgba(0, 200, 83, 0.015);
  border-color: rgba(0, 200, 83, 0.15);
}
.team-table-wrap.lose-team {
  background: rgba(232, 64, 87, 0.015);
  border-color: rgba(232, 64, 87, 0.15);
}

/* 팀 헤더 */
.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.team-table-wrap.win-team .team-header {
  background: rgba(0, 200, 83, 0.04);
  border-bottom: 1px solid rgba(0, 200, 83, 0.1);
}
.team-table-wrap.lose-team .team-header {
  background: rgba(232, 64, 87, 0.04);
  border-bottom: 1px solid rgba(232, 64, 87, 0.1);
}

.team-title-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.team-title-label.text-win { color: #00C853; }
.team-title-label.text-lose { color: #E84057; }

.team-kda-summary {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* 팀 테이블 코어 */
.team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.team-table th {
  padding: 8px 12px;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.team-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}
.team-table tbody tr:last-child td {
  border-bottom: none;
}

.player-row {
  transition: background-color 0.2s;
}
.player-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.is-me-row {
  background: rgba(240, 208, 128, 0.03);
}
.is-me-row:hover {
  background: rgba(240, 208, 128, 0.05);
}

/* 챔피언 칼럼 */
.col-champ { width: 120px; }
.p-champ-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-champ-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}
.p-spells-runes {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p-spells, .p-runes {
  display: flex;
  gap: 2px;
}
.p-spells img, .p-runes img {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
}

/* 소환사명 칼럼 */
.col-name { width: 160px; }
.p-summoner-name {
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 150px;
}
.p-summoner-name:hover {
  color: #F0D080;
  text-decoration: underline;
}
.p-summoner-name.is-me {
  color: #F0D080;
  font-weight: 800;
}

/* KDA 칼럼 */
.col-kda { width: 110px; }
.p-kda-nums {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
}
.p-kda-ratio {
  font-size: 0.68rem;
  font-weight: 500;
  margin-top: 1px;
  transition: color 0.2s ease;
}
.p-kda-ratio.kda-gray {
  color: #848B9F;
}
.p-kda-ratio.kda-green {
  color: #2ECC71;
}
.p-kda-ratio.kda-blue {
  color: #3498DB;
}
.p-kda-ratio.kda-red {
  color: #E74C3C;
}
.p-kda-ratio.perfect {
  color: #E74C3C;
  font-weight: 600;
}

/* 딜량 칼럼 */
.col-damage { width: 130px; }
.p-dmg-num {
  font-weight: 700;
  font-family: monospace;
  color: var(--text-primary);
  font-size: 0.78rem;
}
.p-dmg-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.p-dmg-bar {
  height: 100%;
  background: linear-gradient(90deg, #E84057, #ff6b81);
  border-radius: 2px;
}
.win-team .p-dmg-bar {
  background: linear-gradient(90deg, #00C853, #00e5c8);
}

/* CS 칼럼 */
.col-cs { width: 70px; }
.p-cs-num {
  font-weight: 700;
  color: var(--text-primary);
}
.p-cs-min {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* 아이템 칼럼 */
.col-items { width: 195px; }
.p-items-grid {
  display: flex;
  gap: 3px;
}
.p-item-slot {
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}
.p-item-slot.trinket {
  border-radius: 50%;
  margin-left: 4px;
  border-color: rgba(240, 208, 128, 0.15);
}
.p-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 에러 카드 */
.error-card {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:24px; background:rgba(232,64,87,0.08); border:1px solid rgba(232,64,87,0.3);
  border-radius:14px; text-align:center; animation:fadeUp 0.4s ease both;
}
.error-icon { font-size:2.2rem; }
.error-message { color:var(--red); font-weight:700; font-size:0.95rem; white-space: pre-line; }
.error-hint { color:var(--text-secondary); font-size:0.82rem; }

/* 푸터 */
.footer { text-align:center; color:var(--text-secondary); font-size:0.8rem; line-height:1.8; animation:fadeUp 0.7s ease 0.2s both; }
.footer-disclaimer { font-size:0.72rem; opacity:0.5; }

/* 애니메이션 */
@keyframes fadeDown { from{opacity:0;transform:translateY(-24px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(24px); } to{opacity:1;transform:translateY(0);} }

/* 반응형 */
@media (max-width:580px) {
  .container { padding:36px 14px 60px; }
  .search-card { padding:22px 18px; }
  .input-row { flex-direction:column; }
  .search-btn { width:100%; justify-content:center; }
  .result-header { flex-direction:column; text-align:center; }
  .result-name { font-size:1.2rem; }
  
  .stat-row {
    flex-direction: column;
  }
  .stat-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
  }
  .stat-box {
    padding: 12px 16px;
  }
  .adsense-box {
    padding: 12px 16px;
    min-height: 95px;
    border-radius: 0 0 12px 12px;
  }
  .stat-box.rank-box {
    position: relative;
    padding-left: 100px;
    min-height: 95px;
    justify-content: center;
    width: 100%;
  }
  .tier-img {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 76px;
    height: 76px;
  }
  
  /* 전적 카드 모바일 최적화 */
  .match-card {
    padding: 10px 12px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .match-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 2px;
  }
  .match-badge {
    width: auto;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 5px;
  }
  .match-champ-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  .champ-icon {
    width: 32px;
    height: 32px;
  }
  .match-kda-wrap {
    margin-left: auto; /* 우측 끝으로 KDA를 정렬 */
    align-items: flex-end;
    text-align: right;
    gap: 1px;
  }
  .match-kda {
    font-size: 0.78rem;
  }
  .match-type {
    font-size: 0.68rem;
    text-align: left;
  }
  
  /* 모바일 세부 전적 대응 */
  .match-details-panel {
    padding: 10px;
    gap: 12px;
  }
  .team-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .team-table {
    min-width: 580px;
  }
  .detail-toggle-btn {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
}

/* 언어 선택기 */
.lang-selector {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 6px;
  background: rgba(15, 24, 39, 0.7);
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 20px;
  padding: 3px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 100;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.lang-btn:hover {
  color: var(--gold-light);
}
.lang-btn.active {
  background: var(--gold);
  color: #0A0E1A;
}
@media (max-width:580px) {
  .lang-selector {
    top: 12px;
    right: 14px;
  }
}

/* 룬 표시 스타일 */
.match-runes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.rune-icon {
  object-fit: contain;
}
.rune-icon.main {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 2px rgba(240, 208, 128, 0.5));
}
.rune-icon.sub {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

@media (max-width:580px) {
  .match-runes {
    gap: 2px;
    padding: 2px;
  }
  .rune-icon.main {
    width: 16px;
    height: 16px;
  }
  .rune-icon.sub {
    width: 11px;
    height: 11px;
  }
}

/* 스펠 표시 스타일 */
.match-spells {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.spell-icon {
  width: 19px;
  height: 19px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

@media (max-width:580px) {
  .match-spells {
    gap: 2px;
  }
  .spell-icon {
    width: 15px;
    height: 15px;
    border-radius: 3px;
  }
}

/* 아이템 표시 스타일 */
.match-items-wrap {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}
.item-slot {
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-slot.trinket {
  margin-left: 4px;
  border-radius: 50%;
  border-color: rgba(240, 208, 128, 0.25);
  background: rgba(240, 208, 128, 0.05);
}
.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease-in-out;
}
.item-img:hover {
  transform: scale(1.1);
}

@media (max-width: 580px) {
  .match-items-wrap {
    margin-top: 6px;
    gap: 3px;
    width: 100%;
    justify-content: flex-start;
  }
  .item-slot {
    width: 23px;
    height: 23px;
    border-radius: 4px;
  }
  .item-slot.trinket {
    margin-left: 2px;
  }
}

/* ── 구글 애드센스 사이드바 ── */
.adsense-sidebar {
  width: 160px;
  height: 600px;
  position: sticky;
  top: 60px;
  flex-shrink: 0;
  margin-top: 140px; /* 헤더 눈높이에 맞춰 하향 조정 */
  z-index: 10;
  display: block;
}

.adsense-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(15, 24, 39, 0.6);
  border: 1px dashed rgba(200, 155, 60, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
}

.adsense-placeholder:hover {
  border-color: rgba(200, 155, 60, 0.6);
  background: rgba(15, 24, 39, 0.75);
}

.adsense-icon {
  font-size: 28px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(200, 155, 60, 0.5));
}

.adsense-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.adsense-size {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.adsense-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
}

/* 화면 가로폭이 좁아질 때 애드센스 영역 숨김 및 컨테이너 조정 */
@media (max-width: 1320px) {
  .adsense-sidebar {
    display: none !important;
  }
  .layout-wrapper {
    padding: 0 16px;
  }
  .container {
    max-width: 800px;
    padding: 40px 0 60px;
  }
}

@media (max-width: 860px) {
  .container {
    max-width: 100%;
  }
}

/* ── 상세 빌드 & 타임라인 탭 및 전용 UI ── */
.details-tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.details-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.details-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.details-tab-btn.active {
  color: #F0D080;
  background: rgba(240, 208, 128, 0.1);
  border-color: rgba(240, 208, 128, 0.25);
  box-shadow: inset 0 0 8px rgba(240, 208, 128, 0.05);
}

.tab-content {
  transition: opacity 0.2s ease;
}

.tab-content.hidden {
  display: none !important;
}

/* 상세 룬 & 타임라인 컨테이너 */
.build-tab-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .build-tab-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 상세 룬 세팅 */
.detailed-runes-section, .item-timeline-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px;
}

.section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.runes-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rune-branch {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

.branch-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.branch-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.shards-header-dot {
  width: 8px;
  height: 8px;
  background: #F0D080;
  border-radius: 50%;
  box-shadow: 0 0 6px #F0D080;
}

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

.rune-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.rune-detail-item.keystone {
  background: rgba(240, 208, 128, 0.04);
  border-color: rgba(240, 208, 128, 0.12);
}

.rune-detail-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rune-detail-item.keystone .rune-detail-icon {
  width: 32px;
  height: 32px;
}

.rune-detail-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.rune-detail-item.keystone .rune-detail-name {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── 상세 룬 트리 그리드 (찍은 룬 외 전체 선택지 노출) ── */
.runes-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .runes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.rune-tier-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

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

.rune-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: help;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 선택 안 된 룬 (비활성화) */
.rune-node.inactive {
  width: 24px;
  height: 24px;
  opacity: 0.16;
  filter: grayscale(100%);
  border: 1.5px solid transparent;
  background: rgba(0, 0, 0, 0.25);
}

.rune-node.inactive:hover {
  opacity: 0.55;
  filter: grayscale(30%);
  transform: scale(1.15);
}

/* 선택된 룬 (활성화) */
.rune-node.active {
  width: 28px;
  height: 28px;
  opacity: 1;
  filter: none;
  border: 2px solid #F0D080;
  box-shadow: 0 0 12px rgba(240, 208, 128, 0.65), inset 0 0 6px rgba(240, 208, 128, 0.25);
  background: rgba(0, 0, 0, 0.45);
  transform: scale(1.1);
}

/* 핵심 룬 특수 스타일 */
.rune-node.keystone-node.inactive {
  width: 32px;
  height: 32px;
}

.rune-node.keystone-node.active {
  width: 38px;
  height: 38px;
  border-color: #F0D080;
  box-shadow: 0 0 18px rgba(240, 208, 128, 0.8), inset 0 0 8px rgba(240, 208, 128, 0.4);
}

.rune-node-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.rune-tier-name {
  display: none;
}

/* 능력치 파편용 노드 */
.stat-shard-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: help;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.35);
}

.stat-shard-node.inactive {
  opacity: 0.35;
  filter: grayscale(100%);
}

.stat-shard-node.inactive:hover {
  opacity: 0.85;
  filter: none;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.stat-shard-node.active {
  opacity: 1;
  filter: none;
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.15);
  border-width: 1.5px;
}

.stat-shard-node.active.shard-offense {
  border-color: #E05624;
  color: #E05624;
  box-shadow: 0 0 10px rgba(224, 86, 36, 0.5), inset 0 0 4px rgba(224, 86, 36, 0.25);
}

.stat-shard-node.active.shard-flex {
  border-color: #F0D080;
  color: #F0D080;
  box-shadow: 0 0 10px rgba(240, 208, 128, 0.5), inset 0 0 4px rgba(240, 208, 128, 0.25);
}

.stat-shard-node.active.shard-defense {
  border-color: #2196F3;
  color: #2196F3;
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.5), inset 0 0 4px rgba(33, 150, 243, 0.25);
}

/* 능력치 파편 */
.stat-shard-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid transparent;
}

/* 아이템 빌드 타임라인 */
.timeline-container-inner {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.timeline-container-inner::-webkit-scrollbar {
  width: 5px;
}
.timeline-container-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.timeline-container-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.timeline-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.timeline-loading .spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.1);
  border-top-color: #F0D080;
  border-radius: 50%;
  animation: timeline-spin 0.8s linear infinite;
}

@keyframes timeline-spin {
  to { transform: rotate(360deg); }
}

.timeline-error, .timeline-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 14px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-row {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  border: 2px solid var(--background-core);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.timeline-row:hover::before {
  background: #F0D080;
  box-shadow: 0 0 6px #F0D080;
}

.timeline-time {
  font-family: monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #F0D080;
  background: rgba(240, 208, 128, 0.06);
  border: 1px solid rgba(240, 208, 128, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  height: fit-content;
  align-self: flex-start;
  white-space: nowrap;
}

.timeline-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
}

.timeline-item-event {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item-event:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1.5px);
}

.timeline-item-event.purchase {
  border-left: 3.5px solid #00C853;
  box-shadow: 0 1px 3px rgba(0, 200, 83, 0.05);
}

.timeline-item-event.sell {
  border-left: 3.5px solid #E84057;
  box-shadow: 0 1px 3px rgba(232, 64, 87, 0.05);
}

.timeline-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.timeline-item-label {
  font-size: 0.78rem;
  color: var(--text-primary);
}

.timeline-item-label .item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.action-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}

.tag-purchase {
  background: rgba(0, 200, 83, 0.1);
  color: #00C853;
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.tag-sell {
  background: rgba(232, 64, 87, 0.1);
  color: #E84057;
  border: 1px solid rgba(232, 64, 87, 0.2);
}

/* Spell and rune pointer on hover */
.match-spells, .match-runes {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 4px;
  padding: 2px;
}

.match-spells:hover, .match-runes:hover {
  transform: scale(1.08);
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
}

.match-spells:active, .match-runes:active {
  transform: scale(0.96);
}

/* ── 전적 더 보기 버튼 ── */
.more-matches-container {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.load-more-btn {
  width: 100%;
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.25);
  color: var(--gold);
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.load-more-btn:hover {
  background: rgba(200, 155, 60, 0.16);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 155, 60, 0.15);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.load-more-btn:disabled {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 소형 스피너 */
.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(200, 155, 60, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.hidden {
  display: none !important;
}



