
:root{--bg:#08070d;--card:rgba(255,255,255,.075);--border:rgba(255,255,255,.14);--text:#f7edf8;--muted:#cbbfd0;--gold:#e8c981;--pink:#f2a7c6;--danger:#ff9aa9;--ok:#b7efc5;--shadow:0 22px 70px rgba(0,0,0,.42)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Noto Serif TC","Microsoft JhengHei","PingFang TC",serif;color:var(--text);background:radial-gradient(circle at top left,rgba(242,167,198,.28),transparent 34%),radial-gradient(circle at 80% 12%,rgba(155,135,245,.24),transparent 34%),linear-gradient(180deg,#08070d 0%,#11101a 48%,#08070d 100%);line-height:1.8;min-height:100vh}a{color:inherit;text-decoration:none}.site-nav{position:sticky;top:0;z-index:20;display:flex;justify-content:center;backdrop-filter:blur(18px);background:rgba(8,7,13,.68);border-bottom:1px solid rgba(255,255,255,.08)}.nav-inner{width:min(1120px,calc(100% - 32px));display:flex;align-items:center;justify-content:space-between;padding:14px 0}.brand{letter-spacing:.22em;font-size:14px;color:var(--gold);white-space:nowrap}.nav-links{display:flex;gap:18px;font-size:14px;color:var(--muted)}.nav-links a:hover{color:var(--gold)}main,section{width:min(1120px,calc(100% - 32px));margin:auto}section{padding:76px 0}.hero{min-height:86vh;display:grid;place-items:center;padding:70px 20px;width:100%}.hero-card{width:min(1120px,100%);display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:center}.page-hero{padding:90px 0 28px}.page-hero-panel,.panel,.card,.booking-panel,.inquiry-panel,.side-panel{border:1px solid var(--border);background:var(--card);border-radius:30px;box-shadow:var(--shadow);backdrop-filter:blur(18px)}.page-hero-panel,.panel,.hero-panel,.booking-panel,.inquiry-panel,.side-panel{padding:clamp(24px,4vw,48px)}.eyebrow{color:var(--gold);letter-spacing:.25em;font-size:13px;margin-bottom:18px}h1{font-size:clamp(40px,6vw,88px);line-height:1.08;margin:0 0 20px;letter-spacing:.1em}h2{margin:0;font-size:clamp(30px,4vw,52px);letter-spacing:.12em}.hero-text,.lead,.featured-note,.hint{color:var(--muted)}.visual{min-height:520px;border-radius:38px;border:1px solid var(--border);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),url('../images/main-visual.jpg') center/cover;box-shadow:var(--shadow);position:relative}.visual:after{content:'請將店鋪或角色主視覺放在 images/main-visual.jpg';position:absolute;left:22px;right:22px;bottom:22px;padding:18px;border-radius:24px;color:rgba(255,255,255,.72);background:rgba(0,0,0,.34);backdrop-filter:blur(14px);font-size:14px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}.section-kicker{color:var(--gold);letter-spacing:.2em;font-size:13px;white-space:nowrap}.card{padding:24px}.card h3{margin:0 0 8px;color:var(--gold);font-size:21px}.price{font-size:26px;color:var(--pink);margin:8px 0 12px}.cta-row,.button-row{margin-top:28px;display:flex;flex-wrap:wrap;gap:14px}.button-row{justify-content:space-between}.btn{appearance:none;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:var(--text);min-height:46px;padding:10px 22px;border-radius:999px;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.btn.primary{background:linear-gradient(135deg,rgba(232,201,129,.96),rgba(242,167,198,.92));color:#22131b;font-weight:700}.btn.disabled,.cast-link-disabled{opacity:.55;pointer-events:none}.about-grid,.reserve-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px}.cards,.staff-grid,.cast-grid,.service-list,.cast-options{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.info-list,.flow-list,.rules{display:grid;gap:14px}.info-item,.flow-item,.rule{padding:18px 20px;border-radius:22px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08)}.info-item strong,.flow-item strong{color:var(--gold);display:block;margin-bottom:4px}.rules{counter-reset:rule}.rule{counter-increment:rule}.rule:before{content:'0' counter(rule) ' / ';color:var(--gold);letter-spacing:.1em}.staff-card,.cast-card-profile{overflow:hidden;padding:0}.staff-img,.cast-img{aspect-ratio:4/5;background:linear-gradient(135deg,rgba(242,167,198,.22),rgba(155,135,245,.2)),var(--cast-image) center/cover;display:grid;place-items:end start;padding:18px;color:rgba(255,255,255,.7);font-size:14px}.staff-body,.cast-body{padding:22px}.staff-body h3,.cast-body h2{margin:0 0 6px;color:var(--gold);font-size:26px}.cast-name-row{display:flex;justify-content:space-between;align-items:start;gap:12px}.status,.cast-status,.today-line,.tag{border-radius:999px;padding:3px 10px;font-size:13px;line-height:1.5}.status,.cast-status{border:1px solid rgba(183,239,197,.34);color:var(--ok);background:rgba(183,239,197,.08);white-space:nowrap}.status.pending{color:var(--muted);border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.06)}.status.rest{color:var(--danger);border-color:rgba(255,154,169,.28);background:rgba(255,154,169,.08)}.today-line{display:inline-flex;margin:6px 0 12px;border:1px solid rgba(232,201,129,.28);background:rgba(232,201,129,.08);color:var(--gold)}.tag-row{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.tag{border:1px solid rgba(232,201,129,.35);color:var(--gold);background:rgba(232,201,129,.08)}.meta{display:grid;gap:8px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);color:var(--muted);font-size:14px}.meta strong{color:var(--gold);font-weight:500}.toolbar{width:min(1120px,calc(100% - 32px));margin:0 auto 28px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.filters{display:flex;flex-wrap:wrap;gap:10px}.filter-btn{appearance:none;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:var(--muted);min-height:42px;padding:8px 16px;border-radius:999px;font:inherit;cursor:pointer}.filter-btn.active,.filter-btn:hover{border-color:rgba(232,201,129,.55);background:rgba(232,201,129,.12);color:var(--gold)}.search-box{min-width:min(320px,100%);flex:0 1 340px}.search-box input,input,select,textarea{width:100%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:var(--text);border-radius:18px;min-height:48px;padding:12px 14px;font:inherit;outline:none}.search-box input{border-radius:999px;min-height:44px}select option{color:#22131b}textarea{min-height:132px;resize:vertical}label{color:var(--gold);letter-spacing:.08em;font-size:14px}.layout{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start}.steps{position:sticky;top:84px;display:grid;gap:12px}.step-pill{border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.06);border-radius:22px;padding:14px 16px;color:var(--muted)}.step-pill.active{border-color:rgba(232,201,129,.45);background:rgba(232,201,129,.1);color:var(--gold)}.form-step{display:none}.form-step.active{display:block}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:8px}.field.full{grid-column:1/-1}.agree-box{display:flex;gap:12px;align-items:flex-start;padding:18px;border-radius:22px;border:1px solid rgba(232,201,129,.32);background:rgba(232,201,129,.08);margin-top:22px}.agree-box input{margin-top:8px;transform:scale(1.2);accent-color:var(--gold)}.cast-card{cursor:pointer;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:24px;padding:16px;min-height:150px;transition:.18s ease;position:relative}.cast-card:hover{transform:translateY(-2px);border-color:rgba(232,201,129,.42)}.cast-card input{position:absolute;opacity:0;pointer-events:none}.cast-card.selected{border-color:rgba(232,201,129,.75);background:rgba(232,201,129,.13)}.cast-name{font-size:22px;color:var(--gold);margin-bottom:4px}.cast-desc{color:var(--muted);font-size:14px}.empty,.empty-cast-box,.pending-box{padding:18px;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--muted);margin-top:10px}.empty{display:none;text-align:center}.empty.show{display:block}.pending-box{display:none;border-color:rgba(232,201,129,.22);background:rgba(232,201,129,.07)}.pending-box.show{display:block}.error{color:var(--danger);margin-top:14px;display:none}.error.show{display:block}.success{color:var(--ok);margin-top:14px;display:none}.success.show{display:block}.summary-box{white-space:pre-wrap;padding:22px;border-radius:24px;border:1px solid rgba(232,201,129,.32);background:rgba(0,0,0,.22);color:#fff8f2;min-height:220px}.mode-hidden{display:none!important}.footer{text-align:center;padding:70px 20px 90px;color:var(--muted)}.footer .logo{color:var(--gold);font-size:22px;letter-spacing:.22em;margin-bottom:12px}.footer-note{text-align:center;color:var(--muted);margin-top:42px;font-size:14px}@media(max-width:980px){.cast-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.hero-card,.about-grid,.reserve-grid,.cards,.staff-grid,.service-list,.layout,.form-grid,.cast-options{grid-template-columns:1fr}.visual{min-height:420px}.steps{position:static}.section-title,.nav-inner{align-items:flex-start;flex-direction:column}.nav-links{width:100%;overflow-x:auto;padding-bottom:4px}.toolbar{align-items:stretch}.search-box{flex-basis:100%}}@media(max-width:680px){.cast-grid{grid-template-columns:1fr}}

/* =========================================================
   V3 layout alignment patch
   Keeps the clean JS/data structure, but restores the older
   centered page layout for service / cast / booking pages.
   ========================================================= */
main {
  width: 100%;
  margin: 0 auto;
}

section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.page-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 54px;
}

