/* 전역 CSS 변수 정의 */
:root {
  /* 색상 팔레트 */
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-light: #fef2f2;
  --secondary-gray: #6b7280;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --background-primary: #ffffff;
  --background-secondary: #f9fafb;
  --background-tertiary: #f3f4f6;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* 타이포그래피 */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  
  /* 간격 */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  
  /* 반응형 브레이크포인트 */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* 기본 리셋 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #111827;
  color: var(--text-primary);
  background-color: #f9fafb;
  background-color: var(--background-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 타이포그래피 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  line-height: var(--line-height-tight);
  color: #111827;
  color: var(--text-primary);
}

h1 { font-size: 2.25rem; font-size: var(--font-size-4xl); }
h2 { font-size: 1.875rem; font-size: var(--font-size-3xl); }
h3 { font-size: 1.5rem; font-size: var(--font-size-2xl); }
h4 { font-size: 1.25rem; font-size: var(--font-size-xl); }
h5 { font-size: 1.125rem; font-size: var(--font-size-lg); }
h6 { font-size: 1rem; font-size: var(--font-size-base); }

p {
  color: #6b7280;
  color: var(--text-secondary);
  line-height: 1.625;
  line-height: var(--line-height-relaxed);
}

/* 링크 */
a {
  color: #dc2626;
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #b91c1c;
  color: var(--primary-red-hover);
}

/* 버튼 기본 스타일 */
button {
  font-family: inherit;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 유틸리티 클래스 */
.text-xs { font-size: 0.75rem; font-size: var(--font-size-xs); }
.text-sm { font-size: 0.875rem; font-size: var(--font-size-sm); }
.text-base { font-size: 1rem; font-size: var(--font-size-base); }
.text-lg { font-size: 1.125rem; font-size: var(--font-size-lg); }
.text-xl { font-size: 1.25rem; font-size: var(--font-size-xl); }
.text-2xl { font-size: 1.5rem; font-size: var(--font-size-2xl); }
.text-3xl { font-size: 1.875rem; font-size: var(--font-size-3xl); }

.text-primary { color: #111827; color: var(--text-primary); }
.text-secondary { color: #6b7280; color: var(--text-secondary); }
.text-muted { color: #9ca3af; color: var(--text-muted); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); box-shadow: var(--shadow-xl); }

code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/*
 * 로그인 상태 컴포넌트 스타일
 */

.login-status {
  position: relative;
  display: inline-block;
}

/* 로딩 상태 */
.login-status__loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #666;
  font-size: 14px;
}

/* 로그인 버튼 (미인증 상태) */
.login-status__login-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: var(--spacing-2) var(--spacing-3) !important;
  background-color: var(--background-primary) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: var(--font-size-sm) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 80px;
  font-family: inherit;
  height: 40px !important; /* nav-link와 동일한 높이 */
}

.login-status__login-btn:hover {
  color: var(--text-primary);
  background-color: var(--background-tertiary);
  border-color: var(--border-medium);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-status__login-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

.login-status__login-btn:active {
  background-color: var(--background-secondary);
  transform: translateY(1px);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  white-space: nowrap;
}

/* 로그인 상태 표시 버튼 */
.login-status__indicator {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  padding: var(--spacing-2) var(--spacing-3) !important;
  background-color: var(--background-primary) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: var(--font-size-sm) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: auto;
  justify-content: center;
  height: 40px !important; /* nav-link와 동일한 높이 */
}

.login-status__indicator:hover:not(:disabled) {
  color: var(--text-primary);
  background-color: var(--background-tertiary);
  border-color: var(--border-medium);
}

.login-status__indicator:focus {
  outline: none;
  color: var(--text-primary);
  background-color: var(--background-tertiary);
  border-color: var(--border-medium);
}

.login-status__indicator:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-status__icon {
  font-size: 16px;
}

.login-status__text {
  white-space: nowrap;
}

.login-status__arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  margin-left: auto;
}

.login-status__arrow--up {
  transform: rotate(180deg);
}

/* 드롭다운 메뉴 */
.login-status__menu {
  position: absolute;
  top: calc(100% + 8px);
  background: var(--background-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 240px;
  overflow: hidden;
  animation: menuSlideIn 0.2s ease-out;
}

.login-status__menu--left {
  left: 0;
}

.login-status__menu--right {
  right: 0;
}

.login-status__menu--center {
  left: 50%;
  transform: translateX(-50%);
}

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

/* 사용자 정보 섹션 */
.login-status__user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--background-secondary);
}

.user-info__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-icon {
  font-size: 20px;
  color: var(--text-secondary);
}

.user-info__details {
  flex: 1 1;
  min-width: 0;
}

.user-info__nickname {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
  word-break: break-word;
}

.user-info__status {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 구분선 */
.login-status__divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 0;
}

/* 메뉴 항목들 */
.login-status__menu-items {
  padding: 8px 0;
}

.login-status__menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-status__menu-item:hover:not(:disabled) {
  background-color: var(--background-secondary);
}

.login-status__menu-item:focus {
  outline: none;
  background-color: var(--background-tertiary);
}

.login-status__menu-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-status__menu-item--logout {
  color: var(--primary-red);
}

.login-status__menu-item--logout:hover:not(:disabled) {
  background-color: var(--primary-red-light);
}

.menu-item__icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.menu-item__text {
  flex: 1 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 오류 메시지 */
.login-status__error {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #fef7f0;
  border: 1px solid #fdd663;
  border-radius: 4px;
  color: #b85450;
  font-size: 12px;
  z-index: 1001;
  animation: errorSlideIn 0.3s ease-out;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.error-text {
  flex: 1 1;
  line-height: 1.4;
}

.error-close {
  background: none;
  border: none;
  color: #b85450;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
}

.error-close:hover {
  background-color: rgba(184, 84, 80, 0.1);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .login-status__indicator {
    padding: var(--spacing-2);
    font-size: 16px; /* iOS에서 줌 방지 */
    min-width: 100px;
    height: 40px; /* 모바일에서도 동일한 높이 유지 */
  }
  
  .login-status__menu {
    min-width: 200px;
    left: auto;
    right: 0;
  }
  
  .login-status__menu--center {
    transform: none;
    left: auto;
    right: 0;
  }
  
  .user-info__nickname {
    font-size: 16px;
  }
  
  .login-status__menu-item {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .login-status__error {
    font-size: 14px;
    left: -20px;
    right: -20px;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .login-status__indicator {
    background-color: #2d2d30;
    color: #9aa0a6;
    border-color: #5f6368;
  }
  
  .login-status__indicator:hover:not(:disabled) {
    background-color: #35363a;
    color: #e8eaed;
  }
  
  .login-status__indicator:focus {
    background-color: #35363a;
    color: #e8eaed;
  }
  
  .login-status__menu {
    background: #2d2d30;
    border-color: #5f6368;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .login-status__user-info {
    background-color: #35363a;
  }
  
  .user-info__avatar {
    background-color: #5f6368;
  }
  
  .avatar-icon {
    color: #e8eaed;
  }
  
  .user-info__nickname {
    color: #e8eaed;
  }
  
  .user-info__status {
    color: #9aa0a6;
  }
  
  .login-status__divider {
    background-color: #5f6368;
  }
  
  .login-status__menu-item {
    color: #e8eaed;
  }
  
  .login-status__menu-item:hover:not(:disabled) {
    background-color: #35363a;
  }
  
  .login-status__menu-item:focus {
    background-color: #3c4043;
  }
  
  .login-status__error {
    background-color: #3c2e29;
    border-color: #d4af37;
    color: #f28b82;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .login-status__indicator {
    border-width: 2px;
  }
  
  .login-status__menu {
    border-width: 2px;
  }
  
  .login-status__indicator:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.5);
  }
}

/* 애니메이션 감소 설정 */
@media (prefers-reduced-motion: reduce) {
  .login-status__indicator,
  .login-status__arrow,
  .login-status__menu-item {
    transition: none;
  }
  
  .login-status__menu {
    animation: none;
  }
  
  .login-status__error {
    animation: none;
  }
  
  .loading-spinner {
    animation: none;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 헤더 내부의 LoginStatus 컴포넌트 강제 스타일 적용 */
.header .login-status .login-status__indicator,
.header .header-auth .login-status .login-status__indicator,
.header-auth .login-status .login-status__indicator {
  background-color: #ffffff !important;
  color: #6b7280 !important;
  border: 1px solid #e5e7eb !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0.75rem !important;
}

.header .login-status .login-status__indicator:hover,
.header .header-auth .login-status .login-status__indicator:hover,
.header-auth .login-status .login-status__indicator:hover {
  color: #111827 !important;
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

.header .login-status .login-status__login-btn,
.header .header-auth .login-status .login-status__login-btn,
.header-auth .login-status .login-status__login-btn {
  background-color: #ffffff !important;
  color: #6b7280 !important;
  border: 1px solid #e5e7eb !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0.75rem !important;
}

.header .login-status .login-status__login-btn:hover,
.header .header-auth .login-status .login-status__login-btn:hover,
.header-auth .login-status .login-status__login-btn:hover {
  color: #111827 !important;
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

/* 최고 우선순위 스타일 - 모든 가능한 선택자 조합 */
button.login-status__indicator,
button.login-status__login-btn {
  background-color: #ffffff !important;
  color: #6b7280 !important;
  border: 1px solid #e5e7eb !important;
  height: 40px !important;
  font-size: 0.875rem !important;
}

button.login-status__indicator:hover,
button.login-status__login-btn:hover {
  color: #111827 !important;
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

/* 임시 디버깅용 - 매우 눈에 띄는 스타일 */
.login-status__indicator {
  background-color: #ff0000 !important;
  color: #ffffff !important;
  border: 3px solid #00ff00 !important;
  height: 50px !important;
  font-size: 16px !important;
  font-weight: bold !important;
}

.login-status__login-btn {
  background-color: #0000ff !important;
  color: #ffffff !important;
  border: 3px solid #ffff00 !important;
  height: 50px !important;
  font-size: 16px !important;
  font-weight: bold !important;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
}

/* 상단 헤더 (로고 + 로그인) */
.header-top {
  background-color: var(--background-primary);
  border-bottom: 1px solid var(--border-light);
}

.header-top-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-6);
  height: 64px;
}

/* 하단 네비게이션 */
.header-nav {
  background-color: var(--background-secondary);
}

.header-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 var(--spacing-6);
  height: 48px;
}

.header-auth {
  display: flex;
  align-items: center;
  height: 40px; /* nav-link와 동일한 높이로 정렬 */
}

.logo {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.logo h2 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.logo-f1 {
  color: var(--text-primary);
}

.logo-playground {
  color: var(--primary-red);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  height: 40px; /* 고정 높이로 정렬 보장 */
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--background-tertiary);
}

.nav-link.active {
  color: var(--primary-red);
  background-color: var(--primary-red-light);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--spacing-2));
  left: 0;
  background-color: var(--background-primary);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  min-width: 180px;
  z-index: 50;
  padding: var(--spacing-2);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-3);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  margin-bottom: var(--spacing-1);
}

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

.dropdown-item:hover {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
}

.dropdown-item:hover {
  color: var(--primary-red);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .header-top-container {
    padding: 0 var(--spacing-4);
    height: 56px;
  }
  
  .header-nav-container {
    padding: 0 var(--spacing-4);
    height: 44px;
  }
  
  .nav {
    gap: var(--spacing-1);
  }
  
  .nav-link {
    font-size: var(--font-size-xs);
    padding: var(--spacing-2);
  }
  
  .logo h2 {
    font-size: var(--font-size-lg);
  }
  
  .dropdown-menu {
    min-width: 160px;
    left: -50%;
  }
  
  .dropdown-item {
    font-size: var(--font-size-xs);
    padding: var(--spacing-2);
  }
}

@media (max-width: 480px) {
  .header-top-container {
    padding: 0 var(--spacing-3);
    height: 52px;
  }
  
  .header-nav-container {
    padding: 0 var(--spacing-3);
    height: 40px;
  }
  
  .nav {
    gap: 0;
  }
  
  .nav-link {
    padding: var(--spacing-1) var(--spacing-2);
    font-size: var(--font-size-xs);
  }
  
  .logo h2 {
    font-size: var(--font-size-base);
  }
}

/* LoginStatus 컴포넌트 헤더 내 정렬 강제 적용 */
.header .header-auth .login-status {
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
}

.header .header-auth .login-status button {
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  background-color: #ffffff !important;
  color: #6b7280 !important;
  border: 1px solid #e5e7eb !important;
  font-size: 0.875rem !important;
}

.header .header-auth .login-status button:hover {
  color: #111827 !important;
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
}
.footer {
  background-color: #1a1a1a;
  color: white;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  grid-gap: 40px;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 15px;
}

.footer-logo .logo-f1 {
  color: #fff;
}

.footer-logo .logo-playground {
  color: #e10600;
}

.footer-section h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #e10600;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.info-row {
  display: flex;
  gap: 12px;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-label {
  font-weight: 600;
  min-width: 120px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  margin: 0 0 8px 0;
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem !important;
  color: #777 !important;
}

/* 태블릿 */
@media (max-width: 768px) {
  .footer-container {
    padding: 25px 15px 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .footer-logo {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .company-info {
    margin-top: 15px;
    padding-top: 15px;
    gap: 6px;
  }
  
  .info-row {
    font-size: 0.8rem;
    gap: 8px;
  }
  
  .info-label {
    min-width: 80px;
    font-weight: 600;
  }
}

/* 모바일 */
@media (max-width: 480px) {
  .footer-container {
    padding: 20px 15px 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-brand {
    grid-column: 1;
    text-align: center;
    margin-bottom: 5px;
  }
  
  .footer-logo {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .footer-brand p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  
  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  
  .footer-section ul li {
    margin-bottom: 6px;
  }
  
  .footer-section ul li a {
    font-size: 0.85rem;
  }
  
  .company-info {
    margin-top: 12px;
    padding-top: 12px;
    gap: 4px;
  }
  
  .info-row {
    font-size: 0.75rem;
    gap: 6px;
  }
  
  .info-label {
    min-width: 70px;
    font-weight: 600;
  }
  
  .footer-bottom {
    padding-top: 15px;
  }
  
  .footer-bottom p {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }
  
  .footer-note {
    font-size: 0.7rem !important;
  }
}
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 10px solid #f3f3f3; /* Light grey */
  border-top: 10px solid #383636; /* Black */
  border-radius: 50%;
  animation: spinner 1.5s linear infinite;
  margin-bottom: 20px;
}

.auth-callback-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.auth-callback-container {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-callback-container p {
  margin-top: 1rem;
  color: #666;
  font-size: 1.1rem;
}
.home-container {
  min-height: 100vh;
  background-color: var(--background-secondary);
}

/* 롤링 배너 섹션 */
.banner-section {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--text-primary) 0%, #374151 100%);
}

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

.banner-slide {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-item {
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-8);
  color: white;
}

.slide-text {
  flex: 1 1;
  max-width: 600px;
}

.slide-text h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-4);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-text p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-8);
  color: white;
  line-height: var(--line-height-relaxed);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-button {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-3) var(--spacing-6);
  background-color: var(--primary-red);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.slide-button:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.slide-image {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--font-size-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.banner-nav.prev {
  left: var(--spacing-6);
}

.banner-nav.next {
  right: var(--spacing-6);
}

.banner-dots {
  position: absolute;
  bottom: var(--spacing-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-2);
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot.active {
  background: white;
  transform: scale(1.25);
}

/* 최신 소식 섹션 */
.latest-news-section {
  padding: var(--spacing-8) var(--spacing-6);
  background-color: var(--background-primary);
  border-bottom: 1px solid var(--border-light);
}

/* 최신 소식 레이아웃 */
.latest-news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--spacing-8);
  gap: var(--spacing-8);
}

/* 뉴스/찌라시 영역 공통 스타일 */
.news-area,
.gossip-area {
  background: var(--background-secondary);
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

/* 영역 헤더 */
.area-header {
  padding: var(--spacing-4) var(--spacing-5);
  background: var(--background-tertiary);
  border-bottom: 1px solid var(--border-light);
}

.area-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

/* 각 영역 내부 뉴스 레이아웃 */
.news-area .news-layout,
.gossip-area .news-layout {
  padding: var(--spacing-4);
}

/* 뉴스 섹션 (기존 스타일 유지) */
.news-section {
  padding: var(--spacing-8) var(--spacing-6);
  background-color: var(--background-primary);
  border-bottom: 1px solid var(--border-light);
}

.content-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-6);
}

.section-header h2 {
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.view-all-btn {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: 0.375rem;
  border: 1px solid var(--border-light);
}

.view-all-btn:hover {
  color: var(--primary-red-hover);
  background-color: var(--primary-red-light);
  border-color: var(--primary-red);
}

.loading {
  text-align: center;
  padding: var(--spacing-12);
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

.no-content {
  text-align: center;
  padding: var(--spacing-8);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-style: italic;
  background-color: var(--background-tertiary);
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
}

/* 뉴스 레이아웃 */
.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: var(--spacing-6);
  gap: var(--spacing-6);
}

/* 메인 뉴스 */
.main-news {
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.main-news:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.main-news-image {
  height: 300px;
  overflow: hidden;
}

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

.main-news:hover .main-news-image img {
  transform: scale(1.02);
}

.main-news-content {
  padding: var(--spacing-4);
  background: var(--background-primary);
}

.main-news-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  gap: var(--spacing-3);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

/* 사이드 뉴스 리스트 */
.side-news-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.side-news-item {
  padding: var(--spacing-3);
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--background-primary);
}

.side-news-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-medium);
}

.side-news-content {
  width: 100%;
}

.side-news-content h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 콘텐츠 리스트 섹션 */
.content-lists-section {
  padding: var(--spacing-8) var(--spacing-6);
  background-color: var(--background-secondary);
}

.content-lists-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--spacing-6);
  gap: var(--spacing-6);
}

/* 콘텐츠 리스트 박스 */
.content-list-box {
  background: var(--background-primary);
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-4) var(--spacing-5);
  background: var(--background-tertiary);
  border-bottom: 1px solid var(--border-light);
}

.list-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.view-all-link {
  color: var(--primary-red);
  text-decoration: none;
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: var(--primary-red-hover);
}

