/* Modern Main Page Styles */
:root {
  /* Light mode variables */
  --primary-gradient: linear-gradient(135deg, coral 0%, #ff6347 100%);
  --secondary-gradient: linear-gradient(135deg, #ffb3a6 0%, #ffa07a 100%);
  --accent-gradient: linear-gradient(135deg, #ffd7cc 0%, #ffcccb 100%);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow-light: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
  --shadow-hover: 0 8px 25px 0 rgba(31, 38, 135, 0.3);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-dark: #222;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-border: rgba(0, 0, 0, 0.1);
  --content-bg: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.95);
  --hover-bg: rgba(241, 245, 249, 0.95);
  --border-color: rgba(0, 0, 0, 0.1);
  --link-card-bg: rgba(255, 255, 255, 0.95);
  --link-card-hover: rgba(241, 245, 249, 0.95);
  --speaker-gradient: linear-gradient(135deg, #64748b 0%, #475569 100%);
  --shadow-color: rgba(31, 38, 135, 0.2);
  --footer-bg: rgba(255, 255, 255, 0.05);
  --footer-hover: rgba(255, 255, 255, 0.1);
}

/* Dark mode styles */
[data-bs-theme="dark"] {
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-dark: #fff;
  --card-border: rgba(255, 255, 255, 0.15);
  --content-bg: none;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-bg: rgba(31, 41, 55, 0.95);
  --hover-bg: rgba(55, 65, 81, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
  --link-card-bg: rgba(31, 41, 55, 0.95);
  --link-card-hover: rgba(55, 65, 81, 0.95);
  --footer-bg: rgba(255, 255, 255, 0.05);
  --footer-hover: rgba(255, 255, 255, 0.1);
}

/* Base styles */
body {
  font-family: 'NEXON Lv2 Gothic', 'Noto Sans KR', sans-serif !important;
  overflow-x: hidden;
  background: var(--content-bg);
  color: var(--text-primary);
}

[data-bs-theme="dark"] body {
  background: var(--content-bg);
  color: var(--text-primary);
}

/* Card styles */
.hero-card,
.modern-card,
.favorite-card,
.new-card,
.modern-card-content,
.new-card .modern-card-content {
  background: var(--card-bg) !important;
  border-color: var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-color);
  color: var(--text-primary);
}

.hero-card-header,
.modern-card-footer,
.modern-card-content {
  border-color: var(--border-color);
  background: var(--card-bg) !important;
}

/* Main content styles */
.main-content {
  background: var(--content-bg);
  color: var(--text-primary);
}

/* Navigation styles */
.modern-navbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px 0 rgba(31,38,135,0.08);
  font-family: 'NEXON Lv2 Gothic', 'Noto Sans KR', sans-serif;
  transition: background 0.3s, box-shadow 0.3s;
}

/* Navbar collapse positioning for scroll indicators */
.modern-navbar .navbar-collapse {
  position: relative;
}

/* Navbar container */
.navbar-nav-scroll-container {
  white-space: nowrap;
  position: relative;
}





.navbar-nav-scroll-container .navbar-nav {
  flex-wrap: nowrap;
  white-space: nowrap;
  display: flex;
  width: max-content;
}

.navbar-nav-scroll-container .nav-item {
  flex-shrink: 0;
}



/* Responsive navbar adjustments */
@media (min-width: 1400px) {
  .navbar-nav-scroll-container .navbar-nav {
    display: flex;
    width: auto;
  }
}

[data-bs-theme="dark"] .modern-navbar {
  background: var(--glass-bg);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 4px 24px var(--shadow-color);
}

.modern-navbar .navbar-brand {
  font-family: 'MaplestoryOTFBold', 'NEXON Lv2 Gothic', 'Noto Sans KR', sans-serif;
  color: black;
}

.modern-navbar .navbar-brand h1#mapleroad {
  font-weight: unset;
  font-size: 1.25rem;
  color: unset;
  letter-spacing: -1px;
  margin-bottom: 0;
}

.modern-navbar .navbar-brand .font_coral,
.modern-navbar .navbar-nav .nav-link .font_coral {
  color: coral;
}

.modern-navbar .navbar-nav .nav-link {
  color: #2d3748;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 0.5rem;
  max-width: 120px;
  transition: background 0.2s, color 0.2s;
}

[data-bs-theme="dark"] .modern-navbar .navbar-nav .nav-link {
  color: var(--text-primary);
}

.modern-navbar .navbar-nav .nav-link.active,
.modern-navbar .navbar-nav .nav-link:hover,
.modern-navbar .navbar-nav .nav-link:focus {
  background: linear-gradient(90deg, coral 0%, #ff6347 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 127, 80, 0.5);
}

/* On Air 네비게이션 버튼 특별 스타일 */
.modern-navbar .navbar-nav .nav-link[href*="onair"] {
  color: black;
  border: 1.5px solid coral;
  background: transparent !important;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .modern-navbar .navbar-nav .nav-link[href*="onair"] {
  color: white;
}

.modern-navbar .navbar-nav .nav-link .font_coral {
  transition: all 0.3s ease;
}

.modern-navbar .navbar-nav .nav-link[href*="onair"]:hover,
.modern-navbar .navbar-nav .nav-link[href*="onair"]:focus {
  background: coral !important;
  color: white !important;
  border-color: coral;
  box-shadow: 0 2px 8px rgba(255, 127, 80, 0.4);
}

.modern-navbar .navbar-nav .nav-link:hover .font_coral,
.modern-navbar .navbar-nav .nav-link:focus .font_coral {
  color: white !important;
}

.modern-navbar .navbar-nav .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(31,38,135,0.10);
  border: none;
  background: rgba(255,255,255,0.98);
  margin-top: 0;
  padding: 0.5rem;
  display: none;
  top: 100%;
  min-width: 200px;
  animation: fadeIn 0.3s ease-in-out;
}

[data-bs-theme="dark"] .modern-navbar .navbar-nav .dropdown-menu {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.modern-navbar .navbar-nav .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.modern-navbar .navbar-nav .dropdown-menu .dropdown-item {
  color: #2d3748;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .modern-navbar .navbar-nav .dropdown-menu .dropdown-item {
  color: var(--text-primary);
}

.modern-navbar .navbar-nav .dropdown-menu .dropdown-item:hover,
.modern-navbar .navbar-nav .dropdown-menu .dropdown-item:focus,
.modern-navbar .navbar-nav .dropdown-menu .dropdown-item.active {
  background: linear-gradient(90deg, coral 0%, #ff6347 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 127, 80, 0.25);
}

.modern-navbar .navbar-nav .dropdown-menu .dropdown-divider {
  border-color: rgba(0,0,0,0.1);
  margin: 0.5rem 0;
}

[data-bs-theme="dark"] .modern-navbar .navbar-nav .dropdown-menu .dropdown-divider {
  border-color: rgba(255,255,255,0.1);
}

.modern-navbar .navbar-toggler {
  border-radius: 8px;
  border: none;
  background: var(--primary-gradient);
}

.modern-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 2px #ffb3a6;
}

.modern-navbar .navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.modern-navbar .darkmode-switch-wrapper {
  margin-left: 1rem;
}

/* 기존 PC 네비게이션은 1400px 이상에서만 hover 효과 */
@media (min-width: 1400px) {
  .modern-navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.2s ease;
  }
}

.modern-navbar .dropdown {
  position: relative;
}

/* Logo styles */
.logo-maple,
.logo-road {
  font-weight: 700;
  font-size: 1.25rem;
  text-shadow: 0 2px 4px var(--shadow-color);
  transition: var(--transition);
}

.logo-maple {
  color: var(--text-dark);
}

.logo-road {
  color: coral;
}

[data-bs-theme="dark"] .logo-maple {
  color: #fff;
  text-shadow: 0 2px 4px var(--shadow-color);
}

[data-bs-theme="dark"] .logo-road {
  color: coral;
  text-shadow: 0 2px 4px var(--shadow-color);
}

/* 네비게이션에서 font_coral 클래스도 같은 색상 적용 */
.modern-navbar .navbar-brand .font_coral,
.modern-navbar .navbar-nav .nav-link .font_coral {
  color: coral;
}

[data-bs-theme="dark"] .modern-navbar .navbar-brand .font_coral {
  color: coral !important;
}

[data-bs-theme="dark"] .modern-navbar .navbar-nav .nav-link .font_coral {
  color: coral;
}

/* Favorite button styles */
.btn-favorite {
  position: absolute;
  top: 20px;
  right: 0.25rem;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-bs-theme="dark"] .btn-favorite {
  background: var(--card-bg);
  color: var(--text-primary);
}

.btn-favorite i {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: var(--transition);
}

.btn-favorite:hover,
.btn-favorite:active {
  background: var(--hover-bg);
  border-color: #ff9980;
}

.btn-favorite:hover i,
.btn-favorite:active i {
  color: #ff9980;
  opacity: 1;
}

/* 즐겨찾기 활성화 상태 */
.btn-favorite.active,
.btn-favorite.on {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
}

.btn-favorite.active i,
.btn-favorite.on i {
  color: #ffc107;
  opacity: 1;
}

/* 즐겨찾기 카드에서의 버튼 스타일 */
.favorite-card .btn-favorite {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
}

.favorite-card .btn-favorite i {
  color: #ffc107;
  opacity: 1;
}

/* Swiper styles */
#swiper_cashshop,
#swiper_notice,
#swiper_onair_main,
#swiper_onair_speaker {
  background: var(--card-bg);
  border-color: var(--border-color);
}

#swiper_cashshop .swiper-slide,
#swiper_notice .swiper-slide,
#swiper_onair_main .swiper-slide,
#swiper_onair_speaker .swiper-slide {
  background: var(--card-bg);
  border-color: var(--border-color);
}

