/* [기본 스타일] */
:root {
  --bg-body: #fff0f3;
  --bg-container: #ffffff;
  --text-main: #4a2c2c;
  --text-sub: #7a5c5c;
  --primary-red: #ff6b81;
  --primary-shadow: rgba(255, 107, 129, 0.2);
  --border-color: #ffdee9;
  --radius: 28px;
  --shadow: 0 12px 35px rgba(255, 100, 100, 0.15);
  --header-sun: #ffb7b2;
  --header-mon: #ffdac1;
  --header-tue: #ffecc1;
  --header-wed: #e2f0cb;
  --header-thu: #b5ead7;
  --header-fri: #c7ceea;
  --header-sat: #a0c4ff;
  --col-0: #ffcdd2;
  --col-1: #bbdefb;
  --col-2: #e1bee7;
  --col-3: #c8e6c9;
  --col-4: #fff9c4;
  --col-5: #ffe0b2;
  --m-bg: #f8f9fa;
  --m-card-bg: #ffffff;
  --m-border: #f1f3f5;
  --m-text-main: #333;
  --m-text-sub: #666;
  --highlighter: #fff59d;
  --bg-element: #ffffff;
  --desktop-header-h: clamp(88px, 10vh, 140px);
  --desktop-content-width: min(80vw, 1920px);
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: #ffcdd2;
  border-radius: 10px;
  background-clip: padding-box;
  border: 1px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-red);
}
::-webkit-scrollbar-track {
  background-color: transparent;
  margin-block: 20px;
  border-radius: 10px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: clamp(13px, 1.5vh, 18px);
}
body {
  font-family: "Pretendard", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  transition: 0.4s ease;
}

.game-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 10px;
  gap: 15px;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-red);
  box-shadow: 0 6px 15px rgba(255, 107, 129, 0.15);
}
.game-thumb {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.game-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game-label {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 600;
}
.game-title-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: "Jua", sans-serif;
  line-height: 1.2;
}

.autocomplete-results {
  position: absolute;
  border: 2px solid var(--primary-red);
  border-top: none;
  z-index: 15000;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  margin-top: -2px;
}
.autocomplete-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.autocomplete-item:hover {
  background-color: #fff0f3;
  color: var(--primary-red);
  font-weight: bold;
}
.game-thumb-small {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.game-row {
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: 0.2s;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.btn-icon:hover {
  background: #f0f0f0;
  color: var(--primary-red);
  border-color: var(--primary-red);
}
.btn-del-icon:hover {
  background: #ffebee;
  color: #d32f2f;
  border-color: #ef9a9a;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  vertical-align: middle;
}
.pc-header-row {
  flex-shrink: 0;
  width: 98%;
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 1rem 3rem 0.5rem 3rem;
  z-index: 5000;
  position: relative;
}
.review-top-account-bar {
  width: 98%;
  max-width: 1920px;
  margin: 0;
  padding: 0.35rem 3rem 0;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6001;
  pointer-events: none;
}
.review-top-account-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  pointer-events: auto;
}
.review-top-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 228, 236, 0.95);
  background: rgba(255, 255, 255, 0.86);
  color: #6f5c66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(57, 28, 42, 0.03);
  transition: 0.18s ease;
  cursor: pointer;
}
.review-top-icon-btn:hover {
  color: #d44e6d;
  border-color: rgba(255, 107, 129, 0.26);
  background: #fff;
}
.review-top-icon-btn.is-on {
  color: #e24c6f;
  border-color: rgba(255, 107, 129, 0.28);
  background: rgba(255, 255, 255, 0.96);
}
.review-top-account-chip {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 228, 236, 0.95);
  background: rgba(255, 255, 255, 0.86);
  color: #6f5c66;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 800;
  max-width: min(320px, 45vw);
  box-shadow: 0 4px 10px rgba(57, 28, 42, 0.03);
  transition: 0.18s ease;
}
.review-top-account-chip:hover {
  color: #d44e6d;
  border-color: rgba(255, 107, 129, 0.26);
  background: #fff;
}
.review-top-account-chip.is-auth {
  padding-left: 12px;
}
.review-top-account-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8ca0, #ffbe86);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}
.review-top-account-avatar.has-image {
  background: #fff;
}
.review-top-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.review-top-account-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.index-tabs {
  justify-self: start;
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.tab-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Pretendard", sans-serif;
  line-height: 1.2;
  color: var(--text-sub);
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.tab-btn:hover {
  background: white;
  color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-2px);
}
.tab-btn.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px var(--primary-shadow);
}
.title-container {
  grid-column: 2;
  justify-self: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.kyaang-title {
  font-family: "Luckiest Guy", cursive !important;
  font-weight: 400;
  font-size: clamp(3.5rem, 6vh, 5rem);
  margin: 0;
  white-space: nowrap;
  color: var(--text-main);
  line-height: 1.2;
  padding-bottom: 5px;
  letter-spacing: 1px;
}

#liveBadge {
  position: absolute;
  left: 100%;
  top: 45%;
  transform: translateY(-50%);
  margin-left: 25px;
  white-space: nowrap;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 900;
  font-family: "Pretendard", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  background: transparent;
}
.live-badge:hover {
  transform: translateY(-50%) scale(1.05);
}

/* [중요] On/Off 크기 동일하게 맞춤 */
.live-badge.off {
  border: 2px solid #bdbdbd;
  color: #bdbdbd;
  background: rgba(255, 255, 255, 0.3);
}
/* 투명 테두리 2px을 줘서 Off일 때랑 크기 똑같이 맞춤 */
.live-badge.on {
  border: 2px solid transparent;
  color: white;
  background: #ef5350;
  box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.7);
  animation: pulse-spread 2s infinite;
}

@keyframes pulse-spread {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.7);
  }
  70% {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 0 10px rgba(239, 83, 80, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(239, 83, 80, 0);
  }
}
.header-spacer {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 14px;
}
.header-spacer .admin-link-btn {
  margin-left: 0;
}
.admin-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-sub);
  font-size: 1.2rem;
  margin-left: 10px;
  transition: 0.3s;
}
.popup-toggle-mini,
.popup-edit-mini {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  padding: 0;
  color: #8d6f6f;
  font-size: 1.1rem;
}
.popup-toggle-mini:hover,
.popup-edit-mini:hover {
  color: var(--primary-red);
}
.popup-toggle-mini.is-on {
  color: #e24c6f;
}

.content-wrapper {
  flex: 1;
  width: 98%;
  max-width: 1920px;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 0;
}
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-container);
  border-radius: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  padding: 1.2rem 2.5rem;
  overflow: visible;
  min-height: 0;
  z-index: 1;
}
.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.8rem;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2000;
}
.cal-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text-main);
  font-family: "Jua", sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
}
.cal-nav button {
  background: var(--bg-element);
  border: 2px solid transparent;
  color: var(--text-sub);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
#dateTrigger:hover {
  color: var(--primary-red);
  transform: scale(1.05);
  transition: 0.2s;
}
#monthPicker {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 25px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  z-index: 6000;
  width: 360px;
}
#monthPicker.show {
  display: block;
}
.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: "Jua";
  font-size: 1.5rem;
  color: #333;
}
.mp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mp-btn {
  padding: 12px 5px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  text-align: center;
  color: #555;
  font-size: 1.05rem;
}
.mp-btn:hover {
  background: #fff0f3;
  color: var(--primary-red);
  border-color: var(--primary-red);
}
.mp-btn.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

.toggle-btn {
  margin-left: auto;
  background: var(--bg-element);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 0 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  height: 2.8rem;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  visibility: visible;
  transition: 0.3s;
}
.toggle-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}
.lunch-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: none;
  background: transparent;
  color: #ff7b90;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}
