/* ==========================================================================
   ONAIR MODERN STYLES
   OnAir 페이지 전용 모던 디자인 (메인 페이지 스타일과 분리)
   ========================================================================== */

/* OnAir 페이지 전용 CSS 변수 */
#onair {
  /* CSS Variables that are not defined in modern-main.css but needed for OnAir */
  --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.15);
  --bg-hover: rgba(255, 179, 166, 0.08);
  --badge-bg: rgba(255, 255, 255, 0.9);
  
  /* OnAir page container styles */
  background: var(--bg-primary);
  min-height: 100vh;
  transition: background 0.3s ease;
}

/* Dark mode OnAir variables */
[data-bs-theme="dark"] #onair {
  --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.4);
  --bg-hover: rgba(255, 179, 166, 0.12);
  --badge-bg: rgba(42, 42, 42, 0.9);
}

/* Hero Section - 메인 페이지와 동일한 디자인 적용 */
.hero-section-new {
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

.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;
}

/* OnAir 카드 전용 스타일 */
.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 .compact-content {
  padding: 0.35rem !important;
}

#onair .compact-content .img_new_thumb {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5rem;
}

#onair .favorite-card .modern-card-content .modern-card-title,
#onair .new-card .modern-card-content .modern-card-title {
  margin-top: 0.4rem;
}

.favorite-card .modern-card-content,
.new-card .modern-card-content {
  flex-direction: row;
  justify-content: flex-start;
}

.favorite-card .modern-card-content .modern-card-title,
.new-card .modern-card-content .modern-card-title {
  margin-top: 0.5rem;
}

.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: 220px;
  object-fit: cover;
}

.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);
}

/* Highlight text 스타일 */
.highlight-text {
  color: #ff9980;
}


/* OnAir Popular Tags */
.onair-tags-section {
  margin: 2rem 0;
}

.onair-tags-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.onair-tag-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.onair-tag {
  background: var(--secondary-gradient);
  color: white;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(255, 127, 80, 0.2);
}

.onair-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 127, 80, 0.3);
  background: var(--primary-gradient);
}

/* OnAir Search Section */
.onair-search-section {
  margin-bottom: 2rem;
}

.onair-search-container {
  position: relative;
}

.onair-search-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.onair-search-input:focus {
  outline: none;
  border-color: #ff9980;
  box-shadow: 0 0 0 3px rgba(255, 153, 128, 0.1);
  background: var(--bg-primary);
}

.onair-search-input::placeholder {
  color: var(--text-secondary);
}

/* OnAir Favorites Section */
.onair-favorites-section {
  margin-bottom: 2rem;
}

.onair-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onair-section-title i {
  color: #ff9980;
  font-size: 1.2rem;
}

/* OnAir Filter Section */
.onair-filter-section {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
}

.onair-filter-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.onair-filter-current {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.onair-filter-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.onair-dropdown {
  flex: 1;
  min-width: 200px;
}

.onair-dropdown .btn {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onair-dropdown .btn:hover,
.onair-dropdown .btn:focus {
  border-color: #ff9980;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(255, 153, 128, 0.1);
}

.onair-dropdown .dropdown-menu {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dropdown);
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

.onair-dropdown .dropdown-menu li label {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  margin: 0;
  border-radius: 6px;
  transition: background 0.2s ease;
  cursor: pointer;
  color: var(--text-primary);
}

.onair-dropdown .dropdown-menu li label:hover {
  background: var(--bg-hover);
}

/* OnAir Live Toggle */
.onair-live-toggle {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.onair-live-toggle-label {
  color: var(--text-primary);
  font-weight: 500;
}

/* OnAir Creator Cards */
.onair-creators-section {
  margin-bottom: 2rem;
}

.onair-creator-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-light);
  height: 100%;
  cursor: pointer;
}

.onair-creator-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 153, 128, 0.3);
}

.onair-creator-card .card__thumb.onair {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  object-fit: cover;
}