/* Maple news styles */
#maple_news .maple_news_swiper_wrap,
#maple_news .news_card_wrap,
#onair_speaker .maple_news_swiper_wrap,
#onair_speaker .news_card_wrap {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
}

#maple_news .maple_news_title,
#onair_speaker .maple_news_title {
  color: white;
}

#maple_news .news_card_wrap .news_card,
#onair_speaker .news_card_wrap .news_card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

#maple_news .news_card_wrap .news_card:hover,
#onair_speaker .news_card_wrap .news_card:hover {
  background: var(--hover-bg);
  box-shadow: 0 12px 40px var(--shadow-color);
}

#maple_news .news_card_wrap .news_card .news_title,
#onair_speaker .news_card_wrap .news_card .news_title {
  color: var(--text-primary);
}

#maple_news .news_card_wrap .news_card .news_date,
#onair_speaker .news_card_wrap .news_card .news_date {
  color: var(--text-secondary);
}

/* Link card styles */
.category-card a {
  background: var(--link-card-bg) !important;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.category-card a:hover {
  background: var(--link-card-hover) !important;
  border-color: #ffb3a6;
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* Footer styles */
.footer-item {
  background: var(--footer-bg);
}

.footer-item:hover {
  background: var(--footer-hover);
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
  background: #ff9980;;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff7d5c;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* New Hero Section with Cards */
.hero-section-new {
  /* background: var(--primary-gradient); */
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

.hero-card {
  /* backdrop-filter: blur(20px); */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

[data-bs-theme="dark"] .hero-card {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .hero-card-header {
  border-bottom-color: var(--border-color);
}

.hero-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-icon img {
  width: 28px;
  height: 28px;
}

.hero-card-icon i {
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #ff9980;
  background-clip: text;
}

.hero-card-title {
  flex-grow: 1;
}

.hero-card-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-card-title p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-card-action {
  flex-shrink: 0;
}

.btn-onair-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 127, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-onair-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-onair-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 127, 80, 0.4);
  color: white;
  text-decoration: none;
}

.btn-onair-more:hover::before {
  left: 100%;
}

.btn-onair-more i {
  font-size: 0.7rem;
}

.hero-card-content {
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
}

/* News Card Content */
.news-card .hero-card-content {
  height: auto;
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.search-container-main {
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  z-index: 1;
}

.search-input-main {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  background: white;
  border: 2px solid var(--card-border);
  border-radius: 25px;
  color: var(--text-primary);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .search-input-main {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.search-input-main::placeholder {
  color: var(--text-secondary);
}

.search-input-main:focus {
  outline: none;
  border-color: #ffb3a6;
  box-shadow: 0 0 0 3px rgba(255, 179, 166, 0.12), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern Sections */
.modern-section {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-color);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.modern-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 127, 80, 0.5) 0%, rgba(255, 99, 71, 0.5) 100%);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.section-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: #ff9980;
  font-size: 1.25rem;
  padding: 0.5rem;
  background: rgba(255, 153, 128, 0.08);
  border-radius: 8px;
  transition: var(--transition);
}

.section-title:hover i {
  background: rgba(255, 153, 128, 0.15);
  transform: scale(1.1);
}

.section-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.highlight-text {
  background: coral;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search Results Positioning */
#data_container {
  margin-top: 1rem;
}

/* Speaker Notifications - 카드 형태 디자인 */
.modern-notification {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px var(--shadow-color);
  margin: 0;
  padding: 0.5rem 1rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

[data-bs-theme="dark"] .modern-notification {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

[data-bs-theme="dark"] .notification-content {
  color: var(--text-primary);
}

.notification-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.notification-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1);
}

[data-bs-theme="dark"] .notification-icon img {
  filter: brightness(1.3);
}

/* Speaker Rolling */
.speaker-rolling {
  flex-grow: 1;
  max-width: 600px;
  overflow: hidden;
  height: 24px;
}

#swiper_speaker_main {
  width: 100%;
  height: 24px;
}

#swiper_speaker_main .swiper-wrapper {
  flex-direction: column;
}

#swiper_speaker_main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  flex-shrink: 0;
}

.speaker-item-inline {
  color: var(--text-primary);
  transition: var(--transition);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  white-space: nowrap;
}

[data-bs-theme="dark"] .speaker-item-inline {
  color: var(--text-primary);
}

.speaker-item-inline:hover {
  color: coral;
  text-decoration: none;
}

[data-bs-theme="dark"] .speaker-item-inline:hover {
  color: coral;
}

.modern-badge-inline {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: white !important;
  flex-shrink: 0;
}

.modern-badge-inline.badge-purple { background: rgba(102, 126, 234, 0.9); }
.modern-badge-inline.badge-pink { background: rgba(245, 87, 108, 0.9); }
.modern-badge-inline.badge-notice { background: rgba(255, 193, 7, 0.9); }
.modern-badge-inline.badge-green { background: rgba(40, 167, 69, 0.9); }
.modern-badge-inline.badge-blue { background: rgba(79, 172, 254, 0.9); }

.speaker-text-inline {
  font-weight: 500;
  vertical-align: text-top;
  color: var(--text-primary);
}

[data-bs-theme="dark"] .speaker-text-inline {
  color: var(--text-primary);
}

.speaker-author-inline {
  opacity: 0.7;
  font-size: 0.85rem;
  vertical-align: text-top;;
  color: var(--text-secondary);
}

[data-bs-theme="dark"] .speaker-author-inline {
  color: var(--text-secondary);
}

/* Popular Cards - 인기 링크 카드 스타일 */
.popular-card {
  border-color: rgba(255, 87, 87, 0.3)!important;
  background: linear-gradient(135deg, rgba(255, 87, 87, 0.05), rgba(255, 107, 107, 0.02));
  box-shadow: 0 2px 8px rgba(255, 87, 87, 0.15), 0 4px 16px rgba(255, 87, 87, 0.08) !important;
}

.popular-card .modern-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  position: relative;
  padding-right: 3rem; /* 즐겨찾기 버튼 공간 확보 */
}

.popular-card a {
  flex-direction: column;
  height: 100%;
}

.popular-card .modern-card-title {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-width: 100%;
  padding-right: 0.5rem; /* 추가 여백 */
}

[data-bs-theme="dark"] .popular-card {
  background: var(--card-bg);
  border-color: rgba(255, 87, 87, 0.3); /* 라이트 모드와 동일한 붉은색 테두리 색상 유지 */
  box-shadow: 0 2px 8px rgba(255, 87, 87, 0.15), 0 4px 16px rgba(255, 87, 87, 0.08) !important;
}

/* Modern Cards - Horizontal Layout */
.modern-card {
  position: relative;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .modern-card {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.modern-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.modern-card a {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  display: flex;
  align-items: stretch;
}

/* Category Cards - Horizontal Layout */
.category-card a {
  flex-direction: row;
}

/* Category Card Content Layout - tip 하단 고정, 타이틀 세로 중앙 */
.category-card .modern-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card .modern-card-title-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

.category-card .modern-card-title {
  width: 100%;
}

.category-card .modern-card-footer {
  margin-top: 0;
  position: absolute;
  bottom: 2px;
  right: 7px;
}

.modern-card-image {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
}

.modern-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.modern-card:hover .modern-card-image img {
  transform: scale(1.05);
}

.new-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(245, 87, 108, 0.3);
}

.modern-card-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-height: 80px;
  position: relative;
  padding-right: 1.5rem; /* 즐겨찾기 버튼 공간 확보 */
}

.modern-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-width: 100%;
  padding-right: 0.5rem; /* 추가 여백 */
}