.lunch-toggle-btn.is-off {
  color: #e25b5b;
}
.lunch-toggle-btn:hover {
  color: var(--primary-red);
  transform: translateY(-1px);
}
.lunch-toggle-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.content-section {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.content-section.active {
  display: flex !important;
}
.layout-split {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  height: 100%;
  min-height: 0;
}
.layout-split.memo-hidden {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.layout-split.memo-hidden .sidebar {
  display: none;
  border: none;
}
.layout-split.memo-hidden .calendar-wrapper {
  width: 100%;
  min-width: 0;
}
.calendar-wrapper {
  background: var(--bg-container);
  border-radius: 30px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 200, 200, 0.05);
}
.cal-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-weight: 800;
  flex-shrink: 0;
  padding: 1rem 0.6rem 0.3rem 0.6rem;
  gap: 2px;
}
.day-label {
  padding: 0.8rem 0;
  font-size: 1.1rem;
  border-radius: 15px;
  color: #5d4037;
}
.day-label.sun {
  background-color: var(--header-sun);
  color: white;
}
.day-label.mon {
  background-color: var(--header-mon);
}
.day-label.tue {
  background-color: var(--header-tue);
}
.day-label.wed {
  background-color: var(--header-wed);
}
.day-label.thu {
  background-color: var(--header-thu);
}
.day-label.fri {
  background-color: var(--header-fri);
}
.day-label.sat {
  background-color: var(--header-sat);
  color: white;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.3rem 0.6rem 1rem 0.6rem;
  gap: 0;
  overflow-y: auto;
}
.cal-cell {
  --cell-top-padding: 2.2rem;
  --cell-date-top: 0.6rem;
  --cell-date-left: 0.6rem;
  --cell-date-font-size: 1.1rem;
  --cell-date-padding: 4px 10px;
  --schedule-gap: 2px;
  --event-font-size: 0.95rem;
  --event-padding-y: 4px;
  --event-padding-x: 8px;
  --event-radius: 14px;
  --event-line-height: 1.3;
  --event-min-height: 45px;
  --event-badge-top: 8px;
  --event-badge-left: 8px;
  --event-badge-font-size: 0.75rem;
  --event-badge-padding: 4px 10px;
  --event-badge-reserve: 14px;
  --event-slot-size: 46px;
  --event-title-lines: 2;
  --span-title-padding: 0 10px;
  background: transparent;
  border-right: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--cell-top-padding) 0 0.2rem 0;
  min-height: 0;
  overflow: visible;
}
.cal-cell.density-compact {
  --cell-top-padding: 1.95rem;
  --cell-date-font-size: 1rem;
  --cell-date-padding: 3px 8px;
  --event-font-size: 0.84rem;
  --event-padding-y: 3px;
  --event-padding-x: 6px;
  --event-radius: 12px;
  --event-line-height: 1.15;
  --event-min-height: 32px;
  --event-badge-top: 5px;
  --event-badge-left: 6px;
  --event-badge-font-size: 0.75rem;
  --event-badge-padding: 4px 10px;
  --event-badge-reserve: 10px;
  --event-slot-size: 34px;
  --span-title-padding: 0 8px;
}
.cal-cell.density-dense {
  --cell-top-padding: 1.8rem;
  --cell-date-top: 0.45rem;
  --cell-date-left: 0.45rem;
  --cell-date-font-size: 0.94rem;
  --cell-date-padding: 3px 7px;
  --schedule-gap: 1px;
  --event-font-size: 0.74rem;
  --event-padding-y: 2px;
  --event-padding-x: 5px;
  --event-radius: 10px;
  --event-line-height: 1.1;
  --event-min-height: 24px;
  --event-badge-top: 4px;
  --event-badge-left: 5px;
  --event-badge-font-size: 0.75rem;
  --event-badge-padding: 4px 10px;
  --event-badge-reserve: 8px;
  --event-slot-size: 26px;
  --event-title-lines: 1;
  --span-title-padding: 0 6px;
}
.cal-cell.density-ultra {
  --cell-top-padding: 1.65rem;
  --cell-date-top: 0.35rem;
  --cell-date-left: 0.35rem;
  --cell-date-font-size: 0.86rem;
  --cell-date-padding: 2px 6px;
  --schedule-gap: 1px;
  --event-font-size: 0.68rem;
  --event-padding-y: 2px;
  --event-padding-x: 4px;
  --event-radius: 9px;
  --event-line-height: 1.05;
  --event-min-height: 20px;
  --event-badge-top: 3px;
  --event-badge-left: 4px;
  --event-badge-font-size: 0.75rem;
  --event-badge-padding: 4px 10px;
  --event-badge-reserve: 6px;
  --event-slot-size: 22px;
  --event-title-lines: 1;
  --span-title-padding: 0 5px;
}
.cal-cell:nth-child(7n) {
  border-right: none;
}
body.admin-mode .cal-cell:hover {
  background-color: rgba(255, 243, 224, 0.5);
  cursor: pointer;
}
.date-num {
  position: absolute;
  top: var(--cell-date-top);
  left: var(--cell-date-left);
  font-family: "Jua", sans-serif;
  font-weight: 500;
  font-size: var(--cell-date-font-size);
  padding: 0;
  border-radius: 0;
  z-index: 20;
  background: transparent;
  box-shadow: none;
}
.date-num.sun {
  background-color: transparent;
  color: #e53935;
}
.date-num.sat {
  background-color: transparent;
  color: #1565c0;
}
.date-num.holiday {
  background-color: transparent;
  color: #b71c1c;
}
.schedule-container {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: var(--event-slot-size);
  gap: var(--schedule-gap);
  align-content: start;
  width: 100%;
  min-height: 0;
}
.schedule-container.is-fill {
  display: flex;
  flex-direction: column;
}
.schedule-container.badge-compact {
  --event-badge-font-size: 0.72rem;
  --event-badge-padding: 3px 8px;
}
.schedule-container.badge-dense {
  --event-badge-font-size: 0.66rem;
  --event-badge-padding: 2px 7px;
}
.schedule-container.badge-ultra {
  --event-badge-font-size: 0.62rem;
  --event-badge-padding: 2px 6px;
}
.schedule-container.text-base {
  --schedule-gap: 2px;
  --event-font-size: 0.95rem;
  --event-padding-y: 4px;
  --event-padding-x: 8px;
  --event-radius: 14px;
  --event-line-height: 1.3;
  --event-badge-top: 8px;
  --event-badge-left: 8px;
  --event-title-lines: 2;
  --span-title-padding: 0 10px;
}
.schedule-container.text-compact {
  --schedule-gap: 2px;
  --event-font-size: 0.84rem;
  --event-padding-y: 3px;
  --event-padding-x: 6px;
  --event-radius: 12px;
  --event-line-height: 1.15;
  --event-badge-top: 5px;
  --event-badge-left: 6px;
  --event-title-lines: 2;
  --span-title-padding: 0 8px;
}
.schedule-container.text-dense {
  --schedule-gap: 1px;
  --event-font-size: 0.74rem;
  --event-padding-y: 2px;
  --event-padding-x: 5px;
  --event-radius: 10px;
  --event-line-height: 1.1;
  --event-badge-top: 4px;
  --event-badge-left: 5px;
  --event-title-lines: 1;
  --span-title-padding: 0 6px;
}
.schedule-container.text-ultra {
  --schedule-gap: 1px;
  --event-font-size: 0.68rem;
  --event-padding-y: 2px;
  --event-padding-x: 4px;
  --event-radius: 9px;
  --event-line-height: 1.05;
  --event-badge-top: 3px;
  --event-badge-left: 4px;
  --event-title-lines: 1;
  --span-title-padding: 0 5px;
}
.schedule-container.is-week-fill {
  grid-template-rows: repeat(var(--event-fill-count), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-content: stretch;
}
.event-item {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 1px 5px;
  font-size: var(--event-font-size);
  font-weight: 700;
  padding: var(--event-padding-y) var(--event-padding-x);
  text-align: center;
  border-radius: var(--event-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  line-height: var(--event-line-height);
  color: #444;
  position: relative;
  cursor: pointer;
  white-space: pre-wrap;
  word-break: break-word;
  transition: transform 0.2s;
  min-height: 0;
  height: var(--event-slot-size);
  max-height: none;
}
.schedule-container.is-fill .event-item {
  flex: 1 1 0;
  height: auto;
}
.schedule-container.is-week-fill .event-item {
  height: auto;
}
.event-item .ev-title {
  width: 100%;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--event-title-lines);
  line-clamp: var(--event-title-lines);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.event-item.event-filler {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
}
.event-time-badge {
  position: absolute;
  top: var(--event-badge-top);
  left: var(--event-badge-left);
  font-size: var(--event-badge-font-size);
  background-color: #fffde7;
  color: #f57f17;
  padding: var(--event-badge-padding);
  border-radius: 50px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  z-index: 30;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.event-item:hover {
  transform: scale(1.02);
  z-index: 500;
}
.event-item.is-start {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: -6px;
  padding-right: 0;
  z-index: 20;
  position: relative;
  overflow: visible;
  box-shadow: none;
}
.event-item.is-start .ev-title {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--span-width, 100%);
  max-width: none;
  box-sizing: border-box;
  text-align: center;
  z-index: 200;
  pointer-events: none;
  white-space: normal;
  word-break: keep-all;
  overflow: visible;
  text-overflow: clip;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: initial;
  line-height: 1.2;
  padding: var(--span-title-padding);
}
.event-item.is-mid {
  border-radius: 0;
  margin-left: -6px;
  margin-right: -6px;
  z-index: 9;
  color: transparent;
  box-shadow: none;
}
.event-item.is-mid .event-time-badge {
  display: none;
}
.event-item.is-end {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -6px;
  z-index: 8;
  color: transparent;
}
.event-item.is-end .event-time-badge {
  display: none;
}
.cal-cell.density-dense .event-item:hover,
.cal-cell.density-ultra .event-item:hover {
  transform: none;
}
.tooltip {
  --tooltip-shift-x: 0px;
  --tooltip-max-width: 480px;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 50%;
  width: max-content;
  max-width: min(480px, var(--tooltip-max-width));
  background: rgba(255, 255, 255, 0.98);
  color: #333;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--primary-red);
  z-index: 2000;
  transition: 0.2s;
  pointer-events: none;
  transform: translate(var(--tooltip-shift-x), -50%) scale(0.95);
  transform-origin: left center;
  left: 105%;
  margin-left: 12px;
}
.tooltip::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  margin-top: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent var(--primary-red) transparent transparent;
}
.tooltip-left .tooltip {
  left: auto;
  right: 105%;
  margin-left: 0;
  margin-right: 12px;
  transform-origin: right center;
}
.tooltip-left .tooltip::after {
  right: auto;
  left: 100%;
  border-color: transparent transparent transparent var(--primary-red);
}
.tooltip.tooltip-measuring {
  transition: none !important;
  transform: translate(var(--tooltip-shift-x), -50%) !important;
}
.event-item:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate(var(--tooltip-shift-x), -50%) scale(1);
}
.bg-0 {
  background-color: var(--col-0);
}
.bg-1 {
  background-color: var(--col-1);
}
.bg-2 {
  background-color: var(--col-2);
}
.bg-3 {
  background-color: var(--col-3);
}
.bg-4 {
  background-color: var(--col-4);
}
.bg-5 {
  background-color: var(--col-5);
}
.rest {
  background-color: #e0e0e0 !important;
  color: #555 !important;
  border: 1px solid #d6d6d6 !important;
}
.sidebar {
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
  border: 2px solid #ffd54f;
  border-radius: 20px;
  background: #fff9c4;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.memo-title {
  font-family: "Jua";
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #e53935;
  text-align: center;
  border: none;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.memo-save-btn {
  background: none;
  border: none;
  color: #d32f2f;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.memo-save-btn:hover {
  transform: scale(1.1);
  color: #c62828;
}
.memo-content {
  flex: 1;
  overflow-y: auto;
  font-family: "Jua", sans-serif;
  font-size: 1.2rem;
  line-height: 30px;
  text-align: center;
  color: #333;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 29px,
    #ef9a9a 29px,
    #ef9a9a 30px
  );
  background-attachment: local;
  padding: 0 5px;
  outline: none;
}
.lunch-status-panel {
  position: relative;
  flex: 1;
  min-height: 0;
}
.lunch-status-content {
  height: 100%;
  min-height: 0;
  transition:
    filter 0.22s ease,
    transform 0.22s ease,
    opacity 0.22s ease;
}
.lunch-status-panel.is-disabled .lunch-status-content {
  filter: blur(8px);
  transform: scale(1.01);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}
