:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1c2230;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #14539a;
  --accent-soft: #e8f0fb;
  --chip: #eef1f5;
  --radius: 10px;
}

* { box-sizing: border-box; }

a {
  text-decoration: none;
  color: inherit;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.Header {
  height: 70px;
  width: 100%;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #ccc;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background: #fff;
}
.header-lastImg {
  justify-self: start;
  display: flex;
  align-items: center;
  height: 100%;
}
.Header img {
  width: 110px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
  display: block;
}
.header-ul {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: #111;
  grid-column: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-ul li { display: flex; }
.header-ul a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
.header-ul a:hover {
  background: #f0f2f5;
  cursor: pointer;
}
/* 오른쪽 문의/CTA */
.header-phone {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 3;
}

.header-phone p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

.header-call {
  display: block;
  text-align: center;
  border-right: 1px solid black;
  padding-right: 10px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding-left: 10px;
}
.header-cta:hover { opacity: 0.9; }
.header-cta-img {
  width: 130px;
  height: 50px;
  object-fit: contain;
  display: block;
}
.menu-btn {
  display: none;
  border: none;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  justify-self: center;
  grid-column: 2;
}
.menu-btn:hover { background: #f0f2f5; }
.menu-btn .bar {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  display: block;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.mobile-nav.show { display: block; }
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(300px, 85vw);
  background: #fff;
  padding: 16px 14px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}
.mobile-nav.show .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.mobile-nav-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  color: #111;
}
.mobile-nav-close:hover { background: #f3f4f6; }
.mobile-nav-list {
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.mobile-nav-list a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
}
.mobile-nav-list a:hover { background: #f0f2f5; }

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 2px 16px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.mode-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}
.mode-badge--loading { background: #eef1f5; color: var(--muted); }
.mode-badge--mock { background: #fbf1dc; color: #8a6410; border-color: #f0dba8; }
.mode-badge--live { background: #e3f6ec; color: #147a4c; border-color: #b7e6cc; }
.mode-badge--federated { background: #eee7fb; color: #5b3aa8; border-color: #d7c8f2; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 70px 20px 60px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.settings-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.settings-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.settings-row:last-of-type { margin-bottom: 0; }
.settings-row select,
.settings-row input,
.settings-row button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.settings-row input { flex: 1; min-width: 160px; }
#applySettingsBtn {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
#applySettingsBtn:hover { background: #0f3f78; }
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.settings-status {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 0;
  white-space: pre-line;
}
.settings-status.error { color: #b3261e; font-weight: 600; }
.settings-status.success { color: #147a4c; font-weight: 600; }

.token-warning {
  font-size: 12px;
  color: #8a5a00;
  background: #fff6e5;
  border: 1px solid #f2d9a0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 10px 0 0;
  line-height: 1.5;
}

.forget-btn {
  margin: 4px 0 0;
  font-size: 12px;
  padding: 6px 10px;
}
.forget-btn:hover { color: #b3261e; border-color: #f2b8b5; }

.search-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.search-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

#q {
  flex: 1 1 160px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
#q:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

#searchBtn {
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#searchBtn:hover { background: #0f3f78; }

.scope-hint {
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0 0 12px;
}
.scope-hint[hidden] { display: none; }

.search-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.example-chips-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}
.example-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.example-chip:hover { background: var(--accent-soft); border-color: var(--accent); }

.playground-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.playground-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.playground-toggle:hover { background: #f8f9fb; }
.playground-toggle-arrow {
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.playground-toggle[aria-expanded="true"] .playground-toggle-arrow { transform: rotate(180deg); }
.playground-body { padding: 0 18px 18px; }
.playground-body[hidden] { display: none; }
.playground-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}
.playground-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 12px;
  margin-bottom: 14px;
}
.playground-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}
.playground-field-label input { cursor: pointer; }
.playground-url-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #10182b;
  color: #cdd6e6;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.playground-url-label { color: #7fd88f; font-weight: 700; flex-shrink: 0; }
.playground-url { white-space: pre-wrap; word-break: break-all; }
.playground-send-btn {
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.playground-send-btn:hover { background: #0f3f78; }
.playground-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.playground-response {
  margin: 12px 0 0;
  background: #10182b;
  color: #cdd6e6;
  padding: 14px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  overflow-x: auto;
  max-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
}
.playground-response[hidden] { display: none; }

.playground-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.playground-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.playground-card-thumb {
  aspect-ratio: 16 / 9;
  background: #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
}
.playground-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.playground-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.playground-card-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.playground-card-title--muted { color: var(--muted); font-weight: 500; font-style: italic; }
.playground-card-meta { font-size: 11px; color: var(--muted); }
.playground-card-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.playground-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.playground-card-tags .chip { font-size: 10px; padding: 2px 7px; }
.playground-empty {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
  padding: 16px 0;
  text-align: center;
}
.playground-raw-toggle {
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.playground-raw-toggle[hidden] { display: none; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-row[hidden] { display: none; }

.filter-row select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
}

.ghost {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.ghost:hover { color: var(--ink); border-color: #c7cdd6; }

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 2px 12px;
}

.result-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cache-freshness {
  color: var(--muted);
  font-size: 12px;
}
/* 데이터가 오래됐을수록(예: 10분 이상) 눈에 띄게 강조 — 검색 결과가 실시간이
   아니라 캐시된 스냅샷이라는 걸 사용자가 헷갈리지 않게 하기 위함 */
.cache-freshness.stale {
  color: #a05a1f;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.diag-box {
  background: #10182b;
  color: #cdd6e6;
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #111;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb .quality-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(20, 83, 154, 0.85);
  color: #fff;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.thumb .privacy-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.thumb .duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.card-stats { font-size: 11.5px; color: var(--muted); }
.card-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: #3a4250;
}
.chip--company { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
/* 검색 중일 때만 나타나는 "실제로 이래서 매칭됐어요" 표시용 태그 칩.
   카테고리 칩(showcase 기반)과 헷갈리지 않게, 눈에 덜 튀는 점선 테두리 스타일로 구분한다. */
.chip--tag { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.chip--tag.chip--matched { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.match-reason-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: -2px;
}
/* 검색어가 제목/설명 안에 실제로 어디 있는지 눈에 바로 띄게. */

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 14px;
}

.page-size-select {
  margin-left: auto;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 4px;
}
.pager[hidden] { display: none; }
.pager-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-numbers { display: flex; align-items: center; gap: 4px; }
.pager-page {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.pager-page:hover { border-color: var(--accent); color: var(--accent); }
.pager-page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: default;
}
.pager-ellipsis {
  min-width: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.last {
  display: flex;
  width: 100%;
  justify-content: space-around;
  padding: 75px 20px;
  background-color: #f5f5f5;
  box-sizing: border-box;
  align-items: center;
  font-size: 14px;
  margin-top: auto;
  flex-shrink: 0;
}
.footer-pc {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  gap: 40px;
}
.last img { width: 230px; }
.last-font { line-height: 20px; }
.last-link {
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  margin-bottom: 0.5rem;
  gap: 2px;
  list-style: none;
  padding: 0;
}
.last-link li {
  padding: 0 10px;
  border-right: 1px solid #ccc;
}
.last-link li:first-child { padding-left: 0; }
.last-link li:last-child { border-right: none; }
.last-link a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
}
.last-link a:hover { text-decoration: underline; }
.info-wrap {
  display: flex;
  gap: 43px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 10px;
}
.info-wrap ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #111;
  font-size: 13px;
  list-style: none;
  padding: 0;
}
.last-p { margin-top: 15px; font-size: 14px; color: #111; }
.footer-inner { display: none; }

@media (max-width: 1024px) {
  .header-call { display: none; }
}
@media (max-width: 960px) {
  .header-call { display: none; }
  .header-cta { height: 44px; padding-left: 0; }
  .header-cta-img { width: 100px; height: 44px; }
}
@media (max-width: 768px) {
  .Header {
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
    height: 56px;
  }
  .header-ul { display: none; }
  .menu-btn { display: inline-flex; justify-self: center; }
  .header-cta-img { width: 80px; height: 36px; display: block; }
  .header-call { display: none; }
  .wrap { padding-top: 56px; }

  .last {
    display: block;
    padding: 32px 20px;
    background-color: #f5f5f7;
    border-top: 1px solid #d2d2d7;
  }
  .footer-pc { display: none; }
  .last img { width: 130px; }
  .footer-inner { display: block; padding: 0 20px; }
  .footer-accordion-wrap { display: flex; flex-direction: column; }
  .footer-group { border-bottom: 1px solid #d2d2d7; }
  .footer-group:first-child { border-top: 1px solid #d2d2d7; }
  .footer-group-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    background: none;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: left;
  }

  .footer-group-btn:focus-visible {
    outline: 2px solid #0a84ff;
    outline-offset: 2px;
  }
  .footer-arrow {
    font-size: 12px;
    color: #6e6e73;
    transition: transform 0.25s ease;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .footer-group.open .footer-arrow { transform: rotate(180deg); }
  .footer-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .footer-group.open .footer-group-list { max-height: 300px; }
  .footer-group-list li { padding: 10px 0; font-size: 13px; color: #6e6e73; }
  .footer-group-list a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 13px;
  }
  .footer-group-list a:hover { color: #1d1d1f; }
  .footer-bottom {
    border-top: 1px solid #d2d2d7;
    padding: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .footer-bottom p { font-size: 11px; color: #6e6e73; margin: 0; line-height: 1.6; }
  .footer-copy {
    margin-top: 6px !important;
    color: #1d1d1f !important;
    font-weight: 500;
  }
}
@media (min-width: 601px) and (max-width: 905px) {
  .Header { grid-template-columns: 1fr auto 1fr; }
  .header-ul { display: none !important; }
  .menu-btn { display: flex !important; justify-self: center; }
  .header-call { display: none; }
}
@media (max-width: 480px) {
  .Header img { width: 90px; }
}

/* ===== 헤더 넘침 보정 (main_page.css와 동일하게 추가) ===== */
/* 1401px 이상은 기존 헤더 그대로 */
@media (max-width: 1400px) {
  .header-ul {
    font-size: 1.0625rem;
    gap: 1.25rem;
  }
}
/* 문의번호 블록은 1240px 이하에서 숨김 */
@media (max-width: 1240px) {
  .header-call {
    display: none;
  }
}
/* 기존 햄버거 전환 구간(601~905px)을 1000px까지 확장 */
@media (min-width: 906px) and (max-width: 1000px) {
  .header-ul {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1100;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-close:hover { background: #f0f2f5; }
#modalTitle {
  font-size: 1.1rem;
  font-weight: 700;
  padding-right: 30px;
  margin-bottom: 14px;
  color: var(--ink);
}
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab3c5;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.player-wrap iframe[hidden] { display: none; }
.modal-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}
.modal-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 8px;
}
.modal-meta[hidden] { display: none; }
.modal-meta dt {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  line-height: inherit;
}
.modal-meta dd {
  margin: 0;
  color: var(--ink);
  line-height: inherit;
}
.modal-meta dd.meta-value-strong {
  color: var(--accent);
  font-weight: 800;
  font-size: 13.5px;
}

/* 라벨 옆 "ⓘ" 아이콘 — 평소엔 눈에 거의 안 띄고, 궁금한 사람만 올려보는 용도.
   API 테스트 사이트라는 정체성을 은근히 알려주는 디테일 (기본 화면은 안 바뀜). */
.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #8a8f98;
  font-size: 9.5px;
  line-height: 1;
  cursor: help;
  position: relative;
  vertical-align: middle;
}
.info-tip:hover,
.info-tip:focus {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}
.info-tip:hover::after,
.info-tip:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 140%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 30;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.modal-tags .chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: #3a4250;
}

.Header {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.Header.header-hidden {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .Header {
    transition: none;
  }
}