#center-media-wrap {
  padding: 40px 0 100px;
}

/* 히어로 섹션 */
.hero_area {
  position: relative;
  width: 100%;
  height: 400px;
  background: url('../../img/sub/media_hero_bg.webp') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero_overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero_text_box {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero_title {
  color: #fff;
  font-size: 65px;
  font-weight: 700;
}

/* 탭 스위치 */
.media_tab_wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 50px 0;
}

.tab_btn {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s;
}

.tab_btn.active {
  background: #005bac !important;
  border-color: #005bac !important;
  color: #fff !important;
}

/* 섹션 노출 제어 */
.media_content_area {
  display: none;
}

.media_content_area.active {
  display: block;
}

/* 관리자 글쓰기 버튼 */
.admin_write_box {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.btn_admin_write {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2c3e50;
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* 데이터 없음 메시지 */
.no_data_msg {
  text-align: center;
  padding: 100px 0;
  color: #888;
  font-size: 18px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px dashed #ddd;
}

/* 영상 그리드 */
.video_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video_card {
  position: relative;
}

.card_link {
  text-decoration: none;
}

.thumb_box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.v_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hover_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.hover_overlay span {
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
}

.video_card:hover .hover_overlay {
  opacity: 1;
}

.video_card:hover .v_img {
  transform: scale(1.05);
}

.info_box {
  padding: 15px 5px;
}

.v_title {
  font-size: 16px;
  color: #222;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 영상 관리 버튼 */
.admin_controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  gap: 5px;
}

.admin_controls button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

.btn_edit {
  background: #3498db;
}

.btn_del {
  background: #e74c3c;
}

/* 기사 리스트 */
.news_list {
  list-style: none;
  padding: 0;
  border-top: 2px solid #333;
}

.news_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10px;
  border-bottom: 1px solid #eee;
}

.news_link {
  text-decoration: none;
  color: #444;
  font-size: 17px;
  flex: 1;
}

.news_link:hover .news_subject {
  text-decoration: underline;
}

.admin_inline_btns {
  display: flex;
  gap: 10px;
}

.admin_inline_btns button {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  cursor: pointer;
}

/* 더보기 버튼 */
.more_btn_box {
  margin-top: 50px;
  text-align: center;
}

.btn_more {
  padding: 15px 60px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
  .video_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .hero_area {
    height: 400px;
  }

  .hero_title {
    font-size: 28px;
  }

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

  .tab_btn {
    padding: 12px 25px;
    font-size: 16px;
  }

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