.page-hero-panel {
  border-radius: 38px;
  padding: clamp(30px, 6vw, 68px);
  position: relative;
  overflow: hidden;
}

.page-hero-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 1px solid rgba(232, 201, 129, 0.20);
  background: rgba(242, 167, 198, 0.08);
}

.page-hero-panel > * {
  position: relative;
  z-index: 1;
}

section.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.toolbar {
  width: min(1120px, calc(100% - 32px));
  padding: 0;
  margin: 0 auto 28px;
}

.cast-grid {
  width: min(1120px, calc(100% - 32px));
  padding: 0;
  margin: 0 auto;
}

.empty {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
}

.footer-note {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto 0;
}

@media (max-width: 900px) {
  .page-hero {
    padding-top: 150px;
  }
}


/* =========================================================
   V4 booking visual restoration
   Restores the richer old booking header layout without
   changing the clean data / Google Forms integration.
   ========================================================= */
.booking-main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.booking-hero {
  width: 100%;
  padding: 0;
  margin: 0 0 34px;
}

.booking-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.booking-hero-panel,
.booking-side-panel,
.booking-panel,
.inquiry-panel {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.booking-hero-panel {
  padding: clamp(28px, 5vw, 56px);
}

.booking-hero-panel h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: 0.1em;
}

.booking-side-panel {
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.booking-notice-card {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-notice-card strong {
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.booking-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding: 0;
}

.booking-layout .steps {
  position: sticky;
  top: 84px;
}

.booking-panel,
.inquiry-panel {
  padding: clamp(22px, 4vw, 44px);
  min-height: 640px;
}

.booking-panel .button-row,
.inquiry-panel .button-row {
  justify-content: space-between;
}

.booking-panel .rules {
  margin: 24px 0;
}

.booking-panel .cast-options {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 920px) {
  .booking-main {
    width: min(1080px, calc(100% - 32px));
    padding-top: 48px;
  }

  .booking-hero-grid,
  .booking-layout,
  .booking-panel .form-grid,
  .booking-panel .cast-options,
  .inquiry-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .booking-layout .steps {
    position: static;
  }
}

/* =========================================================
   Cast photo fix
   公關介紹頁照片改用 <img src="..."> 顯示。
   原本的 .cast-img 背景圖寫法保留給舊版，但在 cast-card-profile 裡改由圖片元素接管。
   ========================================================= */
.cast-card-profile .cast-img {
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: block;
  background: linear-gradient(135deg, rgba(242,167,198,.22), rgba(155,135,245,.2));
}

.cast-card-profile .cast-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cast-card-profile .cast-photo-fallback {
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,.75);
  background: linear-gradient(135deg, rgba(242,167,198,.22), rgba(155,135,245,.2));
}

.cast-card-profile .cast-photo-fallback span {
  display: block;
  color: var(--gold);
  font-size: 24px;
  letter-spacing: .12em;
}

.cast-card-profile .cast-photo-fallback small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}


