:root {
  --bg: #f3faf7;
  --text: #10221b;
  --subtext: #47594f;
  --primary: #0f7a52;
  --primary-soft: #25a374;
  --card: #ffffff;
  --border: #d7ece1;
  --focus: #0f62fe;
  --success: #0f8b44;
  --danger: #b42318;
  --display-font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #fff, #eef8f2 40%, #f3faf7 100%),
    repeating-linear-gradient(45deg, rgba(15, 122, 82, 0.02) 0 2px, transparent 2px 9px);
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 12px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.site-header {
  position: relative;
  overflow: hidden;
  padding: 100px 0 72px;
  background: #08130f;
  border-bottom: 1px solid #1c2e26;
  color: #fff;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(5, 15, 11, 0.82), rgba(12, 46, 33, 0.58)),
    radial-gradient(circle at 80% 20%, rgba(120, 230, 180, 0.16), transparent 42%);
}

.site-header-content {
  position: relative;
  z-index: 1;
}

.site-header h1 {
  color: #fff;
}

.site-header .hero-subcopy {
  color: #e8f7ef;
}

/* ===== FIXED NAV ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(5, 15, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
}

.nav-logo {
  display: none;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-hamburger {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: rgba(255,255,255,0.12);
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-links li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.nav-links .nav-cta a {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.nav-links .nav-cta a:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
}

.header-badge {
  display: table;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(220, 255, 238, 0.2);
  border: 1px solid rgba(140, 230, 190, 0.35);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.poster-badge {
  position: relative;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid rgba(140, 230, 190, 0.5);
  background: linear-gradient(135deg, rgba(15, 122, 82, 0.5), rgba(10, 40, 30, 0.65));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(206, 255, 232, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.poster-badge::before,
.poster-badge::after {
  content: '⚽';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #7fe6b4;
  opacity: 0.9;
}

.poster-badge::before {
  left: 8px;
}

.poster-badge::after {
  right: 8px;
}

.poster-badge span {
  display: inline-block;
  padding: 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin-bottom: 16px;
}

.retro-headline {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.retro-headline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(420px, 70%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fe6b4, #25a374, #0c4a34);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 10px;
}

.hero-subcopy {
  max-width: 840px;
  font-size: 1.1rem;
  color: var(--subtext);
  margin: 0 0 18px;
}

.hero-highlights {
  margin: 0 0 28px;
  padding-left: 20px;
}

.hero-highlights li {
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-highlights i {
  width: 20px;
  color: #7fe6b4;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 122, 82, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 1px solid #fff;
}

.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}

.grid-two {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.profile-figure {
  margin: 0;
}

.profile-figure img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.profile-figure figcaption {
  margin-top: 10px;
  font-size: 0.96rem;
  color: var(--subtext);
}

.card-grid,
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: linear-gradient(180deg, #fdfffd 0%, #f2fbf6 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 90, 60, 0.06);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #0c4a34, #25a374, #7fe6b4);
}

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

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.timeline li {
  border-left: 4px solid #c9ecd9;
  padding-left: 12px;
}

.timeline .year {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-soft);
}

.timeline p {
  margin: 4px 0 0;
}

.video-embed {
  margin-top: 30px;
}

.featured-video-thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 90, 60, 0.08);
}

.featured-video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.link-group a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
}

.section-intro {
  margin-top: 0;
  color: var(--subtext);
}

.media-block + .media-block {
  margin-top: 26px;
}

.sync-status {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--subtext);
}

.sync-status.is-success {
  color: var(--success);
  font-weight: 600;
}

.sync-status.is-error {
  color: var(--danger);
  font-weight: 600;
}

.media-block h3 i,
#media-gallery-title i {
  color: #0f7a52;
}

.thumb-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.thumb-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 90, 60, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 90, 60, 0.12);
}

.thumb-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* 공식 프로필 갤러리 전용: 세로형(인물) 비율 */
.gallery-grid.thumb-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid .thumb-card img {
  aspect-ratio: 3 / 4;
  object-position: top center;
}

.thumb-card p {
  margin: 0;
  padding: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: #17281f;
}

.site-footer {
  padding: 52px 0 46px;
  background: linear-gradient(145deg, #0c2e21, #081c15);
  color: #eafaf0;
}

.site-footer a {
  color: #7fe6b4;
}

.site-footer address {
  font-style: normal;
}

.official-links ul {
  margin: 0;
  padding-left: 20px;
}

.copyright {
  margin-top: 26px;
  font-size: 0.95rem;
  color: #c3ddd0;
}

@media (max-width: 900px) {
  .grid-two,
  .card-grid,
  .showcase-grid,
  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid.thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    padding-top: 90px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .gallery-grid.thumb-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 모바일 햄버거 메뉴 ===== */
@media (max-width: 768px) {
  .nav-logo {
    display: inline-flex;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(4, 12, 9, 0.97);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li a {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: transparent;
    padding: 14px 22px;
    font-size: 1rem;
    width: 100%;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a:hover {
    background: rgba(255,255,255,0.08);
    border-color: transparent;
  }

  .nav-links .nav-cta a {
    margin: 10px 16px 0;
    width: calc(100% - 32px);
    border-radius: 10px;
    justify-content: center;
    background: var(--primary);
    border: none;
  }
}

@media (max-width: 540px) {
  .btn,
  .link-group a {
    width: 100%;
  }

  .card {
    padding: 18px;
  }
}

/* ===== 허브 복귀 링크 (nav + footer) ===== */
.nav-hub-back {
  background: rgba(15, 122, 82, 0.22) !important;
  border: 1px solid rgba(37, 163, 116, 0.5) !important;
  color: #7fe6b4 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: background 0.2s, color 0.2s, transform 0.15s !important;
}

.nav-hub-back:hover {
  background: rgba(37, 163, 116, 0.38) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.hub-return-link {
  text-align: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-return-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(15, 122, 82, 0.22);
  border: 1.5px solid rgba(37, 163, 116, 0.5);
  color: #7fe6b4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.hub-return-link a:hover {
  background: rgba(37, 163, 116, 0.38);
  color: #fff;
  transform: translateY(-2px);
}
