
/* Modern Styling Enhancements */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: 90%;
  animation: modalFadeIn 0.25s ease-out;
}
.video-content {
  width: 800px;
  background: #000;
}
.info-content {
  width: 500px;
  padding: 10px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}
.modal-close:hover {
  color: #333;
}
.video-content .modal-close {
  color: #fff;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Video Play Trigger on Card */
.video-play-trigger {
  position: relative;
  display: block;
}
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 42px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.video-play-trigger:hover .play-overlay {
  opacity: 1;
  transform: scale(1.05);
}

/* Mobile Drawer Transitions */
.mobile_menu_wrap {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  box-shadow: -4px 0 15px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile_menu_wrap.active {
  right: 0 !important;
  display: block !important;
}
#menu_active_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 99990;
}
#menu_active_bg.active {
  display: block !important;
}

.m_sub_ul {
  display: none;
}
.m_sub_ul.open {
  display: block !important;
}
.m_category_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* History Decade Switcher */
.history_cate_area {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  border-bottom: 2px solid #297cc8;
  padding-bottom: 10px;
}
.history_cate_btn {
  padding: 8px 18px;
  font-weight: bold;
  border-radius: 6px;
  background: #f1f3f5;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s;
}
.history_cate_btn.active, .history_cate_btn:hover {
  background: #297cc8;
  color: #fff;
}
.decade-panel {
  padding: 10px 0;
}