/* 콘텐츠 리스트 */
.content-list {
  padding: var(--spacing-2);
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.list-item:hover {
  background-color: var(--background-tertiary);
}

.item-rank {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.item-title {
  flex: 1 1;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-stats {
  display: flex;
  gap: var(--spacing-2);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}

.item-stats span {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 밈 섹션 */
.memes-section {
  padding: var(--spacing-8) var(--spacing-6);
  background-color: var(--background-primary);
  border-top: 1px solid var(--border-light);
}

.memes-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

.memes-content .memes-list:empty {
  display: none;
}

/* 상단 이미지 그리드 */
.memes-images {
  display: block;
}

/* PC용 이미지 그리드 - 5개 */
.memes-images-desktop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: var(--spacing-4);
  gap: var(--spacing-4);
}

/* 모바일용 이미지 그리드 - 3개 (기본 숨김) */
.memes-images-mobile {
  display: none;
}

.meme-image-item {
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
}

.meme-image-item:hover {
  transform: translateY(-2px);
}

.meme-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.meme-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.meme-image-item:hover .meme-image-wrapper img {
  transform: scale(1.05);
}

.meme-image-title {
  text-align: center;
  width: 100%;
}

.meme-image-title span {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 하단 타이틀 리스트 */
.memes-list {
  display: block;
}

/* PC용 리스트 - 6, 7번째 밈 */
.memes-list-desktop {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

/* 모바일용 리스트 - 4, 5번째 밈 (기본 숨김) */
.memes-list-mobile {
  display: none;
}

.meme-list-item {
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-left: 3px solid transparent;
}

.meme-list-item:hover {
  background-color: var(--background-tertiary);
  border-left-color: var(--primary-red);
}

.meme-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  display: block;
}

/* 진행중인 투표 섹션 */
.polls-section {
  padding: var(--spacing-8) var(--spacing-6);
  background-color: var(--background-primary);
  border-top: 1px solid var(--border-light);
}

.polls-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.poll-list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.poll-list-item:hover {
  background-color: var(--background-tertiary);
}

.comment-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--font-size-xs);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .latest-news-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .main-news-image {
    height: 250px;
  }

  .content-lists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4);
  }

  .polls-horizontal-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .banner-section {
    height: 320px;
  }

  .slide-content {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-6) var(--spacing-4);
    gap: var(--spacing-6);
  }

  .slide-text {
    max-width: none;
  }

  .slide-text h2 {
    font-size: var(--font-size-2xl);
  }

  .slide-text p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-6);
  }

  .slide-image {
    flex: none;
    margin-top: 0;
  }

  .slide-image img {
    max-width: 120px;
    max-height: 120px;
  }

  .banner-nav {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }

  .banner-nav.prev {
    left: var(--spacing-4);
  }

  .banner-nav.next {
    right: var(--spacing-4);
  }

  .news-section,
  .content-lists-section,
  .memes-section,
  .polls-section {
    padding: var(--spacing-6) var(--spacing-4);
  }

  /* 모바일에서 PC용 숨기고 모바일용 보이기 */
  .memes-images-desktop {
    display: none;
  }

  .memes-images-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: var(--spacing-3);
    gap: var(--spacing-3);
  }

  .memes-list-desktop {
    display: none;
  }

  .memes-list-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
  }

  .meme-image-title span {
    font-size: var(--font-size-xs);
  }

  .section-header {
    flex-direction: column;
    gap: var(--spacing-3);
    text-align: center;
    margin-bottom: var(--spacing-4);
  }

  .section-header h2 {
    font-size: var(--font-size-xl);
  }

  .main-news-image {
    height: 200px;
  }

  .side-news-item {
    padding: var(--spacing-2);
    gap: var(--spacing-2);
  }

  .side-news-image {
    width: 60px;
    height: 45px;
  }

  .content-lists-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .list-header {
    padding: var(--spacing-3) var(--spacing-4);
  }

  .list-item {
    padding: var(--spacing-2);
    gap: var(--spacing-2);
  }

  .item-rank {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .banner-section {
    height: 280px;
  }

  .slide-content {
    padding: var(--spacing-4) var(--spacing-3);
  }

  .slide-text h2 {
    font-size: var(--font-size-xl);
  }

  .slide-text p {
    font-size: var(--font-size-sm);
  }

  .slide-button {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-sm);
  }

  .slide-image img {
    max-width: 100px;
    max-height: 100px;
  }

  .news-section,
  .content-lists-section,
  .memes-section,
  .polls-section {
    padding: var(--spacing-4) var(--spacing-3);
  }

  /* 480px 이하에서도 모바일용 유지 */
  .memes-images-desktop {
    display: none;
  }

  .memes-images-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: var(--spacing-2);
    gap: var(--spacing-2);
  }

  .memes-list-desktop {
    display: none;
  }

  .memes-list-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
  }

  .meme-image-title span {
    font-size: 10px;
  }

  .meme-list-item {
    padding: var(--spacing-2) var(--spacing-3);
  }

  .meme-title {
    font-size: var(--font-size-xs);
  }

  .polls-horizontal-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-2);
  }

  .poll-horizontal-item {
    padding: var(--spacing-3);
    gap: var(--spacing-2);
  }

  .section-header h2 {
    font-size: var(--font-size-lg);
  }

  .main-news-image {
    height: 180px;
  }

  .main-news-content {
    padding: var(--spacing-3);
  }

  .main-news-content h3 {
    font-size: var(--font-size-base);
  }

  .side-news-item {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-2);
  }

  .side-news-image {
    width: 100%;
    height: 120px;
  }

  .side-news-content h4 {
    font-size: var(--font-size-xs);
    -webkit-line-clamp: 3;
  }

  .list-header {
    padding: var(--spacing-2) var(--spacing-3);
  }

  .list-header h3 {
    font-size: var(--font-size-base);
  }

  .list-item {
    padding: var(--spacing-2);
  }

  .item-rank {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .item-title {
    font-size: var(--font-size-xs);
  }

  .item-stats {
    font-size: 10px;
  }
}

/* F1 예측 섹션 */
.predictions-section {
  padding: var(--spacing-8) var(--spacing-6);
  background: linear-gradient(135deg, var(--primary-red) 0%, #dc2626 100%);
  color: white;
}

.predictions-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-6);
}

.predictions-section .section-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.predictions-section .view-all-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.predictions-section .view-all-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  color: white;
}

.prediction-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: var(--spacing-6);
  gap: var(--spacing-6);
  max-width: 1000px;
  margin: 0 auto;
}

.prediction-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: var(--spacing-6);
  text-align: center;
  transition: all 0.3s ease;
}

.prediction-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.prediction-card.highlight {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.prediction-card.highlight:hover {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-3);
  display: block;
}

.prediction-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-3);
  color: white;
}

.prediction-card p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-4);
  color: rgba(255, 255, 255, 0.9);
}

.card-btn {
  display: inline-block;
  padding: var(--spacing-2) var(--spacing-4);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.card-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.card-btn.primary {
  background: white;
  color: var(--primary-red);
  border-color: white;
}

.card-btn.primary:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  color: var(--primary-red);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .predictions-section {
    padding: 3rem 0;
  }

  .predictions-section .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .predictions-section .section-header h2 {
    font-size: 2rem;
  }

  .prediction-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .prediction-card {
    padding: 1.5rem;
  }

  .prediction-card.highlight {
    transform: none;
  }

  .prediction-card.highlight:hover {
    transform: translateY(-8px);
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .prediction-card h3 {
    font-size: 1.3rem;
  }

  .prediction-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .predictions-section {
    padding: 2rem 0;
  }

  .predictions-section .section-header h2 {
    font-size: 1.8rem;
  }

  .prediction-card {
    padding: 1rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  .prediction-card h3 {
    font-size: 1.2rem;
  }

  .card-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}
.team-recommendation-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 2rem 1rem;
}

/* 히어로 섹션 */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white;
  padding: 4rem 1rem;
  margin: -2rem -1rem 3rem -1rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ffffff;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e10600;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: #ffffff;
  opacity: 1;
  margin-top: 0.25rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background: #e10600;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: #c50500;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.team-preview {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  max-width: 220px;
}

.preview-team-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  width: 100%;
  max-width: 200px;
}

.preview-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.preview-team-card.rank-1 {
  border: 2px solid #ffd700;
}

.preview-team-card.rank-2 {
  border: 2px solid #c0c0c0;
}

.preview-team-card.rank-3 {
  border: 2px solid #cd7f32;
}