.onair-creator-card:hover .card__thumb.onair {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.onair-creator-card .card__thumb.onair img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.onair-creator-card .card__body.onair {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onair-creator-card .card__title.simply {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.onair-creator-card .badge.onair {
  background: var(--badge-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin: 0.1rem 0.2rem 0.1rem 0;
  border-radius: 12px;
}

.onair-creator-card .card__platform {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.onair-creator-card .img_platform {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.onair-creator-card .img_platform:hover {
  transform: scale(1.1);
}

.onair-creator-card .img_platform.live_onair {
  box-shadow: 0 0 8px 2px #ff4444;
  background-color: #ff4444;
  border-radius: 50%;
}

/* OnAir Live Banner */
.thumb_onair_banner {
  position: absolute;
  background: linear-gradient(45deg, #ff4444, #ff6666);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  bottom: 8px;
  left: 8px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* OnAir Favorite Button */
.onair-creator-card .btn_favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
}

.onair-creator-card .btn_favorite:hover {
  background: var(--primary-gradient);
  border-color: #ff9980;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 153, 128, 0.4);
}

/* OnAir Compact Cards for Favorites */
.onair-favorite-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-light);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.onair-favorite-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 153, 128, 0.3);
}

.onair-favorite-card .img_new_thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.onair-favorite-card .card__title.simply {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.onair-favorite-card .btn_favorite {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #ff9980;
  border: none;
  color: white;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OnAir Footer Info */
.onair-footer-info {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-light);
}

.onair-footer-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.onair-footer-info li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.onair-footer-info li strong {
  color: var(--text-primary);
}

.onair-footer-info a {
  color: #ff9980;
  text-decoration: none;
  transition: color 0.2s ease;
}

.onair-footer-info a:hover {
  color: #ff7f66;
  text-decoration: underline;
}

/* 기존 OnAir CSS와의 호환성을 위한 스타일 */
.img_filter {
  width: 14px !important;
  height: 14px !important;
  vertical-align: text-top;
  margin: 0 10px;
  filter: contrast(0.1);
}

.filter_list .img_remove {
  width: 0.75em !important;
  height: 0.75em !important;
  vertical-align: middle;
  filter: brightness(0.7);
}

.filter_list .img_remove:hover {
  filter: brightness(0.2);
  cursor: pointer;
}

.img_icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.badge_footer {
  background: var(--badge-bg);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  margin: 0.1rem 0.2rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn_remove {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn_remove:hover {
  opacity: 1;
}


.bg_purple { background-color: #8e44ad !important; color: white !important; }
.bg_hotpink { background-color: #e91e63 !important; color: white !important; }
.bg_notice { background-color: #ff9500 !important; color: white !important; }
.bg_dark_green { background-color: #27ae60 !important; color: white !important; }
.bg_dark_blue { background-color: #3498db !important; color: white !important; }

/* Text Switch (Live Toggle) */
.text_switch {
  position: relative;
  width: 80px;
  height: 36px;
  cursor: pointer;
}

.text_switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom_slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-color);
  transition: 0.4s;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.text_switch_txt {
  font-size: 0.7rem;
  font-weight: 600;
  transition: 0.3s;
  z-index: 2;
}

.text_switch_on {
  color: var(--text-secondary);
}

.text_switch_off {
  color: var(--text-primary);
}

.text_switch input:checked + .custom_slider {
  background: #ff9980;
}

.text_switch input:checked + .custom_slider .text_switch_on {
  color: white;
}

.text_switch input:checked + .custom_slider .text_switch_off {
  color: rgba(255, 255, 255, 0.7);
}

.custom_slider::before {
  content: "";
  position: absolute;
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text_switch input:checked + .custom_slider::before {
  transform: translateX(44px);
}

/* Form Styles */
.form-select {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  padding: 0.5rem 2rem 0.5rem 1rem;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: #ff9980;
  box-shadow: 0 0 0 3px rgba(255, 153, 128, 0.1);
  background: var(--card-bg);
  color: var(--text-primary);
}

/* Job Class Icons */
.img_checkbox_job {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5rem;
}

/* Job Category Colors */
.bg-light-red { background-color: rgba(231, 76, 60, 0.1) !important; }
.bg-light-blue { background-color: rgba(52, 152, 219, 0.1) !important; }
.bg-light-green { background-color: rgba(46, 204, 113, 0.1) !important; }
.bg-light-purple { background-color: rgba(155, 89, 182, 0.1) !important; }
.bg-light-gray { background-color: rgba(149, 165, 166, 0.1) !important; }

/* Responsive Design */
@media (max-width: 768px) {
  .onair-hero-section {
    padding: 1rem 0;
  }
  
  .onair-hero-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .onair-filter-controls {
    flex-direction: column;
  }
  
  .onair-dropdown {
    width: 100%;
    min-width: auto;
  }
  
  .onair-tags-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .onair-tag-label {
    margin-bottom: 0.5rem;
  }

  .onair-creator-card .card__thumb.onair {
    width: 80px;
    height: 80px;
    margin: 0.75rem;
  }

  #swiper_onair {
    height: 180px;
  }

  #swiper_blur {
    height: 180px;
  }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .onair-hero-card,
[data-bs-theme="dark"] .onair-swiper-container,
[data-bs-theme="dark"] .onair-speaker-section,
[data-bs-theme="dark"] .onair-tags-wrapper,
[data-bs-theme="dark"] .onair-filter-section,
[data-bs-theme="dark"] .onair-creator-card,
[data-bs-theme="dark"] .onair-favorite-card,
[data-bs-theme="dark"] .onair-footer-info {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-bs-theme="dark"] .onair-search-input,
[data-bs-theme="dark"] .onair-dropdown .btn,
[data-bs-theme="dark"] .form-select {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-bs-theme="dark"] .onair-dropdown .dropdown-menu {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-bs-theme="dark"] .onair-dropdown .dropdown-menu li label {
  color: var(--text-primary);
}

[data-bs-theme="dark"] .custom_slider {
  background: var(--border-color);
}

[data-bs-theme="dark"] .notice_list {
  border-bottom-color: var(--border-color);
}

/* Animation for smooth transitions */
.onair-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.onair-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.onair-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: #ff9980;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 필터 섹션 전용 overflow 처리 */
#onair .filter-section {
  overflow: visible !important;
  position: relative;
  z-index: 100;
}

#onair .filter-section .onair-filter-controls,
#onair .filter-section .onair-dropdown {
  overflow: visible !important;
  position: relative;
}

/* dropdown 컨테이너의 z-index 설정 */
#onair .filter-section .onair-dropdown {
  z-index: 200;
}

/* dropdown 메뉴가 제대로 보이도록 높은 z-index 설정 */
#onair .dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
}

/* dropdown이 열렸을 때 부모 컨테이너도 높은 z-index */
#onair .filter-section .onair-dropdown.show,
#onair .filter-section .onair-dropdown .dropdown.show {
  z-index: 300;
}

/* ==========================================================================
   통합된 검색 & 태그 섹션 스타일
   ========================================================================== */

/* 태그 섹션 */
.tags-section {
  margin-top: 1rem;
}

.tags-header {
  margin-bottom: 0.75rem;
}

.tags-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.tag-item:hover {
  background: var(--bg-hover);
  border-color: #ff9980;
  color: #ff9980;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 153, 128, 0.2);
}

.tag-item:active {
  transform: translateY(0);
  background: rgba(255, 153, 128, 0.1);
}

[data-bs-theme="dark"] .tag-item {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-bs-theme="dark"] .tag-item:hover {
  background: var(--bg-hover);
  border-color: #ff9980;
  color: #ff9980;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .tags-wrapper {
    gap: 0.4rem;
  }
  
  .tag-item {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .tags-header {
    margin-bottom: 0.5rem;
  }
  
  .tags-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .tags-wrapper {
    gap: 0.3rem;
  }
  
  .tag-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .search-container-main {
    margin-bottom: 1rem !important;
  }
}

/* ==========================================================================
   OnAir 페이지 통합 섹션 추가 스타일
   ========================================================================== */

/* OnAir 페이지의 통합 섹션 미세 조정 */
#onair .integrated-section {
  /* OnAir 페이지에서 필요한 추가 스타일 */
}

/* OnAir 페이지 태그 영역 최적화 */
#onair .tags-area .tags-wrapper {
  /* 기본 스타일은 modern-main.css에서 상속 */
  margin-bottom: 1.5rem;
}

/* OnAir 페이지 즐겨찾기 카드 특별 스타일 */
#onair .favorites-area .favorite-card .img_new_thumb {
  /* 이미 인라인 스타일로 적용되어 있으므로 추가 조정 없음 */
}

/* OnAir 페이지 반응형 추가 조정 */
@media (max-width: 768px) {
  #onair .integrated-section {
    /* 모바일에서 OnAir 페이지 특별 조정 */
  }
  
  #onair .tags-area .tags-wrapper {
    margin-top: 0.4rem;
  }
}

@media (max-width: 480px) {
  #onair .tags-area .tags-wrapper {
    margin-top: 0.3rem;
  }
}