.lunch-status-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(1px);
}
.lunch-status-overlay[hidden] {
  display: none;
}
.lunch-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(360px, calc(100% - 32px));
  min-height: 82px;
  padding: 18px 30px;
  border-radius: 999px;
  border: 2px solid rgba(229, 57, 53, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #d84343;
  box-shadow: 0 16px 45px rgba(216, 67, 67, 0.14);
  font-family: "Jua", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  letter-spacing: 0.02em;
}
.lunch-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.menu-item {
  display: block !important;
  text-align: center;
  font-weight: 600;
  color: var(--text-sub);
  width: 100%;
  white-space: pre-wrap;
  line-height: 1.3;
}
.menu-highlight {
  background: var(--highlighter);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #333;
  display: inline-block;
}
.songbook-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  height: 100%;
  overflow: hidden;
}
.sb-sidebar {
  border-right: 1px solid #ffe4e1;
  padding: 1rem;
  overflow-y: auto;
}
.sb-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.artist-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 0.6rem;
}
.artist-btn {
  background: white;
  border: 1px solid #ffdee9;
  padding: 10px 15px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  width: 100%;
}
.artist-btn.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  box-shadow: 0 4px 8px rgba(255, 107, 129, 0.3);
}
.search-box {
  display: flex;
  gap: 0.6rem;
  background: white;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  border: 2px solid #ffe4e1;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  background: transparent;
  color: var(--text-main);
}
.song-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
}
.song-item {
  background: white;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid #ffe4e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
.song-item:hover {
  border-color: var(--primary-red);
  background: #fff0f5;
  box-shadow: 0 4px 10px rgba(255, 107, 129, 0.1);
}
.song-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.album-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  left: 0;
  top: 0;
}
.album-art-img.loaded {
  opacity: 1;
}
.default-icon {
  font-size: 1.5rem;
  color: #ccc;
}
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-red);
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  z-index: 10;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.song-info {
  flex: 1;
  min-width: 0;
}
.song-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* [수정] 장르 배지 디자인 개선 (동글동글 + 파스텔톤 + 진한 테두리/글씨) */
/* [추가] 정렬을 위한 align-items 추가 */
.song-genres {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.genre-tag {
  padding: 3px 10px; /* 요청하신 대로 상하 여백 축소 */
  border-radius: 999px; /* 완전 둥근 알약 모양 */
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.75rem;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  line-height: 1.1; /* 라인 높이 조절 */
  display: inline-flex;
  align-items: center;
}

/* [수정] 관리자 수정 버튼 디자인 (배지와 어울리게) */
.song-add-btn-small {
  font-size: 0.75rem;
  padding: 3px 8px;
  margin-left: 4px;
  border-radius: 50%; /* 둥글게 */
  background: #fff0f3;
  color: #ff6b81;
  border: 1px solid #ffdee9;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* [장르별 색상 매핑] - 이미지 스타일 적용 */
.g-indie {
  background: #efebe9;
  color: #5d4037;
  border-color: #5d4037;
} /* 갈색 */
.g-folk {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #1565c0;
} /* 파랑 */
.g-rock {
  background: #ffebee;
  color: #c62828;
  border-color: #c62828;
} /* 빨강 */
.g-dance {
  background: #fbe9e7;
  color: #d84315;
  border-color: #d84315;
} /* 핑크/코랄 */
.g-ballad {
  background: #e1f5fe;
  color: #0277bd;
  border-color: #0277bd;
} /* 하늘색 */
.g-rnb {
  background: #f1f8e9;
  color: #33691e;
  border-color: #33691e;
} /* 연두색 (R&B/Soul) */
.g-rap {
  background: #ffebee;
  color: #b71c1c;
  border-color: #b71c1c;
} /* 진한 빨강 */
.g-trot {
  background: #fffde7;
  color: #f9a825;
  border-color: #f9a825;
} /* 노랑 */
.g-ost {
  background: #f3e5f5;
  color: #7b1fa2;
  border-color: #7b1fa2;
} /* 보라 */
.g-pop {
  background: #ede7f6;
  color: #4527a0;
  border-color: #4527a0;
} /* 진한 보라 */
.g-jpop {
  background: #fce4ec;
  color: #ad1457;
  border-color: #ad1457;
} /* 진한 핑크 */
.g-default {
  background: #f5f5f5;
  color: #616161;
  border: 1px solid #9e9e9e;
}

.notice-card {
  background: #fff3e0;
  border: 2px dashed #ffb74d;
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(255, 183, 77, 0.2);
}
.notice-text {
  color: #e65100;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Jua", sans-serif;
}
.song-add-badge-btn {
  display: none !important;
}
#confirmModal {
  z-index: 11000;
}
#songbook-footer {
  position: absolute;
  bottom: 0px;
  right: 20px;
  font-size: 0.6rem;
  color: #ddd;
  z-index: 5;
  pointer-events: none;
}

/* [모달 공통] */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

/* [모달 너비] */
.modal-container {
  width: 95%;
  max-width: 600px;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: max-width 0.3s ease;
}
.modal-container.wide {
  max-width: 1000px;
}

.modal-card {
  background: var(--bg-container);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-color);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* [데스크탑 2열 레이아웃] */
.edit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .edit-layout {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .edit-left {
    border-right: 1px solid #eee;
    padding-right: 20px;
  }
  .edit-right {
    display: flex;
    flex-direction: column;
    padding-left: 5px;
  }
}

.modal-footer-outer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.btn-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.btn-full {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.btn-save {
  background-color: var(--primary-red) !important;
  color: white !important;
}
.btn-edit {
  background: #ffb74d;
  color: white;
}
.btn-del {
  background: #ff5252;
  color: white;
}
.btn-close {
  background: white;
  color: #555;
}
.modal-title-lg {
  font-family: "Jua";
  font-size: 1.8rem;
  text-align: center;
  color: var(--text-main);
  margin: 0 0 15px 0;
  flex-shrink: 0;
}
#modalTitle {
  white-space: pre-wrap;
  word-break: break-word;
}
.modal-title-center {
  text-align: center;
  justify-content: center;
}
.modal-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.modal-pill {
  padding: 6px 12px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
.badge-notice {
  background: var(--primary-red);
  color: white;
  cursor: pointer;
}
.badge-notice.disabled {
  background: #f5f5f5;
  color: #bbbbbb;
  pointer-events: none;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}
.badge-time {
  background: #fffde7;
  color: #f57f17;
}
.member-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 10000px;
  overflow: visible;
  transition: max-height 0.4s ease;
}
.member-item {
  width: calc(25% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.member-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
}
.member-name {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.modal-desc-box {
  background: #fafafa;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.modal-text {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: "Jua", sans-serif;
}
.poster-container {
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
  display: none;
}
.modal-poster {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}
.crew-img-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.crew-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}
.member-toggle-btn {
  width: 100%;
  padding: 12px;
  background: #fff0f3;
  color: var(--primary-red);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 20px;
  transition: 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.hidden-member-item {
  display: none !important;
}
.song-add-btn-small {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 15px;
  background: var(--primary-red);
  color: white;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 10px;
}
.modal-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ffcdd2;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: "Pretendard";
  transition: 0.3s;
  min-width: 0;
  box-sizing: border-box;
}
.modal-input:focus {
  border-color: var(--primary-red);
  outline: none;
  background: #fff0f3;
}
.modal-textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 2px solid #ffcdd2;
  border-radius: 12px;
  resize: none;
  font-family: "Pretendard";
  font-size: 1rem;
  transition: 0.3s;
  min-width: 0;
  box-sizing: border-box;
}
#lunchMenuInput {
  text-align: center;
}
.modal-textarea:focus {
  border-color: var(--primary-red);
  outline: none;
  background: #fff0f3;
}
.modal-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: #d32f2f;
  margin-top: 12px;
  display: block;
  margin-bottom: 6px;
  font-family: "Jua", sans-serif;
}
.link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.link-btn-remove {
  background: #ffebee;
  color: #d32f2f;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-btn-add {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px dashed #90caf9;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 5px;
}
.btn-add-sm {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e3f2fd;
  color: #1565c0;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.date-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
  width: 100%;
}
.date-range-row input {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.time-row {
  display: flex;
  gap: 5px;
  align-items: center;
}
.time-reset-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #777;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.schedule-rest-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5a4b58;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.schedule-rest-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #ff6b81;
  cursor: pointer;
}
.schedule-rest-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 14px;
}
.form-group {
  position: relative;
  margin-bottom: 10px;
}
.entity-preview-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  min-height: 58px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 107, 129, 0.28);
  background: rgba(255, 248, 250, 0.95);
}
.entity-preview-panel.is-empty {
  border-style: solid;
  background: rgba(255, 255, 255, 0.92);
}
.entity-preview-empty {
  font-size: 0.85rem;
  font-weight: 700;
  color: #a07a84;
}
.entity-preview-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 177, 194, 0.45);
  background: #fff;
  box-shadow: 0 6px 16px rgba(232, 108, 134, 0.08);
}
.entity-preview-chip.is-missing {
  border-style: dashed;
  background: rgba(255, 245, 247, 0.95);
}
.entity-preview-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff8ca0, #ffbe86);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
}
.entity-preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.entity-preview-thumb.is-fallback {
  background: linear-gradient(135deg, #ff8ca0, #ffbe86);
}
.entity-preview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.entity-preview-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4e3f47;
  line-height: 1.1;
  word-break: break-all;
}
.entity-preview-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b17281;
  line-height: 1.1;
}
.autocomplete-items {
  position: absolute;
  border: 2px solid #ffcdd2;
  border-top: none;
  z-index: 9999;
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-height: min(220px, 40vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.autocomplete-items div:hover {
  background-color: #fff0f3;
  color: var(--primary-red);
  font-weight: bold;
}
.autocomplete-active {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
}
.confirm-msg {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  margin: 10px 0 20px 0;
}
.toast {
  display: none;
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  padding: 16px 24px;
  position: fixed;
  z-index: 12000;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition:
    opacity 0.4s,
    top 0.4s;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.toast.show {
  display: flex;
  visibility: visible;
  opacity: 1;
  top: 50px;
}
.swipe-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-family: "Jua", sans-serif;
  font-size: 1.2rem;
  z-index: 13010;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.swipe-hint.show {
  opacity: 1;
}
.swipe-hand {
  font-size: 2rem;
  animation: swipeAnim 1.5s infinite;
}
@keyframes swipeAnim {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-20px);
  }
  75% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(0);
  }
}
.btn-google {
  width: 100%;
  padding: 12px;
  background-color: #ffffff;
  color: #757575;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.btn-google:hover {
  background-color: #f7fafe;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border-color: #d2e3fc;
}
.google-icon {
  width: 18px;
  height: 18px;
}

