:root {
  --bg: #090d14;
  --panel: #111824;
  --panel-2: #182231;
  --ink: #f3f6fb;
  --muted: #9aa7b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e33343;
  --accent-2: #3d8bff;
  --good: #39ce8f;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(227, 51, 67, 0.16), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(57, 206, 143, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(9, 13, 20, 0.96), rgba(9, 13, 20, 0.99)),
    url("https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=2200&q=80");
  background-attachment: fixed;
  background-size: cover;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 13, 20, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(135deg, #e33343, #1267d8 58%, #39ce8f);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d7deeb;
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  padding: 9px 10px;
  border-radius: 8px;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.09);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: var(--panel);
}

#app {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.seo-intro {
  padding: 40px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 420px);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  min-height: clamp(390px, 58vh, 590px);
  padding: clamp(24px, 6vw, 56px) 0 30px;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 740px;
  margin: 20px 0 0;
  color: #c6d0df;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-self: end;
  margin-bottom: 8px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.metric,
.quick-card,
.stat,
.profile-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 36, 0.84);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.quick-card {
  padding: 22px;
  box-shadow: var(--shadow);
}

.quick-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.input::placeholder {
  color: #7f8da0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(227, 51, 67, 0.72);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #e33343, #b91f32);
  cursor: pointer;
  font-weight: 800;
}

.btn.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.btn.price {
  width: 100%;
  border-color: #d72130;
  background: #d72130;
}

.section {
  margin-top: 34px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
}

.section-title p,
.page-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.player-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.team-grid,
.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gear-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.home-strip,
.captain-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 360px;
  gap: 14px;
  max-height: 360px;
  overflow: hidden;
}

.team-strip {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 36, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-card {
  position: relative;
  display: block;
  min-height: 360px;
  isolation: isolate;
  transition: transform 160ms ease, border-color 160ms ease;
}

.player-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--team-color, #e33343), white 18%);
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 0%, rgba(9, 13, 20, 0.28) 54%, rgba(9, 13, 20, 0.96) 100%),
    linear-gradient(135deg, var(--team-color, #e33343), #101827);
  font-size: 25px;
  font-weight: 900;
  overflow: hidden;
}

.player-photo {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  width: 100%;
  height: 104%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

.player-photo.large {
  height: 100%;
}

.photo-fallback::before {
  content: attr(data-initial);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    var(--team-color, #e33343);
  color: #fff;
  font-size: 42px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
}

.card-body {
  min-width: 0;
  padding: 14px;
}

.player-card .card-body {
  position: relative;
  z-index: 4;
  margin-top: -56px;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 36, 0.96) 18%);
}

.eyebrow {
  color: #a9b5c7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.card h3 {
  margin: 3px 0 8px;
  font-size: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7deeb;
  font-size: 12px;
}

.chip.good {
  border-color: rgba(24, 134, 91, 0.25);
  background: rgba(57, 206, 143, 0.12);
  color: var(--good);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 25px;
}

.platform-row,
.profile-platform-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-row {
  justify-content: flex-end;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.platform-youtube {
  border-color: rgba(255, 70, 86, 0.42);
  background: rgba(255, 35, 54, 0.18);
  color: #ffb4bb;
}

.platform-soop {
  border-color: rgba(54, 145, 255, 0.42);
  background: rgba(34, 112, 255, 0.18);
  color: #b9d6ff;
}

.platform-chzzk {
  border-color: rgba(0, 255, 168, 0.36);
  background: rgba(0, 255, 168, 0.14);
  color: #aaffdf;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 10px;
  margin: 20px 0;
}

.team-card,
.category-card {
  display: block;
  min-height: 330px;
  padding: 16px;
  border-top: 5px solid var(--team-color, var(--accent));
}

.category-card {
  border-top-color: var(--accent-2);
}

.team-card h3,
.category-card h3 {
  margin: 0 0 4px;
}

.team-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.team-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.muted {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 36, 0.94);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  background: #151d2a;
  color: #c0c9d8;
  font-size: 12px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.profile-panel {
  position: sticky;
  top: 86px;
  align-self: start;
}

.big-portrait {
  min-height: 300px;
  border-radius: 8px 8px 0 0;
  font-size: 62px;
}

.profile-summary {
  padding: 16px;
}

.profile-facts,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.profile-facts div,
.stat {
  padding: 12px;
}

.profile-facts span,
.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.profile-facts strong,
.stat strong {
  display: block;
  margin-top: 3px;
}

.profile-bio {
  margin: 14px 0 0;
  color: #d3dbe8;
}

.gear-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gear-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  min-height: 330px;
}

.gear-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.gear-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 900;
}

.gear-visual .gear-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.gear-photo {
  width: 88%;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.36));
}

.gear-copy {
  display: grid;
  gap: 4px;
}

.gear-card .btn.price {
  margin-top: auto;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 36, 0.8);
  color: var(--muted);
  text-align: center;
}

.team-photo-grid {
  margin-top: 22px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: start;
  }

  .nav {
    display: none;
    position: absolute;
    top: 67px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero,
  .detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    position: static;
  }

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

  .metric-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #app {
    width: min(100% - 20px, 1200px);
  }

  .player-card,
  .home-strip,
  .captain-strip {
    min-height: 320px;
    grid-auto-rows: 320px;
    max-height: 320px;
  }

  .portrait {
    min-height: 230px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }
}