/* ==========================================================================
   필터 설정 영역 UI/UX 개선
   ========================================================================== */

/* 필터 상태 섹션 */
.filter-status-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(var(--bs-success-rgb), 0.05);
  border: 1px solid rgba(var(--bs-success-rgb), 0.15);
  border-radius: var(--border-radius);
}

.filter-status-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-status-label {
  font-size: 0.9rem;
}

/* 필터 컨트롤 섹션 */
.filter-controls-section {
  padding: 1rem;
  background: rgba(var(--bs-primary-rgb), 0.03);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  border-radius: var(--border-radius);
}

.filter-controls-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-controls-label {
  font-size: 0.9rem;
}

/* 필터 드롭다운 개선 */
.onair-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.onair-dropdown .btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  min-width: 120px;
  text-align: left;
}

.onair-dropdown .btn:hover,
.onair-dropdown .btn:focus {
  background: var(--bg-hover);
  border-color: #ff9980;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 153, 128, 0.15);
}

.onair-dropdown .btn i {
  color: #ff9980;
  width: 16px;
}

/* 생방송 토글 개선 */
.onair-live-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
}

.onair-live-toggle:hover {
  background: var(--bg-hover);
  border-color: #ff9980;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 153, 128, 0.15);
}

.onair-live-toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