/* 홈 진입 팝업 */
.home-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 13000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(255, 192, 203, 0.22),
      transparent 35%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 218, 193, 0.22),
      transparent 35%
    ),
    rgba(24, 24, 34, 0.55);
  backdrop-filter: blur(9px);
}
.home-popup-overlay.show {
  display: flex;
}
.home-popup-card {
  width: min(90vw, 520px);
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdfd 0%, #fff6f9 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.3),
    0 10px 25px rgba(255, 107, 129, 0.3);
  padding: 22px 16px 18px;
  position: relative;
  max-height: 84dvh;
  overflow-y: auto;
  animation: homePopupIn 0.26s ease;
  text-align: center;
}
@keyframes homePopupIn {
  from {
    transform: translateY(10px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.home-popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffd6de;
  background: #fff;
  color: #d84f64;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.home-popup-view {
  position: relative;
  padding-top: 2px;
}
.home-popup-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #b3264f;
  background: #ffe8ee;
}
.home-popup-view .home-popup-kicker {
  position: absolute;
  left: 0;
  top: 0;
}
.home-popup-title {
  font-family: "Jua", "Pretendard", sans-serif;
  font-size: clamp(1.2rem, 2.9vw, 1.7rem);
  color: #2d2020;
  margin: 0 0 10px 0;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  padding-right: 0;
  text-align: center;
  display: block;
  padding-left: 64px;
  padding-right: 64px;
}
.home-popup-message {
  font-size: 0.98rem;
  color: #4c4c59;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 2px 2px 0;
  margin-bottom: 12px;
  text-align: center;
}
.home-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}
.home-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(181, 62, 101, 0.28);
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  color: #a83b5e;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 16px rgba(188, 32, 75, 0.12);
  transition: 0.2s ease;
}
.home-popup-link:hover {
  background: linear-gradient(180deg, #fff8fb, #fff1f6);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(188, 32, 75, 0.17);
}
.home-popup-image-wrap {
  display: none;
  margin: 10px 0 12px;
}
.home-popup-image {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
  border-radius: 14px;
  border: none;
  box-shadow: none;
  background: transparent;
  display: block;
}
.home-popup-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.home-popup-close-today {
  border: 1px solid #ffd6de;
  border-radius: 12px;
  background: #fff;
  color: #a24b61;
  font-weight: 700;
  padding: 10px 13px;
  cursor: pointer;
}
.home-popup-ok {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b81, #ff8a80);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}
.home-popup-view.hide {
  display: none;
}
.home-popup-edit {
  display: none;
  text-align: left;
}
.home-popup-edit.show {
  display: block;
}
.home-popup-edit-headline {
  position: relative;
  min-height: 30px;
  margin-bottom: 10px;
}
.home-popup-edit-headline .home-popup-kicker {
  position: absolute;
  left: 0;
  top: 0;
}
.home-popup-edit-headline .home-popup-title {
  margin: 0;
  text-align: center;
  padding-left: 64px;
  padding-right: 64px;
}
.home-popup-edit .form-group {
  margin-bottom: 12px;
}
.home-popup-edit .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #d32f2f;
  font-family: "Jua", "Pretendard", sans-serif;
}
.home-popup-edit .form-input,
.home-popup-edit .form-textarea {
  width: 100%;
  border: 2px solid #ffcdd2;
  border-radius: 12px;
  padding: 12px;
  font-family: "Pretendard", sans-serif;
  font-size: 0.98rem;
  background: #fff;
  color: #3e4659;
  min-width: 0;
  transition: 0.2s;
}
.home-popup-edit .form-input:focus,
.home-popup-edit .form-textarea:focus {
  border-color: #e53935;
  outline: none;
  background: #fff0f3;
}
.home-popup-edit .form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
  white-space: pre-wrap;
}
.home-popup-edit-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-popup-edit-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.home-popup-edit-link-row .form-input {
  margin: 0;
}
.home-popup-edit .btn-link-add {
  width: 100%;
  padding: 10px;
  border: 1px dashed #f1b7c1;
  background: #fff8fa;
  color: #b44b5d;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 5px;
  font-weight: 700;
}
.home-popup-footer-edit {
  display: none;
}
.home-popup-footer-edit.show {
  display: flex;
}
.home-popup-footer-view.hide {
  display: none;
}
.mobile-date-bar {
  background: white;
  padding: 8px 16px;
  border-radius: 30px;
  text-align: center;
  font-family: "Jua";
  font-size: 1.2rem;
  color: var(--text-main);
  margin: 0 20px 8px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.today-badge {
  background: #ff8a80;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(255, 138, 128, 0.3);
}
.today-chip-desktop {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: linear-gradient(135deg, #ff6b81, #ff8a80);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 107, 129, 0.28);
  z-index: 25;
  pointer-events: none;
}
.cal-cell.density-dense .today-chip-desktop,
.cal-cell.density-ultra .today-chip-desktop {
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.54rem;
  padding: 3px 7px;
}
.mobile-only {
  display: none !important;
}
.mobile-floating-nav,
.mobile-bottom-nav {
  display: none !important;
}
.desktop-view-return-btn {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9000;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 107, 129, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #d84f6c;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(45, 30, 38, 0.16);
}
.desktop-view-return-btn i {
  font-size: 1.08rem;
}
html.is-mobile-device[data-index-view-mode="desktop"] .desktop-view-return-btn {
  display: inline-flex;
}
@media (max-width: 900px) {
  .review-top-account-bar {
    display: none !important;
  }
  .pc-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
  html,
  body {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--m-bg);
    font-size: clamp(14px, 1.2vw, 18px);
  }
  .content-wrapper,
  .container {
    padding: 0;
    margin: 0;
    width: 100%;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: none;
  }
  .modal-container,
  .modal-container.wide {
    width: 95%;
    max-width: 95%;
    height: auto;
    max-height: 90dvh;
  }
  /* 모달 패딩 축소 */
  .modal-card {
    padding: 15px 10px;
  }
  .home-popup-overlay {
    padding: 14px;
  }
  .home-popup-card {
    width: 96%;
    border-radius: 22px;
    padding: 18px 12px 14px;
  }
  .home-popup-message {
    font-size: 0.93rem;
    padding: 2px 0;
  }
  .home-popup-link {
    font-size: 0.78rem;
    padding: 7px 10px;
  }
  .home-popup-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .home-popup-close-today,
  .home-popup-ok {
    width: 100%;
  }
  .home-popup-view .home-popup-title {
    font-size: 1.34rem;
  }
  .home-popup-title {
    padding-left: 48px;
    padding-right: 48px;
  }
  .home-popup-footer-view {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .home-popup-footer-view .home-popup-close-today,
  .home-popup-footer-view .home-popup-ok {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
  .home-popup-edit-link-row {
    flex-direction: column;
  }
  .home-popup-edit-link-row .btn-icon {
    width: 100%;
    height: 36px;
  }

  .edit-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .edit-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
  }
  .edit-right {
    padding-left: 0;
  }

  /* 게임/검색 로우 모바일 수정 */
  .game-row .btn-row {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .game-row .modal-input {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 0.9rem;
  }
  .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  } /* 버튼 크기 축소 */

  .main-header {
    padding: calc(12px + env(safe-area-inset-top)) 20px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    box-sizing: border-box;
    position: relative;
    margin-top: 0px;
  }
  .kyaang-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Luckiest Guy", cursive !important;
    font-weight: 400;
    font-size: 2.2rem;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    line-height: 1;
    padding-top: 5px;
    z-index: 10;
  }

  .mobile-header-left,
  .mobile-header-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    height: 36px;
  }
  .mobile-header-left {
    left: 15px;
  }
  .mobile-header-right {
    right: 15px;
  }
  .mobile-header-left .admin-link-btn,
  .mobile-header-right .admin-link-btn {
    margin-left: 0;
  }
  #liveBadgeM {
    position: static;
    transform: none;
    font-size: 0.8rem;
    padding: 0 10px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    transition: 0.3s;
  }

  /* [수정] OFF 상태 (방송 안 할 때): 마진 0 (원하는 값으로 수정 가능) */
  #liveBadgeM.off {
    border: 2px solid #bdbdbd;
    color: #bdbdbd;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 0px; /* <-- 여기 값을 조절하세요 (OFF일 때 위치) */
  }

  /* [수정] ON 상태 (방송 중): 마진 23px (원하는 값으로 수정 가능) */
  #liveBadgeM.on {
    border: 2px solid transparent;
    color: white;
    background: #ef5350;
    box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.7);
    animation: pulse-spread 2s infinite;
    margin-top: 23px; /* <-- 여기 값을 조절하세요 (ON일 때 위치) */
  }

  /* [모바일] Badge와 수정 버튼 간격 및 정렬 (로그인 시 틀어짐 방지) */
  .song-genres {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
  }
  .song-add-btn-small {
    margin-left: 6px;
    margin-bottom: 0;
  }

  .mobile-list-view {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 60px - 90px);
    overflow-y: hidden;
    padding: 5px 20px 5px 20px;
    gap: 6px;
  }
  .songbook-layout {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 60px - 90px);
    overflow-y: hidden;
    padding: 5px 15px 0 15px;
    gap: 6px;
  }
  .m-card {
    flex: 1;
    min-height: 0;
    background: var(--m-card-bg);
    border-radius: 20px;
    padding: 10px 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--m-border);
  }
  .m-card.today {
    border: 2px solid var(--primary-red);
  }
  .m-scroll-area {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 2px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .m-scroll-area::-webkit-scrollbar {
    display: none;
  }
  .m-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    flex-shrink: 0;
    cursor: pointer;
  }
  .m-date {
    font-family: "Pretendard";
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--m-text-main);
    letter-spacing: -0.5px;
  }
  .m-date.sun {
    color: #e53935;
  }
  .m-date.sat {
    color: #1565c0;
  }
  .m-date.holiday {
    color: #b71c1c;
  }
  .m-day {
    display: inline-block;
    margin-left: 1px;
    font-size: 0.78em;
    font-weight: 700;
    color: inherit;
    opacity: 0.82;
    letter-spacing: -0.2px;
    vertical-align: baseline;
  }
  .m-badge {
    background: var(--primary-red);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
  }
  .m-event {
    flex-shrink: 0;
    min-height: 48px;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #444;
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .m-event-time {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.8rem;
    background-color: #fffde7;
    color: #f57f17;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  .m-event:active {
    transform: scale(0.98);
    border-color: var(--primary-red);
  }
  .m-event.rest {
    background: #e0e0e0 !important;
    color: #555 !important;
    border: 1px solid #d6d6d6 !important;
  }
  .m-memo-text {
    display: none;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: var(--m-text-sub);
    line-height: 1.3;
    white-space: pre-wrap;
    font-weight: 500;
  }
  .m-event.active .m-memo-text {
    display: block;
    animation: slideDown 0.3s ease;
  }
  .no-schedule {
    color: var(--m-text-sub);
    font-size: 0.95rem;
    text-align: center;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    justify-content: center;
    height: 100%;
  }
  .sb-sidebar {
    display: none !important;
  }
  .sb-content {
    padding: 0 4px;
    gap: 15px;
    flex: 1;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
  }
  .song-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
  }
  .mobile-memo-btn,
  .mobile-song-btn,
  .mobile-lunch-toggle-btn {
    display: none;
    position: fixed;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-red);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--primary-shadow);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
  }
  .mobile-lunch-toggle-btn {
    width: 56px;
    min-width: 56px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #ff7b90;
    border: 1px solid #ffd6de;
    font-size: 1.55rem;
  }
  .mobile-lunch-toggle-btn.is-off {
    color: #e25b5b;
    border-color: #ffcaca;
  }
  .mobile-memo-btn:active,
  .mobile-song-btn:active,
  .mobile-lunch-toggle-btn:active {
    transform: scale(0.9);
  }
  .mobile-lunch-toggle-btn:disabled {
    opacity: 0.5;
  }
  .bottom-nav {
    position: fixed !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(95% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) !important;
    height: 65px !important;
    background: var(--m-card-bg) !important;
    opacity: 1 !important;
    border-top: 1px solid var(--m-border) !important;
    border-radius: 40px !important;
    display: flex !important;
    justify-content: space-evenly !important;
    align-items: center !important;
    padding: 0 max(4px, env(safe-area-inset-right, 0px)) 0 max(4px, env(safe-area-inset-left, 0px)) !important;
    z-index: 1000 !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
  }
  .nav-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--m-text-sub);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-btn .icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .nav-btn i {
    font-size: 1.5rem;
    transition: 0.2s;
    margin-top: 0;
  }
  .nav-btn.active {
    color: var(--primary-red);
  }
  .nav-btn.active i,
  .nav-btn.active .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 107, 129, 0.3));
  }
  #songbook-footer {
    display: none;
  }
  #mobileAppleMusic {
    position: fixed;
    bottom: 79px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    white-space: nowrap;
    text-align: center;
    font-size: 0.65rem;
    color: #aaa;
    z-index: 900;
    display: none;
    pointer-events: none;
  }
  .date-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
  }
  .date-range-row input {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
}
.cal-popup-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 15px;
}
.mobile-calendar-popup-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.mobile-calendar-today-btn {
  min-width: 112px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b81, #ff8a80);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 107, 129, 0.22);
}
.mobile-calendar-today-btn:hover {
  filter: brightness(1.03);
}
.cal-popup-day {
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: 0.2s;
  font-size: 1.1rem;
}
.cal-popup-day.sun {
  color: #e53935;
}
.cal-popup-day.sat {
  color: #1565c0;
}
.cal-popup-day.holiday {
  color: #b71c1c;
}
.cal-popup-day:hover {
  background: #fff0f3;
  color: var(--primary-red);
}
.cal-popup-day.today {
  background: var(--primary-red);
  color: white;
}
.cal-popup-header-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #666;
  margin-bottom: 10px;
}
.cal-popup-header-cell {
  width: 100%;
  text-align: center;
}

