/* Profile songs (ttc-song.js): YouTube, SoundCloud, Vimeo, song and video links, uploaded songs */
.ts-card{padding:14px;display:flex;flex-direction:column;gap:12px;overflow:hidden}
.ts-head{display:flex;align-items:center;gap:12px;min-width:0}
.ts-text{flex:1;min-width:0}
.ts-text small{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#3FD2E8}
.ts-text strong{display:block;font-size:15px;font-weight:600;color:#E8F1F3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-yt{flex:none;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#8FA6AD!important}
.ts-yt:hover{background:#15242A;color:#E8F1F3!important}
.ts-yt .tf-ic{width:17px;height:17px}
/* Equalizer bars that move while the player is open */
.ts-eq{flex:none;width:34px;height:34px;border-radius:10px;background:#3FD2E81a;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:9px 8px}
.ts-eq i{width:4px;height:30%;border-radius:2px;background:#3FD2E8}
.ts-card.playing .ts-eq i{animation:ts-eq 1s ease-in-out infinite}
.ts-card.playing .ts-eq i:nth-child(2){animation-delay:-.4s}.ts-card.playing .ts-eq i:nth-child(3){animation-delay:-.7s}
@keyframes ts-eq{0%,100%{height:25%}50%{height:100%}}
@media(prefers-reduced-motion:reduce){.ts-card.playing .ts-eq i{animation:none;height:70%}}
/* YouTube asks for a player at least 200 by 200 pixels, so the stage never gets shorter than that. */
.ts-stage{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;border-radius:12px;overflow:hidden;background:#000}
.ts-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ts-poster{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:#000;cursor:pointer}
.ts-poster img{width:100%;height:100%;object-fit:cover;opacity:.75;transition:opacity .2s}
.ts-poster:hover img{opacity:.9}
.ts-big{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:#3FD2E8;color:#062026;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px #0008}
.ts-big .tf-ic{width:28px;height:28px}
.anthem-tip{font-size:13px;color:#8FA6AD;margin:0 0 8px}
@media(max-width:759px){.tp-psong{margin:12px 16px 4px}}

/* Play, pause, sound and video buttons */
.ts-card button{font:inherit;margin:0}
.ts-pp{flex:none;width:40px;height:40px;border-radius:50%;border:0;padding:0;background:#3FD2E8;color:#062026;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px #3FD2E833;transition:transform .15s}
.ts-pp:active{transform:scale(.92)}
.ts-pp .tf-ic{width:18px;height:18px;margin-left:2px}
.ts-pause{display:flex;gap:4px}.ts-pause i{width:4px;height:14px;border-radius:2px;background:#062026}
.ts-sound{flex:none;height:34px;padding:0 12px;border-radius:17px;border:1px solid #3FD2E8;background:#0F2A30;color:#E8F1F3;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.ts-size{flex:none;height:34px;padding:0 12px;border-radius:17px;border:1px solid #23363D;background:#15242A;color:#E8F1F3;font-size:12.5px;font-weight:600;cursor:pointer}
.ts-hint{display:none;font-size:12px;color:#F2C14E;margin-top:2px}
.ts-card.blocked .ts-hint{display:block}
.ts-card.blocked .ts-pp{animation:ts-pulse 1.3s ease-in-out infinite}
@keyframes ts-pulse{0%,100%{box-shadow:0 0 0 0 #3FD2E8aa}50%{box-shadow:0 0 0 10px #3FD2E800}}
.ts-none{margin:0;font-size:13px;color:#8FA6AD}
.ts-stage.audio{display:none}
.ts-stage video{position:absolute;inset:0;width:100%;height:100%;background:#000}
.ts-stage.sc{aspect-ratio:auto;min-height:0;height:166px;background:transparent}
.ts-tilebar{display:none}
/* Phones: a slim bar; the video opens with "Video", and a playing YouTube song floats as a corner tile */
.ts-card.ts-compact{padding:10px 12px;gap:0}
.ts-compact .ts-eq{width:30px;height:30px;padding:7px 6px}
.ts-compact .ts-text strong{font-size:14px}
.ts-compact .ts-stage{display:none;margin-top:10px}
.ts-compact.expanded .ts-stage:not(.audio){display:block}
.ts-compact .ts-stage.sc:not(.audio){display:block;position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
.ts-compact.expanded .ts-stage.sc{position:relative;width:100%;height:120px;opacity:1;pointer-events:auto}
.ts-card.ts-floating .ts-stage{display:block;position:fixed;right:10px;bottom:calc(86px + env(safe-area-inset-bottom));width:200px;height:200px;min-height:200px;aspect-ratio:auto;margin:0;z-index:60;overflow:visible;border-radius:14px;box-shadow:0 14px 36px #000d;animation:ts-tile .3s cubic-bezier(.2,1.3,.4,1)}
.ts-card.ts-floating .ts-stage iframe{border-radius:14px}
.ts-card.ts-floating .ts-tilebar{display:flex;position:absolute;right:0;top:-38px;gap:6px}
.ts-tilebar button{width:32px;height:32px;border-radius:50%;border:1px solid #2E4A52;background:#111D22;color:#E8F1F3;font-size:16px;line-height:1;cursor:pointer;box-shadow:0 4px 12px #0009;display:flex;align-items:center;justify-content:center;padding:0}
@keyframes ts-tile{from{opacity:0;transform:translateY(20px) scale(.85)}}
@media(prefers-reduced-motion:reduce){.ts-card.blocked .ts-pp,.ts-card.ts-floating .ts-stage{animation:none}}

/* Anthem editor extras */
.anthem-own{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.anthem-names{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.anthem-names[hidden]{display:none}
@media(max-width:600px){.anthem-names{grid-template-columns:1fr}}

/* Pulled-up video: the same player moves over the page full width */
.ts-sheet-back{position:fixed;inset:0;z-index:2990;background:#000d;backdrop-filter:blur(4px);animation:ts-fade .2s ease-out}
@keyframes ts-fade{from{opacity:0}}
.ts-card.ts-sheet .ts-stage{display:block!important;position:fixed;left:0;right:0;top:50%;transform:translateY(-50%);width:100vw;max-width:960px;margin:0 auto;height:auto;aspect-ratio:16/9;min-height:200px;z-index:3000;border-radius:0;animation:ts-rise .28s cubic-bezier(.2,1.2,.4,1)}
@keyframes ts-rise{from{opacity:0;transform:translateY(-40%) scale(.92)}}
.ts-sheet-x{position:fixed;top:calc(14px + env(safe-area-inset-top));right:14px;z-index:3001;width:44px;height:44px;border-radius:50%;border:0;background:#ffffff26;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.ts-sheet-title{position:fixed;left:16px;right:70px;top:calc(18px + env(safe-area-inset-top));z-index:3001;color:#fff;font-family:Inter,sans-serif}
.ts-sheet-title small{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#3FD2E8;font-weight:600}
.ts-sheet-title strong{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(prefers-reduced-motion:reduce){.ts-sheet-back,.ts-card.ts-sheet .ts-stage{animation:none}}
