/* Jazz Standard Archive — お気に入り機能（ヘッダー♪・☰／曲ページ♪ボタン／パネル） */
.header-right { display: flex; align-items: center; }
.head-icons { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: var(--brown); cursor: pointer; border-radius: 50%; padding: 0; }
.icon-btn:active { background: var(--cream-mid); }
.icon-btn svg { width: 24px; height: 24px; }
.jsa-badge { position: absolute; top: 1px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold); color: #fff; font-size: 0.6rem; line-height: 16px; text-align: center; font-weight: 700; font-family: 'Noto Sans JP', sans-serif; }
.jsa-badge.zero { display: none; }
.jsa-note { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.jsa-note.on { fill: currentColor; }
.jsa-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* パネル */
.jsa-overlay { position: fixed; inset: 0; background: rgba(42,31,23,0.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; }
.jsa-overlay.open { opacity: 1; pointer-events: auto; }
.jsa-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(320px, 86vw); background: var(--cream); border-left: 1px solid var(--brown-pale); transform: translateX(100%); transition: transform .25s ease; z-index: 210; display: flex; flex-direction: column; text-align: left; }
.jsa-drawer.open { transform: translateX(0); }
.jsa-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--brown-pale); }
.jsa-drawer-title { font-family: 'IM Fell English', 'Noto Serif JP', serif; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.jsa-drawer-body { overflow-y: auto; flex: 1; }
.jsa-menu a { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid rgba(75,61,51,0.08); color: var(--brown); font-size: 0.92rem; text-decoration: none; }
.jsa-menu a:hover { background: var(--cream-mid); text-decoration: none; }
.jsa-menu .cnt { font-size: 0.75rem; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; }
.jsa-menu .cnt svg { width: 15px; height: 15px; }
.jsa-fav-item { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(75,61,51,0.08); }
.jsa-fav-item a { flex: 1; min-width: 0; text-decoration: none; display: block; }
.jsa-fav-item .en { font-family: 'Cormorant Garamond', 'Noto Serif JP', serif; font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.jsa-fav-item .jp { font-size: 0.72rem; color: var(--brown-light); }
.jsa-fav-del { background: none; border: none; color: var(--ink); cursor: pointer; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.jsa-fav-del svg { width: 22px; height: 22px; }
.jsa-empty { text-align: center; color: var(--brown-light); font-size: 0.85rem; padding: 40px 24px; line-height: 2; }
.jsa-empty svg { width: 20px; height: 20px; vertical-align: -5px; color: var(--brown-pale); }
.jsa-drawer-note { font-size: 0.68rem; color: var(--brown-pale); padding: 14px 20px; line-height: 1.7; }

/* 曲ページ：お気に入りボタン */
.title-row { display: flex; align-items: center; gap: 14px; }
.title-row .song-title-en { flex: 1; min-width: 0; }
.fav-wrap { flex-shrink: 0; min-width: 64px; display: flex; flex-direction: column; align-items: center; position: relative; }
.fav-btn { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--brown-pale); background: var(--cream); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; padding: 0; }
.fav-btn:hover { border-color: var(--gold); }
.fav-btn:active { transform: scale(0.94); }
.fav-btn svg { width: 24px; height: 24px; }
.fav-btn.on { background: var(--cream-mid); border-color: var(--brown-light); }
.fav-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; font-size: 0.66rem; letter-spacing: 0.08em; color: var(--brown-light); white-space: nowrap; font-family: 'Noto Sans JP', sans-serif; }
.title-row ~ .song-title-jp, .title-row ~ .song-title-sub { padding-right: 78px; }
.jsa-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--brown); color: var(--cream); font-size: 0.82rem; padding: 10px 20px; border-radius: 20px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 500; white-space: nowrap; font-family: 'Noto Sans JP', sans-serif; }
.jsa-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 名盤：ジャケット代替（Amazon審査期間中）＆Amazon表記 */
.album-cover-ph { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--cream); color: var(--brown-pale); }
.album-cover-ph svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.amazon-note { margin-top: 20px; padding: 12px 16px; font-size: 0.74rem; line-height: 1.8; color: var(--brown-light); background: var(--cream-mid); border-left: 2px solid var(--gold); border-radius: 2px; }

@media print { .head-icons, .fav-wrap, .jsa-toast, .jsa-drawer, .jsa-overlay { display: none !important; } }
