.muscom-audioguide {
    max-width: 860px;
    margin: 24px auto 60px;
    padding: 0 20px;
    color: var(--muscom-ink, #18263b);
    font-family: Inter, Arial, sans-serif;
}
.muscom-audioguide * { box-sizing: border-box; }
.ag-eyebrow { font-size: 13px; color: var(--muscom-muted, #526174); }
.muscom-audioguide h1 { font-size: 32px; line-height: 1.2; margin: 12px 0 18px; }
.muscom-audioguide h2 { font-size: 25px; line-height: 1.3; margin: 18px 0; }
.muscom-audioguide a { color: var(--muscom-ink, #18263b); text-decoration-color: var(--muscom-accent, #f2a51a); text-underline-offset: 3px; }
.ag-status:empty, #ag-scan-status:empty { display: none; }
.ag-status, #ag-scan-status { padding: 12px 16px; background: #fff4d8; border-radius: 12px; margin: 12px 0; line-height: 1.5; }
.ag-gallery { display: flex; overflow: auto; gap: 12px; scroll-snap-type: x mandatory; border-radius: var(--muscom-radius, 16px); }
.ag-gallery:empty { display: none; }
.ag-gallery figure { width: 100%; min-width: 0; flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: #fff; }
.ag-gallery img { display: block; width: 100%; height: 360px; object-fit: contain; background: #fff; border-radius: var(--muscom-radius, 16px); }
.ag-gallery figcaption { padding: 10px 14px; font-size: 13px; line-height: 1.5; color: var(--muscom-muted, #526174); }
.muscom-audioguide .tg-theater-info { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 14px; }
.ag-hall-name { color: var(--muscom-muted, #526174); }
.muscom-audioguide #audioID { display: block; width: 100%; margin: 18px 0; }
.muscom-audioguide .ag-video-section { margin: 24px 0; }
.muscom-audioguide #ag-video { display: block; width: 100%; max-height: 65vh; min-height: 150px; border-radius: 14px; background: #18263b; object-fit: contain; }
.muscom-audioguide #ag-video-description { margin: 10px 0; line-height: 1.6; overflow-wrap: anywhere; }
.ag-controls, .ag-tools, .ag-tabs, .ag-code-form { display: flex; gap: 10px; align-items: center; }
.muscom-audioguide button {
    font: inherit;
    border: 1px solid var(--muscom-line, #dbe2e9);
    border-radius: 12px;
    background: #fff;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--muscom-ink, #18263b);
    min-height: 44px;
}
.muscom-audioguide button:hover { background: var(--muscom-soft, #f5f7fa); }
.muscom-audioguide button:focus-visible, .muscom-audioguide input:focus-visible, .muscom-audioguide summary:focus-visible {
    outline: 3px solid var(--muscom-accent, #f2a51a);
    outline-offset: 3px;
}
.muscom-audioguide button:disabled { opacity: .4; cursor: default; }
.ag-controls { justify-content: center; }
.muscom-audioguide .round-button-play {
    background: var(--muscom-accent, #f2a51a);
    color: var(--muscom-ink, #18263b);
    border-color: var(--muscom-accent, #f2a51a);
    font-weight: 700;
    min-width: 128px;
}
.muscom-audioguide .round-button-play.playing { background: #e49a16; }
.audioDuration { text-align: center; font-size: 13px; margin: 10px 0 24px; color: var(--muscom-muted, #526174); font-variant-numeric: tabular-nums; }
.ag-tools { justify-content: center; flex-wrap: wrap; }
.ag-tools button[aria-expanded=true], .ag-tabs button.active { background: #fff4d8; border-color: var(--muscom-accent, #f2a51a); }
.ag-panel { margin: 20px 0; padding: 18px; background: var(--muscom-soft, #f5f7fa); border: 1px solid var(--muscom-line, #dbe2e9); border-radius: var(--muscom-radius, 16px); }
.muscom-audioguide [hidden] { display: none !important; }
.ag-tabs { flex-wrap: wrap; margin-bottom: 16px; }
.ag-tabs button { padding: 9px 12px; font-size: 14px; }
.ag-panel label { display: block; margin-bottom: 8px; }
.ag-code-form input { min-width: 0; flex: 1; font: inherit; border: 1px solid var(--muscom-line, #dbe2e9); padding: 12px; border-radius: 10px; }
.ag-panel video { width: 100%; max-height: 350px; border-radius: 12px; background: var(--muscom-ink, #18263b); }
.ag-panel input[type=file] { max-width: 100%; padding: 12px 0; }
.ag-panel ol { list-style: none; padding: 0; margin: 0; max-height: 390px; overflow: auto; }
.ag-panel li + li { margin-top: 8px; }
.ag-panel li button { width: 100%; text-align: left; line-height: 1.5; }
.ag-panel li button span { font-weight: 700; display: inline-block; margin-right: 10px; }
.ag-panel li.active button { background: #fff4d8; border-color: var(--muscom-accent, #f2a51a); }
.ag-description-container { margin-top: 26px; border-top: 1px solid var(--muscom-line, #dbe2e9); padding-top: 18px; }
.ag-description-container summary { cursor: pointer; font-size: 18px; padding: 8px 0; }
.ag-description { line-height: 1.7; white-space: pre-line; margin: 16px 0; }
.ag-empty { max-width: 760px; margin: 60px auto; padding: 24px; line-height: 1.7; color: var(--muscom-ink, #18263b); }
.muscom-audioguide { max-width: 940px; --ag-line: #dce3eb; }
.ag-heading { margin-bottom: 18px; }
.ag-stopline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; color: #526174; }
.ag-number { display: inline-flex; padding: 7px 12px; border-radius: 10px; background: #fff0cf; color: #775018; font-size: 15px; font-weight: 700; }
.muscom-audioguide h1 { font-size: clamp(25px, 4.5vw, 38px); line-height: 1.2; margin: 16px 0 14px; overflow-wrap: anywhere; }
.ag-tools { justify-content: flex-start; margin: 0 0 22px; }
.muscom-audioguide .qr-button { font-weight: 700; background: #fff0cf; border-color: #edcd93; }
.ag-player { background: #fff; border: 1px solid var(--ag-line); border-radius: 18px; padding: 16px 20px; margin-top: 24px; box-shadow: 0 5px 24px #18263b09; }
.ag-player-label { margin: 0 0 12px; color: #526174; font-size: 13px; }
.ag-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ag-progress input { min-width: 0; flex: 1; accent-color: #e79b14; cursor: pointer; height: 32px; }
.ag-controls { gap: 12px; margin-top: 10px; }
.ag-controls button { min-width: 44px; padding: 10px; font-weight: 600; }
.muscom-audioguide .round-button-play { min-width: 148px; border-radius: 28px; min-height: 54px; font-size: 17px; }
.muscom-audioguide .ag-controls :is(.last-button,.next-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f5f7fa;
}
.muscom-audioguide .ag-controls :is(.last-button,.next-button) svg { display: block; width: 22px; height: 22px; }
.muscom-audioguide .ag-controls :is(.last-button,.next-button):hover:not(:disabled) { background: #fff0cf; border-color: #dda847; }
.muscom-audioguide .ag-controls :is(.last-button,.next-button):active:not(:disabled) { background: #ffe2a0; }
.ag-player-settings { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; flex-wrap: wrap; }
.ag-player-settings select { font: inherit; color: inherit; padding: 7px 9px; border: 1px solid var(--ag-line); border-radius: 9px; background: #fff; min-height: 36px; }
.muscom-audioguide #ag-resume { font-size: 13px; padding: 7px 10px; min-height: 36px; }
.ag-panel { background: #fff; scroll-margin-top: 90px; }
.ag-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.ag-panel-heading h2 { font-size: 19px; margin: 0; }
.ag-panel-heading button { border: 0; min-height: 40px; padding: 8px; font-size: 13px; }
.muscom-audioguide #ag-list-search { display: block; width: 100%; margin-bottom: 16px; font: inherit; padding: 12px; border: 1px solid var(--ag-line); border-radius: 10px; }
.ag-panel li button { display: flex; align-items: center; gap: 12px; }
.ag-panel li button span { margin-right: 0; }
.ag-panel li button .ag-list-number { font-size: 14px; color: #8b5d16; flex: 0 0 auto; }
.ag-panel li button .ag-list-copy { flex: 1; min-width: 0; font-weight: 400; }
.ag-list-copy strong, .ag-list-copy small { display: block; }
.ag-list-copy strong { font-size: 15px; line-height: 1.4; font-weight: 600; }
.ag-list-copy small { color: #68778a; font-size: 12px; margin-top: 3px; }
.ag-panel li button .ag-list-played { font-weight: 400; font-size: 11px; color: #347149; }
.ag-camera-frame { position: relative; }
.ag-camera-frame span { position: absolute; inset: 22% 25%; border: 2px solid #fff; border-radius: 16px; pointer-events: none; }
.ag-help { color: #68778a; line-height: 1.6; font-size: 13px; }
.ag-description-container { border-top: 0; margin-top: 22px; padding: 0; }
.ag-description-container summary { font-size: 19px; font-weight: 600; }
.ag-description { font-size: 17px; line-height: 1.75; }
.ag-description-link { font-size: 14px; }
.ag-hall-map { margin-top: 28px; padding: 16px; border: 1px solid var(--ag-line); background: #fff; border-radius: 16px; }
.ag-map-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ag-map-heading h2 { font-size: 20px; margin: 0; }
.ag-map-heading span { flex: 1 1 120px; font-size: 13px; color: #64748b; }
.ag-map-heading button { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.ag-map-viewport { overflow: hidden; border: 1px solid #e3e8ef; border-radius: 10px; background: #fafbfd; }
.ag-map-viewport svg { display: block; width: 100%; height: clamp(240px, 45vw, 390px); touch-action: none; cursor: grab; }
.ag-map-viewport svg:active { cursor: grabbing; }
.ag-hall-map p { font-size: 14px; line-height: 1.6; margin: 12px 0 0; }
.ag-hall-map p:empty { display: none; }
@media (max-width: 560px) {
    .muscom-audioguide { padding: 0 14px; margin-top: 18px; }
    .muscom-audioguide h1 { font-size: 25px; }
    .muscom-audioguide h2 { font-size: 21px; }
    .ag-controls { gap: 6px; }
    .ag-controls button { padding: 12px 9px; font-size: 14px; }
    .muscom-audioguide .round-button-play { min-width: 112px; min-height: 48px; font-size: 16px; }
    .ag-panel { padding: 12px; }
    .ag-gallery img { height: 265px; max-height: 40vh; }
    .ag-gallery figcaption { font-size: 12px; padding: 8px 10px; }
    .ag-player { position: sticky; bottom: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 15; padding: 10px 10px 12px; margin: 24px -4px 0; box-shadow: 0 4px 24px #18263b18; }
    .ag-player-label { display: none; }
    .ag-controls button { padding: 8px 6px; min-width: 38px; }
    .ag-controls { gap: 5px; margin-top: 2px; }
    .ag-player-settings { margin-top: 5px; }
    .ag-progress { gap: 8px; font-size: 12px; }
    .ag-tools button { flex: 1; padding: 12px 8px; font-size: 14px; }
    .ag-panel-heading { align-items: flex-start; }
    .ag-panel-heading h2 { font-size: 17px; }
    .ag-tabs { gap: 6px; }
    .ag-tabs button { font-size: 12px; padding: 8px; }
    .ag-description { font-size: 16px; }
    .ag-panel li button .ag-list-played { max-width: 64px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .muscom-audioguide * { scroll-behavior: auto !important; } }
@media (max-width: 360px) {
    .ag-player { padding-inline: 4px; }
    .ag-controls { gap: 3px; }
    .ag-controls button { padding: 8px 4px; white-space: nowrap; }
    .ag-controls .ag-rewind, .ag-controls .ag-forward { font-size: 12px; }
    .muscom-audioguide .round-button-play { min-width: 92px; }
}