.copyright-footer {
  text-align: center;
  font-size: 0.78rem;
  color: #cbb;
  padding: 8px 0 12px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 0px;
  font-family: "Pretendard", sans-serif;
  position: relative;
  z-index: 10;
}
.site-footer-desktop {
  width: 98%;
  max-width: 1920px;
  margin: 28px auto 16px;
  position: relative;
  z-index: 10;
}
.site-footer-board {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(128, 60, 255, 0.16), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(38, 208, 255, 0.12), transparent 35%),
    radial-gradient(circle at 65% 80%, rgba(255, 175, 0, 0.08), transparent 42%),
    linear-gradient(180deg, #060912 0%, #05070f 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  box-shadow:
    0 18px 38px rgba(8, 10, 18, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.site-footer-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 24px, 24px 100%;
  opacity: 0.35;
  pointer-events: none;
}
.site-footer-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 62%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1.5px),
    radial-gradient(circle at 36% 80%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.5px);
  pointer-events: none;
  opacity: 0.6;
}
.site-footer-topline {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1;
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  padding: 4px 4px 4px 2px;
}
.site-footer-brand-name {
  font-family: "Luckiest Guy", cursive;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
  font-size: 2rem;
  text-shadow: 0 0 18px rgba(130, 82, 255, 0.15);
}
.site-footer-brand-caption {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.site-footer-contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.site-footer-topline-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 58px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 107, 129, 0.14);
  border: 1px solid rgba(255, 107, 129, 0.28);
  color: #ff8ca1;
  font-size: 0.72rem;
  font-weight: 800;
}
.site-footer-topline-text {
  min-width: 0;
  color: rgba(235, 241, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}
.site-footer-topline-text a {
  color: #c7d8ff;
  text-decoration: none;
  font-weight: 700;
}
.site-footer-topline-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-dot {
  display: inline-block;
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.28);
}
.site-footer-follow-card {
  min-width: 248px;
  border-radius: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(87, 100, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.site-footer-follow-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.site-footer-follow-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.site-footer-follow-link {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(236, 243, 255, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.2s;
}
.site-footer-follow-link:hover {
  color: #fff;
  border-color: rgba(177, 131, 255, 0.28);
  background: rgba(177, 131, 255, 0.14);
  transform: translateY(-1px);
}
.site-footer-links-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 1.2fr;
  gap: 0;
  z-index: 1;
}
.site-footer-group {
  padding: 16px 20px 18px;
  position: relative;
}
.site-footer-group + .site-footer-group {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer-group h2 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1px;
}
.site-footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.site-footer-link-list a {
  color: rgba(225, 233, 250, 0.72);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  position: relative;
}
.site-footer-link-list a:hover {
  color: #ffffff;
}
.site-footer-link-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: rgba(154, 207, 255, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.site-footer-link-list a:hover::after {
  transform: scaleX(1);
}
.site-footer-link-list.muted {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.site-footer-link-list.muted span {
  color: rgba(185, 194, 214, 0.65);
  font-size: 0.8rem;
  line-height: 1.4;
}
.site-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.site-footer-policy-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 12px 20px 10px;
  z-index: 1;
}
.site-footer-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(228, 236, 252, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.site-footer-policy-link:hover {
  border-color: rgba(154, 207, 255, 0.24);
  color: #ffffff;
  background: rgba(154, 207, 255, 0.08);
}
.site-footer-bottom {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 20px 16px;
  z-index: 1;
}
.site-footer-copy {
  color: rgba(212, 222, 240, 0.74);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.4;
}
.site-footer-meta {
  color: rgba(182, 192, 212, 0.58);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
  max-width: 58%;
}
.legal-footer-links {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  padding: 0 12px;
  position: relative;
  z-index: 10;
}
.legal-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #7a6471;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 222, 233, 0.95);
  box-shadow: 0 4px 10px rgba(255, 107, 129, 0.06);
  transition: 0.2s;
}
.legal-footer-btn:hover {
  color: var(--primary-red);
  border-color: rgba(255, 107, 129, 0.35);
  background: #fff;
  transform: translateY(-1px);
}
.legal-footer-note {
  width: 100%;
  text-align: center;
  color: #b29ca6;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 7px;
  margin-bottom: 8px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

/* Desktop footer refresh (light theme, screenshot-like layout) */
.site-footer-desktop {
  margin: 68px auto 18px;
}
.site-footer-board {
  background:
    radial-gradient(70% 120% at 12% 12%, rgba(255, 255, 255, 0.62), transparent 68%),
    radial-gradient(62% 110% at 88% 14%, rgba(255, 216, 227, 0.28), transparent 70%),
    radial-gradient(74% 130% at 52% 100%, rgba(195, 223, 255, 0.12), transparent 74%),
    linear-gradient(120deg, rgba(255, 252, 253, 0.74), rgba(252, 246, 250, 0.74) 48%, rgba(248, 244, 250, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 38px rgba(255, 107, 129, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.site-footer-board::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 32px, 32px 100%;
  opacity: 0.14;
}
.site-footer-board::after {
  background:
    radial-gradient(circle at 17% 28%, rgba(255, 154, 173, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 22%, rgba(160, 196, 255, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 70%, rgba(255, 223, 168, 0.08) 0 1px, transparent 2px);
  opacity: 0.34;
}
.site-footer-topline {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: 72px;
  align-items: center;
  padding: 14px 18px 8px;
  border-bottom: none;
  gap: 14px;
}
.site-footer-brand {
  min-width: 0;
  padding: 0;
}
.site-footer-brand-name {
  color: var(--text-main);
  text-shadow: none;
  font-size: 2.05rem;
  letter-spacing: 0.02em;
}
.site-footer-contact-card,
.site-footer-links-grid,
.site-footer-meta {
  display: none !important;
}
.site-footer-follow-card {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 0;
}
.site-footer-follow-links {
  justify-content: flex-end;
  gap: 9px;
}
.site-footer-follow-link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 251, 0.62));
  color: #7b6672;
  box-shadow:
    0 8px 18px rgba(255, 107, 129, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-footer-follow-link:hover {
  color: var(--primary-red);
  border-color: rgba(255, 107, 129, 0.2);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow:
    0 12px 20px rgba(255, 107, 129, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.site-footer-svg-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.site-footer-svg-img {
  object-fit: contain;
}
.site-footer-follow-link[aria-label="네이버 카페"] .site-footer-svg-icon {
  width: 24px;
  height: 24px;
}
.site-footer-follow-link[aria-label="Fancim"] .site-footer-svg-icon {
  width: 24px;
  height: 24px;
}
.site-footer-follow-link[aria-label="Fancim"] .site-footer-svg-img {
  filter: grayscale(0.15) saturate(0.7) brightness(0.82);
}
.site-footer-contact-row {
  position: relative;
  z-index: 1;
  margin: 0 18px 8px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 2px 12px;
  border: none;
  border-top: 1px solid rgba(255, 236, 242, 0.8);
  background: transparent;
  box-shadow: none;
}
.site-footer-contact-text {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6f6470;
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.site-footer-contact-label {
  color: #8c6f7d;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-footer-contact-separator {
  color: #d2c2ca;
  font-size: 0.74rem;
  font-weight: 700;
}
.site-footer-contact-text a {
  color: #5f6ea1;
  font-weight: 700;
  text-decoration: none;
}
.site-footer-contact-text a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}
.site-footer-contact-note {
  color: #8c6f7d;
  font-size: 0.75rem;
  line-height: 1.45;
}
.footer-dot {
  color: #d2c2ca;
}
.site-footer-divider {
  margin: 0 18px;
  background: rgba(255, 236, 242, 0.82);
}
.site-footer-bottom {
  padding: 12px 18px 14px;
  align-items: center;
  gap: 12px;
}
.site-footer-copy {
  color: #7b707a;
  font-size: 0.78rem;
  font-weight: 700;
}
.site-footer-policy-row {
  padding: 0;
  gap: 0;
  justify-content: flex-end;
}
.site-footer-policy-link {
  padding: 0;
  border: none;
  background: transparent;
  color: #8f8691;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 0;
}
.site-footer-policy-link + .site-footer-policy-link {
  margin-left: 16px;
  position: relative;
}
.site-footer-policy-link + .site-footer-policy-link::before {
  content: "|";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  background: none;
  color: rgba(174, 157, 167, 0.9);
  font-size: 0.7rem;
  line-height: 1;
}
.site-footer-policy-link:hover {
  color: var(--primary-red);
  border: none;
  background: transparent;
}

@media (min-width: 901px) {
  .pc-header-row,
  .review-top-account-bar,
  .content-wrapper {
    width: var(--desktop-content-width);
    max-width: none;
  }
  html {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .content-wrapper {
    flex: 0 0 auto;
    height: calc(100dvh - var(--desktop-header-h, 110px));
    min-height: calc(100dvh - var(--desktop-header-h, 110px));
  }
  .container {
    min-height: 100%;
  }
  .copyright-footer {
    display: none;
  }
  .site-footer-desktop {
    display: block;
    flex-shrink: 0;
  }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .site-footer-topline {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .site-footer-brand {
    min-width: 0;
    padding: 0;
  }
  .site-footer-follow-card {
    min-width: 0;
  }
  .site-footer-follow-links {
    justify-content: flex-end;
  }
  .site-footer-contact-row {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 0;
  }
  .site-footer-contact-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .site-footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer-group:nth-child(3) {
    border-left: none;
    border-top: 1px solid #ececf0;
  }
  .site-footer-group:nth-child(4) {
    border-top: 1px solid #ececf0;
  }
  .site-footer-group:nth-child(3),
  .site-footer-group:nth-child(4) {
    border-top-color: rgba(255, 255, 255, 0.06);
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer-policy-row {
    width: 100%;
    justify-content: flex-start;
  }
  .site-footer-meta {
    max-width: 100%;
    text-align: left;
  }
}
@media (max-width: 900px) {
  .mobile-quick-menu-overlay[hidden] {
    display: none !important;
  }
  .copyright-footer {
    position: fixed;
    bottom: 2px;
    left: 0;
    width: 100%;
    font-size: 0.6rem;
    color: #aaa;
    background: transparent;
    padding: 0;
    z-index: 2000;
    line-height: 1;
    text-align: center !important;
    margin-top: 0;
    pointer-events: none;
  }
  .mobile-header-right {
    gap: 10px;
  }
  .mobile-header-left {
    gap: 10px;
  }
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 222, 233, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b6570;
    box-shadow: 0 6px 12px rgba(255, 107, 129, 0.08);
  }
  .mobile-menu-btn:active {
    transform: scale(0.96);
  }
  .mobile-quick-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(35, 27, 32, 0.32);
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .mobile-quick-menu-sheet {
    width: min(560px, 100%);
    max-height: min(86dvh, 720px);
    overflow: auto;
    border-radius: 24px;
    background:
      radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.5), transparent 40%),
      linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 245, 0.96));
    border: 1px solid rgba(255, 222, 233, 0.88);
    box-shadow: 0 24px 50px rgba(33, 22, 29, 0.18);
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: mobileMenuUp 0.2s ease;
  }
  @keyframes mobileMenuUp {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .mobile-quick-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 0;
  }
  .mobile-quick-menu-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-quick-menu-kicker {
    font-family: "Jua", "Pretendard", sans-serif;
    font-size: 1.24rem;
    font-weight: 400;
    color: #ff6b81;
    letter-spacing: 0.35px;
    text-transform: uppercase;
  }
  .mobile-quick-menu-view-btn,
  .mobile-quick-menu-login-btn {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 222, 233, 0.92);
    background: rgba(255, 255, 255, 0.86);
    color: #6e5d67;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 800;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(255, 107, 129, 0.05);
  }
  .mobile-quick-menu-view-btn {
    cursor: pointer;
  }
  .mobile-quick-menu-view-btn span,
  .mobile-quick-menu-login-btn span {
    white-space: nowrap;
  }
  .mobile-quick-menu-view-btn i,
  .mobile-quick-menu-login-btn i {
    color: #ff6b81;
    font-size: 0.9rem;
  }
  .mobile-quick-menu-login-btn.admin {
    border-color: rgba(255, 107, 129, 0.28);
    background: linear-gradient(135deg, rgba(255, 107, 129, 0.11), rgba(255, 138, 91, 0.08));
    color: #d84f6c;
  }
  .mobile-quick-menu-group {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(39, 27, 35, 0.05);
    padding: 12px;
  }
  .mobile-quick-menu-group-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #8f7a86;
    letter-spacing: 0.2px;
    margin-bottom: 9px;
  }
  .mobile-quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .mobile-quick-menu-action {
    border: 1px solid rgba(255, 222, 233, 0.92);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #5f5260;
    font-weight: 700;
    font-size: 0.84rem;
    box-shadow: 0 5px 12px rgba(255, 107, 129, 0.05);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-quick-menu-action span {
    line-height: 1.15;
    word-break: keep-all;
    text-align: center;
  }
  .mobile-quick-menu-action i {
    font-size: 1.1rem;
    color: #ff6b81;
  }
  .mobile-quick-menu-action:active {
    transform: scale(0.98);
  }
  .mobile-quick-menu-list {
    display: grid;
    gap: 8px;
  }
  .mobile-quick-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 14px;
    text-decoration: none;
    color: #514752;
    border: 1px solid rgba(255, 222, 233, 0.8);
    background: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(34, 24, 31, 0.04);
  }
  .mobile-quick-menu-link > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .mobile-quick-menu-link > span i {
    color: #ff6b81;
  }
  .mobile-quick-menu-link.active {
    border-color: rgba(255, 107, 129, 0.35);
    background: linear-gradient(135deg, rgba(255, 107, 129, 0.11), rgba(255, 138, 91, 0.08));
    color: #d84f6c;
  }
  .mobile-quick-menu-link:active {
    transform: scale(0.995);
  }
  .mobile-quick-menu-list.legal .mobile-quick-menu-link > span {
    line-height: 1.25;
  }
  .mobile-quick-menu-footnote {
    border-radius: 16px;
    padding: 11px 12px;
    background: rgba(255, 248, 241, 0.92);
    border: 1px dashed rgba(255, 171, 133, 0.42);
    color: #7f625c;
    font-size: 0.78rem;
    line-height: 1.5;
  }
  body.mobile-quick-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .mobile-quick-menu-head-actions {
    gap: 6px;
  }
  .mobile-quick-menu-view-btn,
  .mobile-quick-menu-login-btn {
    min-height: 36px;
    padding: 0 10px;
    justify-content: center;
    font-size: 0.8rem;
  }
  .mobile-quick-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Moolcc Home Theme */
.moolcc-home {
  --choco-dark: #2c170f;
  --choco-milk: #7d4b36;
  --cookie-bg: #f7efdf;
  --cream: #fffaf4;
  --candy-pink: #d7bb8f;
  --candy-mint: #9edcca;
  --butter: #ffd87a;
  --berry: #7a5a39;
  --shadow: rgba(60, 30, 20, 0.12);
  --text-soft: #6b4d3e;
  --line: rgba(125, 75, 54, 0.14);
  --panel: rgba(255, 252, 246, 0.84);
  --bg-body: var(--cookie-bg);
  --bg-container: rgba(255, 252, 246, 0.92);
  --text-main: var(--choco-dark);
  --text-sub: var(--text-soft);
  --primary-red: var(--berry);
  --primary-shadow: rgba(122, 90, 57, 0.2);
  --border-color: rgba(125, 75, 54, 0.14);
  --header-sun: #f7b4b2;
  --header-mon: #ffd9bf;
  --header-tue: #ffe9b5;
  --header-wed: #e4efd0;
  --header-thu: #bfe7d9;
  --header-fri: #ced7f4;
  --header-sat: #a9c7f0;
  --col-0: #ffd9e1;
  --col-1: #d9efe9;
  --col-2: #f3d7e8;
  --col-3: #f9ebc6;
  --col-4: #dfe7fb;
  --col-5: #f7dcc7;
  --m-bg: #f8f0e1;
  --m-card-bg: rgba(255, 252, 246, 0.96);
  --m-border: rgba(125, 75, 54, 0.12);
  --m-text-main: var(--choco-dark);
  --m-text-sub: var(--text-soft);
  --highlighter: #fff0ae;
  --bg-element: rgba(255, 255, 255, 0.82);
  --desktop-header-h: 150px;
  --desktop-footer-h: 134px;
  --desktop-content-width: min(98vw, 1920px);
  --calendar-shell-pad-x: 1.6rem;
  --calendar-grid-pad-x: 0.45rem;
  --calendar-title-offset-x: calc(var(--calendar-shell-pad-x) + var(--calendar-grid-pad-x));
  font-family: "Pretendard", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 157, 183, 0.25), transparent 28%),
    radial-gradient(circle at top right, rgba(149, 221, 196, 0.35), transparent 20%),
    radial-gradient(var(--choco-milk) 10%, transparent 10%),
    radial-gradient(var(--choco-milk) 10%, transparent 10%),
    var(--cookie-bg);
  background-size: auto, auto, 40px 40px, 40px 40px;
  background-position: 0 0, 100% 0, 0 0, 20px 20px;
}

.moolcc-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(to bottom, rgba(255, 250, 244, 0.15), transparent 20%);
  z-index: 0;
}

.moolcc-home .moolcc-home-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.moolcc-home .moolcc-home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(39, 19, 11, 0.98), rgba(87, 47, 31, 0.96)),
    var(--choco-dark);
  color: var(--cream);
  padding: 0 0 12px;
  min-height: 146px;
  border-bottom: 8px solid var(--choco-milk);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.moolcc-home .moolcc-home-hero::before,
.moolcc-home .moolcc-home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 216, 122, 0.12);
  filter: blur(2px);
}

.moolcc-home .moolcc-home-hero::before {
  width: 240px;
  height: 240px;
  top: -70px;
  left: -40px;
}

.moolcc-home .moolcc-home-hero::after {
  width: 180px;
  height: 180px;
  bottom: -40px;
  right: 8%;
}

.moolcc-home .review-top-account-bar,
.moolcc-home .pc-header-row,
.moolcc-home .content-wrapper {
  width: var(--desktop-content-width);
  max-width: none;
}

.moolcc-home .review-top-account-bar {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
  padding: 10px 0 0;
  z-index: 2;
}

.moolcc-home .review-top-account-inner {
  gap: 10px;
  justify-content: flex-end;
}

.moolcc-home .review-top-icon-btn,
.moolcc-home .review-top-account-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 250, 244, 0.92);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.moolcc-home .review-top-icon-btn:hover,
.moolcc-home .review-top-account-chip:hover,
.moolcc-home .review-top-icon-btn.is-on {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 216, 122, 0.32);
}

