.song-hook-backdrop{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:0;overflow:hidden;background:#342937;transition:opacity .7s ease}.song-hook-backdrop img{width:100%;height:100%;object-fit:cover;filter:blur(12px) saturate(.85);transform:scale(1.12);transition:transform 1.4s cubic-bezier(.2,.7,.3,1)}.song-hook-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fff9f4b8,#e9e2ee66 55%,#25202b66)}.song-hook-backdrop.is-visible{opacity:1}.song-hook-backdrop.is-visible img{transform:scale(1.04)}
body.song-preview-open main{position:relative;z-index:1}.song-card{transition:background .6s,box-shadow .6s,transform .4s}.song-preview-open .song-card{background:#fffdfbdb;backdrop-filter:blur(16px)}.song-card.is-previewing{box-shadow:0 0 0 2px #b3a4d9,0 20px 60px #30224138;transform:translateY(-4px)}.song-card__thumb{position:relative}.song-card-preview{position:absolute;bottom:10px;right:10px;width:38px;height:38px;border:1px solid #ffffffa6;border-radius:50%;background:#fff9;backdrop-filter:blur(16px);color:#49394f;cursor:pointer;font-size:25px;display:grid;place-items:center;padding:0;box-shadow:0 4px 12px #0002}
.song-hook-panel{position:fixed;right:24px;top:150px;bottom:28px;width:min(400px,36vw);z-index:90;display:flex;flex-direction:column;padding:22px;border-radius:28px;border:1px solid #ffffffb8;background:linear-gradient(145deg,#ffffffce,#eee9f2a8);backdrop-filter:blur(30px) saturate(1.35);-webkit-backdrop-filter:blur(30px) saturate(1.35);box-shadow:inset 0 1px #fff,0 24px 90px #22172f30;color:#342d3d;animation:hook-enter .6s cubic-bezier(.16,1,.3,1)}.song-hook-heading{display:flex;justify-content:space-between;gap:12px}.song-hook-eyebrow{font:700 10px sans-serif;letter-spacing:.2em;color:#786786}.song-hook-heading h2{font:600 26px/1.15 Georgia,serif;margin:8px 0}.song-hook-heading p{font-size:14px;color:#786b80;margin:0}.song-hook-close{flex-shrink:0;align-self:flex-start;width:32px;height:32px;border-radius:50%;border:1px solid #fff9;background:#ffffff70;font-size:22px;cursor:pointer}.song-hook-play{margin:18px 0 12px;padding:10px 16px;align-self:flex-start;border:1px solid #ffffffbf;border-radius:99px;background:#ffffff80;color:#65527a;font-size:13px;font-weight:600;cursor:pointer}.song-hook-lyrics{overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#a899b8 transparent;mask-image:linear-gradient(transparent,#000 15px,#000 calc(100% - 20px),transparent);padding:15px 0 24px}.song-hook-lyrics table{border-collapse:separate;border-spacing:0 8px;width:100%;table-layout:fixed}.song-hook-lyrics tr{display:block;border:1px solid transparent;border-radius:15px;padding:12px;transition:background .4s,color .4s,box-shadow .4s}.song-hook-lyrics td{display:block;word-break:normal;overflow-wrap:anywhere}.song-hook-en{font:500 19px/1.5 Georgia,serif;color:#695c72}.song-hook-zh{font-size:13px;line-height:1.7;margin-top:5px;color:#8c7f93}.song-hook-lyrics tr.is-current{background:#ffffffc7;border-color:#fff;box-shadow:0 6px 18px #5a436311}.song-hook-lyrics .is-current .song-hook-en{color:#4e3467}.song-hook-lyrics .is-current .song-hook-zh{color:#706078}@keyframes hook-enter{from{opacity:0;transform:translateX(25px)}to{opacity:1;transform:none}}@media(max-width:700px){.song-hook-panel{left:12px;right:12px;top:auto;bottom:12px;width:auto;height:62vh;border-radius:24px;padding:18px}.song-hook-heading h2{font-size:22px}.song-card-preview{opacity:1}}
@media(prefers-reduced-motion:reduce){.song-hook-backdrop,.song-hook-backdrop img,.song-card,.song-hook-lyrics tr{transition:none}.song-hook-panel{animation:none}}
.song-card .song-card__thumb>.song-card-preview{position:absolute;inset:auto 10px 10px auto;width:38px;min-width:38px;max-width:38px;height:38px;min-height:38px;margin:0;padding:0;border:1px solid #ffffffb8;border-radius:50%;background:#ffffffb0;color:#635076;line-height:1;font-size:23px;box-shadow:0 4px 16px #291a3626;display:grid;place-items:center}

/* A labelled, generous tap target makes previews discoverable without hover. */
.song-card .song-card__thumb>.song-card-preview{width:auto;min-width:92px;max-width:none;height:44px;min-height:44px;padding:0 16px;border-radius:99px;font:700 15px/1.2 system-ui,sans-serif;touch-action:manipulation}
.song-card-preview:focus-visible,.song-sort-control:focus-within{outline:3px solid #9275bd;outline-offset:3px}
.song-sort-control{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:4px 12px 4px 16px;border:1px solid #dfd3e5;border-radius:99px;background:linear-gradient(135deg,#fff,#f6f0f9);color:#654c73;font-size:14px;box-shadow:0 3px 12px #49324f08;max-width:100%}
.song-sort-control>span{font-weight:700;white-space:nowrap}.song-sort-control select{font:inherit;color:inherit;border:0;background:transparent;min-height:36px;max-width:100%;cursor:pointer;outline:none}
@media(hover:none),(pointer:coarse){.song-hook-close{width:44px;height:44px}.song-hook-play{min-height:44px}.song-hook-panel{max-height:calc(100dvh - 120px)}}
@media(max-width:700px){.song-hook-panel{bottom:max(12px,env(safe-area-inset-bottom));height:62dvh}.song-sort-control{width:100%}.song-sort-control select{flex:1;min-width:0}}
/* Library cards are touch controls; lesson and lyric text remains selectable. */
[data-song-grid] .song-card,[data-song-grid] .song-card *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
[data-song-grid] .song-card img{-webkit-user-drag:none}

.song-hook-panel{resize:none}.song-hook-heading{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.song-hook-heading:active{cursor:grabbing}
