/* ========================
   📁 modal.css (비율 기반)
   ======================== */

.modal-content {
  background: #fff;
  width: 96%;
  max-width: 68.75rem;        /* 1100px */
  max-height: 90vh;
  border-radius: 2rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  padding: 2.5rem;
  overflow: hidden;
  position: relative;
  animation: fadeInModal 0.25s ease;
}

.modal-scroll {
  display: flex;
  gap: 2rem;
  overflow-y: auto;
  max-height: 80vh;
}

.modal-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-left h2 {
  font-size: 1.5rem;        /* ≒ 24px */
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}

.modal-summary-text {
  font-size: 1.05rem;       /* ≒ 17px */
  line-height: 1.8;
  letter-spacing: -0.01em;
  color: #222;
  word-break: keep-all;
  text-align: left;
}

.modal-right {
  flex: 1;
  border-left: 1px solid #eee;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.modal-right h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

#modal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#modal-links li {
  line-height: 1.6;
  font-size: 1.05rem;
  word-break: keep-all;
}

.modal-right a {
  text-decoration: none;
  color: #2196F3;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding-top: 1rem;
}

.modal-right a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

#modal-tts-player {
  margin-bottom: 0.5rem;
}

.close-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.8rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  color: #000;
}

.bookmark-float {
  position: absolute;
  top: -0.5rem;
  right: 0;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 3;
}

.bookmark-icon {
  fill: #bbb;
  transition: fill 0.2s;
  width: 1.25rem;   /* 20px */
  height: 1.25rem;
}

.bookmark-icon.bookmarked {
  fill: #f4c542;
}

/* 노란색 상태 */
.bookmark-icon.bookmarked path,
path.bookmarked {
  fill:#f4c542;
  stroke:#f4c542;
}
