  /**
   * [CSS_Media.html] 미디어 모달 / 헤더 버튼 / 설정 미리보기 스타일
   * CSS_Dashboard.html에서 분리됨.
   */
  /* ════════════════ 전체화면 미디어 모달 ════════════════ */

  .media-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .media-overlay.active {
    opacity: 1;
  }

  .media-overlay-inner {
    position: relative;
    width: 95vw;
    height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 닫기 버튼 */
  .media-close-btn {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
  }

  .media-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  /* 이미지 */
  .media-overlay-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  /* 동영상 iframe */
  .media-overlay-video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
  }

  .media-overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── 헤더 미디어 버튼 ── */
  .dash-media-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    width: 38px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .dash-media-btn:hover {
    background: #444;
    border-color: #666;
    transform: scale(1.05);
  }

  /* ── 설정 탭 미디어 미리보기 행 ── */
  .media-preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f9f0;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .media-preview-label {
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
    flex: 1;
  }

