@charset "utf-8";

/* =========================================================
   mobile movie view header
   target:
   .M_Header_wrap_sub
========================================================= */

.M_Header_wrap_sub {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  border-bottom: 1px solid var(--primary);
}

.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.navigate {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.hc-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.hc-back img {
  display: block;
  width: 10px;
  height: 18px;
}

.hc-logo {
  width: 99px;
  height: 20px;
  margin: 0;
}

.hc-logo a {
  display: block;
  width: 99px;
  height: 20px;
  text-decoration: none;
  color: var(--black);
}

.hc-logo a img {
  display: block;
  width: 97px;
  height: 20px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.actions .btn-icon img {
  display: block;
  width: 14px;
  height: 20px;
}

.actions .font_size_btn {
  font-size: 20px;
  color: var(--black);
  text-align: center;
  line-height: 1;
}

.M_Header_wrap_sub a:focus-visible,
.M_Header_wrap_sub button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-bg);
}
/* 복사되었습니다 팝업 */
.copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
    will-change: opacity;
}
.copy-feedback.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* 글자크기 조정하는 팝업 */
.font-size-modal.visible {
    display: flex;
}
.font-size-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 20px;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 24px;
    width: 90%;
    max-width: 320px;
}
.font-size-modal h2 {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}
.font-size-modal div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.font-size-modal > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.font-size-modal button {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease,border-color 0.2s ease;
	 display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.font-size-modal button:hover,.font-size-modal button:focus-visible {
    background: var(--focus-bg);
    border-color: var(--accent);
    outline: none
}

.font-size-modal button.fs1,.font-size-modal button.fs2,.font-size-modal button.fs3,.font-size-modal button.fs4,.font-size-modal button.fs5 {
    border: 1px solid var(--light-gray);
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.03)
}

.font-size-modal button.fs1 {
    font-size: 14px;
    font-weight: 500
}

.font-size-modal button.fs2 {
    font-size: 16px;
    font-weight: 500
}

.font-size-modal button.fs3 {
    font-size: 18px;
    font-weight: 500
}

.font-size-modal button.fs4 {
    font-size: 20px;
    font-weight: 500
}

.font-size-modal button.fs5 {
    font-size: 22px;
    font-weight: 500
}

.font-size-modal button.on {
    background: var(--black);
    color: var(--white);
    font-weight: bold;
    outline: 2px solid var(--primary)
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 32px;
    line-height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0
}

.fs-btn.on {
    border-color: var(--primary);
    background: var(--focus-bg);
    font-weight: 600
}