.moolcc-home .review-top-account-avatar {
  display: none !important;
}

.moolcc-home .review-top-account-text {
  color: inherit;
  font-weight: 800;
}

.moolcc-home .pc-header-row {
  display: block;
  position: relative;
  min-height: 88px;
  padding: 0 0 10px;
  margin: 0 auto;
  z-index: 2;
}

.moolcc-home .index-tabs {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
}

.moolcc-home .tab-btn {
  border: 1px solid rgba(234, 214, 182, 0.42);
  background: rgba(255, 250, 244, 0.14);
  color: rgba(255, 247, 238, 0.92);
  box-shadow: 0 10px 18px rgba(31, 17, 11, 0.08);
  font-weight: 800;
}

.moolcc-home .tab-link,
.moolcc-home .nav-link {
  text-decoration: none;
}

.moolcc-home .tab-btn:hover {
  background: rgba(255, 248, 238, 0.22);
  color: #fffaf4;
  border-color: rgba(234, 214, 182, 0.56);
  transform: translateY(-2px);
}

.moolcc-home .tab-btn.active {
  background: #f0dfc1;
  color: var(--choco-dark);
  border-color: rgba(186, 153, 111, 0.5);
  box-shadow: 0 10px 22px rgba(122, 90, 57, 0.26);
}

.moolcc-home .title-container {
  position: absolute;
  left: var(--calendar-title-offset-x);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  padding-top: 0;
}

.moolcc-home .moolcc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 250, 244, 0.92);
  white-space: nowrap;
}

.moolcc-home .moolcc-hero-subline {
  display: none;
}

.moolcc-home .kyaang-title {
  font-family: "Jua", sans-serif !important;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: #ffe9c8;
  text-shadow:
    2px 2px 0 rgba(122, 90, 57, 0.3),
    0 0 12px rgba(255, 216, 122, 0.06);
  margin: 0;
  padding-bottom: 0;
}

.moolcc-home .header-spacer {
  display: none;
}

.moolcc-home .content-wrapper {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 98%;
  max-width: 1920px;
  margin: 12px auto 24px;
  overflow: visible;
}

.moolcc-home .container {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 1.2rem var(--calendar-shell-pad-x);
  box-shadow: 0 16px 36px var(--shadow);
  overflow: visible;
}

.moolcc-home .content-section.active {
  min-height: 0;
}

.moolcc-home .toolbar-row {
  min-height: 2.8rem;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}

.moolcc-home .cal-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--choco-dark);
  font-family: "Jua", sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
}

.moolcc-home .cal-nav button {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 10px;
  width: auto;
  height: auto;
  color: var(--choco-milk);
  box-shadow: none;
}