/* =========================================================
   Booking form field height fix
   修正「預約節數」旁邊有提示文字時，左側 select 被同列高度拉高的問題。
   原因：CSS Grid 預設會 stretch 同列項目，導致「想體驗的服務」區塊跟著變高。
   ========================================================= */
.booking-panel .form-grid,
.inquiry-panel .form-grid {
  align-items: start;
}

.booking-panel .field,
.inquiry-panel .field {
  align-content: start;
}

.booking-panel .field > input:not([type="checkbox"]),
.booking-panel .field > select,
.inquiry-panel .field > input:not([type="checkbox"]),
.inquiry-panel .field > select {
  height: 48px;
  min-height: 48px;
}

.booking-panel .field > textarea,
.inquiry-panel .field > textarea {
  min-height: 132px;
}

.booking-panel .field .hint {
  line-height: 1.7;
  margin-top: 4px;
}

.booking-panel #timePreview {
  min-height: 0;
}


/* =========================================================
   Cast personal service modal
   公關個人服務懸浮視窗
   ========================================================= */
body.modal-open {
  overflow: hidden;
}

.personal-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: blur(14px);
}

.personal-menu-modal.show {
  display: flex;
}

.personal-menu-dialog {
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(232, 201, 129, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 167, 198, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(22, 18, 31, 0.98), rgba(9, 8, 15, 0.98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
}

.personal-menu-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.personal-menu-close:hover {
  border-color: rgba(232, 201, 129, 0.55);
  color: var(--gold);
}

.personal-menu-photo-wrap {
  min-height: 100%;
  background: linear-gradient(135deg, rgba(242, 167, 198, 0.18), rgba(155, 135, 245, 0.16)), #11101a;
}

.personal-menu-photo {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  background: #11101a;
}

.personal-menu-content {
  min-width: 0;
  padding: clamp(26px, 4vw, 46px);
  overflow-y: auto;
}

.personal-menu-content h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 8px;
}

.personal-menu-subtitle {
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.personal-menu-desc {
  color: var(--muted);
  margin: 0 0 22px;
}

.personal-menu-list {
  display: grid;
  gap: 14px;
}

.personal-service-card {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
}

.personal-service-card h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 20px;
}

.personal-service-card p {
  margin: 0;
  color: var(--muted);
}

.personal-service-price {
  margin-top: 12px;
  color: var(--pink);
  font-size: 18px;
  font-weight: 700;
}

.personal-service-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.personal-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .personal-menu-modal {
    align-items: flex-end;
    padding: 14px;
  }

  .personal-menu-dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
    border-radius: 28px;
  }

  .personal-menu-photo {
    min-height: 260px;
    max-height: 320px;
  }

  .personal-menu-content {
    padding: 24px;
  }
}


/* =========================================================
   Home announcements
   首頁水平公告區
   ========================================================= */
.announcement-section {
  padding-top: 26px;
}

.announcement-section .featured-note {
  margin-top: -14px;
  margin-bottom: 20px;
}

.announcement-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 4px 2px 18px;
}

.announcement-strip::-webkit-scrollbar {
  height: 8px;
}

.announcement-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.announcement-strip::-webkit-scrollbar-thumb {
  background: rgba(232, 201, 129, 0.32);
  border-radius: 999px;
}

.announcement-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 201, 129, 0.50);
}

.announcement-card {
  scroll-snap-align: start;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 167, 198, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.announcement-card.pinned {
  border-color: rgba(232, 201, 129, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 201, 129, 0.15), transparent 38%),
    rgba(255, 255, 255, 0.078);
}

.announcement-type {
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--gold);
  border: 1px solid rgba(232, 201, 129, 0.34);
  background: rgba(232, 201, 129, 0.08);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.announcement-card h3 {
  margin: 0;
  color: var(--gold);
  font-size: 22px;
}

.announcement-card p {
  margin: 0;
  color: var(--muted);
}

.announcement-date {
  color: rgba(247, 237, 248, 0.62);
  font-size: 13px;
}

.announcement-card .btn {
  margin-top: auto;
  width: fit-content;
}

.announcement-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

@media (max-width: 760px) {
  .announcement-section {
    padding-top: 12px;
  }

  .announcement-strip {
    grid-auto-columns: minmax(260px, 86vw);
  }
}

/* =========================================================
   Booking custom select visual
   預約頁美化下拉選單：伺服器 / 服務項目
   ========================================================= */
.tn-select {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.tn-select-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 0 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 201, 129, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tn-select-value:hover {
  border-color: rgba(232, 201, 129, 0.38);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 201, 129, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.095);
}

.tn-select-value:focus-visible {
  border-color: rgba(232, 201, 129, 0.68);
  box-shadow: 0 0 0 4px rgba(232, 201, 129, 0.10);
}

.tn-select-value::after {
  content: "⌄";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(232, 201, 129, 0.08);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.tn-select.open .tn-select-value {
  border-color: rgba(232, 201, 129, 0.74);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 201, 129, 0.16), transparent 42%),
    rgba(232, 201, 129, 0.08);
  box-shadow:
    0 0 0 4px rgba(232, 201, 129, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.tn-select.open .tn-select-value::after {
  transform: rotate(180deg);
  background: rgba(232, 201, 129, 0.15);
}

.tn-select-placeholder {
  color: rgba(247, 237, 248, 0.44);
}

.tn-select-menu {
  position: absolute;
  z-index: 80;
  inset: calc(100% + 10px) 0 auto 0;
  max-height: 254px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: none;
  padding: 8px;
  border: 1px solid rgba(232, 201, 129, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 167, 198, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(33, 29, 43, 0.98), rgba(17, 15, 24, 0.98));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 201, 129, 0.58) rgba(255, 255, 255, 0.055);
}