/* 드롭다운 메뉴 개선 */
.onair-dropdown .dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 200px;
}

.onair-dropdown .dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.onair-dropdown .dropdown-item:hover {
  background: var(--bg-hover);
  color: #ff9980;
}

.onair-dropdown .dropdown-item i {
  width: 20px;
  color: #ff9980;
}

/* 체크박스 메뉴 스타일 개선 */
.onair-dropdown .checkbox-menu li label {
  padding: 0.4rem 1rem;
  margin: 0;
  width: 100%;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.onair-dropdown .checkbox-menu li label:hover {
  background: var(--bg-hover);
}

/* 현재 필터 배지 개선 */
.onair-filter-current .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  margin-right: 0.5rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.onair-filter-current .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 다크 모드 지원 */
[data-bs-theme="dark"] .filter-status-section {
  background: rgba(var(--bs-success-rgb), 0.1);
  border-color: rgba(var(--bs-success-rgb), 0.2);
}

[data-bs-theme="dark"] .filter-controls-section {
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.15);
}

[data-bs-theme="dark"] .onair-dropdown .btn,
[data-bs-theme="dark"] .onair-live-toggle {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-bs-theme="dark"] .onair-dropdown .btn:hover,
[data-bs-theme="dark"] .onair-live-toggle:hover {
  background: var(--bg-hover);
  border-color: #ff9980;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .filter-status-section,
  .filter-controls-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .filter-status-header,
  .filter-controls-header {
    margin-bottom: 0.75rem;
  }
  
  .onair-filter-controls {
    gap: 0.5rem;
  }
  
  .onair-dropdown .btn {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .onair-live-toggle {
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
  }
  
  .onair-live-toggle-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .filter-status-section,
  .filter-controls-section {
    padding: 0.5rem;
  }
  
  .onair-filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .onair-dropdown .btn,
  .onair-live-toggle {
    width: 100%;
    justify-content: space-between;
  }
  
  .onair-dropdown .dropdown-menu {
    min-width: 100%;
  }
}

/* ==============================================
   OnAir Data Container - Modern Card Redesign
   data_container 영역의 모던 카드 디자인
   ============================================== */

/* OnAir 페이지 데이터 컨테이너 전용 카드 스타일 */
#onair #data_container .card.simply {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px var(--shadow-color);
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  height: 120px; /* 기존 높이 유지 */
}

[data-bs-theme="dark"] #onair #data_container .card.simply {
  background: var(--card-bg) !important;
  border-color: var(--border-color);
  box-shadow: 0 6px 20px var(--shadow-color);
}

#onair #data_container .card.simply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-color);
  border-color: rgba(255, 127, 80, 0.3);
}

[data-bs-theme="dark"] #onair #data_container .card.simply:hover {
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: rgba(255, 127, 80, 0.4);
}

/* 썸네일 영역 모던화 */
#onair #data_container .card__thumb.onair {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  margin: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

#onair #data_container .card__thumb.onair.thumb_onair {
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.8), 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.8), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% { 
    box-shadow: 0 0 0 3px rgba(255, 69, 58, 1), 0 4px 16px rgba(255, 69, 58, 0.3);
  }
}

#onair #data_container .card__thumb.onair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

#onair #data_container .card.simply:hover .card__thumb.onair img {
  transform: scale(1.05);
}

/* 컨텐츠 영역 모던화 */
#onair #data_container .card__body.onair {
  width: calc(100% - 120px);
  padding: 15px 15px 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

#onair #data_container .card__body.onair .ms-2 {
  margin-left: 0 !important;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 배지 영역을 한 줄로 강제하기 위한 간단한 방법 */
#onair #data_container .card__body.onair .ms-2 {
  display: block !important;
  overflow: hidden;
  position: relative;
}

/* 제목 스타일 유지 */
#onair #data_container .card__title.simply {
  display: block;
  margin-bottom: 6px;
}