.modern-card-footer {
  margin-top: auto;
}

.favorite-card .modern-card-content,
.new-card .modern-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  position: relative;
  padding-right: 3rem; /* 즐겨찾기 버튼 공간 확보 */
}

.favorite-card a,
.new-card a {
  flex-direction: column;
  height: 100%;
}

.favorite-card .modern-card-title,
.new-card .modern-card-title {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-width: 100%;
  padding-right: 0.5rem; /* 추가 여백 */
}

/* Favorite Cards Special Styling */
.favorite-card {
  border-color: rgba(255, 193, 7, 0.3);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 215, 0, 0.02));
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15), 0 4px 16px rgba(255, 193, 7, 0.08) !important;
}

.new-card {
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.15), 0 4px 16px rgba(74, 222, 128, 0.08) !important;
}

[data-bs-theme="dark"] .favorite-card {
  background: var(--card-bg);
  border-color: rgba(255, 193, 7, 0.3); /* 라이트 모드와 동일한 테두리 색상 유지 */
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15), 0 4px 16px rgba(255, 193, 7, 0.08) !important;
}

[data-bs-theme="dark"] .new-card {
  background: var(--card-bg);
  border-color: rgba(74, 222, 128, 0.3); /* 라이트 모드와 동일한 테두리 색상 유지 */
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.15), 0 4px 16px rgba(74, 222, 128, 0.08) !important;
}