.tn-select.open .tn-select-menu {
  display: block;
  animation: tnSelectMenuIn 0.16s ease both;
}

@keyframes tnSelectMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chrome / Edge / Safari scrollbar */
.tn-select-menu::-webkit-scrollbar {
  width: 8px;
}

.tn-select-menu::-webkit-scrollbar-track {
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.tn-select-menu::-webkit-scrollbar-thumb {
  border: 2px solid rgba(24, 21, 33, 0.98);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(232, 201, 129, 0.82), rgba(242, 167, 198, 0.58));
}

.tn-select-menu::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(232, 201, 129, 0.98), rgba(242, 167, 198, 0.76));
}

.tn-select-option {
  position: relative;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 10px 38px 10px 12px;
  background: transparent;
  color: rgba(247, 237, 248, 0.82);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tn-select-option:hover {
  transform: translateX(2px);
  background: rgba(232, 201, 129, 0.10);
  color: var(--gold);
}

.tn-select-option.active {
  background:
    linear-gradient(90deg, rgba(232, 201, 129, 0.16), rgba(242, 167, 198, 0.06));
  color: var(--gold);
}

.tn-select-option.active::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 13px;
}

.tn-select-note {
  margin-top: 8px;
  color: rgba(203, 191, 208, 0.78);
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .tn-select-menu {
    max-height: 230px;
    border-radius: 18px;
  }

  .tn-select-option {
    min-height: 46px;
  }
}

/* =========================================================
   Booking custom select stacking fix
   修正自訂下拉選單被「下一步」等按鈕蓋住的問題
   ========================================================= */
.booking-panel,
.booking-panel .form-step,
.booking-panel .form-step.active,
.booking-panel .form-grid,
.booking-panel .field {
  overflow: visible;
}

.booking-panel .field {
  position: relative;
}

.tn-select {
  z-index: 1;
}

.tn-select.open {
  z-index: 300;
}

.tn-select.open .tn-select-menu {
  z-index: 301;
}

.booking-panel .button-row {
  position: relative;
  z-index: 2;
}

/* 下拉選單開啟時，讓同一步驟內按鈕不要蓋到選單 */
.booking-panel:has(.tn-select.open) .button-row {
  z-index: 0;
}

@supports not selector(:has(*)) {
  .tn-select.open {
    z-index: 999;
  }

  .tn-select.open .tn-select-menu {
    z-index: 1000;
  }
}

/* =========================================================
   Booking native select custom upgrade
   將「預約開始時間 / 預約節數」也改成同款美化下拉
   ========================================================= */
.booking-panel select.native-select-upgraded,
.inquiry-panel select.native-select-upgraded {
  display: none !important;
}

.booking-panel .field:has(.tn-select.open),
.inquiry-panel .field:has(.tn-select.open) {
  z-index: 420;
}

.tn-select.native-upgrade {
  margin-top: 0;
}

.tn-select.native-upgrade .tn-select-menu {
  max-height: 258px;
}

.tn-select.native-upgrade .tn-select-option {
  letter-spacing: 0.02em;
}

/* 讓自訂選單開啟時永遠蓋過步驟按鈕 */
.booking-panel:has(.tn-select.open) .button-row,
.inquiry-panel:has(.tn-select.open) .button-row {
  z-index: 0;
}

@supports not selector(:has(*)) {
  .tn-select.open {
    z-index: 1200;
  }

  .tn-select.open .tn-select-menu {
    z-index: 1201;
  }
}

/* =========================================================
   Cast grouped filter toolbar
   公關介紹頁：快速篩選改成「狀態篩選 / 服務特色」兩層分類
   ========================================================= */
.cast-filter-toolbar {
  align-items: stretch;
  gap: 18px;
}