.moolcc-home .cal-nav button:hover,
.moolcc-home #dateTrigger:hover {
  color: var(--berry);
  border-color: transparent;
  background: transparent;
}

.moolcc-home #monthPicker {
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(60, 30, 20, 0.18);
}

.moolcc-home .mp-btn {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 75, 54, 0.12);
  color: var(--choco-dark);
}

.moolcc-home .mp-btn:hover {
  background: rgba(215, 187, 143, 0.16);
  color: var(--berry);
  border-color: rgba(122, 90, 57, 0.22);
}

.moolcc-home .mp-btn.active {
  background: var(--candy-pink);
  border-color: rgba(125, 75, 54, 0.35);
}

.moolcc-home .toggle-btn {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 75, 54, 0.14);
  color: var(--choco-dark);
  box-shadow: 0 6px 16px rgba(60, 30, 20, 0.06);
}

.moolcc-home .toggle-btn:hover {
  border-color: rgba(122, 90, 57, 0.28);
  color: var(--berry);
}

.moolcc-home .layout-split {
  gap: 1.5rem;
}

.moolcc-home .calendar-wrapper,
.moolcc-home .sidebar {
  position: relative;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.96);
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 24px rgba(60, 30, 20, 0.06);
}

.moolcc-home .calendar-wrapper::before,
.moolcc-home .sidebar::before {
  content: none;
}

.moolcc-home .cal-header {
  width: 100%;
  margin: 0;
  padding: 1rem var(--calendar-grid-pad-x) 0.3rem;
  gap: 2px;
  box-sizing: border-box;
}

.moolcc-home .day-label {
  font-family: "Jua", sans-serif;
  font-size: 1.1rem;
  border-radius: 15px;
  color: var(--choco-dark);
  padding: 0.8rem 0;
}

.moolcc-home .day-label.sun {
  background: var(--header-sun);
}

.moolcc-home .day-label.mon {
  background: var(--header-mon);
}

.moolcc-home .day-label.tue {
  background: var(--header-tue);
}

.moolcc-home .day-label.wed {
  background: var(--header-wed);
}

.moolcc-home .day-label.thu {
  background: var(--header-thu);
}

.moolcc-home .day-label.fri {
  background: var(--header-fri);
}

.moolcc-home .day-label.sat {
  background: var(--header-sat);
}

.moolcc-home .cal-grid {
  width: 100%;
  margin: 0;
  padding: 0.3rem var(--calendar-grid-pad-x) 1rem;
  box-sizing: border-box;
}

.moolcc-home .cal-cell {
  border-right: 1px dashed rgba(125, 75, 54, 0.16);
  border-bottom: 1px dashed rgba(125, 75, 54, 0.16);
}

.moolcc-home .date-num {
  color: var(--choco-dark);
  background: transparent;
  box-shadow: none;
}

.moolcc-home .date-num.sun {
  background: transparent;
  color: #d24d4d;
}

.moolcc-home .date-num.sat {
  background: transparent;
  color: #4568a8;
}

.moolcc-home .date-num.holiday {
  background: transparent;
  color: #d24d4d;
}

.moolcc-home .m-date.holiday,
.moolcc-home .cal-popup-day.holiday {
  color: #d24d4d;
}

.moolcc-home .cal-cell.density-compact,
.moolcc-home .cal-cell.density-dense,
.moolcc-home .cal-cell.density-ultra {
  --cell-date-top: 0.6rem;
  --cell-date-left: 0.6rem;
  --cell-date-font-size: 1.1rem;
  --cell-date-padding: 4px 10px;
}

.moolcc-home .event-item {
  color: #3b241a;
  box-shadow: 0 4px 10px rgba(60, 30, 20, 0.08);
}

.moolcc-home .event-time-badge,
.moolcc-home .badge-time {
  background-color: #fff4c6;
  color: #9b6114;
}

.moolcc-home .tooltip {
  background: rgba(255, 252, 246, 0.98);
  color: var(--choco-dark);
  border: 1px solid rgba(125, 75, 54, 0.22);
  box-shadow: 0 18px 28px rgba(60, 30, 20, 0.14);
}

.moolcc-home .tooltip::after {
  border-color: transparent rgba(125, 75, 54, 0.22) transparent transparent;
}

.moolcc-home .tooltip-left .tooltip::after {
  border-color: transparent transparent transparent rgba(125, 75, 54, 0.22);
}

.moolcc-home .sidebar {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 246, 231, 0.96));
  padding: 1.5rem;
}

.moolcc-home .memo-title {
  font-family: "Jua", sans-serif;
  font-size: 1.35rem;
  color: var(--berry);
  letter-spacing: 0.04em;
}

.moolcc-home .memo-save-btn {
  color: var(--berry);
}

.moolcc-home .memo-content {
  color: var(--text-soft);
  font-family: "Jua", sans-serif;
  font-size: 1rem;
  line-height: 32px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 30px,
    rgba(215, 187, 143, 0.34) 30px,
    rgba(215, 187, 143, 0.34) 31px
  );
}

.moolcc-home .lunch-status-badge {
  border: 2px solid rgba(122, 90, 57, 0.18);
  background: rgba(255, 250, 244, 0.94);
  color: var(--berry);
  box-shadow: 0 16px 30px rgba(60, 30, 20, 0.12);
  font-family: "Jua", sans-serif;
}

.moolcc-home .lunch-status-panel,
.moolcc-home .lunch-status-content {
  min-height: 0;
}

.moolcc-home .lunch-container {
  gap: 8px;
}

.moolcc-home .menu-item {
  color: var(--choco-dark);
  font-weight: 800;
  line-height: 1.42;
}

.moolcc-home .menu-highlight {
  background: var(--butter);
  color: var(--choco-dark);
}

.moolcc-home .songbook-layout {
  gap: 24px;
}

.moolcc-home .sb-sidebar {
  border-right: 1px dashed rgba(125, 75, 54, 0.14);
  padding: 0.4rem 1rem 0.4rem 0;
}

.moolcc-home .sb-content {
  padding: 0.4rem 0;
}

.moolcc-home .notice-card {
  background: rgba(255, 248, 236, 0.95);
  border: 2px dashed rgba(122, 90, 57, 0.24);
  box-shadow: 0 12px 24px rgba(60, 30, 20, 0.08);
}

.moolcc-home .notice-text {
  color: var(--berry);
  font-family: "Jua", sans-serif;
}

.moolcc-home .artist-btn {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 75, 54, 0.14);
  color: var(--choco-dark);
  box-shadow: 0 6px 16px rgba(60, 30, 20, 0.04);
}

.moolcc-home .artist-btn.active {
  background: var(--candy-pink);
  color: var(--choco-dark);
  border-color: rgba(125, 75, 54, 0.35);
  box-shadow: 0 10px 20px rgba(122, 90, 57, 0.2);
}

.moolcc-home .search-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 75, 54, 0.14);
  box-shadow: 0 10px 24px rgba(60, 30, 20, 0.05);
}

.moolcc-home .search-input {
  font-family: "Pretendard", sans-serif;
}

.moolcc-home .search-input::placeholder {
  color: rgba(107, 77, 62, 0.58);
}

.moolcc-home .song-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  padding: 6px 4px 30px;
}

.moolcc-home .song-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 14px 16px;
  padding: 24px 20px 30px;
  overflow: visible;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(125, 75, 54, 0.14);
  border-radius: 14px 14px 18px 18px;
  box-shadow: 0 16px 30px rgba(75, 41, 27, 0.12);
}

.moolcc-home .song-item:hover {
  background: rgba(255, 252, 246, 1);
  border-color: rgba(122, 90, 57, 0.24);
  box-shadow: 0 20px 32px rgba(60, 30, 20, 0.14);
  transform: translateY(-3px) rotate(0deg);
}

.moolcc-home .song-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4cb, #cb8d5d 68%, #8e5838 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.moolcc-home .song-item::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -12px;
  height: 24px;
  background: radial-gradient(circle at 12px -1px, transparent 12px, rgba(250, 245, 235, 0.98) 13px) repeat-x;
  background-size: 24px 24px;
}

.moolcc-home .song-item:nth-child(3n + 1) {
  transform: rotate(-1deg);
}

.moolcc-home .song-item:nth-child(3n + 2) {
  transform: rotate(0.85deg);
}

.moolcc-home .song-item:nth-child(3n) {
  transform: rotate(-0.35deg);
}

.moolcc-home .song-icon-box {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  margin-top: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 14px rgba(60, 30, 20, 0.12);
}

.moolcc-home .song-info {
  display: grid;
  gap: 4px;
  align-self: center;
}

.moolcc-home .song-title {
  font-family: "Pretendard", sans-serif;
  color: var(--choco-dark);
  font-size: 1.14rem;
}

.moolcc-home .song-artist {
  color: var(--text-soft);
  font-weight: 700;
}

.moolcc-home .song-genres {
  justify-content: flex-start;
  gap: 6px;
}

.moolcc-home .genre-tag {
  border-radius: 999px;
  border-width: 1px;
  box-shadow: none;
  font-weight: 800;
}

.moolcc-home .song-add-btn-small {
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 244, 198, 0.8);
  color: #8c4d14;
  border-color: rgba(140, 77, 20, 0.18);
}

.moolcc-home .default-icon {
  color: rgba(107, 77, 62, 0.34);
}

.moolcc-home #songbook-footer {
  color: rgba(44, 23, 15, 0.42);
}

.moolcc-home .modal-overlay {
  background: rgba(46, 25, 17, 0.42);
  backdrop-filter: blur(8px);
}

.moolcc-home .modal-card {
  background: rgba(255, 250, 244, 0.98);
  border: 1px solid rgba(125, 75, 54, 0.14);
  box-shadow: 0 24px 42px rgba(60, 30, 20, 0.18);
}

.moolcc-home .modal-title-lg,
.moolcc-home .modal-title {
  color: var(--choco-dark);
  font-family: "Jua", sans-serif;
}

.moolcc-home .modal-label,
.moolcc-home .form-label {
  color: var(--berry);
  font-family: "Jua", sans-serif;
}

.moolcc-home .modal-input,
.moolcc-home .modal-textarea,
.moolcc-home .form-input,
.moolcc-home .form-textarea {
  border: 2px solid rgba(125, 75, 54, 0.14);
  background: rgba(255, 255, 255, 0.84);
  font-family: "Pretendard", sans-serif;
}

.moolcc-home .modal-input:focus,
.moolcc-home .modal-textarea:focus,
.moolcc-home .form-input:focus,
.moolcc-home .form-textarea:focus {
  border-color: rgba(122, 90, 57, 0.32);
  background: #fff;
}

.moolcc-home .btn-save {
  background: #8f6147 !important;
  color: #fffaf4;
}

.moolcc-home .btn-edit {
  background: #e3a756;
  color: #fffaf4;
}

.moolcc-home .btn-del {
  background: #c65b56;
  color: #fffaf4;
}

.moolcc-home .btn-save:hover {
  background: #7d4b36 !important;
}

.moolcc-home .btn-edit:hover {
  background: #cf9345;
}

.moolcc-home .btn-del:hover {
  background: #b44c47;
}