.new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

/* Modern Badge */
.modern-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.badge-pink { background: linear-gradient(135deg, #f093fb, #f5576c); }
.badge-notice { background: linear-gradient(135deg, #ffecd2, #fcb69f); color: #8b4513; }
.badge-green { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #2d5016; }
.badge-blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }

/* News Section */
#maple_news .news_card_wrap,
#onair_speaker .news_card_wrap {
  box-shadow: none;
  border-radius: .375rem;
  background: white;
  overflow: hidden;
}

[data-bs-theme="dark"] #maple_news .news_card_wrap,
[data-bs-theme="dark"] #onair_speaker .news_card_wrap {
  background: #374151;
}

#maple_news .maple_news_title,
#onair_speaker .maple_news_title {
  font-family: 'MaplestoryOTFBold';
  width: 100%;
  margin-bottom: 0;
  padding: 6px 0;
  color: white;
  background: var(--primary-gradient);
  border-radius: .375rem .375rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

#maple_news .maple_news_swiper_wrap,
#onair_speaker .maple_news_swiper_wrap {
  padding: 3px 0;
  background: white;
  border-radius: 0 0 .375rem .375rem;
}

[data-bs-theme="dark"] #maple_news .maple_news_swiper_wrap,
[data-bs-theme="dark"] #onair_speaker .maple_news_swiper_wrap {
  background: var(--card-bg);
}