/* 배지들을 한 줄에 배치 */
#onair #data_container .badge.onair {
  float: left;
  margin-right: 4px;
  margin-bottom: 0;
}

/* 플랫폼 영역은 하단에 고정 */
#onair #data_container .card__platform {
  clear: both;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* 제목 스타일 개선 */
#onair #data_container .card__title.simply {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'NEXON Lv2 Gothic', 'Noto Sans KR', sans-serif;
}

[data-bs-theme="dark"] #onair #data_container .card__title.simply {
  color: var(--text-primary);
}

/* 배지 스타일 개선 */
#onair #data_container .badge.onair {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

[data-bs-theme="dark"] #onair #data_container .badge.onair {
  background: var(--glass-bg);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

#onair #data_container .badge.onair .img_icon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

/* 플랫폼 아이콘 영역 개선 */
#onair #data_container .card__platform {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

#onair #data_container .card__platform .img_platform {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  opacity: 0.8;
}

#onair #data_container .card__platform .img_platform:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

#onair #data_container .card__platform .img_platform.live_onair {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 69, 58, 0.6), 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: platformPulse 2s infinite;
}

@keyframes platformPulse {
  0%, 100% { 
    box-shadow: 0 0 0 2px rgba(255, 69, 58, 0.6), 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  50% { 
    box-shadow: 0 0 0 2px rgba(255, 69, 58, 0.9), 0 4px 10px rgba(255, 69, 58, 0.3);
  }
}

/* 즐겨찾기 버튼 모던화 */
#onair #data_container .btn_favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 10;
}

[data-bs-theme="dark"] #onair #data_container .btn_favorite {
  background: var(--glass-bg);
  border-color: var(--border-color);
}

#onair #data_container .btn_favorite i {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

#onair #data_container .btn_favorite:hover {
  background: rgba(255, 127, 80, 0.1);
  border-color: rgba(255, 127, 80, 0.3);
}

#onair #data_container .btn_favorite:hover i {
  color: rgba(255, 127, 80, 0.9);
}

#onair #data_container .btn_favorite.on {
  background: var(--primary-gradient);
  border-color: rgba(255, 127, 80, 0.5);
  transform: translateY(-45%);
}

#onair #data_container .btn_favorite.on i {
  color: white;
}

/* ON AIR 인디케이터 - 이미지를 가리지 않는 방식 */
#onair #data_container .thumb_onair_banner {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 16px;
  height: 18px;
  background: linear-gradient(135deg, #ff453a, #ff6347);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(255, 69, 58, 0.4);
  animation: onairPulse 2s infinite;
}

[data-bs-theme="dark"] #onair #data_container .thumb_onair_banner {
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.9), 0 2px 8px rgba(255, 69, 58, 0.4);
}

/* ON AIR 텍스트 제거하고 시각적 인디케이터로만 표현 */
#onair #data_container .thumb_onair_banner:empty::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: onairInner 2s infinite;
}

@keyframes onairPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(255, 69, 58, 0.4);
  }
  50% { 
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(255, 69, 58, 0.6);
  }
}

@keyframes onairInner {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* NEW 아이콘 모던화 */
#onair #data_container .position-absolute.mt-1 {
  top: 8px !important;
  right: 50px !important;
  margin-top: 0 !important;
  z-index: 8;
}

#onair #data_container .position-absolute.mt-1 img {
  width: 20px !important;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  #onair #data_container .card.simply {
    height: 110px;
  }
  
  #onair #data_container .card__thumb.onair {
    width: 80px;
    height: 80px;
    margin: 15px 10px;
  }
  
  #onair #data_container .card__body.onair {
    width: calc(100% - 110px);
    padding: 15px 10px 15px 0;
  }
  
  #onair #data_container .card__title.simply {
    font-size: 1rem;
  }
  
  #onair #data_container .badge.onair {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
  
  #onair #data_container .card__platform .img_platform {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  #onair #data_container .card.simply {
    height: 100px;
  }
  
  #onair #data_container .card__thumb.onair {
    width: 70px;
    height: 70px;
    margin: 15px 10px;
  }
  
  #onair #data_container .card__body.onair {
    width: calc(100% - 100px);
    padding: 12px 8px 12px 0;
  }
  
  #onair #data_container .card__title.simply {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  #onair #data_container .badge.onair {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    margin-right: 4px;
    margin-bottom: 3px;
  }
  
  #onair #data_container .card__platform .img_platform {
    width: 18px;
    height: 18px;
  }
  
  #onair #data_container .btn_favorite {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }
  
  #onair #data_container .btn_favorite i {
    font-size: 0.8rem;
  }
} 