.moolcc-home .btn-close {
  background: rgba(255, 255, 255, 0.88);
  color: var(--choco-dark);
}

.moolcc-home .home-popup-card {
  width: min(90vw, 540px);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.98);
  border: 1px solid rgba(125, 75, 54, 0.14);
  box-shadow: 0 30px 48px rgba(60, 30, 20, 0.22);
}

.moolcc-home .home-popup-kicker {
  background: rgba(215, 187, 143, 0.22);
  color: var(--berry);
}

.moolcc-home .home-popup-title {
  color: var(--choco-dark);
  font-family: "Jua", sans-serif;
}

.moolcc-home .home-popup-message {
  color: var(--text-soft);
}

.moolcc-home .home-popup-link {
  border: 1px solid rgba(122, 90, 57, 0.24);
  background: rgba(255, 255, 255, 0.85);
  color: var(--berry);
  box-shadow: 0 8px 16px rgba(60, 30, 20, 0.08);
}

.moolcc-home .home-popup-link:hover {
  background: rgba(255, 248, 252, 0.95);
}

.moolcc-home .home-popup-close {
  border-color: rgba(125, 75, 54, 0.16);
  color: var(--berry);
}

.moolcc-home .home-popup-close-today {
  border-color: rgba(125, 75, 54, 0.16);
  color: var(--text-soft);
}

.moolcc-home .home-popup-ok {
  background: #b69461;
  color: #fffaf4;
}

.moolcc-home .home-popup-image {
  border-radius: 18px;
}

.moolcc-home .home-popup-edit .btn-link-add {
  border-color: rgba(122, 90, 57, 0.22);
  background: rgba(255, 248, 238, 0.82);
  color: var(--berry);
}

.moolcc-home .copyright-footer {
  color: rgba(79, 52, 36, 0.74);
}

.moolcc-home .site-footer-board {
  width: 100%;
  min-height: var(--desktop-footer-h);
  border-radius: 0;
  border-left: none;
  border-right: none;
  background:
    radial-gradient(70% 120% at 12% 12%, rgba(166, 126, 91, 0.18), transparent 68%),
    radial-gradient(62% 110% at 88% 14%, rgba(226, 201, 167, 0.1), transparent 70%),
    radial-gradient(74% 130% at 52% 100%, rgba(255, 216, 122, 0.08), transparent 74%),
    linear-gradient(135deg, rgba(56, 34, 23, 0.98), rgba(99, 67, 49, 0.98) 52%, rgba(74, 48, 33, 0.98));
  border: 1px solid rgba(125, 75, 54, 0.16);
  box-shadow:
    0 18px 34px rgba(50, 30, 20, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.moolcc-home .site-footer-board::before {
  background:
    linear-gradient(rgba(255, 250, 244, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 244, 0.03) 1px, transparent 1px);
  opacity: 0.2;
}

.moolcc-home .site-footer-board::after {
  background:
    radial-gradient(circle at 17% 28%, rgba(226, 201, 167, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 22%, rgba(255, 250, 244, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 70%, rgba(255, 216, 122, 0.08) 0 1px, transparent 2px);
  opacity: 0.28;
}

.moolcc-home .site-footer-brand-name {
  font-family: "Jua", sans-serif;
  color: #f5e6d1;
}

.moolcc-home .site-footer-desktop {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 0 0 var(--desktop-footer-h);
}

.moolcc-home .site-footer-topline,
.moolcc-home .site-footer-contact-row,
.moolcc-home .site-footer-bottom,
.moolcc-home .site-footer-divider {
  width: var(--desktop-content-width);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.moolcc-home .site-footer-follow-link {
  border: 1px solid rgba(226, 201, 167, 0.18);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.12), rgba(255, 247, 238, 0.08));
  color: #f2dfc5;
  box-shadow:
    0 8px 18px rgba(30, 18, 12, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.moolcc-home .site-footer-follow-link:hover {
  color: #fff7ec;
  border-color: rgba(226, 201, 167, 0.3);
  background: rgba(255, 251, 247, 0.14);
  box-shadow:
    0 12px 20px rgba(30, 18, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.moolcc-home .site-footer-contact-row {
  margin: 0 auto 8px;
  padding: 10px 18px 12px;
  border-top-color: rgba(226, 201, 167, 0.16);
}

.moolcc-home .site-footer-contact-text,
.moolcc-home .site-footer-copy,
.moolcc-home .site-footer-contact-note,
.moolcc-home .site-footer-policy-link,
.moolcc-home .site-footer-contact-label,
.moolcc-home .site-footer-contact-separator {
  color: rgba(245, 230, 209, 0.82);
}

.moolcc-home .site-footer-contact-text a {
  color: #f8e8cf;
}

.moolcc-home .site-footer-contact-text a:hover,
.moolcc-home .site-footer-policy-link:hover {
  color: #fffaf4;
}

.moolcc-home .site-footer-divider {
  background: rgba(226, 201, 167, 0.14);
}

.moolcc-home .site-footer-policy-link + .site-footer-policy-link::before {
  color: rgba(245, 230, 209, 0.4);
}

html.calendar-embed-page,
html.calendar-embed-page body {
  height: 100%;
  overflow: hidden;
}

html.calendar-embed-page .moolcc-home::before,
html.calendar-embed-page .moolcc-home-hero,
html.calendar-embed-page .copyright-footer,
html.calendar-embed-page .site-footer-desktop,
html.calendar-embed-page .bottom-nav,
html.calendar-embed-page .mobile-memo-btn,
html.calendar-embed-page #homePopupOverlay,
html.calendar-embed-page #mobileMonthPickerOverlay,
html.calendar-embed-page #toast {
  display: none !important;
}

html.calendar-embed-page .moolcc-home {
  background: transparent;
}

html.calendar-embed-page .moolcc-home-shell {
  min-height: 100%;
}

html.calendar-embed-page .content-wrapper {
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.calendar-embed-page .container {
  height: 100%;
  min-height: 100%;
  padding: 0.85rem !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

html.calendar-embed-page #calendar.content-section,
html.calendar-embed-page #calendar .layout-split,
html.calendar-embed-page #calendar .calendar-wrapper {
  height: 100%;
  min-height: 0;
}

html.calendar-embed-page #calendar .sidebar,
html.calendar-embed-page #lunch,
html.calendar-embed-page .toolbar-row,
html.calendar-embed-page .pc-only .toggle-btn,
html.calendar-embed-page .mobile-only {
  display: none !important;
}

@media (min-width: 901px) {
  .moolcc-home .content-wrapper {
    height: calc(100dvh - var(--desktop-header-h) - var(--desktop-footer-h) - 24px);
    min-height: calc(100dvh - var(--desktop-header-h) - var(--desktop-footer-h) - 24px);
  }

  .moolcc-home .container {
    min-height: 100%;
    overflow: visible;
  }

  .moolcc-home .content-section.active,
  .moolcc-home .layout-split,
  .moolcc-home .calendar-wrapper,
  .moolcc-home .lunch-status-panel,
  .moolcc-home .lunch-status-content,
  .moolcc-home .songbook-layout {
    height: 100%;
    min-height: 0;
  }

  .moolcc-home .cal-grid {
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .moolcc-home .moolcc-home-hero {
    min-height: 104px;
    padding: 0 0 8px;
    border-bottom-width: 7px;
  }

  .moolcc-home .main-header {
    width: calc(100vw - 32px);
    margin: 0 auto;
    min-height: 78px;
    padding: 10px 0 6px;
    background: transparent;
  }

  .moolcc-home .moolcc-mobile-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: calc(100% - 132px);
  }

  .moolcc-home .main-header .kyaang-title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
    padding-top: 0;
    font-size: 1.62rem;
    line-height: 1.05;
    text-align: center;
    font-family: "Jua", "SUIT", sans-serif !important;
  }

  .moolcc-home .main-header .moolcc-hero-eyebrow {
    display: none;
  }

  .moolcc-home .mobile-header-left,
  .moolcc-home .mobile-header-right {
    top: 19px;
    transform: none;
  }

  .moolcc-home .mobile-header-left .admin-link-btn,
  .moolcc-home .mobile-header-right .admin-link-btn,
  .moolcc-home .mobile-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 250, 244, 0.92);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .moolcc-home .content-wrapper {
    width: 100%;
    margin: 12px 0 18px;
    padding: 0 16px;
    height: auto;
    min-height: 0;
  }

  .moolcc-home .container {
    padding: 18px 16px 20px;
    border-radius: 24px;
  }

  .moolcc-home .mobile-list-view,
  .moolcc-home .songbook-layout {
    padding: 8px 4px 0;
  }

  .moolcc-home .song-list {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    padding: 0 0 20px;
  }

  .moolcc-home .song-item,
  .moolcc-home .song-item:nth-child(3n + 1),
  .moolcc-home .song-item:nth-child(3n + 2),
  .moolcc-home .song-item:nth-child(3n) {
    transform: none;
  }

  .moolcc-home .song-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 18px;
  }

  .moolcc-home .song-item::before {
    top: 8px;
  }

  .moolcc-home .song-item::after {
    bottom: -10px;
  }

  .moolcc-home .song-icon-box {
    grid-row: auto;
    width: 50px;
    height: 50px;
    margin-top: 0;
  }

  .moolcc-home .song-info {
    display: block;
  }

  .moolcc-home .song-genres {
    justify-content: flex-end;
  }

  .moolcc-home .m-card {
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid rgba(125, 75, 54, 0.14);
    box-shadow: 0 10px 22px rgba(60, 30, 20, 0.08);
  }

  .moolcc-home .m-date {
    font-family: "Gugi", "Jua", sans-serif;
    color: var(--choco-dark);
  }

  .moolcc-home .m-badge {
    background: var(--candy-pink);
  }

  .moolcc-home .m-event {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(125, 75, 54, 0.14);
    box-shadow: 0 8px 16px rgba(60, 30, 20, 0.06);
    color: var(--choco-dark);
  }

  .moolcc-home .m-event-time {
    background: #fff4c6;
    color: #9b6114;
  }

  .moolcc-home .bottom-nav {
    background: rgba(255, 250, 244, 0.96) !important;
    border: 1px solid rgba(125, 75, 54, 0.12) !important;
    box-shadow: 0 14px 24px rgba(60, 30, 20, 0.12) !important;
  }

  .moolcc-home .nav-btn {
    color: var(--text-soft);
  }

  .moolcc-home .nav-btn.active {
    color: var(--berry);
  }

  .moolcc-home .mobile-memo-btn,
  .moolcc-home .mobile-song-btn {
    background: linear-gradient(135deg, var(--candy-pink), var(--berry));
    box-shadow: 0 12px 22px rgba(159, 59, 87, 0.24);
  }

  .moolcc-home .mobile-lunch-toggle-btn {
    background: rgba(255, 250, 244, 0.96);
    border-color: rgba(125, 75, 54, 0.14);
    color: var(--berry);
    box-shadow: 0 12px 22px rgba(60, 30, 20, 0.12);
  }

  .moolcc-home #mobileAppleMusic {
    color: rgba(44, 23, 15, 0.48);
  }
}