/* Swiper Components */
#swiper_cashshop {
  width: 100%;
  height: 100%;
  border-radius: .375rem;
}

#swiper_cashshop .swiper-slide {
  background-size: cover;
  justify-content: center;
  align-items: center;
}

#swiper_cashshop .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

#swiper_cashshop .swiper-slide img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

#swiper_notice, #swiper_onair_speaker {
  position: relative;
  width: 100%;
  height: 140px;
  padding: 0 5px;
  font-size: 14px;
}

#swiper_notice.hasTimer, #swiper_onair_speaker.hasTimer {
  height: 90px;
}

#swiper_notice .notice_list, #swiper_onair_speaker .notice_list {
  margin: 3px 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#swiper_notice .notice_list:hover, #swiper_onair_speaker .notice_list:hover {
  text-decoration: underline;
  text-underline-position: under;
  color: rgb(175, 173, 255);
}

#swiper_notice.hasTimer .notice_list, #swiper_onair_speaker.hasTimer .notice_list {
  margin: 2px 0;
}

#swiper_onair_main {
  width: 100%;
  height: 210px;
  border-radius: var(--border-radius);
}

#swiper_onair_main .swiper-slide {
  background-size: cover;
  background-position: center;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius);
}

.notice_list a, .notice_list .notice_link {
  text-decoration: none;
  cursor: pointer;
  color: var(--text-primary);
  vertical-align: -1px;
}

[data-bs-theme="dark"] .notice_list a,
[data-bs-theme="dark"] .notice_list .notice_link {
  color: var(--text-primary);
}

/* News Grid Override - 기존 구조 유지 */
.news-section .news-grid {
  padding: 0;
  display: block;
  height: auto;
  gap: 0;
}

