:root {
  --app-vh: 1vh;
  --bg: #ffffff;
  --card: #f9fafb;
  --panel: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #22c55e;
  --stroke: #e5e7eb;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 14px;
  font-family: "Inter", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
  background-color: #0b1220;
}

body {
  margin: 0;
  /* scroll: iOS WebView에서 fixed+긴 페이지일 때 배경이 과도하게 확대·크롭되는 현상 완화, 짧은 페이지(이용안내)와 체감 통일 */
  background: url('사이트 배경.png') center center / cover no-repeat scroll;
  background-color: #0b1220;
  color: var(--text);
  min-height: 100vh;
  min-height: calc(var(--app-vh, 1vh) * 100);
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

/* 홈(index)도 이용 안내 페이지와 동일한 배경 규격 */
body.page-home {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

img,
video,
canvas,
svg:not(:root),
iframe {
  max-width: 100%;
  height: auto;
}

.layout,
.content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: calc(var(--app-vh, 1vh) * 100);
  min-width: 0;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: calc(var(--app-vh, 1vh) * 100);
  width: 240px;
  padding: 80px 18px 28px;
  background: #f9fafb;
  border-right: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow-y: auto;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

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

.sidebar__link {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.sidebar__link:hover {
  background: var(--panel);
  color: var(--accent);
}

.sidebar__link.active {
  background: var(--accent);
  color: #ffffff;
}

.sidebar__dropdown {
  position: relative;
}

.sidebar__dropdown-menu {
  display: none;
  margin-top: 8px;
  padding-left: 16px;
  flex-direction: column;
  gap: 4px;
}

.sidebar__dropdown:hover .sidebar__dropdown-menu {
  display: flex;
}

.sidebar__dropdown-item {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar__dropdown-item:hover {
  background: var(--panel);
  color: var(--accent);
}

.sidebar__dropdown-item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.content {
  min-height: 100vh;
}

.site-header {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #ffffff;
  padding: 20px clamp(20px, 6vw, 72px);
  padding-bottom: 0;
  position: relative;
  overflow: visible;
  max-width: 100%;
  min-width: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  justify-content: space-between;
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 세로 스택 헤더: 가운데 로고·타이틀, 우측 열에 야구공·알림·메시지(한 줄) */
.header-brand--stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 6px 10px;
  align-items: center;
}

.header-brand--stacked .header-brand-center {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  width: min(100%, 560px);
  min-width: 0;
}

.header-brand--stacked .header-secondary-icons {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: auto;
  transform: none;
}

.header-brand--stacked .header-title {
  flex: none;
  text-align: left;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  flex: 1;
  min-width: 0;
}

.header-login-container {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 9000;
}

.header-login-toggle {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-login-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.header-login-box {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9001;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  min-width: 220px;
}

.header-login-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.header-login-form input {
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}

.header-login-form .button {
  width: 100%;
}

.header-login-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.header-login-box--profile,
.header-login-box:has(.header-profile-card) {
  min-width: 260px;
  max-width: min(92vw, 320px);
}

.header-profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
}

.header-profile-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-profile-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-profile-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.header-profile-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.header-profile-card__id {
  font-size: 12px;
  color: #6b7280;
  word-break: break-all;
}

.header-profile-card__profile-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.header-profile-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
}

.header-profile-card__baseball {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
}

.header-profile-card__baseball-icon {
  font-size: 16px;
  line-height: 1;
}

.header-nav-wrapper {
  margin-top: 0;
}

.header-brand .header-secondary-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-secondary-icons .notification-icon-button {
  font-size: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.header-secondary-icons .notification-icon-button::before {
  content: "";
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 오르카 스토리 — 비노출 (재활성화 시 이 블록만 제거) */
#orcaStoryLink,
#sidebarOrcaStoryLink {
  display: none !important;
}

/* 하단 줄: 가운데 메뉴 + 같은 줄 오른쪽 로그인 */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px clamp(4px, 2vw, 12px);
  z-index: 100;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.header-nav .header-login-container {
  margin-left: auto;
}

.header-nav__link {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.header-nav__link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-nav__link.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.header-nav__dropdown {
  position: relative;
  z-index: 1001;
}

.header-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1002;
}

.header-nav__dropdown:hover .header-nav__dropdown-menu {
  display: block;
}

.header-nav__dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.header-nav__dropdown-item:hover {
  background: var(--panel);
  color: var(--accent);
}

.sidebar-toggle {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 86px);
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 1001;
  width: 33px;
  height: 33px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: var(--accent-2);
  transform: scale(1.05);
}

.sidebar-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.sidebar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

.section {
  padding: 32px clamp(20px, 6vw, 72px);
}

.intro-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-card p {
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.8;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.greeting-badge {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.intro-card h2 {
  text-align: center;
}

.section__title {
  margin-bottom: 16px;
}

.section__title h2 {
  margin: 4px 0;
  font-size: clamp(24px, 4vw, 32px);
}

.eyebrow {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin: 0;
}

.board {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.board__header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.board__item {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.board__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.board__item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.board__item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.board__write-form {
  margin: 20px 0;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
}

.write-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.write-form input,
.write-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}

.write-form .form-group {
  margin-bottom: 20px;
}

.write-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.write-form .form-group input,
.write-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--stroke);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.write-form .form-group input:focus,
.write-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.write-form__actions {
  display: flex;
  gap: 8px;
}

.board__write-toggle {
  margin-top: 20px;
}

.button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: #1d4ed8;
}

.button.secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.button.secondary:hover {
  background: var(--stroke);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.button.ghost:hover {
  background: var(--panel);
}

.button.small {
  padding: 8px 16px;
  font-size: 13px;
}

.footer {
  background: var(--card);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* 1번: 운동 사진 슬라이더 */
.section-1 {
  padding: 40px clamp(20px, 6vw, 72px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slider {
  width: 80%;
  max-width: 1200px;
  height: 500px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
  pointer-events: auto;
  display: block !important;
}

.slide-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-1 {
  background-image: url('오르카2.png');
}

.slide-2 {
  background-image: url('오르카 1.png');
}

.slide-3 {
  background-image: url('야구사진.png');
}

.slide-4 {
  background-image: url('헬스사진.png');
}

.slide-5 {
  background-image: url('골프사진.png');
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  color: #111827;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn-prev {
  left: 20px;
}

.slider-btn-next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.3);
}

@media (max-width: 960px) {
  .hero-slider {
    width: 95%;
    height: 400px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .slider-btn-prev {
    left: 10px;
  }

  .slider-btn-next {
    right: 10px;
  }

  .slider-dots {
    bottom: 15px;
  }
}

/* 최신 게시글 섹션 */
.section-recent-posts {
  padding: 60px clamp(20px, 6vw, 72px);
  background: #f9fafb;
}

.recent-posts-container {
  max-width: 800px;
  margin: 0 auto;
}

.recent-posts-header {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  margin: 0 0 24px;
  text-align: left;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-item {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.recent-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.recent-post-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

/* 2번: 사이트 소개 버튼 */
.section-2 {
  padding: 60px clamp(20px, 6vw, 72px);
  text-align: center;
  background: #ffffff;
}

.intro-buttons {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.intro-card-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 240px;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.intro-card-button:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.intro-card-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.intro-card-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #ffffff;
  text-align: center;
}

/* 3번: 종목 선택 */
.section-3 {
  padding: 60px clamp(20px, 6vw, 72px);
  background: #f9fafb;
}

.sport-selection {
  max-width: 1200px;
  margin: 0 auto;
}

.sport-selection h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 40px;
  color: var(--text);
}

.sport-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sport-card {
  background: #ffffff;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.sport-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.sport-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.sport-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--text);
}

.sport-card p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* 4번: 새로운 컨텐츠 */
.section-4 {
  padding: 60px clamp(20px, 6vw, 72px);
  background: #ffffff;
}

.new-content {
  max-width: 1200px;
  margin: 0 auto;
}

.new-content h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 40px;
  color: var(--text);
}

.content-slider {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: 24px;
}

.content-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: translateX(100%);
}

.content-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.content-slide.prev {
  transform: translateX(-100%);
}

.content-card {
  background: #ffffff;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.content-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.content-card h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--text);
}

.content-card p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.content-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stroke);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* 5번: 오르카 커뮤 */
.section-5 {
  padding: 60px clamp(20px, 6vw, 72px);
  background: #ffffff;
  text-align: center;
}

.orca-community-card {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.orca-community-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  width: 100%;
  overflow: hidden;
}

.orca-community-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: #111827;
  text-align: center;
  margin: 0 0 32px 0;
  letter-spacing: -0.5px;
}

.orca-community-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.orca-community-text {
  margin-top: 0;
}

.orca-community-text p {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* 기타 스타일 */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s ease;
}

.pill.active,
.pill:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  border: 1px solid var(--stroke);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  color: var(--muted);
  margin: 0 0 12px;
}

/* 코치 프로필 카드 */
.coach-card {
  background: #ffffff;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.coach-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coach-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.coach-info {
  flex: 1;
}

.coach-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.coach-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.coach-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.coach-sports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-sports .tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.coach-bio {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coach-detail-btn {
  width: 100%;
  margin-top: auto;
}

.coach-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hidden {
  display: none !important;
}

/* 회원가입 페이지 카드 스타일 */
.register-options {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.register-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 300px;
  background: #ffffff;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  text-align: center;
}

.register-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.register-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.register-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.register-card p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* 회원가입 폼 스타일 */
.form {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form__row:last-of-type {
  margin-bottom: 0;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form input[type="text"],
.form input[type="date"],
.form input[type="tel"],
.form input[type="password"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--stroke);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form input[type="text"]:focus,
.form input[type="date"]:focus,
.form input[type="tel"]:focus,
.form input[type="password"]:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form input[type="text"]:hover,
.form input[type="date"]:hover,
.form input[type="tel"]:hover,
.form input[type="password"]:hover,
.form select:hover,
.form textarea:hover {
  border-color: var(--accent);
}

.form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form button[type="submit"] {
  width: 100%;
  margin-top: 32px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
}

.form__hint {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.form__hint.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form__hint.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 프로필 업로드 영역 */
.profile-upload-area {
  border: 2px dashed var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  transition: all 0.3s ease;
}

.profile-upload-area:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.profile-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-preview {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.profile-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.profile-upload-placeholder svg {
  color: var(--muted);
  margin-bottom: 8px;
}

.profile-upload-placeholder p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.file-upload-hint {
  font-size: 13px;
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.section__title .lede {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* AI 타격 분석 페이지 상단 문구 가독성 개선 */
.section__title--hero-readable {
  display: inline-block;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.84) 0%,
    rgba(255, 255, 255, 0.76) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(2px);
}

.section__title--hero-readable h2 {
  color: #0f172a;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.45);
}

.section__title--hero-readable .eyebrow {
  color: #1d4ed8;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}

.section__title--hero-readable .lede {
  color: #334155;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 내 정보 페이지 전용 레이아웃 - 좁은 폭으로 가독성 향상 */
.section--profile {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px clamp(40px, 10vw, 160px);
}

.section--profile .card {
  max-width: 100%;
}

.section--profile .section__title {
  max-width: 100%;
}

.section--profile .card-grid {
  max-width: 100%;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .section--profile {
    max-width: 100%;
    padding: 32px clamp(24px, 6vw, 60px);
  }
}

@media (max-width: 768px) {
  .form__row {
    grid-template-columns: 1fr;
  }
  
  .form {
    padding: 24px;
  }
}

/* 게시글 상세 페이지 */
.post-detail {
  padding: 24px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 24px;
}

.post-detail__header {
  margin-bottom: 16px;
}

.post-detail__header h2 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--text);
}

.post-detail__meta {
  font-size: 14px;
  color: var(--muted);
}

.post-detail__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

/* 댓글 섹션 */
.comments-section {
  padding: 24px;
}

.comments-section h3 {
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--text);
}

.comment-item {
  padding: 16px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 16px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.comment-date {
  font-size: 12px;
  color: var(--muted);
}

.comment-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.comment-actions {
  margin-top: 8px;
}

.reply-form {
  margin-top: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: 8px;
}

.reply-form-inner textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.replies {
  margin-top: 12px;
  padding-left: 24px;
  border-left: 2px solid var(--stroke);
}

.reply-item {
  padding: 12px;
  margin-bottom: 8px;
  background: var(--card);
  border-radius: 6px;
}

.comment-form {
  margin-top: 24px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--stroke);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  margin-bottom: 12px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 960px) {
  .site-header {
    overflow-x: visible;
    overflow-y: visible;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  }

  .header-brand--stacked {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: center;
  }

  .header-brand--stacked .header-brand-center {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .header-brand--stacked .header-secondary-icons {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end;
    max-width: 100%;
    gap: 2px;
    padding-right: 0;
    transform: translate(6px, -8px);
  }

  .header-secondary-icons .notification-icon-button {
    width: 40px;
    height: 40px;
    padding: 8px !important;
  }

  .header-secondary-icons .message-icon-button {
    width: 40px;
    height: 40px;
    padding: 8px !important;
    margin: 0 !important;
  }

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

  .header-brand {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .header-brand--stacked {
    flex-wrap: nowrap;
  }

  .header-title {
    flex: 1 1 auto;
  }

  .header-brand--stacked .header-title {
    flex: none;
  }

  .header-login-container {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-top: 12px;
    margin-left: auto;
  }

  .header-login-toggle,
  .notification-icon-button {
    min-height: 40px;
  }

  .header-login-box {
    right: 0;
    left: auto;
    transform: none;
    max-width: min(92vw, 320px);
  }

  .header-nav .header-login-box {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }

  .sport-cards {
    grid-template-columns: 1fr;
  }
}

/* 글쓰기 페이지 파일 업로드 */
.file-upload-area {
  border: 2px dashed var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  transition: all 0.3s ease;
}

.file-upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.file-preview {
  display: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file-item {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.file-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.file-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

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

.file-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.file-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.file-upload-placeholder svg {
  color: var(--muted);
  margin-bottom: 8px;
}

.file-upload-placeholder p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

#contentEditor:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* AI 자세 분석 페이지 */
.ai-analysis-container {
  padding: 24px;
}

.upload-section h3,
.analysis-section h3 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--text);
}

.file-upload-area-large {
  border: 2px dashed var(--stroke);
  border-radius: var(--radius);
  padding: 40px;
  background: var(--card);
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.file-upload-area-large.drag-over {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.file-upload-content-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.file-preview-large {
  width: 100%;
  text-align: center;
}

.file-preview-large img,
.file-preview-large video {
  max-width: 100%;
  max-height: 500px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.file-upload-placeholder-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.file-upload-placeholder-large svg {
  color: var(--muted);
}

.file-upload-placeholder-large p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.analysis-section {
  margin-top: 32px;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.analysis-result {
  margin-top: 16px;
}

.analysis-result-content h4 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
}

.analysis-result-content p {
  margin: 8px 0;
  color: var(--text);
  line-height: 1.6;
}

.analysis-details {
  margin: 16px 0;
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

.analysis-details p {
  margin: 8px 0;
  font-size: 14px;
}

.analysis-suggestions {
  margin-top: 20px;
  padding: 16px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.analysis-suggestions h5 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text);
}

.analysis-suggestions ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.analysis-suggestions li {
  margin: 8px 0;
  line-height: 1.6;
}

/* 분석 리포트 스타일 */
/* 야구 타격 분석 전용 스타일 */
.analysis-card {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.analysis-card h5 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.analysis-card canvas {
  max-height: 400px;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat-item {
  padding: 12px;
  background: var(--card);
  border-radius: 6px;
  border: 1px solid var(--stroke);
}

.stat-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.stat-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.analysis-report {
  margin-top: 24px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.analysis-report h4 {
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--text);
}

.report-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
}

.report-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.report-section h5 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

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

.stat-item {
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

.stat-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.stat-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.stat-values span {
  padding: 2px 0;
}

.frame-changes {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

.frame-change-item {
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--card);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.frame-change-item:last-child {
  margin-bottom: 0;
}

.frame-info {
  font-weight: 600;
  color: var(--text);
  min-width: 150px;
}

.change-values {
  color: var(--muted);
  text-align: right;
  flex: 1;
}

/* 야구 분석 리포트 전문가 스타일 */
.baseball-analysis-report {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.comparison-section {
  margin-bottom: 40px;
  padding: 24px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--stroke);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  word-break: keep-all;
}

.comparison-table th:first-child {
  padding-left: 20px;
  white-space: normal;
}

.comparison-table th.text-center {
  text-align: center;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text);
  white-space: nowrap;
  word-break: keep-all;
}

.comparison-table td:first-child {
  padding-left: 20px;
  font-weight: 500;
  white-space: normal;
}

.comparison-table td.text-center {
  text-align: center;
}

.comparison-table tbody tr {
  transition: background-color 0.15s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr.info-row {
  background: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr.info-row td {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.comparison-table tbody tr.warning-row {
  background: rgba(107, 114, 128, 0.05);
}

.comparison-table tbody tr.warning-row td {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
}

.verdict-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.verdict-badge--good {
  background: rgba(34, 197, 94, 0.12);
  color: rgba(34, 197, 94, 0.95);
}

.verdict-badge--ok {
  background: rgba(251, 191, 36, 0.12);
  color: rgba(251, 191, 36, 0.95);
}

.verdict-badge--bad {
  background: rgba(239, 68, 68, 0.12);
  color: rgba(239, 68, 68, 0.95);
}

.verdict-badge--na {
  background: rgba(107, 114, 128, 0.12);
  color: rgba(107, 114, 128, 0.95);
}

/* 지표별 해설 섹션 */
.commentary-section {
  margin-bottom: 40px;
}

.commentary-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.metric-card {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--stroke);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.metric-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.metric-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* DTW 유사도 지표: 카드 내 «무엇을 분석하는지» 안내 (제목 행과 수치 표 사이) */
.metric-dtw-hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: -8px 0 14px 0;
  padding: 10px 12px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 8px;
  border-left: 3px solid rgba(37, 99, 235, 0.35);
}

.metric-dtw-hint strong {
  color: var(--text);
  font-weight: 600;
}

.metric-values {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.metric-value-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.metric-value-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.metric-value-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.gpt-coach-metric {
  margin-top: 12px;
  padding: 16px;
  background: rgba(37, 99, 235, 0.04);
  border-left: 3px solid rgba(37, 99, 235, 0.3);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  transition: all 0.2s ease;
}

.gpt-coach-metric:hover {
  background: rgba(37, 99, 235, 0.06);
  border-left-color: rgba(37, 99, 235, 0.5);
}

/* 시각적 범위 바 */
.metric-range-visualization {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.range-bar-container {
  position: relative;
  margin-bottom: 12px;
}

.range-bar-background {
  position: relative;
  height: 40px;
  background: linear-gradient(to right, #fee2e2 0%, #fef3c7 50%, #fee2e2 100%);
  border-radius: 8px;
  border: 1px solid var(--stroke);
  overflow: visible;
}

.range-bar-normal {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  z-index: 1;
}

.range-bar-marker {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  z-index: 2;
  transform: translateX(-50%);
}

.range-bar-ref {
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px #2563eb;
}

.range-bar-user {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px #ef4444;
}

.range-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.range-label-min,
.range-label-max {
  font-weight: 500;
}

.range-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text);
}

.range-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.range-legend-normal {
  background: rgba(34, 197, 94, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.range-legend-ref {
  background: #2563eb;
}

.range-legend-user {
  background: #ef4444;
}

/* 반응형 */
@media (max-width: 768px) {
  .baseball-analysis-report {
    padding: 10px 8px;
  }
  
  .comparison-section {
    padding: 10px 8px;
    overflow-x: hidden;
  }
  
  .comparison-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 11px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 7px 4px;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.25;
  }
  
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    padding-left: 6px;
    width: 30%;
  }
  
  .metric-values {
    flex-direction: column;
    gap: 12px;
  }
  
  .metric-value-item {
    min-width: auto;
    width: 100%;
  }
}

/* 결제 모달 스타일 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--stroke);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--stroke);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 바로가기 카드 섹션 */
.section-quick-links {
  padding: 20px clamp(20px, 6vw, 72px);
  background: var(--bg);
}

.quick-links-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 20px 16px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.quick-link-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.quick-link-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
  text-align: center;
}

.quick-link-description {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

/* ========== 모바일 하단 고정 탭 (768px 이하) ========== */
.app-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* 모바일 앱 느낌: 시스템 글자 크기 존중·본문 살짝 키움 */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .section {
    padding: 22px 16px;
  }

  .board {
    padding: 18px;
  }

  .section__title h2 {
    font-size: clamp(22px, 5.4vw, 30px);
    line-height: 1.25;
  }

  .section__title .lede {
    font-size: 16px;
    line-height: 1.65;
  }

  pre,
  code {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
  }

  table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
  }

  .header-brand {
    min-width: 0;
  }

  .header-nav-wrapper {
    display: none !important;
  }

  .header-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-nav > .header-nav__link,
  .header-nav > .header-nav__dropdown {
    display: none !important;
  }

  .header-nav .header-login-container {
    display: none !important;
  }

  .app-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2600;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, #111827 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  }

  .app-bottom-nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: 100%;
    margin: 0 auto;
    min-height: 68px;
  }

  .app-bottom-nav__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .app-bottom-nav__item:hover,
  .app-bottom-nav__item:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
  }

  .app-bottom-nav__item.is-active {
    color: #93c5fd;
  }

  .app-bottom-nav__icon {
    font-size: 26px;
    line-height: 1;
  }

  .app-bottom-nav__label {
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    padding: 0 2px;
  }

  .app-bottom-nav__item--msg {
    position: relative;
  }

  .app-bottom-nav__item--msg .bottom-account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    background: rgba(147, 197, 253, 0.25);
    border: 1px solid rgba(191, 219, 254, 0.6);
    color: #ffffff;
    line-height: 1;
  }

  .app-bottom-nav__item--msg .message-badge {
    top: 4px;
    right: 16%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  body.has-app-bottom-nav .layout > .content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.has-app-bottom-nav .footer {
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.keyboard-open .app-bottom-nav {
    display: none !important;
  }

  body.keyboard-open.has-app-bottom-nav .layout > .content {
    padding-bottom: 0 !important;
  }

  body.keyboard-open.has-app-bottom-nav .footer {
    margin-bottom: 0 !important;
  }
}