.cast-filter-toolbar .filter-panel {
  flex: 1 1 680px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(232, 201, 129, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.cast-filter-toolbar .filter-group {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cast-filter-toolbar .filter-group-title {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.cast-filter-toolbar .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cast-filter-toolbar .filter-btn {
  min-height: 40px;
  padding: 8px 16px;
}

.cast-filter-toolbar .status-filter {
  border-color: rgba(232, 201, 129, 0.28);
  background:
    linear-gradient(135deg, rgba(232, 201, 129, 0.10), rgba(255, 255, 255, 0.055));
}

.cast-filter-toolbar .status-filter.active,
.cast-filter-toolbar .status-filter:hover {
  border-color: rgba(232, 201, 129, 0.70);
  background: rgba(232, 201, 129, 0.16);
  color: var(--gold);
}

.cast-filter-toolbar .filter-group-service .filter-btn {
  border-color: rgba(242, 167, 198, 0.18);
}

.cast-filter-toolbar .filter-group-service .filter-btn.active,
.cast-filter-toolbar .filter-group-service .filter-btn:hover {
  border-color: rgba(242, 167, 198, 0.55);
  background: rgba(242, 167, 198, 0.12);
  color: #ffd8e8;
}

.cast-filter-toolbar .search-box {
  flex: 0 1 340px;
  align-self: start;
}

.cast-filter-toolbar .search-box input {
  min-height: 50px;
}

@media (max-width: 900px) {
  .cast-filter-toolbar {
    gap: 14px;
  }

  .cast-filter-toolbar .filter-panel {
    flex-basis: 100%;
    padding: 16px;
  }

  .cast-filter-toolbar .filter-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cast-filter-toolbar .filter-group-title {
    min-height: 0;
    padding-left: 2px;
  }

  .cast-filter-toolbar .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .cast-filter-toolbar .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .cast-filter-toolbar .filters::-webkit-scrollbar {
    height: 6px;
  }

  .cast-filter-toolbar .filters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
  }

  .cast-filter-toolbar .filters::-webkit-scrollbar-thumb {
    background: rgba(232, 201, 129, 0.28);
    border-radius: 999px;
  }
}

/* =========================================================
   Cast special service filter
   將少數服務合併為「特殊服務」後的按鈕視覺
   ========================================================= */
.cast-filter-toolbar .special-filter {
  border-color: rgba(155, 135, 245, 0.34);
  background:
    linear-gradient(135deg, rgba(155, 135, 245, 0.12), rgba(242, 167, 198, 0.07));
}

.cast-filter-toolbar .special-filter.active,
.cast-filter-toolbar .special-filter:hover {
  border-color: rgba(155, 135, 245, 0.62);
  background:
    linear-gradient(135deg, rgba(155, 135, 245, 0.18), rgba(242, 167, 198, 0.12));
  color: #eee4ff;
}

/* =========================================================
   Cast tag collapse
   公關卡片標籤：預設只顯示前三個，其餘用 +N 收起
   ========================================================= */
.cast-card-profile .tag-row {
  align-items: center;
}

.cast-card-profile .tag-hidden {
  display: none;
}

.cast-card-profile .tag-row.expanded .tag-hidden {
  display: inline-flex;
}

.cast-card-profile .tag-more {
  appearance: none;
  cursor: pointer;
  font: inherit;
  color: rgba(247, 237, 248, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.cast-card-profile .tag-more:hover,
.cast-card-profile .tag-row.expanded .tag-more {
  color: var(--gold);
  border-color: rgba(232, 201, 129, 0.48);
  background: rgba(232, 201, 129, 0.10);
}

/* =========================================================
   Booking custom date picker
   預約頁美化日曆：取代瀏覽器原生 date picker
   ========================================================= */
.tn-date-picker {
  position: relative;
  width: 100%;
  isolation: isolate;
  z-index: 1;
}

.tn-date-picker.open {
  z-index: 460;
}

.tn-date-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 0 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 201, 129, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.tn-date-value:hover {
  border-color: rgba(232, 201, 129, 0.38);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 201, 129, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.095);
}

.tn-date-value:focus-visible {
  border-color: rgba(232, 201, 129, 0.68);
  box-shadow: 0 0 0 4px rgba(232, 201, 129, 0.10);
}

.tn-date-value::after {
  content: "▾";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(232, 201, 129, 0.08);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.tn-date-picker.open .tn-date-value {
  border-color: rgba(232, 201, 129, 0.74);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 201, 129, 0.16), transparent 42%),
    rgba(232, 201, 129, 0.08);
  box-shadow:
    0 0 0 4px rgba(232, 201, 129, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.tn-date-picker.open .tn-date-value::after {
  transform: rotate(180deg);
  background: rgba(232, 201, 129, 0.15);
}

.tn-date-placeholder {
  color: rgba(247, 237, 248, 0.44);
}

.tn-date-panel {
  position: absolute;
  z-index: 461;
  inset: calc(100% + 10px) 0 auto 0;
  display: none;
  padding: 14px;
  border: 1px solid rgba(232, 201, 129, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 167, 198, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(33, 29, 43, 0.98), rgba(17, 15, 24, 0.98));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.tn-date-picker.open .tn-date-panel {
  display: block;
  animation: tnSelectMenuIn 0.16s ease both;
}

.tn-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tn-date-title {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tn-date-nav,
.tn-date-action,
.tn-date-day {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.tn-date-nav {
  width: 36px;
  height: 34px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.tn-date-nav:hover {
  color: var(--gold);
  border-color: rgba(232, 201, 129, 0.42);
  background: rgba(232, 201, 129, 0.10);
}

.tn-date-weekdays,
.tn-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.tn-date-weekdays {
  margin-bottom: 6px;
  color: rgba(232, 201, 129, 0.86);
  font-size: 12px;
  text-align: center;
}

.tn-date-day {
  min-width: 0;
  height: 36px;
  border-radius: 12px;
  color: rgba(247, 237, 248, 0.84);
  background: transparent;
  border: 1px solid transparent;
}

.tn-date-day.outside {
  color: rgba(203, 191, 208, 0.40);
}

.tn-date-day.today {
  border-color: rgba(242, 167, 198, 0.50);
  color: #ffd8e8;
}

.tn-date-day.selected,
.tn-date-day:hover {
  color: #22131b;
  border-color: rgba(232, 201, 129, 0.74);
  background: linear-gradient(135deg, rgba(232, 201, 129, 0.98), rgba(242, 167, 198, 0.90));
}

.tn-date-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tn-date-action {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(232, 201, 129, 0.08);
  border: 1px solid rgba(232, 201, 129, 0.18);
}

.tn-date-action:hover {
  border-color: rgba(232, 201, 129, 0.48);
  background: rgba(232, 201, 129, 0.13);
}

.booking-panel,
.inquiry-panel,
.booking-panel .form-step,
.booking-panel .form-step.active,
.booking-panel .form-grid,
.inquiry-panel .form-grid,
.booking-panel .field,
.inquiry-panel .field {
  overflow: visible;
}

.booking-panel:has(.tn-date-picker.open) .button-row,
.inquiry-panel:has(.tn-date-picker.open) .button-row {
  z-index: 0;
}

@media (max-width: 680px) {
  .tn-date-panel {
    width: min(340px, 92vw);
  }

  .tn-date-day {
    height: 38px;
  }
}

/* =========================================================
   Home Lofi Player refined playlist
   多首播放、精簡控制、桌機可拖曳、窄螢幕不遮主視覺
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
}

.lofi-player {
  width: min(330px, calc(100% - 40px));
  padding: 14px;
  border: 1px solid rgba(232, 201, 129, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(232, 201, 129, 0.14), transparent 36%),
    radial-gradient(circle at 92% 18%, rgba(242, 167, 198, 0.13), transparent 34%),
    rgba(18, 14, 27, 0.50);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  color: var(--text);
}

.lofi-player-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 12px;
}

.lofi-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 201, 129, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(232, 201, 129, 0.94), rgba(242, 167, 198, 0.88));
  color: #231521;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(242, 167, 198, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lofi-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(242, 167, 198, 0.26);
}

.lofi-icon-pause {
  display: none;
}

.lofi-player.is-playing .lofi-icon-play {
  display: none;
}

.lofi-player.is-playing .lofi-icon-pause {
  display: inline;
}

.lofi-info {
  min-width: 0;
}

.lofi-kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.lofi-title {
  margin-top: 3px;
  color: rgba(247, 237, 248, 0.92);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lofi-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.lofi-mini-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(247, 237, 248, 0.72);
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.lofi-mini-btn:hover {
  color: var(--gold);
  border-color: rgba(232, 201, 129, 0.42);
  background: rgba(232, 201, 129, 0.10);
  transform: translateY(-1px);
}

.lofi-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  width: 34px;
  height: 28px;
  opacity: 0.75;
}

.lofi-bars span {
  width: 5px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 201, 129, 0.95), rgba(242, 167, 198, 0.72));
  transform-origin: bottom;
  animation: lofiBar 0.92s ease-in-out infinite;
  animation-play-state: paused;
}

.lofi-bars span:nth-child(2) { animation-delay: 0.14s; }
.lofi-bars span:nth-child(3) { animation-delay: 0.28s; }
.lofi-bars span:nth-child(4) { animation-delay: 0.42s; }

.lofi-player.is-playing .lofi-bars span {
  animation-play-state: running;
}

@keyframes lofiBar {
  0%, 100% { transform: scaleY(0.42); }
  50% { transform: scaleY(1.45); }
}

.lofi-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.lofi-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lofi-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(232, 201, 129, 0.95), rgba(242, 167, 198, 0.88));
}

.lofi-volume {
  width: 92px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(232, 201, 129, 0.95) 0%,
      rgba(242, 167, 198, 0.88) var(--volume-pct, 55%),
      rgba(255, 255, 255, 0.12) var(--volume-pct, 55%),
      rgba(255, 255, 255, 0.12) 100%);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lofi-volume::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.lofi-volume::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 201, 129, 0.14);
  appearance: none;
  -webkit-appearance: none;
}

.lofi-volume::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.lofi-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 201, 129, 0.14);
}

.lofi-note {
  margin-top: 9px;
  color: rgba(203, 191, 208, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.lofi-player.is-error .lofi-note {
  color: var(--danger);
}

@media (min-width: 1701px) {
  .lofi-player {
    position: absolute;
    top: clamp(58px, 7vh, 86px);
    right: clamp(12px, 3vw, 52px);
  }

  .lofi-player.is-custom-position {
    position: fixed;
    right: auto;
    z-index: 80;
  }

  .lofi-player-main {
    cursor: grab;
  }

  .lofi-player.is-dragging .lofi-player-main {
    cursor: grabbing;
  }
}

@media (max-width: 1700px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding-top: 92px;
  }

  .lofi-player {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: min(380px, calc(100% - 40px));
    margin: 0 clamp(20px, 7vw, 96px) 4px auto;
    align-self: stretch;
    transform: none !important;
  }

  .lofi-player.is-custom-position {
    position: relative !important;
  }

  .hero-card {
    width: min(1120px, 100%);
  }

  .lofi-player-main {
    cursor: default;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 112px;
    gap: 24px;
  }

  .lofi-player {
    width: min(420px, 100%);
    margin: 0 auto;
    align-self: center;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 96px;
  }

  .lofi-player {
    width: 100%;
    border-radius: 24px;
  }

  .lofi-player-main {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .lofi-bars {
    display: none;
  }

  .lofi-controls {
    grid-template-columns: 1fr;
  }

  .lofi-volume {
    width: 100%;
  }
}

/* =========================================================
   Home Lofi Player playlist fix v2
   修正音量 range 被全站 input 樣式撐大的問題，並保留多首播放相容性
   ========================================================= */
.lofi-player .lofi-controls {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.lofi-player .lofi-volume {
  width: 92px !important;
  min-height: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(232, 201, 129, 0.95) 0%,
      rgba(242, 167, 198, 0.88) var(--volume-pct, 55%),
      rgba(255, 255, 255, 0.12) var(--volume-pct, 55%),
      rgba(255, 255, 255, 0.12) 100%) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lofi-player .lofi-volume:focus-visible {
  box-shadow: 0 0 0 4px rgba(232, 201, 129, 0.12);
}

.lofi-player .lofi-volume::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.lofi-player .lofi-volume::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 201, 129, 0.14);
  appearance: none;
  -webkit-appearance: none;
}

.lofi-player .lofi-volume::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.lofi-player .lofi-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 201, 129, 0.14);
}

@media (max-width: 560px) {
  .lofi-player .lofi-controls {
    grid-template-columns: 1fr;
  }

  .lofi-player .lofi-volume {
    width: 100% !important;
  }
}

/* =========================================================
   Home Lofi Player marquee polish v3
   播放器加寬、下一首/重置按鈕精修、播放狀態跑馬燈
   ========================================================= */
.lofi-player {
  width: min(420px, calc(100% - 40px));
}

.lofi-player-main {
  grid-template-columns: 48px minmax(0, 1fr) auto 34px;
}

.lofi-title {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.lofi-title span {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lofi-player.is-playing .lofi-title span {
  min-width: max-content;
  padding-right: 36px;
  animation: lofiTitleMarquee 9s linear infinite;
}

@keyframes lofiTitleMarquee {
  0%, 16% {
    transform: translateX(0);
  }

  84%, 100% {
    transform: translateX(calc(-100% + min(100%, 220px)));
  }
}

.lofi-actions {
  gap: 8px;
}

.lofi-mini-btn {
  width: 30px;
  height: 30px;
  border-color: rgba(232, 201, 129, 0.24);
  background:
    radial-gradient(circle at 35% 20%, rgba(232, 201, 129, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.055);
  color: rgba(247, 237, 248, 0.78);
  font-size: 0;
}

.lofi-mini-btn::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  opacity: 0.92;
}

.lofi-next::before {
  clip-path: polygon(0 0, 48% 50%, 0 100%, 0 62%, 45% 50%, 0 38%, 0 0, 55% 0, 100% 50%, 55% 100%, 55% 62%, 78% 50%, 55% 38%, 55% 0);
}

.lofi-reset::before {
  width: 14px;
  height: 14px;
  clip-path: path("M 11.7 3.4 C 10.4 2.1 8.6 1.4 6.8 1.6 C 4.1 1.8 1.9 3.8 1.4 6.5 L 0.2 6.3 C 0.7 2.9 3.5 0.4 6.7 0.2 C 8.8 0 10.9 0.8 12.4 2.2 L 14 0.7 L 14 5.2 L 9.5 5.2 Z M 2.3 10.6 C 3.6 11.9 5.4 12.6 7.2 12.4 C 9.9 12.2 12.1 10.2 12.6 7.5 L 13.8 7.7 C 13.3 11.1 10.5 13.6 7.3 13.8 C 5.2 14 3.1 13.2 1.6 11.8 L 0 13.3 L 0 8.8 L 4.5 8.8 Z");
}

@supports not (clip-path: path("M 0 0")) {
  .lofi-reset::before {
    clip-path: none;
    background: transparent;
    color: currentColor;
    content: "↺";
    width: auto;
    height: auto;
    font-size: 16px;
  }
}

.lofi-mini-btn:hover {
  color: var(--gold);
  border-color: rgba(232, 201, 129, 0.58);
  background:
    radial-gradient(circle at 35% 20%, rgba(232, 201, 129, 0.22), transparent 44%),
    rgba(232, 201, 129, 0.10);
}

.lofi-note {
  position: relative;
  min-height: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.lofi-note .lofi-note-marquee {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  animation: lofiNoteMarquee 14s linear infinite;
}

@keyframes lofiNoteMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 1700px) {
  .lofi-player {
    width: min(440px, calc(100% - 40px));
  }
}

@media (max-width: 560px) {
  .lofi-player-main {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .lofi-title span {
    max-width: 100%;
  }
}

/* =========================================================
   Home Lofi Player svg icon polish v4
   使用內嵌 SVG 取代 CSS clip-path 圖示，修正圓圈與圖示不置中問題
   ========================================================= */
.lofi-actions {
  gap: 7px;
}

.lofi-mini-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 201, 129, 0.24);
  background:
    radial-gradient(circle at 35% 20%, rgba(232, 201, 129, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.055);
  color: rgba(247, 237, 248, 0.80);
  line-height: 1;
}

.lofi-mini-btn::before {
  content: none !important;
  display: none !important;
}

.lofi-mini-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  overflow: visible;
  fill: currentColor;
  stroke: none;
}

.lofi-reset svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lofi-mini-btn:hover {
  color: var(--gold);
  border-color: rgba(232, 201, 129, 0.58);
  background:
    radial-gradient(circle at 35% 20%, rgba(232, 201, 129, 0.22), transparent 46%),
    rgba(232, 201, 129, 0.10);
  transform: translateY(-1px);
}

.lofi-mini-btn:active {
  transform: translateY(0);
}

/* 播放器既然可拖曳，桌機版稍微加寬，歌名不要太快被截斷 */
@media (min-width: 981px) {
  .lofi-player {
    width: min(440px, calc(100% - 40px));
  }
}

/* =========================================================
   Home Lofi Player collapse v5
   新增展開 / 收合狀態；展開為完整播放器，收合為迷你膠囊播放器
   ========================================================= */
.lofi-collapse svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.lofi-player.is-collapsed {
  width: min(272px, calc(100% - 40px));
  padding: 9px 12px;
  border-radius: 999px;
}

.lofi-player.is-collapsed .lofi-player-main {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
}

.lofi-player.is-collapsed .lofi-toggle {
  width: 40px;
  height: 40px;
}

.lofi-player.is-collapsed .lofi-kicker,
.lofi-player.is-collapsed .lofi-controls,
.lofi-player.is-collapsed .lofi-note,
.lofi-player.is-collapsed .lofi-bars,
.lofi-player.is-collapsed .lofi-next,
.lofi-player.is-collapsed .lofi-reset {
  display: none !important;
}

.lofi-player.is-collapsed .lofi-title {
  font-size: 14px;
  line-height: 1.35;
}

.lofi-player.is-collapsed .lofi-title span {
  max-width: 100%;
}

.lofi-player.is-collapsed .lofi-actions {
  display: inline-flex;
}

.lofi-player.is-collapsed .lofi-collapse {
  width: 32px;
  height: 32px;
}

.lofi-player.is-collapsed .lofi-collapse svg {
  transform: rotate(180deg);
}

/* 收合時仍保留一點呼吸感，不讓它像普通按鈕 */
.lofi-player.is-collapsed.is-playing {
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.24),
    0 0 32px rgba(242, 167, 198, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  .lofi-player.is-collapsed {
    width: min(300px, 100%);
  }
}

@media (max-width: 560px) {
  .lofi-player.is-collapsed {
    width: 100%;
  }

  .lofi-player.is-collapsed .lofi-player-main {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
}

/* =========================================================
   Home Lofi Player externalized v6
   播放器 HTML 改由 js/lofi-player.js 自動生成；此處保留掛載後的定位保險
   ========================================================= */
.lofi-player {
  z-index: 5;
}

@media (min-width: 1701px) {
  .lofi-player {
    z-index: 5;
  }

  .lofi-player.is-custom-position {
    z-index: 80;
  }
}

/* =========================================================
   Home Lofi Player volume slim v8
   音量區瘦身：用自訂 track/thumb 取代原生 range 外觀，置中並降低厚重感
   ========================================================= */
.lofi-player .lofi-controls {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lofi-player .lofi-volume-wrap {
  min-width: 108px;
  height: 26px;
  display: grid;
  grid-template-columns: 22px 66px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 3px 8px 3px 5px;
  border: 1px solid rgba(232, 201, 129, 0.13);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 20%, rgba(232, 201, 129, 0.10), transparent 44%),
    rgba(255, 255, 255, 0.042);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 22px rgba(0, 0, 0, 0.10);
}

.lofi-player .lofi-volume-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 237, 248, 0.70);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.lofi-player .lofi-volume-icon:hover {
  color: var(--gold);
  background: rgba(232, 201, 129, 0.07);
  transform: translateY(-1px);
}

.lofi-player .lofi-volume-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lofi-player .lofi-volume-off {
  display: none !important;
}

.lofi-player.is-muted .lofi-volume-on {
  display: none !important;
}

.lofi-player.is-muted .lofi-volume-off {
  display: block !important;
}

.lofi-player.is-muted .lofi-volume-icon {
  color: rgba(255, 154, 169, 0.86);
}

.lofi-player .lofi-volume-control {
  position: relative;
  width: 66px;
  height: 14px;
  display: grid;
  align-items: center;
}

.lofi-player .lofi-volume-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.lofi-player .lofi-volume-track span {
  display: block;
  width: var(--volume-pct, 55%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(232, 201, 129, 0.95), rgba(242, 167, 198, 0.82));
}

.lofi-player.is-muted .lofi-volume-track span {
  background: rgba(255, 154, 169, 0.72);
}

.lofi-player .lofi-volume-thumb {
  position: absolute;
  top: 50%;
  left: var(--volume-pct, 55%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  box-shadow:
    0 0 0 3px rgba(232, 201, 129, 0.11),
    0 4px 10px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.lofi-player.is-muted .lofi-volume-thumb {
  background: var(--danger);
  box-shadow:
    0 0 0 3px rgba(255, 154, 169, 0.10),
    0 4px 10px rgba(0, 0, 0, 0.24);
}

.lofi-player .lofi-volume {
  position: absolute;
  inset: -5px 0;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 24px !important;
  height: 24px !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 2;
}

.lofi-player .lofi-volume:focus-visible + .lofi-volume-track {
  box-shadow: 0 0 0 4px rgba(232, 201, 129, 0.12);
}

.lofi-player.is-collapsed .lofi-volume-wrap {
  display: none !important;
}

@media (max-width: 560px) {
  .lofi-player .lofi-controls {
    grid-template-columns: 1fr;
  }

  .lofi-player .lofi-volume-wrap {
    width: 100%;
    grid-template-columns: 24px 1fr;
  }

  .lofi-player .lofi-volume-control {
    width: 100%;
  }
}

/* =========================================================
   Home Lofi Player volume clean v9
   音量區移除外層膠囊，改成輕量 SVG + 細線滑桿，並與進度條中心對齊
   ========================================================= */
.lofi-player .lofi-controls {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

/* 取消音量區外層膠囊感，讓播放器整體更乾淨 */
.lofi-player .lofi-volume-wrap {
  min-width: 98px;
  height: 18px;
  display: grid;
  grid-template-columns: 18px 72px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 音量圖示更小、更貼近精品播放器的輕量感 */
.lofi-player .lofi-volume-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 237, 248, 0.66);
  cursor: pointer;
  transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.lofi-player .lofi-volume-icon:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.lofi-player .lofi-volume-icon svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lofi-player .lofi-volume-off {
  display: none !important;
}

.lofi-player.is-muted .lofi-volume-on {
  display: none !important;
}

.lofi-player.is-muted .lofi-volume-off {
  display: block !important;
}

.lofi-player.is-muted .lofi-volume-icon {
  color: rgba(255, 154, 169, 0.84);
}

/* 自訂音量滑桿：視覺中心與左側進度條中心對齊 */
.lofi-player .lofi-volume-control {
  position: relative;
  width: 72px;
  height: 18px;
  display: grid;
  align-items: center;
}

.lofi-player .lofi-volume-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.115);
  pointer-events: none;
}

.lofi-player .lofi-volume-track span {
  display: block;
  width: var(--volume-pct, 55%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(232, 201, 129, 0.92), rgba(242, 167, 198, 0.78));
}

.lofi-player.is-muted .lofi-volume-track span {
  background: rgba(255, 154, 169, 0.66);
}

.lofi-player .lofi-volume-thumb {
  position: absolute;
  top: 50%;
  left: var(--volume-pct, 55%);
  width: 11px;
  height: 11px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  box-shadow:
    0 0 0 2px rgba(232, 201, 129, 0.11),
    0 4px 10px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.lofi-player.is-muted .lofi-volume-thumb {
  background: var(--danger);
  box-shadow:
    0 0 0 2px rgba(255, 154, 169, 0.10),
    0 4px 10px rgba(0, 0, 0, 0.22);
}

/* 原生 input 只負責拖曳操作，視覺交給自訂 track/thumb */
.lofi-player .lofi-volume {
  position: absolute;
  inset: -5px 0;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 28px !important;
  height: 28px !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 2;
}

.lofi-player .lofi-volume:focus-visible + .lofi-volume-track {
  box-shadow: 0 0 0 4px rgba(232, 201, 129, 0.12);
}

.lofi-player.is-collapsed .lofi-volume-wrap {
  display: none !important;
}

@media (max-width: 560px) {
  .lofi-player .lofi-controls {
    grid-template-columns: 1fr;
  }

  .lofi-player .lofi-volume-wrap {
    width: 100%;
    grid-template-columns: 20px 1fr;
  }

  .lofi-player .lofi-volume-control {
    width: 100%;
  }
}

/* =========================================================
   Home Lofi Player volume icon v10
   只放大喇叭 SVG，不改外層尺寸與對齊位置
   ========================================================= */
.lofi-player .lofi-volume-icon svg {
  width: 18.5px;
  height: 18.5px;
  stroke-width: 2.05;
}

/* =========================================================
   Inquiry native select upgrade v1
   詢問排班「希望時段」使用同款美化下拉選單
   ========================================================= */
.inquiry-panel select.native-select-upgraded {
  display: none !important;
}

.inquiry-panel .field {
  overflow: visible;
  position: relative;
}

.inquiry-panel .tn-select.open {
  z-index: 420;
}

.inquiry-panel .tn-select.open .tn-select-menu {
  z-index: 421;
}