.news-section .news-item {
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.news-section .news-item:hover {
  background: transparent;
  transform: none;
}

.news-section .news-item a {
  display: block;
  padding: 3px;
  line-height: 1.2;
}

.news-section .news-title {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 0;
}

/* Badge styling for news */
.news-section .modern-badge {
  font-size: 0.6em;
  font-family: 'NEXON Lv2 Gothic';
  margin-right: 2px;
  vertical-align: baseline;
}

/* Timer Cards */
.timer_wrap {
  text-align: center;
  background: #0D1A29;
  color: #B1CDF1;
  border-radius: 0 0 .375rem .375rem;
}

.timer_wrap .timer_title {
  max-width: 100%;
  max-height: 0.7em;
  height: auto;
}

.timer_wrap .timer_image {
  vertical-align: bottom;
  height: 1.1em;
  margin: -2px 0 0 4px;
}

.timer_wrap .timer_date {
  color: #B1CDF1;
  display: block;
  font-size: .7em;
  font-weight: 400;
  margin-top: -4px;
  padding-bottom: 1px;
}

.timer_content {
  font-size: 1.3em;
  color: white;
  text-shadow: 0 0 15px #48C8FF;
  margin: -2px 0;
}

.timer_content div {
  display: inline-block;
  padding: 0 3px;
}

.timer_content a {
  color: white;
}

#timer_mobile {
  width: calc(50% - 5px);
  border-radius: .375rem;
  padding: 4px;
  vertical-align: middle;
}

#timer_mobile .timer_content {
  font-size: calc(0.35em + 2.5vw);
}

#timer_mobile .timer_content div {
  padding: 0 2px;
}

#timer_mobile .timer_date {
  font-size: calc(0.18em + 1.8vw);
}

#timer_pc {
  margin-top: 8px;
}

/* API Badges */
.api-badge {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  margin-top: 0.2rem;
  font-size: 0.6rem;
}

.api-badge img {
  height: 10px;
}

.api-badge.nexon-api img {
  height: 7px;
}

/* General tip badge for non-API content */
.tip-badge {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(102, 126, 234, 0.8);
  color: white;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 500;
  margin-top: 0.2rem;
}


/* Anchor Points */
.anchor-point {
  position: relative;
  top: -80px;
  visibility: hidden;
}

