/* ==========================================================================
   Track page (audio/view.php) — modern glass design
   Loads after audio.css and theme.css; uses the site-wide design tokens.
   ========================================================================== */

body { background-color: #121212; background-color: var(--tc-bg, #121212); font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-body, Inter, system-ui, sans-serif); }

/* Shared glass card used by most sections below */
.p-artwork, .title-desc > div, .downloader-head, .rating-head, .hashtag, .share-on,
.connect-artist, .uploader-info, .comment-head, .comment-each, .prof-sidebar, .cover-crop-head, .prof-picture-option {
  border: 1px solid rgba(255, 255, 255, 0.09) !important; border: 1px solid var(--tc-border, rgba(255,255,255,0.1)) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)) !important; background-image: var(--tc-gradient-glass) !important;
  
  
  border-radius: 14px !important; border-radius: var(--tc-radius-md, 14px) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35); 
}

/* Section headings */
.sec-header, .hotest > b {
  font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); letter-spacing: 0.05em;
  border-left: 3px solid #39ff6a !important; border-left: 3px solid var(--tc-primary, #39FF6A) !important; padding-left: 10px !important;
}

/* ---------------- Player ---------------- */
.p-artwork { position: relative; overflow: hidden; width: 94% !important; margin: 14px auto 0 !important; padding: 16px 12px 18px !important; box-sizing: border-box; }
.blur-player { opacity: 0.45;  }
.artwork-lyrics { gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,0.35); width: fit-content; margin: 0 auto 12px; }
.artwork-lyrics > div { border-radius: 999px !important; padding: 6px 16px !important;  cursor: pointer; }
.artwork-lyrics > div:hover { background: rgba(255,255,255,0.08); }
.artwork-lyrics > div, .artwork-lyrics > div:nth-child(1) { background: transparent !important; color: #a3a3a3 !important; font-size: 12px !important; }
.artwork-lyrics > div.is-active { background: linear-gradient(135deg, #39ff6a, #22c955) !important; color: #06210f !important; font-size: 13px !important; }
/* Do NOT touch overflow/scroll-snap here — .artwork is a functional
   horizontal-scroll-snap panel (audio.js sets scrollLeft on it to swap
   between the artwork and lyrics views). Only cosmetic additions. */
.artwork { border-radius: 20px !important; border-radius: var(--tc-radius-lg, 18px) !important; box-shadow: 0 2px 6px rgba(0,0,0,0.35);  }
#artView img { border-radius: 20px; border-radius: var(--tc-radius-lg, 18px); }
#LyricView strong { line-height: 1.7; font-weight: 500; color: #f5f7f6; color: var(--tc-text, #fff); }
.album-name h4 { font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); letter-spacing: 0.02em; }
.album-name h3 { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #b5b5b5); font-weight: 500; }

.progress { height: 6px !important; border-radius: 999px !important; background: rgba(255,255,255,0.12) !important; }
.progress .buffered { background: rgba(255,255,255,0.22) !important; border-radius: 999px; }
.progress .played { background: linear-gradient(90deg, #22c955, #39ff6a) !important; background: linear-gradient(90deg, var(--tc-primary-dim, #22c955), var(--tc-primary, #39FF6A)) !important; border-radius: 999px; }
.progress .thumb { background: #fff !important; box-shadow: 0 0 0 4px rgba(57,255,106,0.3); }
.timebar { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #b5b5b5); font-variant-numeric: tabular-nums; }

.control-buttons { align-items: center; gap: 10px; }
.control-buttons > svg.icon { width: 26px !important; height: 26px !important; padding: 8px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.06); transition: transform 0.2s ease; box-sizing: content-box; }
.control-buttons > svg.icon:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.control-buttons > svg:not(.icon) { cursor: pointer;  }
#playBtn { fill: #fff; color: #fff; }
.circle-animated { stroke: #39ff6a !important; stroke: var(--tc-primary, #39FF6A) !important; }

.player-utilities { gap: 8px; flex-wrap: wrap; justify-content: center; }
.player-utilities > div { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.1)); }
.player-utilities svg.icon { width: 15px !important; height: 15px !important; color: #39ff6a; color: var(--tc-primary, #39FF6A); }
.player-utilities small { font-variant-numeric: tabular-nums; }

/* ---------------- Description / details / download ---------------- */
.title-desc > div, .downloader-head { width: 94% !important; margin: 0 auto !important; padding: 14px 16px !important; box-sizing: border-box; }
.title-desc strong { font-weight: 400; line-height: 1.7; color: #f5f7f6; color: var(--tc-text, #e8e8e8); }
.downloader-head > b { font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); }
.downloader-head small small { color: #39ff6a; color: var(--tc-primary, #39FF6A); }
.downloader-head button { border: none !important; border-radius: 999px !important; padding: 12px 22px !important; cursor: pointer;
  background: linear-gradient(135deg, #39ff6a, #22c955) !important; background: linear-gradient(135deg, var(--tc-primary, #39FF6A), var(--tc-primary-dim, #22c955)) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);  transition: transform 0.2s ease; }
.downloader-head button:hover { transform: translateY(-2px); }
.downloader-head button a { color: #06210f !important; font-weight: 800; letter-spacing: 0.04em; }

/* ---------------- Ratings ---------------- */
.rating-head { width: 94% !important; margin: 0 auto !important; padding: 14px 10px !important; box-sizing: border-box; }
.rating-head > div:nth-child(1) > b { color: #daa520 !important; color: var(--tc-accent, #DAA520) !important; font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); }
.rating-head > div:nth-child(1) > div > b { background: rgba(255,255,255,0.08) !important; border-radius: 999px !important; overflow: hidden; }
.rating-head > div:nth-child(1) > div > b > b { background: linear-gradient(180deg, #daa520, #b8860b) !important; background: linear-gradient(180deg, var(--tc-accent, #DAA520), #b8860b) !important; border-radius: 999px !important; }
.rating-head [data-star] { width: 26px !important; height: 26px !important; color: #daa520; color: var(--tc-accent, #DAA520); }

/* ---------------- Hashtags / share ---------------- */
.hashtag { display: flex; flex-wrap: wrap; gap: 8px; width: 94% !important; margin: 0 auto !important; padding: 12px !important; box-sizing: border-box; }
.hashtag a { text-decoration: none; }
.hashtag b { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #39ff6a !important; color: var(--tc-primary, #39FF6A) !important; background: rgba(57,255,106,0.08) !important; border: 1px solid rgba(57,255,106,0.25); }
.hashtag .muted { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); }
.share-on { width: 94% !important; margin: 0 auto !important; padding: 12px !important; gap: 10px; box-sizing: border-box; justify-content: center; }
.share-on > div, .share-artist > a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.1));
  transition: transform 0.2s ease; }
.share-on > div:hover, .share-artist > a:hover { transform: translateY(-2px); border-color: #22c955; border-color: var(--tc-primary-dim, #22c955); }
.share-on svg.icon, .share-artist svg.icon { width: 20px !important; height: 20px !important; }

/* ---------------- Artist / uploader ---------------- */
.connect-artist, .uploader-info { width: 94% !important; margin: 0 auto !important; padding: 14px !important; box-sizing: border-box; }
.connect-artist img, .uploader-info img { border-radius: 50% !important; object-fit: cover; border: 2px solid #39ff6a; border: 2px solid var(--tc-primary, #39FF6A); padding: 2px; background: transparent; }
.connect-artist button, .uploader-info button { border-radius: 999px !important; border: 1px solid #22c955 !important; border: 1px solid var(--tc-primary-dim, #22c955) !important;
  background: transparent !important; color: #39ff6a !important; color: var(--tc-primary, #39FF6A) !important; padding: 8px 16px !important; cursor: pointer; }
.connect-artist button a, .uploader-info button a { color: inherit !important; }
.uploader-bio small { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #b5b5b5); line-height: 1.6; }
/* (uploader tab inner background removed — see "Uploaded by" card below) */

/* ---------------- Comments ---------------- */
.comment-head { width: 94% !important; margin: 0 auto !important; padding: 14px !important; box-sizing: border-box; }
.comment-head textarea { box-sizing: border-box; width: 100% !important; min-height: 90px; padding: 12px 14px !important; resize: vertical;
  border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, 0.09) !important; border: 1px solid var(--tc-border, rgba(255,255,255,0.1)) !important; background: rgba(0,0,0,0.35) !important;
  color: #fff !important; outline: none; font: inherit; }
.comment-head textarea:focus { border-color: #22c955 !important; border-color: var(--tc-primary-dim, #22c955) !important; box-shadow: 0 0 0 3px rgba(57,255,106,0.12); }
.comment-head button { border: none !important; border-radius: 999px !important; padding: 11px 20px !important; cursor: pointer; font-weight: 800;
  background: linear-gradient(135deg, #39ff6a, #22c955) !important; background: linear-gradient(135deg, var(--tc-primary, #39FF6A), var(--tc-primary-dim, #22c955)) !important; color: #06210f !important; }
.comment-num { color: #39ff6a; color: var(--tc-primary, #39FF6A); }
.commentRefresh { width: 18px !important; height: 18px !important; cursor: pointer; }
.comment-each { width: 94% !important; margin: 0 auto 10px !important; padding: 12px !important; box-sizing: border-box; }
.comment-each > div:first-child { border-radius: 50% !important; border: 2px solid #39ff6a; border: 2px solid var(--tc-primary, #39FF6A); }
.comment-each > div:nth-child(2) > div:nth-child(2) b { font-weight: 400; line-height: 1.6; color: #f5f7f6; color: var(--tc-text, #e8e8e8); }
.comment-each > div:nth-child(2) > div:nth-child(3) > div,
.reply-each > div:nth-child(3) > div { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.05); cursor: pointer;  }
.comment-each > div:nth-child(2) > div:nth-child(3) > div:hover,
.reply-each > div:nth-child(3) > div:hover { background: rgba(255,255,255,0.12); }
.comment-each svg.icon, .reply-each svg.icon { width: 15px !important; height: 15px !important; color: currentColor; }
.reply-each { border-left: 2px solid rgba(57,255,106,0.35); padding-left: 10px !important; border-radius: 0 12px 12px 0; background: rgba(255,255,255,0.02); }
.reply-section textarea, [id^="replyMain"] { border-radius: 12px !important; background: rgba(0,0,0,0.35) !important; border: 1px solid rgba(255, 255, 255, 0.09) !important; border: 1px solid var(--tc-border, rgba(255,255,255,0.1)) !important; color: #fff; }
.more-comments, .more-from-artist, .more-similar, .more-latest { display: flex; justify-content: center; }
.more-comments > *, .more-from-artist > *, .more-similar > *, .more-latest > * { border-radius: 999px !important; }

/* ---------------- Recommendation rails ---------------- */







/* ---------------- Profile sidebar, crop tool, dialogs ---------------- */
.prof-sidebar { background-color: rgba(18,18,18,0.92) !important; }
.prof-sidebar svg.icon { width: 20px !important; height: 20px !important; }
.cover-crop-head, .prof-picture-option { background-color: rgba(18,18,18,0.94) !important; }
.prof-picture-option svg.icon { width: 22px !important; height: 22px !important; }
.confirm svg.icon, .confirm2 svg.icon { width: 18px !important; height: 18px !important; cursor: pointer; }

/* Header avatar on this page (driven by audio.js) */
header .headerProfilePic { border: 2px solid #39ff6a; border: 2px solid var(--tc-primary, #39FF6A); border-radius: 50%; }

/* Footer */
.footer-head svg.icon { width: 22px !important; height: 22px !important; }

@media (min-width: 900px) {
  .p-artwork, .title-desc > div, .downloader-head, .rating-head, .hashtag, .share-on, .connect-artist,
  .uploader-info, .comment-head, .comment-each { max-width: 820px; }
}
@media (prefers-reduced-motion: reduce) {
  .content-each, .content-each1, .control-buttons > svg.icon, .downloader-head button, .share-on > div { transition: none; }
}

/* audio.css hides every header button ("header button { display: none }");
   the old audio.js used to reveal its own button afterwards. The shared
   header (session-ui.js / page_bootstrap.php) decides visibility with the
   wrapper's [hidden] attribute instead, so the button itself must show. */
header #headerAuthButtons button { display: inline-block; }

/* ---- Fixes from the real-browser review ---- */
/* Old solid-black inner boxes -> subtle inset glass */
.downloader-head > div, .comment-head > div {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.1));
  border-radius: 12px !important; box-sizing: border-box;
}
.downloader-head > div { padding: 10px 0 12px !important; }
.comment-head > div { padding: 8px !important; margin-bottom: 12px !important; }
.comment-head textarea { background: transparent !important; border: none !important; min-height: 80px; }
.comment-head textarea:focus { box-shadow: none; }
.comment-head > div:focus-within { border-color: #22c955; border-color: var(--tc-primary-dim, #22c955); box-shadow: 0 0 0 3px rgba(57,255,106,0.12); }
/* The comment button was absolutely positioned 15px below the card */
.comment-head button { position: static !important; display: block; width: 100% !important; height: auto !important; margin: 0 !important; }

/* Description sat inside a 90%-wide wrapper, so it was indented */
.title-desc { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* "See more" / "More post" buttons */
.more-comments button, .more-from-artist button, .more-similar button, .more-latest button {
  width: auto !important; min-width: 55%; height: auto !important; padding: 11px 24px !important; cursor: pointer;
  border-radius: 999px !important; font-weight: 700; letter-spacing: 0.03em;
  color: #39ff6a !important; color: var(--tc-primary, #39FF6A) !important; background: rgba(18, 18, 18, 0.9) !important;
  border: 1px solid #22c955 !important; border: 1px solid var(--tc-primary-dim, #22c955) !important; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);  transition: transform 0.2s ease;
}
.more-comments button:hover, .more-from-artist button:hover, .more-similar button:hover, .more-latest button:hover {
  transform: translateY(-2px); background: rgba(57,255,106,0.12) !important;
}
.downloader-head button { display: flex !important; align-items: center; justify-content: center; height: auto !important; min-height: 44px; }
.downloader-head button a { line-height: 1; }

/* Login/register modal: match every other page (audio.css italicised placeholders) */
.login input::placeholder, .login textarea::placeholder { font-style: normal; }
.login input::-webkit-input-placeholder { font-style: normal; }

/* "Single" / "From the album …" badge above the artist name */
.album-name .track-kind {
  display: inline-block; margin: 0 auto 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #39ff6a; color: var(--tc-primary, #39FF6A); background: rgba(57,255,106,0.1); border: 1px solid rgba(57,255,106,0.25);
}
.album-name .track-kind b { color: #fff; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* "Single" / "From the album …" badge above the artist name */
.album-name .track-kind {
  display: inline-block; margin: 0 auto 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #39ff6a; color: var(--tc-primary, #39FF6A); background: rgba(57,255,106,0.1); border: 1px solid rgba(57,255,106,0.25);
}
.album-name .track-kind b { color: #fff; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   Track page — round 2 styling
   ========================================================================== */

/* (Image viewer styles moved to theme.css — shared by every page.) */

/* ---- Lyrics panel: scrolls with the song (track-page.js) ---- */
#LyricView.lyrics-follow { overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
#LyricView.lyrics-follow::-webkit-scrollbar { display: none; }
#LyricView.lyrics-follow strong { display: block; padding: 18% 8%; }

/* ---- Like + repeat on the controls row ---- */
#likeTrackBtn.is-liked { color: #ff3b5c !important; background: rgba(255,59,92,0.16) !important; }
#likeTrackBtn.pop {  }
@keyframes tc-like-pop { 50% { transform: scale(1.25); } }
#repeatBtn.is-on { color: #39ff6a !important; color: var(--tc-primary, #39FF6A) !important; background: rgba(57,255,106,0.14) !important; box-shadow: inset 0 0 0 1px rgba(57,255,106,0.45); }
#likeTrackBtn:focus-visible, #repeatBtn:focus-visible, #rewBtn:focus-visible, #ffBtn:focus-visible { outline: 2px solid #39ff6a; outline: 2px solid var(--tc-primary, #39FF6A); outline-offset: 2px; }

/* ---- Player stats: one horizontally scrollable row ---- */
.player-utilities {
  display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 8px;
  width: 94% !important; margin: 12px auto 0 !important; padding: 2px 2px 6px !important; box-sizing: border-box;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.player-utilities::-webkit-scrollbar { display: none; }
.player-utilities > div { flex: 0 0 auto; white-space: nowrap; }

/* ---- "Uploaded by" card: one background on the scrollable tabs ---- */
.uploader-info .category { background: transparent !important; border: none !important; }
.uploader-info .category > div > div { background: none !important; border: none !important; box-shadow: none !important; }

/* ---- Comments: clean, readable cards ---- */
.comment-section { display: flex; flex-direction: column; gap: 12px; }
.comment-each { display: flex !important; gap: 12px; align-items: flex-start; margin-bottom: 0 !important; padding: 14px !important; }
.comment-each > div:first-child {
  flex: 0 0 40px; width: 40px !important; height: 40px !important; aspect-ratio: 1 / 1; margin: 0 !important;
  border-radius: 50% !important; border: 2px solid #39ff6a; border: 2px solid var(--tc-primary, #39FF6A);
  background: #2a2a2a center / cover no-repeat; box-sizing: border-box; cursor: pointer;
}
.comment-each > div:nth-child(2) { flex: 1 1 auto; min-width: 0; border-left: none !important; padding-left: 0 !important; }
.comment-each > div:nth-child(2) > div:nth-child(1) {
  display: flex !important; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.comment-each > div:nth-child(2) > div:nth-child(1) b { font-size: 14px; }
.comment-each > div:nth-child(2) > div:nth-child(1) small { font-size: 12px; color: rgba(245, 247, 246, 0.62) !important; color: var(--tc-text-muted, #9a9a9a) !important; white-space: nowrap; }
.comment-each > div:nth-child(2) > div:nth-child(2) { margin-bottom: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.comment-each > div:nth-child(2) > div:nth-child(3) { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.comment-each > div:nth-child(2) > div:nth-child(3) > div,
.reply-each > div:nth-child(3) > div {
  display: inline-flex !important; align-items: center; gap: 6px !important; margin: 0 !important;
  padding: 6px 12px !important; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
}
.comment-each > div:nth-child(2) > div:nth-child(3) > div b,
.reply-each > div:nth-child(3) > div b { margin: 0 !important; }
.comment-each > div:nth-child(2) > div:nth-child(3) > div small,
.reply-each > div:nth-child(3) > div small { margin: 0 !important; }
.comment-each svg.icon, .reply-each svg.icon { flex: none; }
.reply-section { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.reply-each { padding: 10px 12px !important; border-radius: 0 12px 12px 0; }
.reply-each > div:nth-child(1) { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.reply-each > div:nth-child(1) > div { display: flex !important; align-items: center; gap: 8px; }
.reply-each > div:nth-child(1) > div > div:first-child {
  flex: 0 0 28px; width: 28px !important; height: 28px !important; aspect-ratio: 1 / 1; margin: 0 !important;
  border-radius: 50% !important; background: #2a2a2a center / cover no-repeat;
}
.reply-each > div:nth-child(2) { margin-bottom: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.reply-each > div:nth-child(3) { display: flex !important; flex-wrap: wrap; gap: 8px !important; }

/* ---- Recommendation rails ---- */
.track-rail[hidden] { display: none !important; }
.rail-more { display: flex; justify-content: center; margin: 12px 0 4px; }
.rail-more button {
  min-width: 55%; padding: 11px 24px; cursor: pointer; border-radius: 999px; font-weight: 700; letter-spacing: 0.03em;
  color: #39ff6a; color: var(--tc-primary, #39FF6A); background: rgba(18,18,18,0.85); border: 1px solid #22c955; border: 1px solid var(--tc-primary-dim, #22c955);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);  transition: transform 0.2s ease;
}
.rail-more button:hover { transform: translateY(-2px); background: rgba(57,255,106,0.12); }
.rail-more button[hidden] { display: none; }
.rail-more button:disabled { opacity: 0.6; }

/* The page content starts below the fixed header (the removed "SINGLE TRACK"
   strip used to provide this spacing). */
.track-main { padding-top: calc(50px + 4px); }
/* audio.css makes every element scroll smoothly. The lyrics box is moved a
   little each frame by track-page.js (which does its own smoothing), so
   browser smooth-scrolling would fight it and make the lyrics lag. */
#LyricView.lyrics-follow { scroll-behavior: auto !important; }

/* Stats row: equal space above and below the chips, no old band behind it */
.player-utilities {
  padding: 8px 2px !important; margin: 14px auto !important; min-height: 0 !important; height: auto !important;
  background: transparent !important; border: none !important; box-shadow: none !important; align-items: center;
}

/* ---- "Uploaded by": avatar on top, name + role directly under it ---- */
.uploader-info > div:first-child {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.uploader-info > div:first-child > div { margin: 0 !important; width: auto !important; }
.uploader-info > div:first-child > div:nth-child(2) { display: flex !important; flex-direction: column; align-items: center; gap: 2px; }
.uploader-info > div:first-child > div:nth-child(2) b { font-size: 17px; letter-spacing: 0.02em; }
.uploader-info > div:first-child > div:nth-child(2) small { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); }
.uploader-bio { text-align: center; }

/* ---- Comment count next to "COMMENTS": plain text, no green background ---- */
.comment-num { background: none !important; padding: 0 !important; border-radius: 0 !important; color: rgba(245, 247, 246, 0.62) !important; color: var(--tc-text-muted, #9a9a9a) !important; font-weight: 600; }

/* ---- Like / Dislike / Reply always on one line ---- */
.comment-each > div:nth-child(2) > div:nth-child(3),
.reply-each > div:nth-child(3) { flex-wrap: nowrap !important; gap: 6px !important; min-width: 0; }
.comment-each > div:nth-child(2) > div:nth-child(3) > div,
.reply-each > div:nth-child(3) > div { flex: 0 1 auto; min-width: 0; padding: 6px 10px !important; white-space: nowrap; }
.comment-each > div:nth-child(2) > div:nth-child(3) > div small,
.reply-each > div:nth-child(3) > div small { overflow: hidden; text-overflow: ellipsis; }
/* Very narrow phones: keep icon + number, drop the word */
@media (max-width: 360px) {
  .comment-each > div:nth-child(2) > div:nth-child(3) > div small,
  .reply-each > div:nth-child(3) > div small { display: none; }
}

/* Section headings are 16px on every content page (track, video, blog). The
   listing stylesheets those pages also load shrink .sec-header for their own
   use, so the size is restated here. */
.track-main .sec-header { font-size: 16px; }

/* "From the album <name>" badge: the album name is a link to the album */
.album-name .track-kind a { color: inherit; text-decoration: none; }
.album-name .track-kind a b { text-decoration: underline; text-underline-offset: 2px; }
.album-name .track-kind a:hover b, .album-name .track-kind a:focus-visible b { color: #39ff6a; color: var(--tc-primary, #39FF6A); }

/* ---- "Uploaded by" card: profile link + real contact chips (shared by audio, video, blog pages) ---- */
.uploader-info a.uploader-profile-btn,
.uploader-info > div:first-child a.uploader-profile-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
  min-width: 120px; height: 36px; padding: 0 16px; margin: 10px auto 0 !important;
  border-radius: 8px; border: 0;
  background: linear-gradient(135deg, #39ff6a, #22c955); color: #06210f !important;
  font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none !important; cursor: pointer;
  box-shadow: 0 2px 10px rgba(57, 255, 106, 0.18); transition: transform 0.15s ease;
}
.uploader-info a.uploader-profile-btn:hover { filter: brightness(1.06); }
.uploader-info a.uploader-profile-btn:active { transform: translateY(1px); }
.uploader-info a.uploader-profile-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.uploader-info > div:first-child a:not(.uploader-profile-btn) { display: block; border-radius: 50%; }
.uploader-info > div:first-child a:focus-visible { outline: 2px solid #39ff6a; outline: 2px solid var(--tc-primary, #39FF6A); outline-offset: 3px; }
.contact-chips > div { position: relative; }
.category .contact-link { display: flex; align-items: center; color: inherit; text-decoration: none; }
.category .contact-link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: inherit; }
.category .contact-link:focus-visible { outline: none; }
.contact-chips > div:focus-within { border-color: #39ff6a; border-color: var(--tc-primary, #39FF6A); }

/* A section with nothing to show is hidden — hide its divider too, so empty
   sections don't leave stacked gaps (track, video, blog and profile pages). */
.track-rail[hidden] + .seperate { display: none; }

/* ---- No lyrics for this track ---- */
#LyricView.lyrics-none { display: grid; place-items: center; }
.lyrics-empty { display: grid; justify-items: center; grid-gap: 6px; gap: 6px; padding: 24px 16px; text-align: center; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #b5b5b5); }
#LyricView .lyrics-empty svg.icon { width: 30px !important; height: 30px !important; max-width: 30px; flex: none; color: #39ff6a; color: var(--tc-primary, #39FF6A); opacity: .8; }
.lyrics-empty b { font-size: 16px; color: #f5f7f6; color: var(--tc-text, #fff); font-weight: 700; }
.lyrics-empty small { font-size: 12.5px; max-width: 240px; line-height: 1.5; }

/* ---- synced lyrics (LRC): the line being sung lights up and stays in the middle ---- */
#LyricView.lyrics-synced { overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
#LyricView.lyrics-synced::-webkit-scrollbar { display: none; }
#LyricView .lrc { list-style: none; margin: 0; padding: 40vh 7%; display: grid; grid-gap: 14px; gap: 14px; text-align: center; }
#LyricView .lrc li { font-size: 17px; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.35; font-weight: 700; color: rgba(255,255,255,0.38); cursor: pointer; transform-origin: center; transition: transform .25s ease, opacity .25s ease; overflow-wrap: anywhere; border-radius: 10px; padding: 2px 4px; }
#LyricView .lrc li:hover { color: rgba(255,255,255,0.62); }
#LyricView .lrc li.is-past { color: rgba(255,255,255,0.22); }
#LyricView .lrc li.is-now { color: #fff; transform: scale(1.06); text-shadow: 0 0 18px rgba(57,255,106,0.45); }
#LyricView .lrc li.is-gap { font-size: 15px; letter-spacing: 4px; }
#LyricView .lrc li.is-gap.is-now { color: #39ff6a; color: var(--tc-primary, #39FF6A); }
@media (prefers-reduced-motion: reduce) { #LyricView .lrc li { transition: none; } #LyricView .lrc li.is-now { transform: none; } }

/* Follow button on the "Uploaded by" card (follow.js) — undo the card's generic button rules above */
.uploader-info .tc-follow-wrap { margin: 10px auto 0; }
.uploader-info .tc-follow { padding: 0 14px 0 11px !important; border: 1px solid transparent !important; background: linear-gradient(135deg, #39ff6a, #1fcf55) !important; color: #06210f !important; }
.uploader-info .tc-follow.is-on { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.18) !important; color: #f3f5f4 !important; }
.uploader-info .tc-follow.is-on:hover { border-color: rgba(255,106,95,.5) !important; color: #ffb1ab !important; }
.uploader-info .tc-follow-bell { padding: 0 !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(255,255,255,.06) !important; color: #9aa3a0 !important; }
.uploader-info .tc-follow-bell.is-on { border-color: rgba(57,255,106,.4) !important; background: rgba(57,255,106,.08) !important; color: #39ff6a !important; }
.uploader-info > div:first-child > div:nth-child(2) .tc-followers b { font-size: inherit; letter-spacing: normal; }

/* compat:rich:start — capable devices only (html.tc-rich, set in the head): glass blur, big soft shadows,
   filters. Weak phones and old browsers use the lighter look in the rules above. */
.tc-rich .p-artwork, .tc-rich .title-desc > div, .tc-rich .downloader-head, .tc-rich .rating-head, .tc-rich .hashtag, .tc-rich .share-on, .tc-rich .connect-artist, .tc-rich .uploader-info, .tc-rich .comment-head, .tc-rich .comment-each, .tc-rich .prof-sidebar, .tc-rich .cover-crop-head, .tc-rich .prof-picture-option { -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8); }
.tc-rich .blur-player { filter: blur(40px) saturate(140%); }
.tc-rich .artwork { box-shadow: 0 24px 50px -20px rgba(0,0,0,0.9); }
.tc-rich .control-buttons > svg:not(.icon) { filter: drop-shadow(0 10px 22px rgba(57,255,106,0.25)); }
.tc-rich .downloader-head button { box-shadow: 0 12px 26px -12px rgba(57,255,106,0.6); }
.tc-rich .more-comments button, .tc-rich .more-from-artist button, .tc-rich .more-similar button, .tc-rich .more-latest button { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 24px -12px rgba(57,255,106,0.45); background: rgba(18, 18, 18, 0.85) !important; }
.tc-rich .rail-more button { box-shadow: 0 10px 24px -12px rgba(57,255,106,0.45); }
.tc-rich .comment-head textarea:focus { box-shadow: none; }
.tc-rich .uploader-info .category > div > div { box-shadow: none !important; }
.tc-rich .player-utilities { box-shadow: none !important; }
/* compat:rich:end */

/* compat:motion:start — decorative movement, only when the phone isn't set to reduce motion */
@media (prefers-reduced-motion: no-preference) {
  #likeTrackBtn.pop { animation: tc-like-pop 0.35s ease; }
}
/* compat:motion:end */
/* Weak phones: no blurred artwork behind the player card (it showed as a hard-edged picture without the blur). */
html:not(.tc-rich) .blur-player { display: none; }

/* compat:no-flexgap:start — rebuilt by tools/css_compat.py: spacing for engines without flex gap
   (html.no-flexgap, set in the head). Edit the gap in the rule above, then run the tool. */
.no-flexgap .artwork-lyrics > :not(:last-child) { margin-right: 6px; }
.no-flexgap .control-buttons > :not(:last-child) { margin-right: 10px; }
.no-flexgap .player-utilities > * { margin-right: 8px; margin-bottom: 8px; }
.no-flexgap .player-utilities > div > :not(:last-child) { margin-right: 6px; }
.no-flexgap .hashtag > * { margin-right: 8px; margin-bottom: 8px; }
.no-flexgap .share-on > :not(:last-child) { margin-right: 10px; }
.no-flexgap .comment-each > div:nth-child(2) > div:nth-child(3) > div > :not(:last-child), .no-flexgap .reply-each > div:nth-child(3) > div > :not(:last-child) { margin-right: 5px; }
.no-flexgap .player-utilities > :not(:last-child) { margin-right: 8px; }
.no-flexgap .comment-section > :not(:last-child) { margin-bottom: 12px; }
.no-flexgap .comment-each > :not(:last-child) { margin-right: 12px; }
.no-flexgap .comment-each > div:nth-child(2) > div:nth-child(1) > :not(:last-child) { margin-right: 10px; }
.no-flexgap .comment-each > div:nth-child(2) > div:nth-child(3) > * { margin-right: 8px; margin-bottom: 8px; }
.no-flexgap .comment-each > div:nth-child(2) > div:nth-child(3) > div > :not(:last-child), .no-flexgap .reply-each > div:nth-child(3) > div > :not(:last-child) { margin-right: 6px; }
.no-flexgap .reply-section > :not(:last-child) { margin-bottom: 8px; }
.no-flexgap .reply-each > div:nth-child(1) > :not(:last-child) { margin-right: 10px; }
.no-flexgap .reply-each > div:nth-child(1) > div > :not(:last-child) { margin-right: 8px; }
.no-flexgap .reply-each > div:nth-child(3) > * { margin-right: 8px; margin-bottom: 8px; }
.no-flexgap .uploader-info > div:first-child > :not(:last-child) { margin-bottom: 8px; }
.no-flexgap .uploader-info > div:first-child > div:nth-child(2) > :not(:last-child) { margin-bottom: 2px; }
.no-flexgap .comment-each > div:nth-child(2) > div:nth-child(3) > :not(:last-child), .no-flexgap .reply-each > div:nth-child(3) > :not(:last-child) { margin-right: 6px; }
.no-flexgap .uploader-info a.uploader-profile-btn > :not(:last-child), .no-flexgap .uploader-info > div:first-child a.uploader-profile-btn > :not(:last-child) { margin-right: 6px; }
/* compat:no-flexgap:end */