.preview-rank-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 50px;
  text-align: center;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.preview-rank-badge .preview-rank-number {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.preview-rank-badge .preview-rank-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.preview-team-card.rank-1 .preview-rank-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.preview-team-card.rank-2 .preview-rank-badge {
  background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
  color: #333;
}

.preview-team-card.rank-3 .preview-rank-badge {
  background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
  color: white;
}

.preview-team-logo-wrapper {
  margin: 1.5rem 0 1rem 0;
}

.preview-team-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.preview-team-card:hover .preview-team-logo {
  transform: scale(1.05);
}

.ferrari-bg {
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
}

.aston-bg {
  background: linear-gradient(135deg, #006f62 0%, #004d43 100%);
}

.mclaren-bg {
  background: linear-gradient(135deg, #ff8700 0%, #ff6600 100%);
}

.team-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.preview-team-name {
  font-weight: 700;
  color: #000000;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
  opacity: 1;
  white-space: nowrap;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

/* 테스트 소개 섹션 */
.test-intro-section {
  background: #f8f9fa;
  padding: 3rem 1rem;
  margin: 0 -1rem 3rem -1rem;
}

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

.test-intro-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
}

.intro-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.intro-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.intro-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.intro-content p {
  margin: 0;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
}

/* 팀 쇼케이스 섹션 */
.teams-showcase-section {
  margin-bottom: 3rem;
}

.teams-showcase-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  font-weight: 400;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.team-showcase-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.team-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-color {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.team-color.red-bull {
  background: linear-gradient(90deg, #1e41ff 0%, #ffb800 100%);
}

.team-color.ferrari {
  background: #dc143c;
}

.team-color.mercedes {
  background: linear-gradient(90deg, #00d2be 0%, #000000 100%);
}

.team-color.mclaren {
  background: #ff8700;
}

.team-color.aston-martin {
  background: #006f62;
}

.team-color.alpine {
  background: linear-gradient(90deg, #0090ff 0%, #ff87bc 100%);
}

.team-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.team-info p {
  margin: 0 0 0.75rem 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.team-drivers {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.more-teams {
  text-align: center;
  margin-top: 1rem;
}

.more-teams p {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
}

/* 테스트 과정 섹션 */
.test-process-section {
  background: #f8f9fa;
  padding: 3rem 1rem;
  margin: 0 -1rem 3rem -1rem;
}

.test-process-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  background: #e10600;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.step-content p {
  margin: 0;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
}

/* 최종 CTA 섹션 */
.final-cta-section {
  background: linear-gradient(135deg, #e10600 0%, #c50500 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
}

.cta-content h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}

.cta-content p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 400;
}

.cta-note {
  margin: 1rem 0 0 0;
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 400;
  opacity: 0.9;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .team-preview {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .test-intro-section,
  .test-process-section {
    padding: 2rem 1rem;
  }
  
  .test-intro-section h2,
  .teams-showcase-section h2,
  .test-process-section h2 {
    font-size: 1.6rem;
  }
  
  .intro-grid,
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .teams-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .team-showcase-card {
    padding: 1.25rem;
  }
  
  .final-cta-section {
    padding: 2rem 1.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.6rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .intro-item,
  .step-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .intro-icon,
  .step-number {
    align-self: center;
  }
  
  .team-showcase-card {
    padding: 1rem;
  }
  
  .final-cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-content h2 {
    font-size: 1.4rem;
  }
}
.survey-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress {
  height: 100%;
  background-color: #e10600;
  transition: width 0.3s ease-in-out;
}

.survey-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.progress-text {
  text-align: right;
  color: #888;
  font-size: 0.9rem;
}

.category-title {
    font-size: 1rem;
    color: #555;
    font-weight: bold;
    margin-bottom: 10px;
}

.survey-content h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 30px;
}

.answer-button {
  width: 100%;
  padding: 20px;
  font-size: 1rem;
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.answer-button:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.answer-button.selected {
  background-color: #e10600;
  color: white;
  border-color: #b80500;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.navigation-buttons button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #333;
  color: white;
}

.navigation-buttons button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.error-message {
  color: red;
  text-align: center;
  padding: 20px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #1a1a1a;
  padding-bottom: 15px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: #f8f9fa;
  color: #666;
}

.modal-body {
  padding: 0;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 15px 15px 0;
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
}
.results-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 2rem 1rem;
}

/* 히어로 섹션 */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white;
  padding: 4rem 1rem;
  margin: -2rem -1rem 3rem -1rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ffffff;
  font-weight: 400;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.winner-preview {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 280px;
  width: 100%;
}

.winner-badge {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.winner-text {
  font-size: 0.9rem;
  color: #e10600;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.winner-team {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

/* 섹션 공통 스타일 */
.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* 결과 섹션 */
.results-section {
  margin-bottom: 3rem;
}

.results-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  font-weight: 400;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 2rem 1.5rem;
  gap: 2rem 1.5rem;
}

.result-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 상위 3팀 특별 스타일 */
.result-card.top-1 {
  border: 2px solid #ffd700;
}

.result-card.top-2 {
  border: 2px solid #c0c0c0;
}

.result-card.top-3 {
  border: 2px solid #cd7f32;
}

.rank-badge-container {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
}

.rank-badge {
  background: #333;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 50px;
  text-align: center;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
  color: #333;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
  color: white;
}

.best-match-label {
  background: #e10600;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-logo-wrapper {
  margin: 1.5rem 0 1rem 0;
}

.team-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.result-card:hover .team-logo {
  transform: scale(1.05);
}

.result-card h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.team-compatibility {
  margin-bottom: 1.5rem;
}

.compatibility-score-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.score-percentage {
  font-size: 2rem;
  font-weight: 700;
  color: #e10600;
  line-height: 1;
}

.score-label-small {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

.compatibility-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.compatibility-fill {
  height: 100%;
  background: linear-gradient(90deg, #e10600 0%, #ff4444 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.details-button {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-size: 0.9rem;
}

.details-button:hover {
  background: #e10600;
  transform: translateY(-1px);
}

/* 공유 섹션 */
.share-section {
  background: linear-gradient(135deg, #e10600 0%, #c50500 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 3rem;
}

.share-content h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}

.share-content p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 400;
  opacity: 0.9;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.share-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.share-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.share-button svg {
  font-size: 1.5rem;
}

.share-button span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* 다시 테스트 섹션 */
.restart-section {
  background: #f8f9fa;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
}

.restart-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.restart-content p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
}

.restart-button {
  background: transparent;
  color: #e10600;
  border: 2px solid #e10600;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.restart-button:hover {
  background: #e10600;
  color: white;
  transform: translateY(-2px);
}

/* 모달 */
.team-details-modal .modal-team-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
}

.team-details-modal h3 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.8em;
  font-weight: 600;
}

.recommendation-reason {
  font-size: 1em;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: center;
}

.team-stats {
  font-size: 0.95em;
  color: #333;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}

.team-stats p {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
}

.team-stats p strong {
  font-weight: 600;
}

/* 팀 특성 섹션 */
.team-character-section {
  margin: 25px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #e10600;
}

.team-character-section h4 {
  margin: 0 0 15px 0;
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.team-character-content {
  font-size: 1em;
  line-height: 1.7;
  color: #444;
  text-align: left;
}

.team-character-content strong {
  color: #e10600;
  font-weight: 600;
}

.team-character-content em {
  font-style: italic;
  color: #666;
}

.team-character-content span {
  font-weight: 500;
}

/* 로딩 및 에러 */
.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.error-container {
  background-color: #fff1f1;
  color: #c62828;
  border-radius: 8px;
  border: 1px solid #ef9a9a;
  max-width: 500px;
  margin: auto;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .winner-preview {
    max-width: 250px;
    padding: 1.5rem;
  }
  
  .winner-team {
    font-size: 1.1rem;
  }
  
  .results-section h2 {
    font-size: 1.6rem;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .result-card {
    padding: 1.5rem 1.25rem;
  }
  
  .team-logo {
    width: 80px;
    height: 80px;
  }
  
  .score-percentage {
    font-size: 1.8rem;
  }
  
  .share-section {
    padding: 2rem 1.5rem;
  }
  
  .share-content h2 {
    font-size: 1.6rem;
  }
  
  .share-content p {
    font-size: 1rem;
  }
  
  .share-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .restart-section {
    padding: 2rem 1.5rem;
  }
  
  .restart-content h3 {
    font-size: 1.3rem;
  }
  
  .restart-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .winner-preview {
    padding: 1.25rem;
  }
  
  .winner-badge {
    font-size: 2.5rem;
  }
  
  .winner-team {
    font-size: 1rem;
  }
  
  .results-section h2 {
    font-size: 1.4rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .result-card {
    padding: 1rem;
  }
  
  .team-logo {
    width: 70px;
    height: 70px;
  }
  
  .result-card h3 {
    font-size: 1.1rem;
  }
  
  .score-percentage {
    font-size: 1.6rem;
  }
  
  .share-section {
    padding: 2rem 1rem;
  }
  
  .share-content h2 {
    font-size: 1.4rem;
  }
  
  .share-buttons {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .share-button {
    padding: 0.75rem;
  }
  
  .restart-section {
    padding: 2rem 1rem;
  }
  
  .restart-content h3 {
    font-size: 1.2rem;
  }
  
  .restart-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}
.meme-container {
  min-height: calc(100vh - 140px);
  background-color: #f8f9fa;
  padding: 40px 20px;
  transition: all 0.3s ease;
}

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

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.meme-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.meme-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meme-content {
  padding: 25px;
}

.meme-content h3 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 600;
}

.meme-content p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.meme-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.like-btn {
  background: none;
  border: none;
  color: #e10600;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
}

.like-btn:hover {
  transform: scale(1.1);
}

.share-btn {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 40px;
}

.error-message {
  color: #dc3545;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.retry-button {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.retry-button:hover {
  background-color: #b80500;
}

.loading-more {
  display: flex;
  justify-content: center;
  padding: 40px;
}

/* 밈 상세 화면 스타일 */
.meme-reader {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

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

.meme-reader-header {
  margin-bottom: 30px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.meme-detail {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.meme-detail-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meme-detail-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.meme-detail-content {
  padding: 40px;
}

.meme-detail-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.meme-description {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 30px;
}

.meme-detail-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.meme-detail-stats .views {
  font-size: 1rem;
  color: #6c757d;
}

.meme-detail-stats .like-btn {
  font-size: 1.1rem;
  padding: 8px 12px;
}

.meme-detail-stats .share-btn {
  padding: 10px 20px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .meme-container {
    padding: 30px 15px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .meme-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .meme-content {
    padding: 20px;
  }

  .meme-detail-content {
    padding: 30px 25px;
  }

  .meme-detail-content h1 {
    font-size: 1.6rem;
  }

  .meme-description {
    font-size: 1rem;
  }

  .meme-detail-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .meme-detail-content {
    padding: 20px 15px;
  }

  .meme-detail-content h1 {
    font-size: 1.4rem;
  }

  .meme-description {
    font-size: 0.9rem;
  }
}

/* 페이징 관련 스타일 */
.load-more-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.load-more-button {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(225, 6, 0, 0.2);
}

.load-more-button:hover {
  background-color: #b80500;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.load-more-button:active {
  transform: translateY(0);
}

.no-more-content {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.no-more-content p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

/* 반응형 페이징 스타일 */
@media (max-width: 768px) {
  .load-more-section {
    margin-top: 30px;
  }

  .load-more-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .no-more-content {
    margin-top: 30px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .load-more-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .no-more-content {
    padding: 15px;
  }

  .no-more-content p {
    font-size: 0.9rem;
  }
}
/* 유튜브 플레이어 오버레이 */
.youtube-player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

/* 플레이어 컨테이너 */
.youtube-player-container {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 1200px;
  position: relative;
  transition: all 0.3s ease;
}

.youtube-player-container.fullscreen {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
}

/* 플레이어 헤더 */
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #2a2a2a;
  border-bottom: 1px solid #333;
}

.player-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex: 1 1;
  margin-right: 20px;
  line-height: 1.4;
}

.player-controls {
  display: flex;
  gap: 10px;
}

.fullscreen-button,
.close-button {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fullscreen-button:hover,
.close-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.close-button {
  font-size: 1.4rem;
  font-weight: bold;
}

/* 플레이어 래퍼 - 기본 16:9 비율 */
.player-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  background: #000;
  flex-shrink: 0;
}

/* 16:9 비율 (가로형 - 일반 영상) */
.player-wrapper.aspect-16-9 {
  padding-bottom: 56.25%; /* 9 대 16 비율 */
}

/* 9:16 비율 (세로형 - 숏츠) */
.player-wrapper.aspect-9-16 {
  padding-bottom: 177.78%; /* 16 대 9 비율 */
  max-width: 400px; /* 세로형 영상의 최대 너비 제한 */
  margin: 0 auto; /* 중앙 정렬 */
}

/* 4:3 비율 (정사각형에 가까운 형태) */
.player-wrapper.aspect-4-3 {
  padding-bottom: 75%; /* 3 대 4 비율 */
}

/* 세로형 영상을 위한 컨테이너 조정 */
.youtube-player-container.vertical-video {
  max-width: 500px;
}

/* 로딩 상태 */
.loading-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000;
  color: white;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #e10600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-placeholder p {
  font-size: 1rem;
  color: #ccc;
  margin: 0;
}

.youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 에러 상태 */
.player-error {
  padding: 40px;
  text-align: center;
  color: white;
}

.player-error p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #ccc;
}

.player-error .close-button {
  background: #e10600;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.player-error .close-button:hover {
  background: #b80500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .youtube-player-overlay {
    padding: 10px;
  }
  
  .youtube-player-container {
    max-height: 95vh;
  }
  
  .player-header {
    padding: 12px 15px;
  }
  
  .player-title {
    font-size: 1rem;
    margin-right: 15px;
  }
  
  .fullscreen-button,
  .close-button {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .close-button {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .youtube-player-overlay {
    padding: 5px;
  }
  
  .player-header {
    padding: 10px 12px;
  }
  
  .player-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .fullscreen-button,
  .close-button {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }
}

/* 전체화면 모드에서의 스타일 */
.youtube-player-container:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.youtube-player-container:fullscreen .player-wrapper {
  padding-bottom: calc(100vh - 60px); /* 헤더 높이 제외 */
  height: calc(100vh - 60px);
}

.youtube-player-container:fullscreen .youtube-iframe {
  height: 100%;
}

/* 웹킷 기반 브라우저 전체화면 지원 */
.youtube-player-container:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.youtube-player-container:-webkit-full-screen .player-wrapper {
  padding-bottom: calc(100vh - 60px);
  height: calc(100vh - 60px);
}

/* 모질라 전체화면 지원 */
.youtube-player-container:-moz-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.youtube-player-container:-moz-full-screen .player-wrapper {
  padding-bottom: calc(100vh - 60px);
  height: calc(100vh - 60px);
}

/* MS 전체화면 지원 */
.youtube-player-container:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.youtube-player-container:-ms-fullscreen .player-wrapper {
  padding-bottom: calc(100vh - 60px);
  height: calc(100vh - 60px);
}
.videos-container {
  min-height: calc(100vh - 140px);
  background-color: #f8f9fa;
  padding: 40px 20px;
}

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

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 30px;
  gap: 30px;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0,0,0,0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-button {
  width: 70px;
  height: 70px;
  background-color: rgba(225,6,0,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(225,6,0,0.3);
  border: 3px solid rgba(255,255,255,0.2);
}

.video-card:hover .play-button {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(225,6,0,0.4);
}

.video-content {
  padding: 25px;
}

.video-content h3 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.video-content p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #999;
}

.views {
  font-weight: 600;
}

.date {
  color: #aaa;
}

@media (max-width: 768px) {
  .videos-container {
    padding: 30px 15px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .video-content {
    padding: 20px;
  }
  
  .video-content h3 {
    font-size: 1.2rem;
  }
}
.articles-container {
  min-height: calc(100vh - 140px);
  background-color: #f8f9fa;
  padding: 40px 20px;
  transition: all 0.3s ease;
}

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

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.category-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid #dee2e6;
  background-color: white;
  color: #495057;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background-color: #e10600;
  border-color: #e10600;
  color: white;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.article-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}



.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.category-tag {
  background-color: #f8f9fa;
  color: #e10600;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.read-time {
  color: #999;
  font-size: 0.9rem;
}

.article-card h2 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.author {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9rem;
}

.date {
  color: #999;
  font-size: 0.8rem;
}

.read-more {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #b80500;
}

/* 읽어보기 모드 스타일 */
.article-reader {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

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

.article-reader-header {
  margin-bottom: 30px;
}

.back-button {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.article-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-full-header {
  border-bottom: 2px solid #f8f9fa;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

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

.article-full-header h1 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.article-author-info {
  display: flex;
  gap: 30px;
  color: #666;
  font-size: 0.95rem;
  align-items: center;
}

.source-link {
  color: #e10600;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid #e10600;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.source-link:hover {
  background-color: #e10600;
  color: white;
  text-decoration: none;
}

.article-body {
  line-height: 1.8;
}

.article-excerpt {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #e10600;
}

.article-excerpt strong {
  color: #e10600;
  font-weight: 600;
}

.article-full-content {
  font-size: 1.1rem;
  color: #333;
}

.article-full-content p {
  margin-bottom: 20px;
}

.article-full-content h2,
.article-full-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.article-full-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #f8f9fa;
  padding-bottom: 10px;
}

.article-full-content h3 {
  font-size: 1.3rem;
}

.views {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .articles-container {
    padding: 30px 15px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .category-filter {
    gap: 10px;
  }
  
  .category-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-card {
    padding: 25px;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* 읽어보기 모드 모바일 스타일 */
  .article-content {
    padding: 25px;
  }
  
  .article-full-header h1 {
    font-size: 1.8rem;
  }
  
  .article-author-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .source-link {
    margin-top: 5px;
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  
  .article-meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* 페이징 관련 스타일 */
.load-more-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.load-more-button {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(225, 6, 0, 0.2);
}

.load-more-button:hover {
  background-color: #b80500;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.load-more-button:active {
  transform: translateY(0);
}

.no-more-content {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.no-more-content p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

/* 반응형 페이징 스타일 */
@media (max-width: 768px) {
  .load-more-section {
    margin-top: 30px;
  }

  .load-more-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .no-more-content {
    margin-top: 30px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .load-more-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .no-more-content {
    padding: 15px;
  }

  .no-more-content p {
    font-size: 0.9rem;
  }
}
.news-container {
  min-height: calc(100vh - 140px);
  background-color: #f8f9fa;
  padding: 40px 20px;
  transition: all 0.3s ease;
}

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

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.category-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid #dee2e6;
  background-color: white;
  color: #495057;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background-color: #e10600;
  border-color: #e10600;
  color: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(225, 6, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.news-content {
  padding: 25px;
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

p.news-excerpt {
  color: #666 !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  font-size: 0.9rem !important;
  flex: 1 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.news-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-author {
  font-weight: 600;
  color: #e10600;
  font-size: 0.9rem;
}

.news-date {
  color: #999;
  font-size: 0.85rem;
}

.news-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #666;
}

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

.read-time {
  color: #28a745;
  font-weight: 500;
}

.views {
  color: #6c757d;
}

/* Error and loading states */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.error-message {
  font-size: 1.1rem;
  color: #dc3545;
  margin-bottom: 20px;
}

.retry-button {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.retry-button:hover {
  background-color: #b80500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .news-container {
    padding: 30px 15px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-thumbnail {
    height: 180px;
  }

  .news-content {
    padding: 20px;
  }

  .news-content h3 {
    font-size: 1.2rem;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-stats {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .news-container {
    padding: 20px 10px;
  }

  .page-header {
    margin-bottom: 30px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .news-thumbnail {
    height: 160px;
  }

  .news-content {
    padding: 15px;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }

  p.news-excerpt {
    font-size: 0.7rem !important;
  }

  .news-category {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

/* 뉴스 상세 화면 스타일 */
.news-reader {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

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

.news-reader-header {
  margin-bottom: 30px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.news-content {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.news-full-header {
  padding: 40px;
  border-bottom: 1px solid #dee2e6;
  background-color: white;
  text-align: left !important;
}

.news-full-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.news-content .news-full-header h1 {
  text-align: left !important;
}

.news-reader .news-content .news-full-header h1 {
  text-align: left !important;
}

.news-author-info {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: #6c757d;
}

.news-author-info .author,
.news-author-info .date,
.news-author-info .views {
  font-weight: 500;
}

.news-image {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-body {
  padding: 40px;
}

.news-excerpt {
  padding: 20px 0;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
}

.news-full-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1a1a1a;
  text-align: left;
}

.no-content-message {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

.no-content-message p {
  margin: 0;
}

.news-full-content p {
  margin-bottom: 20px;
}

.news-full-content h2,
.news-full-content h3,
.news-full-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-weight: 600;
}

.news-full-content h2 {
  font-size: 1.6rem;
}

.news-full-content h3 {
  font-size: 1.4rem;
}

.news-full-content h4 {
  font-size: 1.2rem;
}

.news-full-content ul,
.news-full-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.news-full-content li {
  margin-bottom: 8px;
}

.source-link-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #dee2e6;
  text-align: left;
}

.source-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(108, 117, 125, 0.2);
}

.source-link-button:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

.source-link-button::after {
  content: '>';
  font-size: 1.2rem;
}

/* 뉴스 상세 화면 반응형 */
@media (max-width: 768px) {
  .news-full-header {
    padding: 30px 25px;
  }

  .news-full-header h1 {
    font-size: 1.8rem;
  }

  .news-body {
    padding: 30px 25px;
  }

  .news-excerpt {
    padding: 15px 0;
    margin-bottom: 25px;
  }

  .source-link-section {
    margin-top: 30px;
    padding-top: 25px;
  }

  .source-link-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .news-full-header {
    padding: 20px 15px;
  }

  .news-full-header h1 {
    font-size: 1.5rem;
  }

  .news-meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-author-info {
    flex-direction: column;
    gap: 5px;
  }

  .news-body {
    padding: 20px 15px;
  }

  .news-excerpt {
    padding: 15px 0;
    font-size: 0.9rem;
  }

  .news-full-content {
    font-size: 1rem;
  }
}

/* 제목 왼쪽 정렬 강제 적용 */
.news-container .content-wrapper .news-reader .news-content .news-full-header h1 {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.news-container .content-wrapper .news-reader .news-content .news-full-header {
  text-align: left !important;
}

/* 모든 텍스트 요소 왼쪽 정렬 */
.news-container .content-wrapper .news-reader * {
  text-align: left !important;
}

.news-container .content-wrapper .news-reader .source-link-section {
  text-align: left !important;
}

.news-container .content-wrapper .news-reader .no-content-message {
  text-align: center !important;
}

/* 페이징 관련 스타일 */
.load-more-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.load-more-button {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(225, 6, 0, 0.2);
}

.load-more-button:hover {
  background-color: #b80500;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.load-more-button:active {
  transform: translateY(0);
}

.no-more-content {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.no-more-content p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

/* 반응형 페이징 스타일 */
@media (max-width: 768px) {
  .load-more-section {
    margin-top: 30px;
  }

  .load-more-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .no-more-content {
    margin-top: 30px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .load-more-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .no-more-content {
    padding: 15px;
  }

  .no-more-content p {
    font-size: 0.9rem;
  }
}
/* 애드센스 광고 컨테이너 스타일 */
.adsense-container {
  margin: 20px 0;
  text-align: center;
  min-height: 90px; /* 광고 로딩 중 레이아웃 시프트 방지 */
}

/* 배너 광고 (상단/하단) */
.adsense-banner {
  max-width: 728px;
  margin: 0 auto;
}

/* 사이드바 광고 */
.adsense-sidebar {
  max-width: 300px;
  margin: 20px auto;
}

/* 인라인 광고 (콘텐츠 사이) */
.adsense-inline {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .adsense-container {
    margin: 15px 0;
  }
  
  .adsense-banner {
    max-width: 320px;
  }
  
  .adsense-sidebar {
    max-width: 300px;
  }
  
  .adsense-inline {
    margin: 20px 0;
    padding: 15px 0;
  }
}

/* 광고 로딩 상태 */
.adsense-loading {
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
  color: #999;
  font-size: 12px;
  padding: 20px;
  text-align: center;
}

/* 광고 라벨 */
.ad-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 5px;
  text-align: center;
}

.ad-label::before {
  content: "AD";
}

/* 리스트 스타일 광고 */
.ad-list-item {
  border: 1px solid #f0f0f0;
  background: #fafafa;
  position: relative;
}

.ad-list-item::before {
  content: "AD";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 8px;
  color: #999;
  background: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid #eee;
}

.ad-list-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ad-placeholder-title {
  color: #666 !important;
  font-style: italic;
}

.ad-label-container {
  display: flex;
  justify-content: flex-end;
}

.ad-label-container .ad-label {
  font-size: 8px;
  color: #999;
  background: #fff;
  padding: 1px 3px;
  border-radius: 2px;
  border: 1px solid #eee;
  margin: 0;
}

/* 뉴스 리스트 스타일 광고 */
.side-news-item.ad-list-item {
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border-left: 3px solid #dc2626;
}

.side-news-item.ad-list-item .side-news-content {
  opacity: 0.9;
}

/* 콘텐츠 리스트 스타일 광고 */
.list-item.ad-list-item {
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.list-item.ad-list-item:hover {
  background: linear-gradient(135deg, #f0f0f0, #ebebeb);
}

/* 투표 리스트 스타일 광고 */
.poll-list-item.ad-list-item {
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  text-decoration: none;
}

/* 밈 리스트 스타일 광고 */
.meme-list-item.ad-list-item {
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
}
.content-page {
  min-height: calc(100vh - 64px);
  background-color: var(--background-secondary);
}

.content-layout {
  display: flex;
  max-width: 1536px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

/* 사이드바 스타일 */
.content-sidebar {
  width: 280px;
  background: var(--background-primary);
  border-right: 1px solid var(--border-light);
  padding: 0;
  position: sticky;
  top: 64px;
  height: fit-content;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-header {
  padding: var(--spacing-8) var(--spacing-6) var(--spacing-6);
  border-bottom: 1px solid var(--border-light);
  background: var(--background-secondary);
}

.sidebar-header h2 {
  margin: 0;
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sidebar-nav {
  padding: var(--spacing-4) 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--spacing-3) var(--spacing-6);
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-item:hover {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
}

.sidebar-item.active {
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  border-left-color: var(--primary-red);
  font-weight: 600;
}

.sidebar-icon {
  font-size: var(--font-size-lg);
  margin-right: var(--spacing-3);
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.sidebar-item.active .sidebar-icon {
  opacity: 1;
}

.sidebar-label {
  flex: 1 1;
}

/* 메인 콘텐츠 영역 */
.content-main {
  flex: 1 1;
  padding: 0;
  background: transparent;
  min-height: calc(100vh - 64px);
}

/* 각 페이지 컴포넌트의 컨테이너 스타일 조정 */
.content-main .memes-container,
.content-main .videos-container,
.content-main .articles-container,
.content-main .news-container {
  background: transparent;
  padding: var(--spacing-8) var(--spacing-6);
  min-height: auto;
}

.content-main .content-wrapper {
  max-width: none;
  margin: 0;
}

.content-main .page-header {
  margin-bottom: var(--spacing-8);
}

.content-main .page-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-2);
  letter-spacing: -0.025em;
}

.content-main .page-header p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .content-layout {
    flex-direction: column;
  }
  
  .content-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    top: 0;
  }
  
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: var(--spacing-2) 0;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  
  .sidebar-item {
    flex-shrink: 0;
    min-width: 140px;
    padding: var(--spacing-3) var(--spacing-4);
    border-left: none;
    border-bottom: 3px solid transparent;
    justify-content: center;
    text-align: center;
  }
  
  .sidebar-item.active {
    border-left: none;
    border-bottom-color: var(--primary-red);
    background-color: var(--primary-red-light);
  }
  
  .sidebar-header {
    padding: var(--spacing-6) var(--spacing-6) var(--spacing-4);
  }
  
  .sidebar-header h2 {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 768px) {
  .content-main .memes-container,
  .content-main .videos-container,
  .content-main .articles-container,
  .content-main .news-container {
    padding: var(--spacing-6) var(--spacing-4);
  }
  
  .sidebar-item {
    min-width: 120px;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-xs);
  }
  
  .sidebar-icon {
    font-size: var(--font-size-base);
    margin-right: var(--spacing-2);
  }
  
  .content-main .page-header h1 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 480px) {
  .sidebar-nav {
    padding: var(--spacing-1) 0;
  }
  
  .sidebar-item {
    min-width: 100px;
    padding: var(--spacing-2);
    font-size: var(--font-size-xs);
    flex-direction: column;
    gap: var(--spacing-1);
  }
  
  .sidebar-icon {
    margin-right: 0;
    margin-bottom: 0;
  }
  
  .sidebar-header {
    padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
  }
  
  .sidebar-header h2 {
    font-size: var(--font-size-lg);
  }
  
  .content-main .memes-container,
  .content-main .videos-container,
  .content-main .articles-container,
  .content-main .news-container {
    padding: var(--spacing-4) var(--spacing-3);
  }
  
  .content-main .page-header h1 {
    font-size: var(--font-size-xl);
  }
}
.polls-container {
  min-height: calc(100vh - 140px);
  background-color: #f8f9fa;
  padding: 20px 15px; /* 패딩 줄임 */
}

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

.page-header {
  text-align: center;
  margin-bottom: 30px; /* 마진 줄임 */
}

.page-header h1 {
  font-size: 2rem; /* 폰트 크기 줄임 */
  color: #1a1a1a;
  margin-bottom: 10px; /* 마진 줄임 */
  font-weight: bold;
}

.page-header p {
  font-size: 1rem; /* 폰트 크기 줄임 */
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.polls-section {
  margin-bottom: 40px; /* 마진 줄임 */
}

.polls-section h2 {
  font-size: 1.5rem; /* 폰트 크기 줄임 */
  color: #1a1a1a;
  margin-bottom: 20px; /* 마진 줄임 */
  padding-bottom: 8px;
  border-bottom: 3px solid #e10600;
}

.polls-grid {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 간격 줄임 */
}

.poll-card {
  background: white;
  border-radius: 8px; /* 둥근 모서리 줄임 */
  padding: 20px; /* 패딩 줄임 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 그림자 줄임 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poll-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.poll-card.active {
  border-left: 5px solid #28a745;
}

.poll-card.ended {
  border-left: 5px solid #6c757d;
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.poll-header h3 {
  font-size: 1.2rem; /* 폰트 크기 줄임 */
  color: #1a1a1a;
  margin: 0;
  flex: 1 1;
  line-height: 1.3;
}

.poll-status {
  padding: 4px 10px; /* 패딩 줄임 */
  border-radius: 12px;
  font-size: 0.75rem; /* 폰트 크기 줄임 */
  font-weight: 600;
  margin-left: 15px;
}

.poll-status.active {
  background-color: #d4edda;
  color: #155724;
}

.poll-status.ended {
  background-color: #e2e3e5;
  color: #495057;
}

.poll-description {
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px; /* 마진 줄임 */
  font-size: 0.9rem; /* 폰트 크기 줄임 */
}

.poll-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* 간격 줄임 */
  margin-bottom: 20px; /* 마진 줄임 */
  font-size: 0.8rem; /* 폰트 크기 줄임 */
  color: #999;
}

.poll-options {
  margin-bottom: 20px; /* 마진 줄임 */
}

.poll-option {
  margin-bottom: 10px; /* 마진 줄임 */
  position: relative;
}

.vote-button {
  width: 100%;
  padding: 10px 16px; /* 패딩 줄임 */
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.9rem; /* 폰트 크기 줄임 */
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.vote-button:hover {
  background-color: #e9ecef;
  border-color: #e10600;
}

.vote-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 투표 완료 상태 스타일 */
.poll-option.voted {
  opacity: 0.8;
}

.poll-option.voted .vote-button {
  cursor: not-allowed;
  background-color: #6c757d;
  color: #fff;
}

.poll-option.voted .vote-button:hover {
  background-color: #6c757d;
  transform: none;
  box-shadow: none;
  border-color: #6c757d;
}

.poll-option.selected .vote-button {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
  font-weight: bold;
}

.poll-option.selected .vote-button:hover {
  background-color: #28a745;
  border-color: #28a745;
}

.vote-check {
  margin-left: 8px;
  font-weight: bold;
}

.vote-completed-notice {
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  text-align: center;
}

.vote-status {
  color: #155724;
  font-weight: 600;
  font-size: 0.9rem;
}

.vote-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 6px; /* 마진 줄임 */
  font-size: 0.8rem; /* 폰트 크기 줄임 */
  color: #666;
}

.vote-bar {
  height: 3px; /* 높이 줄임 */
  background-color: #e10600;
  border-radius: 2px;
  margin-top: 4px;
  transition: width 0.3s ease;
}

.poll-results {
  margin-bottom: 20px; /* 마진 줄임 */
}

.poll-result {
  margin-bottom: 10px; /* 마진 줄임 */
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px; /* 마진 줄임 */
}

.option-text {
  font-weight: 500;
  color: #1a1a1a;
  font-size: 0.9rem; /* 폰트 크기 줄임 */
}

.result-stats {
  font-size: 0.8rem; /* 폰트 크기 줄임 */
  color: #666;
  font-weight: 600;
}

.result-bar {
  height: 6px; /* 높이 줄임 */
  background-color: #e10600;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.poll-actions {
  border-top: 1px solid #dee2e6;
  padding-top: 15px; /* 패딩 줄임 */
}

.comments-toggle {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px; /* 패딩 줄임 */
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem; /* 폰트 크기 줄임 */
  transition: background-color 0.3s ease;
}

.comments-toggle:hover {
  background-color: #5a6268;
}

.comments-section {
  margin-top: 15px; /* 마진 줄임 */
  border-top: 1px solid #dee2e6;
  padding-top: 15px; /* 패딩 줄임 */
}

.comment-form-toggle {
  margin-bottom: 15px; /* 마진 줄임 */
}

.comment-form-toggle button {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 8px 16px; /* 패딩 줄임 */
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem; /* 폰트 크기 줄임 */
  transition: background-color 0.3s ease;
}

.comment-form-toggle button:hover {
  background-color: #b80500;
}

.comment-form,
.reply-form {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px; /* 둥근 모서리 줄임 */
  padding: 15px; /* 패딩 줄임 */
  margin-bottom: 15px; /* 마진 줄임 */
}

.comment-form input,
.reply-form input,
.comment-form textarea,
.reply-form textarea {
  width: 100%;
  padding: 10px; /* 패딩 줄임 */
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px; /* 마진 줄임 */
  font-size: 0.85rem; /* 폰트 크기 줄임 */
  font-family: inherit;
  resize: vertical;
}

.comment-form textarea,
.reply-form textarea {
  min-height: 60px; /* 높이 줄임 */
}

.form-actions {
  display: flex;
  gap: 10px;
}

.form-actions button {
  padding: 8px 16px; /* 패딩 줄임 */
  border: none;
  border-radius: 4px;
  font-size: 0.85rem; /* 폰트 크기 줄임 */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-actions button[type="submit"] {
  background-color: #28a745;
  color: white;
}

.form-actions button[type="submit"]:hover {
  background-color: #218838;
}

.form-actions button[type="submit"]:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.form-actions button[type="button"] {
  background-color: #6c757d;
  color: white;
}

.form-actions button[type="button"]:hover {
  background-color: #5a6268;
}

.comments-list {
  margin-top: 15px; /* 마진 줄임 */
}

.comment {
  background-color: #f8f9fa;
  padding: 12px; /* 패딩 줄임 */
  border-radius: 6px;
  margin-bottom: 10px; /* 마진 줄임 */
  border-left: 3px solid #e10600;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px; /* 마진 줄임 */
}

.comment-author {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9rem; /* 폰트 크기 줄임 */
}

.comment-date {
  font-size: 0.75rem; /* 폰트 크기 줄임 */
  color: #999;
}

.comment-content {
  color: #333;
  line-height: 1.4; /* 줄간격 줄임 */
  margin-bottom: 8px; /* 마진 줄임 */
  white-space: pre-wrap;
  text-align: left;
  font-size: 0.85rem; /* 폰트 크기 줄임 */
}

.comment-actions {
  display: flex;
  gap: 8px; /* 간격 줄임 */
}

.comment-actions button {
  background: none;
  border: 1px solid #dee2e6;
  color: #666;
  padding: 4px 10px; /* 패딩 줄임 */
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem; /* 폰트 크기 줄임 */
  transition: all 0.3s ease;
}

.comment-actions button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* Reply styles */
.reply-form {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  border-left: 3px solid #6c757d;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.reply-form textarea {
  resize: vertical;
  min-height: 60px;
}

.reply-toggle {
  margin-top: 8px; /* 마진 줄임 */
}

.reply-toggle-btn {
  background: none;
  border: none;
  color: #e10600;
  cursor: pointer;
  font-size: 0.8rem; /* 폰트 크기 줄임 */
  font-weight: 500;
  padding: 4px 0; /* 패딩 줄임 */
  transition: color 0.3s ease;
}

.reply-toggle-btn:hover {
  color: #b80500;
  text-decoration: underline;
}

.replies-list {
  margin-top: 10px; /* 마진 줄임 */
  margin-left: 15px; /* 마진 줄임 */
  border-left: 2px solid #dee2e6;
  padding-left: 12px; /* 패딩 줄임 */
}

.reply {
  background-color: #ffffff;
  padding: 10px; /* 패딩 줄임 */
  border-radius: 4px;
  margin-bottom: 8px; /* 마진 줄임 */
  border-left: 3px solid #6c757d;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08); /* 그림자 줄임 */
}

.reply .comment-header {
  margin-bottom: 6px; /* 마진 줄임 */
}

.reply .comment-content {
  margin-bottom: 6px; /* 마진 줄임 */
  font-size: 0.8rem; /* 폰트 크기 줄임 */
}

.reply .comment-actions button {
  font-size: 0.7rem; /* 폰트 크기 줄임 */
  padding: 2px 6px; /* 패딩 줄임 */
}

.modal-form {
  padding: 20px;
}

.modal-form textarea,
.modal-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.modal-form textarea {
  resize: vertical;
  min-height: 100px;
}

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

.modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.modal-actions button:first-child {
  background-color: #e10600;
  color: white;
}

.modal-actions button:first-child:hover {
  background-color: #b80500;
}

.modal-actions button.delete-button {
  background-color: #dc3545;
  color: white;
}

.modal-actions button.delete-button:hover {
  background-color: #c82333;
}

.modal-actions button:last-child {
  background-color: #6c757d;
  color: white;
}

.modal-actions button:last-child:hover {
  background-color: #5a6268;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 40px;
}

.error-message {
  color: #dc3545;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.retry-button {
  background-color: #e10600;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.retry-button:hover {
  background-color: #b80500;
}

@media (max-width: 768px) {
  .polls-container {
    padding: 30px 15px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .polls-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .poll-card {
    padding: 20px;
  }
  
  .poll-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .poll-status {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .poll-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .vote-stats {
    flex-direction: column;
    gap: 5px;
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}/* 
로그인된 사용자 정보 스타일 */
.logged-in-user-info {
  background-color: #f0f8ff;
  border: 1px solid #d1ecf1;
  border-radius: 6px; /* 둥근 모서리 줄임 */
  padding: 10px 14px; /* 패딩 줄임 */
  margin-bottom: 12px; /* 마진 줄임 */
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-nickname {
  font-weight: bold;
  color: #0c5460;
  font-size: 0.9rem; /* 폰트 크기 줄임 */
}

.user-label {
  color: #0c5460;
  font-size: 0.8rem; /* 폰트 크기 줄임 */
}

/* 댓글 폼 스타일 개선 */
.comment-form,
.reply-form {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px; /* 둥근 모서리 줄임 */
  padding: 15px; /* 패딩 줄임 */
  margin-bottom: 15px; /* 마진 줄임 */
}

.comment-form input,
.reply-form input,
.comment-form textarea,
.reply-form textarea {
  width: 100%;
  padding: 10px; /* 패딩 줄임 */
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px; /* 마진 줄임 */
  font-size: 0.85rem; /* 폰트 크기 줄임 */
  font-family: inherit;
  resize: vertical;
}

.comment-form input:focus,
.reply-form input:focus,
.comment-form textarea:focus,
.reply-form textarea:focus {
  outline: none;
  border-color: #e10600;
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.form-actions button {
  padding: 8px 16px; /* 패딩 줄임 */
  border: none;
  border-radius: 4px;
  font-size: 0.85rem; /* 폰트 크기 줄임 */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-actions button[type="submit"] {
  background-color: #e10600;
  color: white;
}

.form-actions button[type="submit"]:hover:not(:disabled) {
  background-color: #c50500;
}

.form-actions button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.form-actions button[type="button"] {
  background-color: #6c757d;
  color: white;
}

.form-actions button[type="button"]:hover {
  background-color: #5a6268;
}

/* 모달 내 비로그인 사용자 입력 필드 스타일 */
.modal-form input[type="password"] {
  width: 100%;
  padding: 10px; /* 패딩 줄임 */
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px; /* 마진 줄임 */
  font-size: 0.85rem; /* 폰트 크기 줄임 */
}

.modal-form input[type="password"]:focus {
  outline: none;
  border-color: #e10600;
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.1);
}

/* 반응형 디자인 */
/* 인증 배지 스타일 */
.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; /* 크기 줄임 */
  height: 16px; /* 크기 줄임 */
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  font-size: 10px; /* 폰트 크기 줄임 */
  font-weight: bold;
  margin-left: 4px; /* 마진 줄임 */
  vertical-align: middle;
  cursor: help;
}

.comment-author {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #1a1a1a;
}

/* 개선된 댓글 폼 스타일 */
.authenticated-user-section {
  margin-bottom: 15px;
}

.authenticated-user-section .logged-in-user-info {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border: 1px solid #c3e6c3;
  border-radius: 6px;
  padding: 10px 14px; /* 패딩 줄임 */
  margin-bottom: 12px; /* 마진 줄임 */
  display: flex;
  align-items: center;
  gap: 6px;
}

.authenticated-user-section .user-nickname {
  font-weight: bold;
  color: #155724;
  font-size: 0.9rem; /* 폰트 크기 줄임 */
}

.authenticated-user-section .user-label {
  color: #155724;
  font-size: 0.8rem; /* 폰트 크기 줄임 */
}

.authenticated-user-section .optional-field {
  background-color: #f8f9fa;
  border: 1px dashed #dee2e6;
}

.authenticated-user-section .optional-field::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* 익명 사용자 폼 스타일 */
.anonymous-user-section {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.nickname-input,
.password-input {
  flex: 1 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
}

.nickname-input:focus,
.password-input:focus {
  outline: none;
  border-color: #e10600;
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.1);
}

.form-character-count {
  text-align: right;
  font-size: 0.75rem; /* 폰트 크기 줄임 */
  color: #6c757d;
  margin-bottom: 8px; /* 마진 줄임 */
}

.form-notice {
  margin-top: 8px; /* 마진 줄임 */
  padding: 6px 10px; /* 패딩 줄임 */
  background-color: #f8f9fa;
  border-radius: 3px;
  border-left: 3px solid #17a2b8;
}

.form-notice small {
  color: #6c757d;
  font-size: 0.75rem; /* 폰트 크기 줄임 */
}

/* 댓글 목록에서 인증된 사용자 구분 */
.comment.authenticated {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
}

.reply.authenticated {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
}

/* 호버 효과 개선 */
.auth-badge:hover {
  background-color: #218838;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.comment-author:hover .auth-badge {
  background-color: #218838;
}

@media (max-width: 768px) {
  .logged-in-user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .comment-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .comment-left-actions {
    gap: 8px;
  }
  
  .auth-badge {
    width: 16px;
    height: 16px;
    font-size: 10px;
    margin-left: 4px;
  }
}

/* 댓글 푸터 레이아웃 */
.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.comment-left-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.comment-right-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* 답글 버튼 스타일 */
.reply-btn {
  background: none;
  border: 1px solid #dee2e6;
  color: #666;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.reply-btn:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* 답글 보기/숨기기 버튼 스타일 개선 */
.reply-toggle-btn {
  background: none;
  border: none;
  color: #e10600;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.reply-toggle-btn:hover {
  color: #b80500;
  text-decoration: underline;
}

/* 아이콘 버튼 스타일 */
.edit-icon-btn,
.delete-icon-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-icon-btn:hover {
  background-color: rgba(225, 6, 0, 0.1);
}

.delete-icon-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* 기존 comment-actions 스타일 제거하고 comment-footer로 대체 */
.comment-actions {
  display: none; /* 기존 스타일 비활성화 */
}
.privacy-page {
  min-height: 100vh;
  background-color: var(--background-primary);
  padding: var(--spacing-8) 0;
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.privacy-page h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-8);
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: var(--spacing-4);
}

.privacy-content {
  background-color: var(--background-secondary);
  border-radius: 0.75rem;
  padding: var(--spacing-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.privacy-section {
  margin-bottom: var(--spacing-8);
}

.privacy-section:last-child {
  margin-bottom: 0;
}

.privacy-section h2 {
  color: var(--primary-red);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-2);
  border-bottom: 1px solid var(--border-light);
}

.privacy-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-4);
}

.privacy-section ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
}

.privacy-section li {
  margin-bottom: var(--spacing-2);
}

.contact-info {
  background-color: var(--background-tertiary);
  padding: var(--spacing-4);
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-red);
  margin-top: var(--spacing-4);
}

.contact-info p {
  margin-bottom: var(--spacing-2);
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: var(--text-primary);
}

.privacy-footer {
  text-align: center;
  margin-top: var(--spacing-8);
  padding-top: var(--spacing-6);
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.privacy-footer p {
  margin-bottom: var(--spacing-2);
}

.privacy-footer p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-primary);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .privacy-page {
    padding: var(--spacing-6) 0;
  }
  
  .privacy-container {
    padding: 0 var(--spacing-4);
  }
  
  .privacy-page h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-6);
  }
  
  .privacy-content {
    padding: var(--spacing-6);
  }
  
  .privacy-section {
    margin-bottom: var(--spacing-6);
  }
  
  .privacy-section h2 {
    font-size: 1.3rem;
  }
  
  .privacy-section ul {
    margin-left: var(--spacing-4);
  }
}

@media (max-width: 480px) {
  .privacy-container {
    padding: 0 var(--spacing-3);
  }
  
  .privacy-page h1 {
    font-size: 1.8rem;
  }
  
  .privacy-content {
    padding: var(--spacing-4);
  }
  
  .privacy-section h2 {
    font-size: 1.2rem;
  }
}
.terms-page {
  min-height: 100vh;
  background-color: var(--background-primary);
  padding: var(--spacing-8) 0;
}

.terms-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.terms-page h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-8);
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: var(--spacing-4);
}

.terms-content {
  background-color: var(--background-secondary);
  border-radius: 0.75rem;
  padding: var(--spacing-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.terms-section {
  margin-bottom: var(--spacing-8);
}

.terms-section:last-child {
  margin-bottom: 0;
}

.terms-section h2 {
  color: var(--primary-red);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-2);
  border-bottom: 1px solid var(--border-light);
}

.terms-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-4);
}

.terms-section ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
}

.terms-section li {
  margin-bottom: var(--spacing-2);
}

.terms-footer {
  text-align: center;
  margin-top: var(--spacing-8);
  padding-top: var(--spacing-6);
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.terms-footer p {
  margin-bottom: var(--spacing-2);
}

.terms-footer p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-primary);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .terms-page {
    padding: var(--spacing-6) 0;
  }
  
  .terms-container {
    padding: 0 var(--spacing-4);
  }
  
  .terms-page h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-6);
  }
  
  .terms-content {
    padding: var(--spacing-6);
  }
  
  .terms-section {
    margin-bottom: var(--spacing-6);
  }
  
  .terms-section h2 {
    font-size: 1.3rem;
  }
  
  .terms-section ul {
    margin-left: var(--spacing-4);
  }
}

@media (max-width: 480px) {
  .terms-container {
    padding: 0 var(--spacing-3);
  }
  
  .terms-page h1 {
    font-size: 1.8rem;
  }
  
  .terms-content {
    padding: var(--spacing-4);
  }
  
  .terms-section h2 {
    font-size: 1.2rem;
  }
}
.legal-page-container {
  min-height: 100vh;
  background-color: #f8f9fa;
  padding: 20px 0;
}

.legal-page-container .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.legal-page-container .page-header {
  background: white;
  color: #333;
  padding: 30px 30px 20px 30px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.legal-page-container .page-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
}

.legal-page-container .last-updated {
  font-size: 0.9rem;
  margin: 0;
  color: #666;
  font-weight: 400;
}

.legal-content {
  padding: 30px;
  line-height: 1.6;
  color: #333;
  font-size: 14px;
  text-align: left !important;
}

.legal-content section {
  margin-bottom: 30px;
  text-align: left !important;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  color: #dc2626;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #dc2626;
  text-align: left;
}

.legal-content h3 {
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
  text-align: left;
}

.legal-content p {
  margin: 0 0 12px 0;
  text-align: left !important;
  color: #555;
  font-weight: 400;
}

.legal-content ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style-type: disc;
  text-align: left !important;
}

.legal-content li {
  margin: 6px 0;
  color: #555;
  font-weight: 400;
  text-align: left !important;
}

.legal-content a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 500;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .legal-page-container {
    padding: 10px;
  }
  
  .legal-page-container .page-header {
    padding: 20px 20px 15px 20px;
  }
  
  .legal-page-container .page-header h1 {
    font-size: 1.6rem;
  }
  
  .legal-page-container .last-updated {
    font-size: 0.85rem;
  }
  
  .legal-content {
    padding: 20px;
    font-size: 13px;
  }
  
  .legal-content section {
    margin-bottom: 25px;
  }
  
  .legal-content h2 {
    font-size: 1rem;
  }
  
  .legal-content h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .legal-page-container .page-header h1 {
    font-size: 1.4rem;
  }
  
  .legal-content {
    padding: 15px;
    font-size: 12px;
  }
  
  .legal-content h2 {
    font-size: 0.95rem;
  }
  
  .legal-content h3 {
    font-size: 0.9rem;
  }
}

/* 연락처 페이지 전용 스타일 */
.contact-info {
  display: grid;
  grid-gap: 30px;
  gap: 30px;
  margin: 30px 0;
}

.info-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
}

.info-item h3 {
  color: #dc2626;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.info-item p {
  margin: 5px 0;
}

.info-item small {
  color: #666;
  font-size: 0.9rem;
}

.info-item a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 500;
}

.info-item a:hover {
  text-decoration: underline;
}

/* 문의 폼 스타일 */
.contact-form {
  max-width: 600px;
  margin: 30px 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: #dc2626;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background: #b91c1c;
}

/* FAQ 스타일 */
.faq-list {
  margin: 30px 0;
}

.faq-item {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.faq-item h3 {
  color: #dc2626;
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
  }
}
.about-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 2rem 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.about-subtitle {
  font-size: 1.3rem;
  color: #666;
  margin: 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-section {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #6366f1;
  transition: transform 0.2s ease;
}

.service-item:hover {
  transform: translateY(-2px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.value-item {
  background: #f0f7ff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.value-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.contact-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: 1rem;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .about-page {
    padding: 1rem 0;
  }
  
  .about-header {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .about-header h1 {
    font-size: 2rem;
  }
  
  .about-subtitle {
    font-size: 1.1rem;
  }
  
  .about-section {
    padding: 1.5rem;
  }
  
  .about-section h2 {
    font-size: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-item,
  .value-item,
  .contact-item {
    padding: 1rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .about-header h1 {
    font-size: 1.8rem;
  }
  
  .about-subtitle {
    font-size: 1rem;
  }
  
  .about-section h2 {
    font-size: 1.3rem;
  }
  
  .about-section p {
    font-size: 1rem;
  }
}
.grand-prix-selector {
  width: 100%;
  margin-bottom: 2rem;
}

.grand-prix-selector.single-mode {
  margin-bottom: 1rem;
}

.grand-prix-selector.single-mode .grand-prix-grid {
  grid-template-columns: 1fr;
}

.grand-prix-selector.single-mode .grand-prix-card {
  border: 2px solid #1a1a1a;
  background: #fff;
}

.grand-prix-selector.single-mode .grand-prix-card.expanded {
  grid-column: 1;
}

.grand-prix-selector.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.empty-state {
  text-align: center;
  color: #666;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* 헤더 */
.selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.selector-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.3rem;
  font-weight: 700;
}

.gp-count {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 그랑프리 그리드 */
.grand-prix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.grand-prix-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.grand-prix-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grand-prix-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

/* 상태별 스타일 */
.grand-prix-card.upcoming {
  border-color: #1a1a1a;
}

.grand-prix-card.deadline-approaching {
  border-color: #1a1a1a;
  background: transparent;
}

.grand-prix-card.qualifying-locked {
  border-color: #1a1a1a;
}

.grand-prix-card.race-pending {
  border-color: #1a1a1a;
}

.grand-prix-card.race-locked {
  border-color: #1a1a1a;
  opacity: 0.8;
}

.grand-prix-card.completed {
  border-color: #1a1a1a;
  background: transparent;
}

.grand-prix-card.selected {
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
  transform: translateY(-2px);
}

.grand-prix-card.expanded {
  grid-column: 1 / -1;
  max-width: none;
}

/* 카드 헤더 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.gp-info {
  flex: 1 1;
}

.gp-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.gp-location {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.status-info {
  flex-shrink: 0;
  margin-left: 1rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background: transparent !important;
  border: 1px solid #1a1a1a !important;
  color: #1a1a1a !important;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-icon {
  font-size: 0.9rem;
}

/* 카드 컨텐츠 */
.card-content {
  margin-bottom: 1rem;
}

.time-until {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  text-align: center;
}

.time-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.prediction-status {
  display: flex;
  gap: 0.5rem;
}

.prediction-item {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.prediction-item.available {
  background: #e8f5e8;
  border: 1px solid #4caf50;
}

.prediction-item.unavailable {
  background: #ffebee;
  border: 1px solid #f44336;
  opacity: 0.7;
}

.prediction-icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.prediction-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.prediction-status-text {
  font-size: 0.75rem;
  color: #666;
}

.prediction-item.available .prediction-status-text {
  color: #2e7d32;
}

.prediction-item.unavailable .prediction-status-text {
  color: #c62828;
}

/* 선택 표시 */
.selected-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 6px;
  color: #1976d2;
  font-weight: 600;
  font-size: 0.9rem;
}

.selected-icon {
  font-size: 1rem;
}

/* 카드 상세 정보 */
.card-details {
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
  margin-top: 1rem;
}

.event-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.schedule-item {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.schedule-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
}

.schedule-time {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.schedule-deadline {
  font-size: 0.75rem;
  color: #888;
}

.status-description {
  padding: 0.75rem;
  background: #f0f7ff;
  border-radius: 6px;
  border-left: 3px solid #2196f3;
}

.status-description p {
  margin: 0;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
}

/* 확장 버튼 */
.expand-button {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1;
}

.expand-button:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.expand-icon {
  font-size: 0.7rem;
  color: #666;
  transition: transform 0.2s ease;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

/* 더보기 표시 */
.show-more {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  color: #666;
}

.show-more p {
  margin: 0;
  font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .grand-prix-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .grand-prix-card.expanded {
    grid-column: 1;
  }
  
  .selector-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .status-info {
    margin-left: 0;
  }
  
  .prediction-status {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .event-schedule {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .schedule-item {
    padding: 0.5rem;
  }
  
  .gp-name {
    font-size: 1rem;
  }
  
  .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .grand-prix-card {
    padding: 0.75rem;
  }
  
  .card-header {
    gap: 0.5rem;
  }
  
  .gp-name {
    font-size: 0.95rem;
  }
  
  .gp-location {
    font-size: 0.8rem;
  }
  
  .status-badge {
    font-size: 0.7rem;
    gap: 0.2rem;
  }
  
  .prediction-item {
    padding: 0.4rem;
  }
  
  .prediction-icon {
    font-size: 1rem;
  }
  
  .prediction-label {
    font-size: 0.75rem;
  }
  
  .prediction-status-text {
    font-size: 0.7rem;
  }
  
  .time-label {
    font-size: 0.8rem;
  }
  
  .selected-indicator {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .grand-prix-card,
  .expand-icon,
  .prediction-item {
    transition: none;
  }
  
  .grand-prix-card:hover {
    transform: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .grand-prix-card {
    border-width: 3px;
  }
  
  .prediction-item,
  .selected-indicator,
  .schedule-item,
  .status-description {
    border-width: 2px;
  }
  
  .status-badge {
    border: 2px solid white;
  }
}
.prediction-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 2rem 1rem;
}

.prediction-page.loading,
.prediction-page.not-authenticated,
.prediction-page.error,
.prediction-page.no-season {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* 페이지 헤더 */
.page-header {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  text-align: center;
  padding: 0;
}

.header-content {
  text-align: center;
}

.page-header h1 {
  margin: 0 0 1rem 0;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page-description {
  margin: 0;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.season-info {
  display: none;
}

.season-badge {
  display: none;
}

.season-icon {
  display: none;
}

/* 제출 메시지 */
.submit-message {
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  position: relative;
  animation: slideDown 0.3s ease-out;
}

.submit-message.success {
  background: #e8f5e8;
  border: 2px solid #4caf50;
  color: #2e7d32;
}

.submit-message.error {
  background: #ffebee;
  border: 2px solid #f44336;
  color: #c62828;
}

.message-icon {
  font-size: 1.5rem;
}

.message-content {
  flex: 1 1;
}

.message-content p {
  margin: 0;
  font-weight: 600;
}

.message-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.message-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 페이지 컨텐츠 */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* 단계별 헤더 */
.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-left {
  flex: 1 1;
}

.phase-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
}

.phase-header p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

.back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #5a6268;
  transform: translateX(-2px);
}

/* 선택 단계 */
.selection-phase {
  margin-bottom: 2rem;
}

/* 예측 단계 */
.prediction-phase {
  margin-bottom: 2rem;
}

.form-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #666;
}

.form-loading p {
  margin-top: 1rem;
  font-size: 1rem;
}

/* 상태별 페이지 */
.auth-required,
.error-container,
.no-data {
  background: #ffffff;
  padding: 4rem 3rem;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-icon,
.error-icon,
.no-data-icon {
  display: none;
}

.auth-required h2,
.error-container h2,
.no-data h2 {
  margin: 0 0 1.5rem 0;
  font-size: 2rem;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.3;
  word-break: keep-all;
}

.auth-required p,
.error-container p,
.no-data p {
  margin: 0 0 2.5rem 0;
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
  word-break: keep-all;
  max-width: 400px;
}

.login-btn,
.retry-btn {
  background: #1a1a1a !important;
  color: white !important;
  border: none !important;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.login-btn:hover,
.retry-btn:hover {
  background: #333 !important;
  color: white !important;
}

.no-grandprix {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #666;
}

.no-grandprix .no-data-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-grandprix h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.no-grandprix p {
  margin: 0;
  font-size: 0.9rem;
}

/* 페이지 푸터 */
.page-footer {
  max-width: 1200px;
  margin: 3rem auto 0 auto;
}

.prediction-tips {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prediction-tips h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.tip-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.tip-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.tip-content {
  flex: 1 1;
}

.tip-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.tip-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .prediction-page {
    padding: 1.5rem 1rem;
  }
  
  .page-header {
    margin-bottom: 2rem;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .page-description {
    font-size: 1rem;
    max-width: none;
  }
  

  
  .submit-message {
    margin: 0 0.5rem 1.5rem 0.5rem;
    padding: 0.75rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .message-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .phase-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .phase-header h2 {
    font-size: 1.5rem;
  }
  
  .back-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .auth-required,
  .error-container,
  .no-data {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
    max-width: none;
  }
  
  .auth-required h2,
  .error-container h2,
  .no-data h2 {
    font-size: 1.5rem;
  }
  
  .auth-required p,
  .error-container p,
  .no-data p {
    font-size: 0.95rem;
  }
  
  .form-loading {
    padding: 2rem;
    margin: 0 0.5rem;
  }
  
  .prediction-tips {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tip-item {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .tip-icon {
    font-size: 1.5rem;
  }
  
  .tip-content h4 {
    font-size: 1rem;
  }
  
  .tip-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .prediction-page {
    padding: 1rem 0.5rem;
  }
  
  .page-header {
    margin-bottom: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .page-description {
    font-size: 0.9rem;
  }
  

  
  .submit-message {
    margin: 0 0.25rem 1rem 0.25rem;
    padding: 0.6rem 0.8rem;
  }
  
  .phase-header {
    padding: 0.75rem;
  }
  
  .phase-header h2 {
    font-size: 1.3rem;
  }
  
  .phase-header p {
    font-size: 0.9rem;
  }
  
  .back-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .auth-required,
  .error-container,
  .no-data {
    padding: 2rem 1.25rem;
    margin: 0 0.5rem;
  }
  
  .auth-required h2,
  .error-container h2,
  .no-data h2 {
    font-size: 1.4rem;
  }
  
  .auth-required p,
  .error-container p,
  .no-data p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .login-btn,
  .retry-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .prediction-tips {
    padding: 1rem;
  }
  
  .prediction-tips h3 {
    font-size: 1.3rem;
  }
  
  .tip-item {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem;
  }
  
  .tip-icon {
    font-size: 1.8rem;
    align-self: center;
  }
}



/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .submit-message {
    animation: none;
  }
  
  .back-btn:hover {
    transform: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .page-header,
  .phase-header,
  .prediction-tips,
  .submit-message,
  .tip-item {
    border: 2px solid #333;
  }
  
  .season-badge {
    border: 2px solid white;
  }
}

/* 히어로 섹션 */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white;
  padding: 4rem 1rem;
  margin: -2rem -1rem 3rem -1rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 1;
  color: #ffffff;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-button {
  background: #e10600;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: #c50500;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-button.primary {
  background: #e10600;
}

.cta-button.secondary {
  background: #ffffff;
  border: 2px solid #e10600;
  color: #e10600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary:hover {
  background: #e10600;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

.cta-subtitle {
  font-size: 0.9rem;
  opacity: 1;
  margin: 0;
  color: #ffffff;
  font-weight: 400;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.prediction-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preview-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 1.5rem;
  color: #e10600;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.card-content p {
  margin: 0 0 1rem 0;
  opacity: 1;
  color: #555;
  font-weight: 400;
}

.points-info {
  display: flex;
  justify-content: flex-end;
}

.points {
  background: #e10600;
  color: #ffffff !important;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid #c50500;
}

/* 게임 방법 섹션 */
.how-to-play-section {
  background: #f8f9fa;
  padding: 3rem 1rem;
  margin: 0 -1rem 3rem -1rem;
}

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

.how-to-play-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  background: #e10600;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.step-content p {
  margin: 0;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
}

/* 게스트 컨텐츠 */
.guest-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* 포인트 시스템 섹션 */
.points-system-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
}

.points-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.points-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.points-icon {
  font-size: 2rem;
}

.points-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
}

.points-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.points-rule:last-of-type {
  border-bottom: none;
}

.rule-label {
  font-weight: 500;
  color: #222;
}

.rule-points {
  background: #e10600;
  color: #ffffff !important;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid #c50500;
}

.points-description {
  margin: 1rem 0 0 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
}

/* 예측 예시 섹션 */
.prediction-example-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.example-container {
  display: flex;
  justify-content: center;
}

.example-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

.example-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.example-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.example-status {
  background: #28a745;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.prediction-type {
  margin-bottom: 1.5rem;
}

.prediction-type h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.driver-prediction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.driver-name {
  font-weight: 500;
  color: #222;
}

.prediction-result {
  font-size: 0.85rem;
  font-weight: 600;
}

.prediction-result.correct {
  color: #28a745;
}

.podium-prediction {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.podium-position {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.position {
  font-weight: 600;
  color: #e10600;
  min-width: 30px;
}

.total-points {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #555;
  font-weight: 400;
}

.example-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e10600;
  text-align: center;
  color: #e10600;
  font-size: 1.1rem;
}

/* 리더보드 미리보기 */
.leaderboard-preview-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.preview-leaderboard {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank {
  font-weight: 600;
  color: #e10600;
  min-width: 40px;
}

.username {
  flex: 1 1;
  font-weight: 500;
  color: #222;
  margin-left: 1rem;
}

.points {
  font-weight: 600;
  color: #555;
}

.leaderboard-cta {
  text-align: center;
}

/* 시즌 미리보기 섹션 */
.season-preview-section {
  margin-bottom: 3rem;
}

.season-preview-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.season-info {
  text-align: center;
  margin-bottom: 2rem;
}

.season-info p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  font-weight: 400;
}

.season-preview-guest {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-races {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.race-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.race-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.race-flag {
  font-size: 2rem;
  flex-shrink: 0;
}

.race-info {
  flex: 1 1;
}

.race-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.race-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  font-weight: 400;
}

.race-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.race-status.completed {
  background: #e8f5e8;
  color: #28a745;
}

.race-status.upcoming {
  background: #e3f2fd;
  color: #1976d2;
}

.login-to-predict {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.login-to-predict p {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
}

/* 메인 선택 섹션 개선 */
.main-selection {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.current-prediction-section,
.completed-prediction-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.current-prediction-section .section-header h3,
.completed-prediction-section .section-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.current-prediction-section .section-header p,
.completed-prediction-section .section-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  font-weight: 400;
}

/* 로그인 유도 섹션 */
.login-prompt-section {
  background: linear-gradient(135deg, #e10600 0%, #c50500 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
}

.prompt-content h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}

.prompt-content p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 1;
  color: #ffffff;
  font-weight: 400;
}

.login-benefits {
  margin: 1rem 0 0 0;
  font-size: 0.9rem;
  opacity: 1;
  color: #ffffff;
  font-weight: 400;
}

/* 메인 선택 페이지 레이아웃 */
.prediction-page .main-selection {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.prediction-page .current-prediction-section,
.prediction-page .completed-prediction-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e9ecef;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.prediction-page .section-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.prediction-page .section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  line-height: 1.2;
}

.prediction-page .section-header p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

/* 반응형 디자인 - 히어로 섹션 */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .prediction-preview {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .how-to-play-section {
    padding: 2rem 1rem;
  }
  
  .how-to-play-section h2 {
    font-size: 1.6rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .points-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .points-card {
    padding: 1.5rem;
  }
  
  .season-preview-section h2 {
    font-size: 1.6rem;
  }
  
  .preview-races {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .race-preview-card {
    padding: 1.25rem;
  }
  
  .main-selection {
    gap: 1.5rem;
  }
  
  .current-prediction-section,
  .completed-prediction-section {
    padding: 1.25rem;
  }
  
  .login-prompt-section {
    padding: 2rem 1.5rem;
  }
  
  .prompt-content h2 {
    font-size: 1.6rem;
  }
  
  .prompt-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .how-to-play-section h2,
  .points-system-section h2,
  .prediction-example-section h2,
  .leaderboard-preview-section h2,
  .season-preview-section h2 {
    font-size: 1.4rem;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .step-number {
    align-self: center;
  }
  
  .points-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .points-card {
    padding: 1.25rem;
  }
  
  .example-card {
    padding: 1.5rem;
  }
  
  .preview-leaderboard {
    padding: 1.5rem;
  }
  
  .season-preview-guest {
    padding: 1.5rem;
  }
  
  .race-preview-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .race-flag {
    font-size: 1.5rem;
  }
  
  .race-info h4 {
    font-size: 1rem;
  }
  
  .race-info p {
    font-size: 0.85rem;
  }
  
  .current-prediction-section,
  .completed-prediction-section {
    padding: 1rem;
  }
  
  .login-prompt-section {
    padding: 2rem 1rem;
  }
  
  .prompt-content h2 {
    font-size: 1.4rem;
  }
}

/* 반응형 디자인 - 메인 선택 페이지 */
@media (max-width: 768px) {
  .prediction-page .main-selection {
    gap: 2rem;
  }
  
  .prediction-page .current-prediction-section,
  .prediction-page .completed-prediction-section {
    padding: 1.5rem;
    min-height: 300px;
  }
  
  .prediction-page .section-header h2 {
    font-size: 1.3rem;
  }
  
  .prediction-page .section-header p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .prediction-page .current-prediction-section,
  .prediction-page .completed-prediction-section {
    padding: 1.25rem;
    min-height: 250px;
  }
  
  .prediction-page .section-header {
    margin-bottom: 1rem;
  }
  
  .prediction-page .section-header h2 {
    font-size: 1.2rem;
  }
  
  .prediction-page .section-header p {
    font-size: 0.85rem;
  }
} 
.driver-selector {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.team-group {
  margin-bottom: 2rem;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.team-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.team-color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.driver-card {
  position: relative;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.driver-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.driver-card.selected {
  border-color: #6366f1;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.driver-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.driver-card:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.driver-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #666;
  line-height: 1;
}

.driver-card.selected .driver-number {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.driver-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4em;
}

.driver-card.selected .driver-name {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.selection-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.selection-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkmark {
  font-size: 0.8rem;
  font-weight: bold;
}

.selection-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.selection-summary h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.1rem;
}

.selected-drivers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selected-slot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.selected-slot.filled {
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.selected-slot.empty {
  border-style: dashed;
  border-color: #ced4da;
  background-color: #f8f9fa;
}

.position {
  font-weight: bold;
  color: #6366f1;
  min-width: 30px;
}

.driver-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1;
}

.driver-info .number {
  font-weight: bold;
  color: #666;
}

.driver-info .name {
  color: #333;
}

.driver-info .placeholder {
  color: #6c757d;
  font-style: italic;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .driver-selector {
    padding: 0 1rem;
  }
  
  .team-group {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .team-name {
    font-size: 1.1rem;
  }
  
  .drivers-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
  }
  
  .driver-card {
    padding: 0.75rem;
    min-height: 80px;
  }
  
  .driver-number {
    font-size: 1.2rem;
  }
  
  .driver-name {
    font-size: 0.8rem;
  }
  
  .selection-summary {
    padding: 1rem;
  }
  
  .selected-drivers-list {
    gap: 0.5rem;
  }
  
  .selected-slot {
    padding: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .driver-info {
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .drivers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .driver-card {
    padding: 0.5rem;
    min-height: 70px;
  }
  
  .driver-number {
    font-size: 1rem;
  }
  
  .driver-name {
    font-size: 0.75rem;
  }
  
  .selection-badge,
  .selection-indicator {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
}



/* 접근성 개선 */
.driver-card[aria-pressed="true"] {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: #6366f1;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .driver-card,
  .team-group {
    transition: none;
  }
  
  .driver-card:hover,
  .team-group:hover {
    transform: none;
  }
}

/* 드라이버 선택기 내 광고 스타일 */
.driver-selector-ad {
  margin: 2rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  text-align: center;
}

.driver-selector-ad .adsense-container {
  max-width: 100%;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .driver-card {
    border-width: 3px;
  }
  
  .driver-card.selected {
    border-width: 4px;
    box-shadow: none;
  }
  
  .selection-badge,
  .selection-indicator {
    border-width: 3px;
  }
  
  .driver-selector-ad {
    border-width: 2px;
  }
} 
.qualifying-prediction {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.qualifying-prediction.pending {
  border-color: #2196f3;
}

.qualifying-prediction.selected {
  border-color: #4caf50;
  background: linear-gradient(135deg, #f8fff8 0%, #fff 100%);
}

.qualifying-prediction.locked {
  border-color: #ff9800;
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
}

.qualifying-prediction.expired {
  border-color: #f44336;
  background: linear-gradient(135deg, #ffebee 0%, #fff 100%);
  opacity: 0.8;
}

/* 헤더 섹션 */
.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.header-info {
  flex: 1 1;
}

.prediction-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.prediction-subtitle {
  margin: 0;
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.grand-prix-info {
  text-align: right;
  color: #666;
}

.gp-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.gp-location {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.gp-datetime {
  font-size: 0.8rem;
  color: #888;
}

/* 예측 가이드 */
.prediction-tips {
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.prediction-tips h4 {
  margin: 0 0 0.75rem 0;
  color: #1565c0;
  font-size: 1rem;
}

.prediction-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #333;
}

.prediction-tips li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prediction-tips li:last-child {
  margin-bottom: 0;
}

/* 현재 선택 섹션 */
.current-selection {
  margin-bottom: 1.5rem;
}

.current-selection h4 {
  margin: 0 0 0.75rem 0;
  color: #333;
  font-size: 1.1rem;
}

.selected-driver-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}

.selected-driver-card .driver-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2e7d32;
  min-width: 60px;
  text-align: center;
}

.driver-details {
  flex: 1 1;
}

.driver-details .driver-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}

.driver-details .team-name {
  font-size: 0.9rem;
  color: #558b2f;
}

.change-selection-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.change-selection-btn:hover {
  background: rgba(244, 67, 54, 0.1);
}

/* 드라이버 선택 섹션 */
.driver-selection-section {
  margin-bottom: 1.5rem;
}

.driver-selection-section h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.driver-count {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

/* 알림 메시지 */
.expired-notice,
.locked-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffebee;
  border: 2px solid #f44336;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.locked-notice {
  background: #fff8e1;
  border-color: #ff9800;
}

.notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.notice-content h4 {
  margin: 0 0 0.5rem 0;
  color: #c62828;
  font-size: 1.1rem;
}

.locked-notice .notice-content h4 {
  color: #e65100;
}

.notice-content p {
  margin: 0 0 0.25rem 0;
  color: #666;
  line-height: 1.4;
}

.notice-content p:last-child {
  margin-bottom: 0;
}

/* 통계 섹션 */
.prediction-stats {
  display: flex;
  justify-content: space-around;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  flex: 1 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .qualifying-prediction {
    padding: 1rem;
  }
  
  .prediction-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .header-content {
    width: 100%;
  }
  
  .grand-prix-info {
    text-align: left;
    width: 100%;
  }
  
  .prediction-title {
    font-size: 1.3rem;
  }
  
  .status-icon {
    font-size: 1.5rem;
  }
  
  .selected-driver-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .selected-driver-card .driver-number {
    min-width: auto;
  }
  
  .change-selection-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .prediction-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .stat-label,
  .stat-value {
    display: inline;
  }
}

@media (max-width: 480px) {
  .qualifying-prediction {
    padding: 0.75rem;
  }
  
  .prediction-header {
    margin-bottom: 1rem;
  }
  
  .prediction-tips {
    padding: 0.75rem;
  }
  
  .prediction-tips h4 {
    font-size: 0.9rem;
  }
  
  .prediction-tips li {
    font-size: 0.85rem;
  }
  
  .expired-notice,
  .locked-notice {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .notice-icon {
    font-size: 1.5rem;
  }
}



/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .qualifying-prediction,
  .change-selection-btn {
    transition: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .qualifying-prediction {
    border-width: 3px;
  }
  
  .selected-driver-card,
  .expired-notice,
  .locked-notice {
    border-width: 3px;
  }
} 
.race-prediction {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.race-prediction.pending {
  border-color: #2196f3;
}

.race-prediction.partial {
  border-color: #ff9800;
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
}

.race-prediction.completed {
  border-color: #4caf50;
  background: linear-gradient(135deg, #f8fff8 0%, #fff 100%);
}

.race-prediction.locked {
  border-color: #ff9800;
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
}

.race-prediction.expired {
  border-color: #f44336;
  background: linear-gradient(135deg, #ffebee 0%, #fff 100%);
  opacity: 0.8;
}

/* 헤더 섹션 (퀄리파잉과 동일) */
.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.header-info {
  flex: 1 1;
}

.prediction-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.prediction-subtitle {
  margin: 0;
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.grand-prix-info {
  text-align: right;
  color: #666;
}

.gp-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.gp-location {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.gp-datetime {
  font-size: 0.8rem;
  color: #888;
}

/* 예측 가이드 */
.prediction-tips {
  background: linear-gradient(135deg, #fff3e0 0%, #f8f9fa 100%);
  border: 1px solid #ffcc02;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.prediction-tips h4 {
  margin: 0 0 0.75rem 0;
  color: #e65100;
  font-size: 1rem;
}

.prediction-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #333;
}

.prediction-tips li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prediction-tips li:last-child {
  margin-bottom: 0;
}

.prediction-tips strong {
  color: #d84315;
}

/* 포디움 선택 섹션 */
.podium-selection {
  margin-bottom: 1.5rem;
}

.podium-selection h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.1rem;
}

.podium-positions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.podium-position {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  min-height: 120px;
}

.podium-position.filled {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
}

.podium-position.empty {
  border-style: dashed;
  border-color: #bdbdbd;
  background: #fafafa;
}

.podium-position.position-1.filled {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
}

.podium-position.position-2.filled {
  border-color: #c0c0c0;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.podium-position.position-3.filled {
  border-color: #cd7f32;
  background: linear-gradient(135deg, #fff3e0 0%, #fef7ed 100%);
}

.position-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.position-emoji {
  font-size: 1.2rem;
}

.position-label {
  color: #333;
  font-size: 0.9rem;
}

.selected-driver {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.selected-driver .driver-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2e7d32;
  min-width: 40px;
  text-align: center;
}

.driver-info {
  flex: 1 1;
}

.driver-info .driver-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}

.driver-info .team-name {
  font-size: 0.8rem;
  color: #558b2f;
}

.clear-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.clear-btn:hover {
  background: rgba(244, 67, 54, 0.1);
}

.empty-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #999;
  text-align: center;
  min-height: 60px;
}

.empty-icon {
  font-size: 1.5rem;
  opacity: 0.5;
}

.empty-text {
  font-size: 0.9rem;
  font-style: italic;
}

.selection-actions {
  text-align: center;
}

.clear-all-btn {
  background: #f44336;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clear-all-btn:hover {
  background: #d32f2f;
}

/* 드라이버 선택 섹션 */
.driver-selection-section {
  margin-bottom: 1.5rem;
}

.driver-selection-section h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.driver-count {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

/* 알림 메시지 */
.expired-notice,
.locked-notice,
.completion-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.expired-notice {
  background: #ffebee;
  border: 2px solid #f44336;
}

.locked-notice {
  background: #fff8e1;
  border: 2px solid #ff9800;
}

.completion-notice {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border: 2px solid #4caf50;
}

.notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.notice-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.expired-notice .notice-content h4 {
  color: #c62828;
}

.locked-notice .notice-content h4 {
  color: #e65100;
}

.completion-notice .notice-content h4 {
  color: #2e7d32;
}

.notice-content p {
  margin: 0 0 0.25rem 0;
  color: #666;
  line-height: 1.4;
}

.notice-content p:last-child {
  margin-bottom: 0;
}

.completion-notice .notice-content p {
  color: #2e7d32;
}

/* 통계 섹션 */
.prediction-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .race-prediction {
    padding: 1rem;
  }
  
  .prediction-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .header-content {
    width: 100%;
  }
  
  .grand-prix-info {
    text-align: left;
    width: 100%;
  }
  
  .prediction-title {
    font-size: 1.3rem;
  }
  
  .status-icon {
    font-size: 1.5rem;
  }
  
  .podium-positions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .podium-position {
    padding: 0.75rem;
    min-height: 100px;
  }
  
  .selected-driver {
    gap: 0.5rem;
  }
  
  .selected-driver .driver-number {
    font-size: 1rem;
    min-width: 35px;
  }
  
  .driver-info .driver-name {
    font-size: 0.9rem;
  }
  
  .driver-info .team-name {
    font-size: 0.75rem;
  }
  
  .prediction-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .race-prediction {
    padding: 0.75rem;
  }
  
  .prediction-header {
    margin-bottom: 1rem;
  }
  
  .prediction-tips {
    padding: 0.75rem;
  }
  
  .prediction-tips h4 {
    font-size: 0.9rem;
  }
  
  .prediction-tips li {
    font-size: 0.85rem;
  }
  
  .podium-position {
    padding: 0.5rem;
    min-height: 80px;
  }
  
  .position-header {
    margin-bottom: 0.5rem;
  }
  
  .position-emoji {
    font-size: 1rem;
  }
  
  .position-label {
    font-size: 0.8rem;
  }
  
  .expired-notice,
  .locked-notice,
  .completion-notice {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .notice-icon {
    font-size: 1.5rem;
  }
  
  .prediction-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .stat-label,
  .stat-value {
    display: inline;
  }
}



/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .race-prediction,
  .podium-position,
  .clear-btn,
  .clear-all-btn {
    transition: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .race-prediction {
    border-width: 3px;
  }
  
  .podium-position,
  .expired-notice,
  .locked-notice,
  .completion-notice {
    border-width: 3px;
  }
} 
.prediction-timer {
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  border: 2px solid;
  transition: all 0.3s ease;
}

.prediction-timer.normal {
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
  border-color: #2196f3;
  color: #1565c0;
}

.prediction-timer.warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffeaa7 100%);
  border-color: #ff9800;
  color: #e65100;
  animation: pulse-warning 2s infinite;
}

.prediction-timer.expired {
  background: linear-gradient(135deg, #ffebee 0%, #f5f5f5 100%);
  border-color: #f44336;
  color: #c62828;
}

@keyframes pulse-warning {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 152, 0, 0);
  }
}

.timer-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.timer-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.timer-info {
  flex: 1 1;
  min-width: 0;
}

.timer-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.timer-display {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.timer-expired {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

.timer-progress {
  position: absolute;
  bottom: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  transition: width 1s ease;
  border-radius: 0 0 6px 6px;
}

.prediction-timer.warning .progress-bar {
  background: linear-gradient(90deg, #ff9800, #ffc107);
}

.prediction-timer.expired .progress-bar {
  background: #f44336;
  width: 0 !important;
}

.warning-message {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.warning-message strong {
  color: #e65100;
}

/* 다중 타이머 스타일 */
.multi-prediction-timer {
  margin: 1rem 0;
}

.timer-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timer-tab {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.timer-tab.active {
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.timer-tab.active .tab-header {
  background: #e3f2fd;
  border-bottom-color: #2196f3;
}

.tab-title {
  font-weight: 600;
  color: #333;
}

.expired-badge {
  background: #f44336;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.timer-tab .prediction-timer {
  margin: 0;
  border: none;
  border-radius: 0;
}

.all-expired-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffebee 0%, #f5f5f5 100%);
  border: 2px solid #f44336;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

.expired-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.expired-text {
  flex: 1 1;
  color: #c62828;
}

.expired-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.expired-text p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .prediction-timer {
    padding: 0.75rem;
  }
  
  .timer-content {
    gap: 0.75rem;
  }
  
  .timer-icon {
    font-size: 1.5rem;
  }
  
  .timer-display {
    font-size: 1.2rem;
  }
  
  .timer-label {
    font-size: 0.8rem;
  }
  
  .warning-message {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .tab-header {
    padding: 0.5rem 0.75rem;
  }
  
  .all-expired-message {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .expired-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .timer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .timer-info {
    width: 100%;
  }
  
  .timer-display {
    font-size: 1.1rem;
  }
  
  .timer-tabs {
    gap: 0.5rem;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .prediction-timer.normal {
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    border-color: #3b82f6;
    color: #93c5fd;
  }
  
  .prediction-timer.warning {
    background: linear-gradient(135deg, #92400e 0%, #1f2937 100%);
    border-color: #f59e0b;
    color: #fbbf24;
  }
  
  .prediction-timer.expired {
    background: linear-gradient(135deg, #991b1b 0%, #1f2937 100%);
    border-color: #ef4444;
    color: #fca5a5;
  }
  
  .tab-header {
    background: #374151;
    border-bottom-color: #4b5563;
  }
  
  .timer-tab.active .tab-header {
    background: #1e3a8a;
    border-bottom-color: #3b82f6;
  }
  
  .tab-title {
    color: #f9fafb;
  }
  
  .timer-tab {
    border-color: #4b5563;
  }
  
  .timer-tab.active {
    border-color: #3b82f6;
  }
  
  .all-expired-message {
    background: linear-gradient(135deg, #991b1b 0%, #1f2937 100%);
    border-color: #ef4444;
  }
  
  .expired-text {
    color: #fca5a5;
  }
  
  .warning-message {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
  }
  
  .warning-message strong {
    color: #fbbf24;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .prediction-timer,
  .timer-tab,
  .progress-bar {
    transition: none;
  }
  
  .prediction-timer.warning {
    animation: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .prediction-timer {
    border-width: 3px;
  }
  
  .timer-tab {
    border-width: 3px;
  }
  
  .progress-bar {
    height: 6px;
  }
  
  .expired-badge {
    border: 2px solid white;
  }
}

/* 인쇄 스타일 */
@media print {
  .prediction-timer {
    background: white !important;
    border: 2px solid black !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .timer-progress,
  .warning-message {
    display: none;
  }
} 
.prediction-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.prediction-form.empty {
  border: 2px solid #e0e0e0;
}

.prediction-form.partial {
  border: 2px solid #ff9800;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.prediction-form.complete {
  border: 2px solid #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

/* 폼 탭 */
.form-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.tab-button {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}

.tab-button:hover {
  background: #e3f2fd;
  color: #1976d2;
}

.tab-button.active {
  background: #2196f3;
  color: white;
  font-weight: 600;
}

.tab-button.expired {
  opacity: 0.6;
  background: #ffebee;
  color: #c62828;
}

.tab-button.expired:hover {
  background: #ffcdd2;
}

.tab-button.active.expired {
  background: #f44336;
  color: white;
}

.tab-icon {
  font-size: 1.2rem;
}

.tab-text {
  font-size: 0.9rem;
}

.completion-indicator {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.expired-indicator {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: #f44336;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* 폼 컨텐츠 */
.form-content {
  padding: 0;
}

/* 유효성 검사 오류 */
.validation-errors {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffebee;
  border: 2px solid #f44336;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem;
}

.error-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.error-content h4 {
  margin: 0 0 0.5rem 0;
  color: #c62828;
  font-size: 1rem;
}

.error-content ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #d32f2f;
}

.error-content li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.error-content li:last-child {
  margin-bottom: 0;
}

/* 폼 액션 */
.form-actions {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-status {
  flex: 1 1;
  min-width: 200px;
}

.unsaved-indicator {
  color: #ff9800;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cancel-btn,
.reset-btn,
.submit-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cancel-btn {
  background: #6c757d;
  color: white;
}

.cancel-btn:hover {
  background: #5a6268;
}

.reset-btn {
  background: #ff9800;
  color: white;
}

.reset-btn:hover {
  background: #f57c00;
}

.reset-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.submit-btn {
  background: #2196f3;
  color: white;
  min-width: 120px;
}

.submit-btn:hover {
  background: #1976d2;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.prediction-form.complete .submit-btn {
  background: #4caf50;
}

.prediction-form.complete .submit-btn:hover {
  background: #388e3c;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 모든 마감 알림 */
.all-expired-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffebee;
  border: 2px solid #f44336;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem;
}

.notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.notice-content h4 {
  margin: 0 0 0.5rem 0;
  color: #c62828;
  font-size: 1.1rem;
}

.notice-content p {
  margin: 0;
  color: #666;
  line-height: 1.4;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .form-tabs {
    flex-direction: column;
  }
  
  .tab-button {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .tab-text {
    font-size: 0.8rem;
  }
  
  .completion-indicator,
  .expired-indicator {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }
  
  .validation-errors {
    margin: 0.75rem;
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .error-icon {
    font-size: 1.2rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .form-status {
    text-align: center;
    min-width: auto;
  }
  
  .action-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cancel-btn,
  .reset-btn,
  .submit-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .all-expired-notice {
    margin: 0.75rem;
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .notice-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tab-button {
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .tab-icon {
    font-size: 1rem;
  }
  
  .tab-text {
    font-size: 0.75rem;
  }
  
  .validation-errors {
    margin: 0.5rem;
    padding: 0.5rem;
  }
  
  .error-content h4 {
    font-size: 0.9rem;
  }
  
  .error-content ul {
    font-size: 0.85rem;
  }
  
  .form-actions {
    padding: 0.75rem;
  }
  
  .action-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .cancel-btn,
  .reset-btn,
  .submit-btn {
    flex: 1 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-width: auto;
  }
  
  .all-expired-notice {
    margin: 0.5rem;
    padding: 0.5rem;
  }
}



/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .prediction-form,
  .tab-button,
  .cancel-btn,
  .reset-btn,
  .submit-btn {
    transition: none;
  }
  
  .loading-spinner {
    animation: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .prediction-form {
    border-width: 3px;
  }
  
  .validation-errors,
  .all-expired-notice {
    border-width: 3px;
  }
  
  .tab-button.active {
    box-shadow: inset 0 0 0 2px white;
  }
  
  .completion-indicator,
  .expired-indicator {
    border: 2px solid white;
  }
}

/* 인쇄 스타일 */
@media print {
  .prediction-form {
    background: white !important;
    border: 2px solid black !important;
    box-shadow: none !important;
  }
  
  .form-tabs,
  .form-actions {
    background: white !important;
    border-color: black !important;
  }
  
  .tab-button.active {
    background: black !important;
    color: white !important;
  }
  
  .validation-errors,
  .all-expired-notice {
    background: white !important;
    border: 2px solid black !important;
  }
  
  .loading-spinner {
    display: none;
  }
} 
/* PredictionPage.css와 유사하지만 단일 그랑프리에 최적화 */
.prediction-current-page {
  min-height: 100vh;
  background: #f8f9fa;
  color: #333;
  padding: 2rem 0;
}

.prediction-current-page .page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.prediction-current-page .back-btn {
  background: #6c757d;
  border: none;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.prediction-current-page .back-btn:hover {
  background: #5a6268;
  transform: translateX(-2px);
}

.prediction-current-page .header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.prediction-current-page .page-description {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* 예측 컨테이너 */
.prediction-current-page .prediction-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.prediction-current-page .season-info {
  margin-top: 1rem;
}

.prediction-current-page .season-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.prediction-current-page .season-icon {
  font-size: 1.2rem;
}

.prediction-current-page .season-name {
  font-weight: 600;
  font-size: 1rem;
}

.prediction-current-page .submit-message {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.prediction-current-page .submit-message > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 2px solid;
  position: relative;
  animation: slideDown 0.3s ease-out;
}

.prediction-current-page .submit-message.success > div {
  background: #e8f5e8;
  border-color: #4caf50;
  color: #2e7d32;
}

.prediction-current-page .submit-message.error > div {
  background: #ffebee;
  border-color: #f44336;
  color: #c62828;
}

.prediction-current-page .message-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.prediction-current-page .message-content {
  flex: 1 1;
}

.prediction-current-page .message-content p {
  margin: 0;
  font-weight: 500;
}

.prediction-current-page .message-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.prediction-current-page .message-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prediction-current-page .page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.prediction-current-page .prediction-container {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  margin-bottom: 3rem;
}

.prediction-current-page .form-loading {
  text-align: center;
  padding: 3rem;
}

.prediction-current-page .form-loading p {
  margin-top: 1rem;
  color: #666;
}

.prediction-current-page .page-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.prediction-current-page .prediction-tips {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.prediction-current-page .prediction-tips h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.prediction-current-page .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.prediction-current-page .tip-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #2196f3;
  transition: all 0.3s ease;
}

.prediction-current-page .tip-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.prediction-current-page .tip-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.prediction-current-page .tip-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.prediction-current-page .tip-content p {
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
}

/* 로딩 및 에러 상태 */
.prediction-current-page.loading,
.prediction-current-page.not-authenticated,
.prediction-current-page.error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.prediction-current-page .auth-required,
.prediction-current-page .error-container {
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  max-width: 500px;
}

.prediction-current-page .auth-icon,
.prediction-current-page .error-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.prediction-current-page .auth-required h2,
.prediction-current-page .error-container h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.prediction-current-page .auth-required p,
.prediction-current-page .error-container p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.prediction-current-page .login-btn,
.prediction-current-page .retry-btn {
  background: #2196f3;
  border: none;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prediction-current-page .login-btn:hover,
.prediction-current-page .retry-btn:hover {
  background: #1976d2;
  transform: translateY(-2px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .prediction-current-page {
    padding: 1rem 0;
  }
  
  .prediction-current-page .header-content h1 {
    font-size: 2rem;
  }
  
  .prediction-current-page .page-description {
    font-size: 1rem;
  }
  
  .prediction-current-page .prediction-container,
  .prediction-current-page .prediction-tips {
    padding: 1.5rem;
  }
  
  .prediction-current-page .tips-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .prediction-current-page .tip-item {
    padding: 1rem;
  }
  
  .prediction-current-page .tip-icon {
    font-size: 1.5rem;
  }
} 
.prediction-results-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 2rem 0;
}

.prediction-results-page .page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.prediction-results-page .back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.prediction-results-page .back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.prediction-results-page .header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prediction-results-page .grand-prix-info {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin: 0;
}

.prediction-results-page .page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.prediction-results-page .results-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-results-page .coming-soon {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.prediction-results-page .coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.prediction-results-page .coming-soon h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.prediction-results-page .coming-soon p {
  font-size: 1.1rem;
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.prediction-results-page .feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 2rem;
}

.prediction-results-page .feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.prediction-results-page .feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.prediction-results-page .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.prediction-results-page .feature-item span:last-child {
  font-weight: 500;
  color: #ffffff;
}

/* 로딩 및 에러 상태 */
.prediction-results-page.loading,
.prediction-results-page.not-authenticated,
.prediction-results-page.error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.prediction-results-page .auth-required,
.prediction-results-page .error-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 500px;
}

.prediction-results-page .auth-icon,
.prediction-results-page .error-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.prediction-results-page .auth-required h2,
.prediction-results-page .error-container h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.prediction-results-page .auth-required p,
.prediction-results-page .error-container p {
  color: #b0b0b0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.prediction-results-page .login-btn,
.prediction-results-page .retry-btn {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border: none;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prediction-results-page .login-btn:hover,
.prediction-results-page .retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .prediction-results-page {
    padding: 1rem 0;
  }
  
  .prediction-results-page .header-content h1 {
    font-size: 2rem;
  }
  
  .prediction-results-page .results-container {
    padding: 2rem 1.5rem;
  }
  
  .prediction-results-page .coming-soon h2 {
    font-size: 1.5rem;
  }
  
  .prediction-results-page .feature-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .prediction-results-page .feature-item {
    padding: 1rem;
  }
} 
.prediction-result-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prediction-result-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.prediction-result-card:last-child {
  margin-bottom: 0;
}

/* 카드 헤더 */
.prediction-result-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.prediction-result-card .gp-info h3 {
  color: #333;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.prediction-result-card .gp-location {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.prediction-result-card .gp-date {
  color: #888;
  font-size: 0.8rem;
}

.prediction-result-card .card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* 상태 뱃지 */
.prediction-result-card .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.prediction-result-card .status-badge.upcoming {
  background: #e3f2fd;
  color: #1976d2;
}

.prediction-result-card .status-badge.qualifying-done {
  background: #fff3e0;
  color: #f57c00;
}

.prediction-result-card .status-badge.completed {
  background: #e8f5e8;
  color: #388e3c;
}

.prediction-result-card .status-badge.unknown {
  background: #f5f5f5;
  color: #757575;
}

/* 포인트 뱃지 */
.prediction-result-card .points-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #1a1a1a;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.prediction-result-card .points-value {
  font-size: 1rem;
}

.prediction-result-card .points-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* 예측 내용 */
.prediction-result-card .prediction-content {
  padding: 1.5rem;
}

.prediction-result-card .prediction-section {
  margin-bottom: 2rem;
}

.prediction-result-card .prediction-section:last-child {
  margin-bottom: 0;
}

/* 섹션 헤더 */
.prediction-result-card .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prediction-result-card .section-header h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.prediction-result-card .accuracy-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.prediction-result-card .accuracy-badge.correct {
  background: #e8f5e8;
  color: #2e7d32;
}

.prediction-result-card .accuracy-badge.incorrect {
  background: #ffebee;
  color: #c62828;
}

.prediction-result-card .section-points {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 예측 비교 */
.prediction-result-card .prediction-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.prediction-result-card .prediction-item,
.prediction-result-card .result-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.prediction-result-card .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.prediction-result-card .position-label {
  font-weight: 600;
  color: #667eea;
  font-size: 0.9rem;
}

.prediction-result-card .prediction-label {
  background: #1a1a1a;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.prediction-result-card .result-label {
  background: #28a745;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* 드라이버 카드 */
.prediction-result-card .driver-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.prediction-result-card .driver-card.prediction {
  background: white;
  border-color: #e0e0e0;
}

.prediction-result-card .driver-card.result {
  background: white;
  border-color: #e0e0e0;
}

.prediction-result-card .driver-card.result.correct {
  background: #e8f5e8;
  border-color: #4caf50;
}

.prediction-result-card .driver-card.result.incorrect {
  background: #ffebee;
  border-color: #f44336;
}

.prediction-result-card .driver-number {
  background: #1a1a1a;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

.prediction-result-card .driver-name {
  font-weight: 600;
  color: #333;
  flex: 1 1;
}

.prediction-result-card .team-name {
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
}

/* 포디움 예측 */
.prediction-result-card .podium-predictions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prediction-result-card .podium-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prediction-result-card .position-number {
  background: #1a1a1a;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.prediction-result-card .podium-item .driver-card {
  flex: 1 1;
  margin: 0;
}

/* 레이스 포인트 안내 */
.prediction-result-card .race-points-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.prediction-result-card .notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.prediction-result-card .notice-content p {
  margin: 0;
  color: #856404;
  line-height: 1.4;
}

.prediction-result-card .notice-content p:first-child {
  margin-bottom: 0.25rem;
}

/* 카드 푸터 */
.prediction-result-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #f0f0f0;
}

.prediction-result-card .prediction-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prediction-result-card .prediction-date,
.prediction-result-card .update-date {
  font-size: 0.8rem;
  color: #666;
}

.prediction-result-card .update-date {
  color: #888;
}

.prediction-result-card .no-points-notice {
  font-size: 0.8rem;
  color: #dc3545;
  font-weight: 600;
}

.prediction-result-card .edit-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prediction-result-card .edit-btn:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .prediction-result-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .prediction-result-card .card-status {
    align-items: flex-start;
  }

  .prediction-result-card .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .prediction-result-card .prediction-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .prediction-result-card .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .prediction-result-card .gp-date {
    font-size: 0.75rem;
  }

  .prediction-result-card .podium-item {
    gap: 0.5rem;
  }

  .prediction-result-card .position-number {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .prediction-result-card .card-header,
  .prediction-result-card .prediction-content,
  .prediction-result-card .card-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .prediction-result-card .prediction-item,
  .prediction-result-card .result-item {
    padding: 0.75rem;
  }

  .prediction-result-card .driver-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.5rem;
  }

  .prediction-result-card .podium-predictions {
    gap: 0.75rem;
  }

  .prediction-result-card .podium-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .prediction-result-card .race-points-notice {
    padding: 0.75rem;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .prediction-result-card {
    background: #2c3e50;
    border-color: #4a5f7a;
    color: white;
  }

  .prediction-result-card .card-header {
    background: #34495e;
    border-color: #4a5f7a;
  }

  .prediction-result-card .gp-info h3,
  .prediction-result-card .section-header h4,
  .prediction-result-card .driver-name {
    color: white;
  }

  .prediction-result-card .gp-location,
  .prediction-result-card .prediction-date,
  .prediction-result-card .update-date {
    color: #bdc3c7;
  }

  .prediction-result-card .gp-date {
    color: #95a5a6;
  }

  .prediction-result-card .prediction-item,
  .prediction-result-card .result-item,
  .prediction-result-card .card-footer {
    background: #34495e;
  }

  .prediction-result-card .driver-card.prediction,
  .prediction-result-card .driver-card.result {
    background: #2c3e50;
    border-color: #4a5f7a;
  }

  .prediction-result-card .race-points-notice {
    background: #3a3a2a;
    border-color: #5a5a3a;
  }

  .prediction-result-card .notice-content p {
    color: #f39c12;
  }
} 
.my-predictions-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 2rem 1rem;
}

/* 히어로 섹션 */
.my-predictions-page .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white;
  padding: 4rem 1rem;
  margin: -2rem -1rem 3rem -1rem;
}

.my-predictions-page .hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  align-items: center;
}

.my-predictions-page .hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.my-predictions-page .hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.my-predictions-page .hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.my-predictions-page .cta-button {
  background: #e10600;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.my-predictions-page .cta-button:hover {
  background: #c50500;
  transform: translateY(-2px);
}

.my-predictions-page .cta-button.primary {
  background: #e10600;
}

.my-predictions-page .cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

.my-predictions-page .cta-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.my-predictions-page .hero-visual {
  display: flex;
  justify-content: center;
}

.my-predictions-page .stats-preview {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.my-predictions-page .stat-card-preview {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  min-width: 100px;
}

.my-predictions-page .stat-card-preview .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #e10600;
  margin-bottom: 0.5rem;
}

.my-predictions-page .stat-card-preview .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 기능 소개 섹션 */
.my-predictions-page .features-section {
  background: #f8f9fa;
  padding: 3rem 1rem;
  margin: 0 -1rem 3rem -1rem;
}

.my-predictions-page .section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.my-predictions-page .features-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.my-predictions-page .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
}

.my-predictions-page .feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.my-predictions-page .feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.my-predictions-page .feature-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.my-predictions-page .feature-content p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* 예측 이력 예시 섹션 */
.my-predictions-page .history-example-section {
  margin-bottom: 3rem;
}

.my-predictions-page .history-example-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.my-predictions-page .example-history {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.my-predictions-page .history-item {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.my-predictions-page .history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.my-predictions-page .history-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.my-predictions-page .history-date {
  font-size: 0.9rem;
  color: #666;
}

.my-predictions-page .history-predictions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.my-predictions-page .prediction-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.my-predictions-page .prediction-type {
  font-weight: 600;
  color: #333;
  min-width: 80px;
}

.my-predictions-page .prediction-detail {
  flex: 1 1;
  margin: 0 1rem;
  color: #666;
}

.my-predictions-page .result-status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.my-predictions-page .result-status.success {
  background: #e8f5e8;
  color: #28a745;
}

.my-predictions-page .result-status.failed {
  background: #ffebee;
  color: #dc3545;
}

.my-predictions-page .result-status.partial {
  background: #fff3e0;
  color: #ff9800;
}

.my-predictions-page .history-total {
  text-align: center;
  padding-top: 1rem;
  border-top: 2px solid #e10600;
  color: #e10600;
  font-size: 1.1rem;
}

/* 로그인 유도 섹션 */
.my-predictions-page .login-prompt-section {
  background: linear-gradient(135deg, #e10600 0%, #c50500 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
}

.my-predictions-page .prompt-content h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 600;
}

.my-predictions-page .prompt-content p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.my-predictions-page .login-benefits {
  margin: 1rem 0 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.my-predictions-page .page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.my-predictions-page .header-content h1 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.my-predictions-page .page-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.my-predictions-page .page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 인증 필요 상태 */
.my-predictions-page .auth-required {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.my-predictions-page .auth-message {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
}

.my-predictions-page .auth-message h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.my-predictions-page .auth-message p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.my-predictions-page .login-btn {
  background: #2196f3;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.my-predictions-page .login-btn:hover {
  background: #1976d2;
  transform: translateY(-2px);
}

/* 에러 상태 */
.my-predictions-page .error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
}

.my-predictions-page .error-message {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
}

.my-predictions-page .error-message h3 {
  color: #e74c3c;
  margin-bottom: 1rem;
}

.my-predictions-page .error-message p {
  color: #666;
  margin-bottom: 1.5rem;
}

.my-predictions-page .retry-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.my-predictions-page .retry-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* 필터 섹션 */
.my-predictions-page .filters-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.my-predictions-page .filter-group {
  display: flex;
  flex-direction: column;
}

.my-predictions-page .filter-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.my-predictions-page .filter-select {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.my-predictions-page .filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 통계 섹션 */
.my-predictions-page .stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.my-predictions-page .stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.my-predictions-page .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.my-predictions-page .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2196f3;
  margin-bottom: 0.5rem;
}

.my-predictions-page .stat-label {
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
}

/* 예측 이력 섹션 */
.my-predictions-page .predictions-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.my-predictions-page .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.my-predictions-page .loading-container p {
  margin-top: 1rem;
  color: #666;
}

/* 빈 상태 */
.my-predictions-page .empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.my-predictions-page .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.my-predictions-page .empty-state h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.my-predictions-page .empty-state p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.my-predictions-page .create-prediction-btn {
  background: #2196f3;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.my-predictions-page .create-prediction-btn:hover {
  background: #1976d2;
  transform: translateY(-2px);
}

/* 예측 이력 목록 */
.my-predictions-page .predictions-list {
  padding: 1rem;
}

/* 예측 이력 카드 */
.my-predictions-page .prediction-history-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.my-predictions-page .prediction-history-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.my-predictions-page .prediction-history-card:last-child {
  margin-bottom: 0;
}

/* 카드 헤더 */
.my-predictions-page .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.my-predictions-page .gp-info h3 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.my-predictions-page .gp-location {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.my-predictions-page .gp-date {
  color: #888;
  font-size: 0.8rem;
}

/* 상태 뱃지 */
.my-predictions-page .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.my-predictions-page .status-badge.upcoming {
  background: #e3f2fd;
  color: #1976d2;
}

.my-predictions-page .status-badge.qualifying-done {
  background: #fff3e0;
  color: #f57c00;
}

.my-predictions-page .status-badge.completed {
  background: #e8f5e8;
  color: #388e3c;
}

.my-predictions-page .status-badge.unknown {
  background: #f5f5f5;
  color: #757575;
}

/* 예측 내용 */
.my-predictions-page .prediction-content {
  padding: 1rem 1.5rem;
}

.my-predictions-page .prediction-section {
  margin-bottom: 1.5rem;
}

.my-predictions-page .prediction-section:last-child {
  margin-bottom: 0;
}

.my-predictions-page .prediction-section h4 {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.my-predictions-page .prediction-section.qualifying h4::before {
  content: "Q";
  margin-right: 0.5rem;
}

.my-predictions-page .prediction-section.race h4::before {
  content: "R";
  margin-right: 0.5rem;
}

.my-predictions-page .prediction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.my-predictions-page .prediction-item:last-child {
  border-bottom: none;
}

.my-predictions-page .position-label {
  font-weight: 600;
  color: #2196f3;
  font-size: 0.9rem;
}

.my-predictions-page .driver-name {
  color: #333;
  font-weight: 500;
}

.my-predictions-page .podium-predictions {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem;
}

/* 카드 푸터 */
.my-predictions-page .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #f0f0f0;
}

.my-predictions-page .prediction-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.my-predictions-page .prediction-date,
.my-predictions-page .update-date {
  font-size: 0.8rem;
  color: #666;
}

.my-predictions-page .update-date {
  color: #888;
}

.my-predictions-page .edit-btn {
  background: #2196f3;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.my-predictions-page .edit-btn:hover {
  background: #1976d2;
  transform: translateY(-1px);
}

/* 반응형 디자인 - 히어로 섹션 */
@media (max-width: 768px) {
  .my-predictions-page {
    padding: 1.5rem 1rem;
  }

  .my-predictions-page .hero-section {
    padding: 3rem 1rem;
  }
  
  .my-predictions-page .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .my-predictions-page .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .my-predictions-page .hero-description {
    font-size: 1.1rem;
  }
  
  .my-predictions-page .stats-preview {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .my-predictions-page .features-section {
    padding: 2rem 1rem;
  }
  
  .my-predictions-page .features-section h2 {
    font-size: 1.6rem;
  }
  
  .my-predictions-page .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .my-predictions-page .history-example-section h2 {
    font-size: 1.6rem;
  }
  
  .my-predictions-page .history-item {
    padding: 1.5rem;
  }
  
  .my-predictions-page .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .my-predictions-page .prediction-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .my-predictions-page .header-content h1 {
    font-size: 2rem;
  }

  .my-predictions-page .page-description {
    font-size: 1rem;
  }

  .my-predictions-page .filters-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .my-predictions-page .stats-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .my-predictions-page .stat-card {
    padding: 1rem;
  }

  .my-predictions-page .stat-value {
    font-size: 1.5rem;
  }

  .my-predictions-page .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .my-predictions-page .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .my-predictions-page .gp-date {
    font-size: 0.75rem;
  }

  .my-predictions-page .predictions-list {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .my-predictions-page .hero-section {
    padding: 2rem 1rem;
  }
  
  .my-predictions-page .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .my-predictions-page .hero-description {
    font-size: 1rem;
  }
  
  .my-predictions-page .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .my-predictions-page .cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .my-predictions-page .stats-preview {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .my-predictions-page .stat-card-preview {
    padding: 1rem;
  }
  
  .my-predictions-page .features-section h2,
  .my-predictions-page .history-example-section h2 {
    font-size: 1.4rem;
  }
  
  .my-predictions-page .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .my-predictions-page .feature-icon {
    align-self: center;
  }

  .my-predictions-page .stats-section {
    grid-template-columns: 1fr;
  }

  .my-predictions-page .stat-card {
    padding: 0.75rem;
  }

  .my-predictions-page .card-header,
  .my-predictions-page .prediction-content,
  .my-predictions-page .card-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .my-predictions-page .auth-message,
  .my-predictions-page .error-message {
    padding: 2rem;
    margin: 0 1rem;
  }
}

 
/* 리더보드 테이블 스타일 */
.leaderboard-table {
  padding: 0;
}

.leaderboard-table.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.leaderboard-table.loading p {
  margin-top: 1rem;
  color: #666;
  font-size: 1rem;
}

.leaderboard-table.empty {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-message {
  color: #666;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* 테이블 컨테이너 */
.table-container {
  overflow-x: auto;
  border-radius: 0 0 16px 16px;
}

.leaderboard-table-element {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

/* 테이블 헤더 */
.leaderboard-table-element thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.leaderboard-table-element th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-col { width: 80px; text-align: center; }
.user-col { width: auto; min-width: 200px; }
.points-col { width: 120px; text-align: center; }
.qualifying-col { width: 100px; text-align: center; }
.race-col { width: 100px; text-align: center; }
.predictions-col { width: 100px; text-align: center; }

/* 테이블 행 */
.leaderboard-row {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.leaderboard-row:hover {
  background-color: #f8f9fa;
}

.leaderboard-row.current-user {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.leaderboard-row.current-user:hover {
  background-color: #bbdefb;
}

/* 테이블 셀 */
.leaderboard-table-element td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

/* 순위 셀 */
.rank-cell {
  text-align: center;
}

.rank-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rank-icon {
  font-size: 1.2rem;
}

.rank-number {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.rank-change {
  font-size: 0.75rem;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-weight: 500;
}

.rank-change.up {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.rank-change.down {
  background-color: #ffebee;
  color: #c62828;
}

/* 사용자 셀 */
.user-cell {
  text-align: left;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.you-badge {
  background: #2196f3;
  color: white;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  border-radius: 12px;
  font-weight: 500;
}

/* 포인트 셀 */
.points-cell {
  text-align: center;
}

.total-points {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.points-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.points-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 퀄리파잉/레이스 셀 */
.qualifying-cell,
.race-cell,
.predictions-cell {
  text-align: center;
}

.qualifying-points,
.race-points,
.predictions-count {
  font-weight: 600;
  color: #555;
}

.qualifying-points {
  color: #ff9800;
}

.race-points {
  color: #4caf50;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  border-top: 1px solid #f0f0f0;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #bbb;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.25rem;
}

.pagination-number {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pagination-number:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.pagination-number.active {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #666;
  font-size: 0.9rem;
}

/* 테이블 정보 */
.table-info {
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;
}

.table-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .table-container {
    border-radius: 0;
  }

  .leaderboard-table-element {
    font-size: 0.85rem;
  }

  .leaderboard-table-element th,
  .leaderboard-table-element td {
    padding: 0.75rem 0.5rem;
  }

  .rank-col { width: 60px; }
  .points-col { width: 100px; }
  .qualifying-col { width: 80px; }
  .race-col { width: 80px; }
  .predictions-col { width: 80px; }

  .user-name {
    font-size: 0.9rem;
  }

  .points-number {
    font-size: 1rem;
  }

  .pagination {
    padding: 1.5rem 1rem;
    flex-wrap: wrap;
  }

  .pagination-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .pagination-number {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .table-info {
    padding: 1rem;
  }

  .table-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .leaderboard-table-element {
    font-size: 0.8rem;
  }

  .leaderboard-table-element th,
  .leaderboard-table-element td {
    padding: 0.5rem 0.25rem;
  }

  .rank-col { width: 50px; }
  .points-col { width: 80px; }
  .qualifying-col { width: 60px; }
  .race-col { width: 60px; }
  .predictions-col { width: 60px; }

  .user-info {
    gap: 0.5rem;
  }

  .user-name {
    font-size: 0.85rem;
  }

  .you-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }

  .points-number {
    font-size: 0.95rem;
  }

  .points-label {
    font-size: 0.7rem;
  }
}
/* 사용자 순위 카드 스타일 */
.user-rank-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.user-rank-card.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.user-rank-card.loading p {
  margin-top: 1rem;
  color: #666;
  font-size: 1rem;
}

/* 카드 헤더 */
.card-header {
  background: #ffffff;
  color: #333;
  padding: 2rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.season-info {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.rank-info {
  text-align: right;
}

.current-rank {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.rank-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.rank-label {
  font-size: 0.85rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 카드 콘텐츠 */
.card-content {
  padding: 2rem;
}

.rank-description {
  text-align: center;
  margin-bottom: 2rem;
}

.rank-description p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* 통계 그리드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.stat-item:hover {
  border-color: #e3f2fd;
  background: #f3f8ff;
}

.stat-item.total-points {
  border-color: #2196f3;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3f8ff 100%);
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* 성과 분석 */
.performance-breakdown {
  border-top: 1px solid #f0f0f0;
  padding-top: 2rem;
}

.performance-breakdown h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.breakdown-grid {
  display: grid;
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.breakdown-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.breakdown-label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.breakdown-value {
  font-weight: 700;
  color: #555;
  font-size: 1rem;
}

.breakdown-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.breakdown-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.breakdown-fill.qualifying {
  background: linear-gradient(90deg, #ff9800 0%, #ffb74d 100%);
}

.breakdown-fill.race {
  background: linear-gradient(90deg, #4caf50 0%, #81c784 100%);
}

.breakdown-rate {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

/* 카드 액션 */
.card-actions {
  padding: 2rem;
  background: #f8f9fa;
  border-top: 1px solid #f0f0f0;
}

.scroll-to-rank-btn {
  width: 100%;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.scroll-to-rank-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.action-btn {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
}

.action-btn.secondary {
  background: white;
  color: #667eea;
  border-color: #667eea;
}

.action-btn.secondary:hover {
  background: #1a1a1a;
  color: white;
}

.action-btn.primary {
  background: #1a1a1a;
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1.5rem;
  }

  .user-info {
    flex-direction: column;
    text-align: center;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .user-details h3 {
    font-size: 1.3rem;
  }

  .rank-info {
    text-align: center;
  }

  .current-rank {
    align-items: center;
  }

  .rank-number {
    font-size: 1.8rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .breakdown-item {
    padding: 1rem;
  }

  .card-actions {
    padding: 1.5rem;
  }

  .action-buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .card-header {
    padding: 1rem;
  }

  .user-details h3 {
    font-size: 1.2rem;
  }

  .rank-number {
    font-size: 1.5rem;
  }

  .card-content {
    padding: 1rem;
  }

  .rank-description p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .performance-breakdown h4 {
    font-size: 1.1rem;
  }

  .breakdown-item {
    padding: 0.75rem;
  }

  .breakdown-header {
    font-size: 0.9rem;
  }

  .card-actions {
    padding: 1rem;
  }
}
/* 리더보드 페이지 스타일 */
.leaderboard-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 2rem 0;
}

.leaderboard-page.loading,
.leaderboard-page.error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #333;
}

.leaderboard-page.loading p,
.leaderboard-page.error p {
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* 페이지 헤더 */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.header-content {
  text-align: center;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 시즌 선택 */
.season-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.season-selector label {
  color: #333;
  font-weight: 600;
  font-size: 1rem;
}

.season-selector select {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 1rem;
  min-width: 200px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-selector select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.season-selector select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 페이지 콘텐츠 */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 리더보드 섹션 */
.leaderboard-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 2rem;
}

.section-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.season-info {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* 에러 상태 */
.error-container {
  text-align: center;
  color: #333;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-container h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.error-container p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.retry-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .leaderboard-page {
    padding: 1rem 0;
  }

  .page-header {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .header-content h1 {
    font-size: 2.5rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .season-selector {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .season-selector select {
    min-width: auto;
    width: 100%;
  }

  .page-content {
    padding: 0 1rem;
  }

  .section-header {
    padding: 1.5rem 1rem 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .empty-state {
    padding: 3rem 1rem;
  }

  .empty-icon {
    font-size: 3rem;
  }

  .empty-state h3 {
    font-size: 1.3rem;
  }
}
.my-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 인증 필요 메시지 */
.auth-required {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.auth-message {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
}

.auth-message h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.auth-message p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.login-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 사용자 정보 섹션 */
.user-info-section {
  margin-bottom: 3rem;
}

.user-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-avatar {
  flex-shrink: 0;
}

.avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.user-details {
  flex: 1 1;
}

.user-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.user-email {
  color: #666;
  margin-bottom: 0.5rem;
}

.current-season {
  color: #888;
  font-size: 0.9rem;
}

/* 포인트 요약 섹션 */
.points-summary-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.points-summary-section h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.points-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.point-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.point-card:hover {
  transform: translateY(-2px);
}

.point-card.total {
  background: #1a1a1a;
  color: white;
}

.point-card.qualifying {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.point-card.race {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.point-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.point-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.loading-container {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.no-points {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* 메뉴 섹션 */
.menu-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.menu-section h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.menu-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.menu-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.menu-content {
  flex: 1 1;
}

.menu-content h4 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.menu-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.menu-arrow {
  font-size: 1.2rem;
  color: #667eea;
  font-weight: 600;
}

/* 빠른 액션 섹션 */
.quick-actions-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.quick-actions-section h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.action-btn.primary {
  background: #1a1a1a;
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.action-btn.secondary:hover {
  background: #1a1a1a;
  color: white;
  transform: translateY(-2px);
}

/* 에러 상태 */
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.error-message {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
}

.error-message h3 {
  color: #e74c3c;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.error-message p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.retry-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .my-page {
    padding: 1rem 0;
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .page-content {
    padding: 0 0.5rem;
  }

  .user-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

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

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
  }
}
.points-history {
  width: 100%;
}

/* 로딩 상태 */
.points-history-loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 빈 상태 */
.points-history-empty {
  text-align: center;
  padding: 3rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.points-history-empty h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.points-history-empty p {
  color: #666;
  line-height: 1.6;
}

/* 정렬 옵션 */
.sort-options {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.sort-label {
  font-weight: 600;
  color: #333;
}

.sort-btn {
  background: none;
  border: 2px solid #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.sort-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.sort-btn.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: white;
}

/* 포인트 목록 */
.points-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.point-item {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.point-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* 포인트 헤더 */
.point-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.point-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.type-icon {
  font-size: 1.1rem;
}

.point-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #27ae60;
}

/* 포인트 내용 */
.point-content {
  padding: 1.5rem;
}

.grand-prix-info {
  margin-bottom: 1rem;
}

.gp-name {
  color: #333;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.gp-date {
  color: #666;
  font-size: 0.9rem;
}

/* 포인트 상세 정보 */
.point-details {
  margin-bottom: 1rem;
}

.prediction-detail {
  margin-bottom: 0.75rem;
}

.detail-label {
  font-weight: 600;
  color: #333;
  margin-right: 0.5rem;
}

.detail-value {
  color: #666;
}

.podium-drivers {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.podium-position {
  font-size: 0.9rem;
  color: #666;
  padding: 0.25rem 0;
}

.podium-position:nth-child(1) {
  color: #f39c12; /* 1위 - 골드 */
}

.podium-position:nth-child(2) {
  color: #95a5a6; /* 2위 - 실버 */
}

.podium-position:nth-child(3) {
  color: #cd7f32; /* 3위 - 브론즈 */
}

/* 포인트 계산 상세 */
.point-breakdown {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.breakdown-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.breakdown-item {
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #667eea;
  font-weight: 600;
  border: 1px solid #e0e0e0;
}

/* 포인트 푸터 */
.point-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.awarded-date {
  color: #888;
  font-size: 0.85rem;
}

/* 월별 차트 플레이스홀더 */
.monthly-chart-placeholder {
  margin-top: 2rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  text-align: center;
  border: 2px dashed #e0e0e0;
}

.monthly-chart-placeholder h4 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.coming-soon {
  color: #666;
  font-style: italic;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .sort-options {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sort-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .point-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .point-type {
    align-self: flex-start;
  }

  .point-value {
    align-self: flex-end;
    font-size: 1.1rem;
  }

  .point-content {
    padding: 1rem;
  }

  .podium-drivers {
    gap: 0.5rem;
  }

  .breakdown-items {
    flex-direction: column;
    gap: 0.25rem;
  }

  .breakdown-item {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .point-item {
    margin: 0 -0.5rem;
  }

  .point-header {
    padding: 1rem;
  }

  .point-content {
    padding: 1rem;
  }

  .point-type {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .point-value {
    font-size: 1rem;
  }
}
.my-points-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 인증 필요 메시지 */
.auth-required {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.auth-message {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
}

.auth-message h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.auth-message p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.login-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 필터 섹션 */
.filters-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
}

/* 포인트 요약 섹션 */
.points-summary-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.points-summary-section h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.summary-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-card.total {
  background: #1a1a1a;
  color: white;
}

.summary-card.qualifying {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.summary-card.race {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.summary-card.count {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 포인트 이력 섹션 */
.points-history-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.points-history-section h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.loading-container {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 3rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.empty-state p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.create-prediction-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-prediction-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 포인트 시스템 안내 */
.points-system-info {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.points-system-info h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.info-card:hover {
  border-color: #667eea;
}

.info-card h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.info-card li {
  color: #666;
  padding: 0.25rem 0;
  line-height: 1.4;
}

.info-card strong {
  color: #667eea;
  font-weight: 600;
}

/* 에러 상태 */
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.error-message {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
}

.error-message h3 {
  color: #e74c3c;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.error-message p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.retry-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .my-points-page {
    padding: 1rem 0;
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .page-content {
    padding: 0 0.5rem;
  }

  .filters-section {
    flex-direction: column;
    gap: 1rem;
  }

  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }
}
.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background-secondary);
}

main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

/* 컨테이너 유틸리티 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.container-lg {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

/* 레이아웃 유틸리티 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

/* 간격 유틸리티 */
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.p-8 { padding: var(--spacing-8); }

.px-3 { padding-left: var(--spacing-3); padding-right: var(--spacing-3); }
.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }

.py-2 { padding-top: var(--spacing-2); padding-bottom: var(--spacing-2); }
.py-3 { padding-top: var(--spacing-3); padding-bottom: var(--spacing-3); }
.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }
.py-6 { padding-top: var(--spacing-6); padding-bottom: var(--spacing-6); }

.m-2 { margin: var(--spacing-2); }
.m-4 { margin: var(--spacing-4); }
.m-6 { margin: var(--spacing-6); }

.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }

.mt-2 { margin-top: var(--spacing-2); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }

/* 버튼 컴포넌트 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: var(--spacing-2);
}

.btn-primary {
  background-color: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  color: white;
}

.btn-secondary {
  background-color: var(--background-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
}

.btn-sm {
  padding: var(--spacing-1) var(--spacing-3);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--font-size-base);
}

/* 카드 컴포넌트 */
.card {
  background-color: var(--background-primary);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: var(--spacing-4) var(--spacing-6);
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: var(--spacing-6);
}

.card-footer {
  padding: var(--spacing-4) var(--spacing-6);
  border-top: 1px solid var(--border-light);
  background-color: var(--background-secondary);
}



/*# sourceMappingURL=main.b9ae6a11.css.map*/