/* Modern Footer */
.modern-footer {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-header {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: coral;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-item {
  background: var(--footer-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-item:hover {
  background: var(--footer-hover);
  transform: translateY(-2px);
}

.footer-item i {
  color: #ffd700;
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer-item p {
  margin: 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.footer-item strong {
  color: white;
}

.contact-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 0.8rem;
  transition: var(--transition);
  font-size: 0.9rem;
}

.contact-link:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.3);
}

.footer-api {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.api-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.api-credit img {
  height: 0.75em;
}

/* Container responsive fix */
.container {
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 560px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 740px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* ==========================================================================
   RESPONSIVE STYLES (모바일 퍼스트 방식으로 정리)
   ========================================================================== */

@media (max-width: 1400px) {
  .dropdown-menu {
    max-height: 170px;
  }
}

/* Large Tablets and Desktop (1200px 이하) */
@media (max-width: 1199px) {  
  .section-title {
    font-size: 1.3rem;
  }
  
  .section-title i {
    font-size: 1.1rem;
    padding: 0.4rem;
  }
  
  .hero-card {
    padding: 1rem;
  }
}

/* Tablets (992px 이하) */
@media (max-width: 991px) {
  /* 섹션 및 카드 */
  .modern-section {
    padding: 1rem;
  }
  
  .hero-card {
    padding: 1rem;
  }
}

/* Mobile Phones (576px 이하) */
@media (max-width: 575px) {
  /* 카테고리 섹션 */
  .category-section .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 1rem;
  }
  
  .category-section .modern-card {
    margin-bottom: 0.5rem;
  }

  /* 모바일 앱 아이콘 스타일 카테고리 카드 */
  .category-card {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    overflow: hidden;
  }

  [data-bs-theme="dark"] .category-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  }

  .category-card a {
    flex-direction: column !important;
    padding: 0 !important;
    height: auto !important;
  }

  .category-card .modern-card-image {
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
  }

  .category-card .modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .category-card .modern-card-content {
    padding: 0.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    min-height: auto !important;
  }

  .category-card .modern-card-title-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .category-card .modern-card-title {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    max-width: 100%;
  }

  /* tip 영역 숨기기 */
  .category-card .modern-card-footer {
    display: none !important;
  }

  .category-card .tip-badge,
  .category-card .api-badge {
    display: none !important;
  }

  /* 즐겨찾기 버튼 모바일 최적화 */
  .category-card .btn-favorite {
    position: absolute;
    top: 14px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  [data-bs-theme="dark"] .category-card .btn-favorite {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .category-card .btn-favorite i {
    font-size: 0.7rem;
    color: var(--text-secondary);
  }

  .category-card .btn-favorite:hover,
  .category-card .btn-favorite.active {
    background: rgba(255, 193, 7, 0.9);
    border-color: #ffc107;
  }

  .category-card .btn-favorite:hover i,
  .category-card .btn-favorite.active i {
    color: #fff;
  }

  /* NEW 인디케이터 모바일 최적화 */
  .category-card .new-indicator {
    width: 35px;
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: #ff4757;
    color: white;
    font-weight: 600;
    z-index: 5;
  }
}

/* ==========================================================================
   PERFORMANCE & ACCESSIBILITY
   ========================================================================== */

/* 성능 최적화 */
.modern-card-wrapper:nth-child(n+13) {
  animation-delay: 0s;
}

/* 부드러운 스크롤 */
html {
  scroll-behavior: smooth;
}

/* 접근성 - 포커스 상태 */
.search-input-main:focus,
.modern-card:focus-within,
.btn-favorite:focus {
  outline: 2px solid #ffb3a6;
  outline-offset: 2px;
}

.onair-card .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
}

.onair-card .empty-state i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.onair-blur {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.onair-blur img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.onair-more-btn {
  text-align: center;
  margin-top: 1rem;
}

.onair-more-btn .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  transition: var(--transition);
  background: var(--primary-gradient);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.onair-more-btn .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.onair-more-btn .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 127, 80, 0.4);
  color: white;
  text-decoration: none;
}

.onair-more-btn .btn:hover::before {
  left: 100%;
}

.onair-more-btn .btn i {
  margin-right: 0.5rem;
}

/* OnAir Button Mobile Optimization */
.btn-onair-more {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  gap: 0.3rem;
}

.btn-onair-more i {
  font-size: 0.65rem;
}

/* Partners link */
.partners_link_wrap {
  font-family: 'MaplestoryOTFLight', 'NEXON Lv2 Gothic', 'Noto Sans KR', sans-serif;
  margin-top: 54px;
}

/* 카테고리별 아이콘 설정 */
.section-title i {
  color: #ff9980;
  font-size: 1.5rem;
  padding: 0.5rem;
  background: rgba(255, 153, 128, 0.08);
  border-radius: 8px;
  transition: var(--transition);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 카테고리 이미지 아이콘 스타일 */
.section-title img {
  padding: 0.5rem;
  background: rgba(255, 153, 128, 0.08);
  border-radius: 8px;
  transition: var(--transition);
  object-fit: contain;
  display: inline-block;
}

.section-title:hover i {
  background: rgba(255, 153, 128, 0.15);
  transform: scale(1.1);
}

.section-title:hover img {
  background: rgba(255, 153, 128, 0.15);
  transform: scale(1.1);
}

/* Compact section styles for minimal layout */
.compact-section {
  padding: 1rem 1.25rem !important;
  margin-bottom: 1.5rem !important;
}

.compact-header {
  margin-bottom: 1rem !important;
}

.compact-title {
  font-size: 1rem !important;
  margin-bottom: 0 !important;
}

.compact-title i {
  font-size: 0.9rem !important;
  margin-right: 0.5rem !important;
}

.compact-card {
  min-height: auto !important;
}

.compact-content {
  min-height: 40px !important;
  padding: 0.75rem !important;
}

.compact-content .compact-title {
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
}

/* Search section specific compact styles */
.search-section.compact-section {
  padding: 1rem 1.25rem 1.25rem 1.25rem !important;
}

.search-section.compact-section .search-container-main {
  margin-top: 0 !important;
}


/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
  .compact-section {
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .compact-header {
    margin-bottom: 0.75rem !important;
  }
  
  .compact-title {
    font-size: 1rem !important;
  }
  
  .compact-content {
    padding: 0.5rem !important;
  }
  
  .compact-content .compact-title {
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   통합 섹션 스타일 (Integrated Section)
   ========================================================================== */

/* 통합 섹션 컨테이너 */
.integrated-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
}

[data-bs-theme="dark"] .integrated-section {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: var(--shadow-color);
}

/* 하위 섹션 구분 */
.integrated-subsection {
  margin-bottom: 0.5rem;
}

.integrated-subsection:last-child {
  margin-bottom: 0;
}

/* 하위 섹션 헤더 */
.subsection-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.subsection-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 검색 영역 */
.search-area .search-container-main {
  margin-bottom: 0;
}

/* 태그 영역 */
.tags-area .tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* 즐겨찾기 및 인기 링크 영역 */
.favorites-area,
.popular-area {
  /* 카드 그리드는 기존 스타일 유지 */
}

/* 인기링크 카드에서 즐겨찾기 버튼 제거 */
.popular-card.no-favorite {
  position: relative;
}

.popular-card.no-favorite .btn-favorite {
  display: none;
}

.popular-card.no-favorite .modern-card-content {
  padding-right: 1rem; /* 즐겨찾기 버튼 공간 제거 */
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  #swiper_speaker_main .swiper-slide {
    justify-content: start;
  }

  .integrated-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .integrated-subsection {
    margin-bottom: 1rem;
  }
  
  .subsection-header {
    margin-bottom: 0.75rem;
  }
  
  .subsection-label {
    font-size: 0.85rem;
  }
  
  .tags-area .tags-wrapper {
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .integrated-section {
    padding: 0.8rem;
  }
  
  .integrated-subsection {
    margin-bottom: 0.8rem;
  }
  
  .subsection-header {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
  }
}

/* ==========================================================================
   모바일 네비게이션 시스템
   ========================================================================== */

/* 모바일에서 기존 Bootstrap 드롭다운 숨기기 */
@media (max-width: 1399px) {
  .modern-navbar .navbar-nav .dropdown-menu {
    display: none !important;
  }
  
  .modern-navbar .navbar-nav .dropdown:hover .dropdown-menu {
    display: none !important;
  }
  
  /* Bootstrap의 기본 navbar-collapse 숨기기 */
  .modern-navbar .navbar-collapse {
    display: none !important;
  }
  
  /* 햄버거 메뉴 버튼은 계속 보이게 */
  .modern-navbar .navbar-toggler {
    display: block !important;
  }
}

/* 모바일 전체화면 네비게이션 오버레이 */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-bs-theme="dark"] .mobile-nav-overlay {
  background: rgba(17, 24, 39, 0.95);
}

.mobile-nav-overlay.show {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* 모바일 네비게이션 헤더 */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.mobile-nav-logo img {
  width: 30px;
  height: 30px;
}

.mobile-nav-logo h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'MaplestoryOTFBold', 'NEXON Lv2 Gothic', 'Noto Sans KR', sans-serif;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  background: rgba(255, 153, 128, 0.1);
  color: #ff9980;
}

/* 모바일 네비게이션 컨텐츠 */
.mobile-nav-content {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 모바일 네비게이션 아이템들 */
.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .mobile-nav-item {
  border-bottom-color: var(--border-color);
}

/* OnAir 링크 (특별 스타일) */
.mobile-nav-onair {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: white;
  background: var(--primary-gradient);
  margin: 0 1rem 1rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
}

.mobile-nav-onair:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

.mobile-nav-onair img {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
}

/* 카테고리 아코디언 버튼 */
.mobile-category-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-category-btn:hover {
  background: rgba(255, 153, 128, 0.05);
  color: #ff9980;
}

.mobile-category-btn i {
  color: #ff9980;
  transition: transform 0.3s ease;
}

.mobile-category-btn.expanded i {
  transform: rotate(180deg);
}

/* 카테고리 서브메뉴 */
.mobile-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .mobile-category-content {
  background: rgba(0, 0, 0, 0.1);
}

.mobile-category-content.expanded {
  max-height: 500px;
}

.mobile-category-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .mobile-category-link {
  border-bottom-color: var(--border-color);
}

.mobile-category-link:last-child {
  border-bottom: none;
}

.mobile-category-link:hover {
  color: #ff9980;
  background: rgba(255, 153, 128, 0.08);
  text-decoration: none;
}

.mobile-category-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 0.75rem;
}

.mobile-link-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.mobile-link-badges {
  display: flex;
  gap: 0.25rem;
}

.mobile-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: white;
}

.mobile-badge.new {
  background: #22c55e;
}

.mobile-badge.hot {
  background: #ef4444;
}

/* 모바일 네비게이션 푸터 */
.mobile-nav-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .mobile-nav-footer {
  background: rgba(0, 0, 0, 0.1);
}

.mobile-darkmode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
}

.mobile-darkmode-toggle span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* 모바일에서만 보이도록 */
@media (min-width: 1400px) {
  .mobile-nav-overlay {
    display: none !important;
  }
}

/* 스크롤바 스타일링 */
.mobile-nav-content::-webkit-scrollbar {
  width: 6px;
}

.mobile-nav-content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-nav-content::-webkit-scrollbar-thumb {
  background: rgba(255, 153, 128, 1);
  border-radius: 3px;
}

.mobile-nav-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 153, 128, 0.8);
}

/* 애니메이션 효과 */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-category-content .mobile-category-link {
  animation: slideInRight 0.3s ease;
  animation-fill-mode: both;
}

.mobile-category-content .mobile-category-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-category-content .mobile-category-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-category-content .mobile-category-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-category-content .mobile-category-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-category-content .mobile-category-link:nth-child(5) { animation-delay: 0.3s; }