.lynk-song-list-page {
  max-width: 1180px;
  margin: 0 auto;
  color: #f7e7ce;
  padding-top: max(
    calc(var(--lynk-header-h, 5rem) + 2rem),
    calc(env(safe-area-inset-top, 0px) + 7.5rem)
  );
  padding-bottom: 48px;
}

.lynk-song-list-header p,
.lynk-song-list-toolbar,
.lynk-song-list-toolbar *,
.lynk-song-list-table-head,
.lynk-song-list-table-head *,
.lynk-song-list-rows,
.lynk-song-list-rows *,
.lynk-song-empty {
  font-family: var(--lynk-font-body);
}

.lynk-song-list-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
}

.lynk-song-list-header h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(to bottom, #f7e7ce 0%, rgba(247, 231, 206, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lynk-song-list-header h1 span {
  background: linear-gradient(90deg, #34d399 0%, #99f6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lynk-song-list-header p {
  margin: 0;
  color: rgba(247, 231, 206, 0.82);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.lynk-song-list-table-wrap {
  display: block;
  width: 100%;
}

.lynk-song-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}

.lynk-song-list-stats {
  display: flex;
  gap: 20px;
  color: rgba(247, 231, 206, 0.82);
  font-size: 14px;
}

.lynk-song-list-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lynk-song-list-stats svg {
  width: 16px;
  height: 16px;
  stroke: #6ee7b7;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.lynk-song-list-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lynk-song-list-filters button {
  border: 1px solid rgba(247, 231, 206, 0.24);
  color: rgba(247, 231, 206, 0.9);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 14px;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.lynk-song-list-filters button.is-active {
  color: #86efac;
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.15);
}

.lynk-song-list-filters button:hover,
.lynk-song-list-filters button:focus,
.lynk-song-list-filters button:focus-visible {
  color: #f7e7ce;
  background: rgba(247, 231, 206, 0.14);
  border-color: rgba(247, 231, 206, 0.36);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.2);
}

.lynk-song-list-filters button.is-active:hover,
.lynk-song-list-filters button.is-active:focus,
.lynk-song-list-filters button.is-active:focus-visible {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.48);
}

.lynk-song-list-table-head {
  display: grid;
  grid-template-columns: 70px minmax(240px, 1fr) minmax(140px, 220px) 96px 48px 92px;
  gap: 16px;
  color: rgba(247, 231, 206, 0.74);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  align-items: center;
}

.lynk-song-list-head-duration {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lynk-song-list-head-year {
  text-align: right;
}

.lynk-song-list-table-head > div:first-child {
  text-align: center;
}

.lynk-song-list-head-duration svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.42);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lynk-song-list-head-heart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lynk-song-list-head-heart .lynk-song-heart-svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(var(--lynk-neon-rgb), 0.45);
  stroke-width: 2;
  stroke-linejoin: round;
}

.lynk-song-row-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lynk-song-row-heart .lynk-song-heart-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(var(--lynk-neon-rgb), 0.3);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* Tim đã thích: nền xanh đậm tô kín, tách rõ tim chỉ viền */
.lynk-song-heart-icon.is-liked .lynk-song-heart-svg {
  fill: #0d9488;
  stroke: #5eead4;
  stroke-width: 1.5;
}

.lynk-song-list-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lynk-song-row {
  display: grid;
  grid-template-columns: 70px minmax(240px, 1fr) minmax(140px, 220px) 96px 48px 92px;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--lynk-color-text);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.lynk-song-row:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.lynk-song-row-index {
  text-align: center;
  color: rgba(247, 231, 206, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.lynk-song-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lynk-song-row-thumb {
  width: 58px;
  height: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 58px;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  line-height: 0;
}

.lynk-song-row-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  flex: 1 1 auto;
}

.lynk-song-row-meta h3 {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: #f7e7ce;
}

.lynk-song-row-meta p {
  margin: 0;
  color: var(--lynk-neon);
  font-size: 13px;
  font-weight: 700;
}

.lynk-song-row-album,
.lynk-song-row-year,
.lynk-song-row-duration {
  color: rgba(247, 231, 206, 0.88);
  font-size: 14px;
}

.lynk-song-row-album,
.lynk-song-row-year {
  font-weight: 700;
}

.lynk-song-row-year {
  font-weight: 400;
}

.lynk-song-row-year,
.lynk-song-row-duration {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.lynk-song-empty {
  color: var(--lynk-color-text-muted);
}

.lynk-song-detail-page {
  position: relative;
  min-height: 72vh;
  border-radius: 24px;
  overflow: hidden;
  max-width: 80rem;
  width: calc(100% - 3rem);
  margin: 0 auto;
  --lynk-song-top-pad: max(
    calc(var(--lynk-content-below-header) + 0.5rem),
    calc(4rem + env(safe-area-inset-top, 0px))
  );
}

.lynk-song-detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(90px);
  transform: scale(1.3);
  opacity: 0.32;
}

.lynk-song-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9) 45%, #000 100%);
}

.lynk-song-detail-content {
  position: relative;
  z-index: 2;
  padding: var(--lynk-song-top-pad) 24px 30px;
  color: var(--lynk-color-text);
}

.lynk-song-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  grid-template-areas:
    "left right"
    "mini right";
  gap: 42px;
  align-items: stretch;
}

.lynk-song-detail-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lynk-song-detail-right {
  grid-area: right;
}

.lynk-song-vinyl {
  width: min(340px, 70vw);
  aspect-ratio: 1 / 1;
  position: relative;
  margin: 0 auto 44px;
}

.lynk-song-vinyl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.6);
  overflow: visible;
}

.lynk-song-vinyl-disc::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  animation: lynk-song-glow-pulse 2s ease-in-out infinite;
  box-shadow:
    0 0 10px rgba(var(--lynk-neon-rgb), 0.5),
    0 0 20px rgba(var(--lynk-neon-rgb), 0.3),
    0 0 30px rgba(var(--lynk-neon-rgb), 0.2);
}

.lynk-song-record-bg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  animation: lynk-song-spin 10s linear infinite;
}

.lynk-song-vinyl-center {
  position: absolute;
  width: 40%;
  height: 40%;
  aspect-ratio: 1 / 1;
  left: 30%;
  top: 30%;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  border: 4px solid #000;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lynk-song-vinyl-center picture {
  display: block;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.lynk-song-vinyl-center img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  display: block;
  animation: lynk-song-spin 10s linear infinite;
}

.lynk-song-vinyl-hole {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.lynk-song-mock-player {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
}

.lynk-song-mock-progress {
  display: none;
}

.lynk-song-mock-progress span {
  display: none;
}

.lynk-song-mock-time {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--lynk-color-text-muted);
  margin: 8px 0 14px;
}

.lynk-song-mock-controls {
  margin-top: 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
}

.lynk-song-mock-controls button {
  border: 0;
  background: transparent;
  color: var(--lynk-color-text-muted);
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.lynk-song-mock-controls button.is-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #000;
  background: linear-gradient(135deg, #34d399, #14b8a6);
  box-shadow: 0 0 16px rgba(var(--lynk-neon-rgb), 0.35);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lynk-song-mock-controls .pc-svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  pointer-events: none;
}

.lynk-song-mock-controls button.is-main .pc-svg {
  width: 24px !important;
  height: 24px !important;
}

.lynk-song-mock-controls button.is-main:hover,
.lynk-song-mock-controls button.is-main:focus,
.lynk-song-mock-controls button.is-main:focus-visible,
.lynk-song-mock-controls button.is-main:active {
  border-radius: 50% !important;
  outline: none !important;
  box-shadow: 0 0 16px rgba(var(--lynk-neon-rgb), 0.35) !important;
  background: linear-gradient(135deg, #34d399, #14b8a6) !important;
}

.lynk-song-mock-controls button.is-main::-moz-focus-inner {
  border: 0;
}

.lynk-song-mock-bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lynk-song-mock-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

#lynk-song-seekbar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  cursor: pointer;
}

#lynk-song-seekbar::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--lynk-neon) 0%, var(--lynk-neon) var(--seek-before-width, 0%), rgba(255, 255, 255, 0.14) var(--seek-before-width, 0%));
}

#lynk-song-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: -4px;
  background: var(--lynk-neon);
  border: 0;
  box-shadow: 0 0 8px rgba(var(--lynk-neon-rgb), 0.45);
}

#lynk-song-seekbar::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#lynk-song-seekbar::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--lynk-neon);
}

#lynk-song-seekbar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: var(--lynk-neon);
}

#lynk-song-volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 210px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--lynk-neon) 0%, var(--lynk-neon) var(--volume-before-width, 80%), rgba(247, 231, 206, 0.2) var(--volume-before-width, 80%));
  cursor: pointer;
}

#lynk-song-volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: var(--lynk-neon);
  box-shadow: 0 0 6px rgba(var(--lynk-neon-rgb), 0.5);
}

#lynk-song-volume-bar::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#lynk-song-volume-bar::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--lynk-neon);
}

.lynk-song-mock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lynk-song-mock-actions button {
  border: 0;
  background: transparent;
  color: var(--lynk-color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.25s ease, transform 0.2s ease;
}

.lynk-song-mock-actions a {
  text-decoration: none;
  color: var(--lynk-color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.2s ease;
}

.lynk-song-mock-actions svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lynk-song-mock-actions #lynk-song-share-fb svg {
  width: 24px;
  height: 24px;
  stroke: none;
  fill: currentColor;
}

.lynk-song-mock-actions #lynk-song-share-fb:hover,
.lynk-song-mock-actions #lynk-song-share-fb:focus-visible {
  color: var(--lynk-neon);
  transform: translateY(-1px);
  outline: none;
}

.lynk-song-mock-actions #lynk-song-like-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lynk-song-mock-actions #lynk-song-like-btn:hover {
  color: var(--lynk-color-text-muted);
  transform: none;
}

.lynk-song-mock-actions #lynk-song-like-btn:focus,
.lynk-song-mock-actions #lynk-song-like-btn:focus-visible,
.lynk-song-mock-actions #lynk-song-like-btn:active {
  color: var(--lynk-color-text-muted);
  outline: none;
  box-shadow: none;
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

.lynk-song-mock-actions #lynk-song-like-btn,
.lynk-song-mock-actions #lynk-song-like-btn:hover,
.lynk-song-mock-actions #lynk-song-like-btn:focus,
.lynk-song-mock-actions #lynk-song-like-btn:focus-visible,
.lynk-song-mock-actions #lynk-song-like-btn:active,
.lynk-song-mock-actions #lynk-song-like-btn:visited {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
}

.lynk-song-mock-actions #lynk-song-like-btn svg {
  fill: transparent;
}

.lynk-song-mock-actions #lynk-song-like-btn.is-liked {
  color: var(--lynk-neon);
}

.lynk-song-mock-actions #lynk-song-like-btn.is-liked svg {
  stroke: var(--lynk-neon);
  fill: rgba(var(--lynk-neon-rgb), 0.25);
}

.lynk-song-mini-list-wrap {
  grid-area: mini;
  margin: 22px auto 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px;
  flex: 0 0 auto;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lynk-song-mini-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.lynk-song-mini-filters button {
  border: 1px solid rgba(247, 231, 206, 0.24) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(247, 231, 206, 0.9) !important;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--lynk-font-body);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lynk-song-mini-filters button.is-active {
  color: var(--lynk-neon) !important;
  border-color: rgba(var(--lynk-neon-rgb), 0.42) !important;
  background: rgba(var(--lynk-neon-rgb), 0.12) !important;
}

.lynk-song-mini-filters button:hover,
.lynk-song-mini-filters button:focus,
.lynk-song-mini-filters button:focus-visible,
.lynk-song-mini-filters button:active {
  color: #f7e7ce !important;
  background: rgba(247, 231, 206, 0.14) !important;
  border-color: rgba(247, 231, 206, 0.36) !important;
  outline: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

.lynk-song-mini-filters button.is-active:hover,
.lynk-song-mini-filters button.is-active:focus,
.lynk-song-mini-filters button.is-active:focus-visible,
.lynk-song-mini-filters button.is-active:active {
  color: #a7f3d0 !important;
  border-color: rgba(var(--lynk-neon-rgb), 0.52) !important;
  background: rgba(var(--lynk-neon-rgb), 0.18) !important;
}

.lynk-song-mini-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  flex: 1;
  /* Ẩn scrollbar — vẫn scroll được */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}
.lynk-song-mini-rows::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

.lynk-song-mini-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
}

.lynk-song-mini-row.is-current {
  border-color: rgba(var(--lynk-neon-rgb), 0.35);
  background: rgba(var(--lynk-neon-rgb), 0.1);
}

.lynk-song-mini-index {
  color: rgba(247, 231, 206, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.lynk-song-mini-title {
  color: #f7e7ce;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lynk-song-mini-artist {
  color: var(--lynk-neon);
  font-size: 13px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lynk-song-detail-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.8vw, 4.15rem);
  line-height: 1.05;
  font-weight: 800;
  color: transparent;
  text-align: center;
  background: linear-gradient(to bottom, #f7e7ce 0%, rgba(247, 231, 206, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lynk-song-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(247, 231, 206, 0.85);
  width: 100%;
}

.lynk-song-detail-meta {
  margin-top: 8px;
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.lynk-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 5px 0;
}

.lynk-meta-row + .lynk-meta-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lynk-meta-left,
.lynk-meta-right {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.lynk-meta-left {
  color: rgba(247, 231, 206, 0.85);
  flex-wrap: wrap;
  word-break: break-word;
}

.lynk-meta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--lynk-neon);
  opacity: 0.85;
  vertical-align: middle;
}

.lynk-meta-right {
  text-align: right;
  justify-content: flex-end;
  color: rgba(247, 231, 206, 0.55);
}

.lynk-meta-right::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247, 231, 206, 0.35);
  flex-shrink: 0;
  opacity: 0.8;
}

.lynk-song-detail-artist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7e7ce;
  font-weight: 600;
}

.lynk-song-detail-artist-badge i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-style: italic;
  font-family: serif;
}

.lynk-song-detail-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: inline-block;
}

.lynk-song-lyrics-box {
  margin-top: 8px;
  border-radius: 24px;
  padding: 24px 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.lynk-song-lyrics-box h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #f7e7ce;
}

.lynk-song-lyrics-content {
  max-height: 1000px;
  overflow-y: auto;
  color: rgba(247, 231, 206, 0.84);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  padding-right: 10px;
  /* Ẩn scrollbar — vẫn scroll được */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lynk-song-lyrics-content::-webkit-scrollbar {
  display: none;
}

@keyframes lynk-song-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lynk-song-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(var(--lynk-neon-rgb), 0.5),
      0 0 20px rgba(var(--lynk-neon-rgb), 0.3),
      0 0 30px rgba(var(--lynk-neon-rgb), 0.2);
  }
  50% {
    box-shadow:
      0 0 15px rgba(var(--lynk-neon-rgb), 0.6),
      0 0 25px rgba(var(--lynk-neon-rgb), 0.4),
      0 0 35px rgba(var(--lynk-neon-rgb), 0.25);
  }
}

.lynk-song-detail-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--lynk-color-text);
}

.lynk-song-detail-empty a {
  color: #6ee7b7;
}

@media (max-width: 1024px) {
  /* [lynk_nhac_page] — giữ dạng bảng 5 cột như desktop, chỉ thu nhỏ (không xếp 1 cột) */
  .lynk-song-list-page {
    max-width: 100%;
    padding-top: max(
      calc(var(--lynk-header-h, 5rem) + 1.75rem),
      calc(env(safe-area-inset-top, 0px) + 7rem)
    );
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .lynk-song-list-header {
    margin-bottom: 28px;
  }

  .lynk-song-list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lynk-song-list-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
  }

  .lynk-song-list-filters {
    justify-content: center;
  }

  .lynk-song-list-filters button {
    padding: 5px 12px;
    font-size: 11px;
  }

  .lynk-song-list-table-head,
  .lynk-song-row {
    grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 0.88fr) minmax(56px, 76px) 40px minmax(52px, 70px);
    gap: 10px;
    padding: 10px 12px;
  }

  .lynk-song-list-table-head {
    display: grid;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .lynk-song-row {
    border-radius: 14px;
  }

  .lynk-song-row-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 10px;
  }

  .lynk-song-row-meta {
    min-width: 0;
  }

  .lynk-song-row-meta h3 {
    font-size: clamp(14px, 3.2vw, 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lynk-song-row-meta p {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lynk-song-row-album,
  .lynk-song-row-year,
  .lynk-song-row-duration {
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lynk-song-row-year,
  .lynk-song-row-duration {
    text-align: right;
  }

  .lynk-song-row-index {
    font-size: 12px;
  }

  @media (max-width: 640px) {
    /* Mobile: chỉ # | Bài hát | Thời lượng — bỏ Album & Năm */
    .lynk-song-list-table-wrap {
      overflow-x: visible;
      margin-left: 0;
      margin-right: 0;
      padding-left: 0;
      padding-right: 0;
      padding-bottom: 0;
    }

    .lynk-song-list-table-head > div:nth-child(3),
    .lynk-song-list-table-head > div:nth-child(4),
    .lynk-song-row-album,
    .lynk-song-row-year {
      display: none !important;
    }

    .lynk-song-list-table-head,
    .lynk-song-row {
      min-width: 0;
      grid-template-columns: 40px minmax(0, 1fr) 34px 50px;
      gap: 8px;
      padding: 8px 10px;
    }

    .lynk-song-list-table-head {
      font-size: 9px;
    }

    .lynk-song-list-head-duration svg {
      width: 12px;
      height: 12px;
    }

    .lynk-song-list-head-heart .lynk-song-heart-svg {
      width: 13px;
      height: 13px;
    }

    .lynk-song-row-heart .lynk-song-heart-svg {
      width: 17px;
      height: 17px;
    }

    .lynk-song-row-thumb {
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
      border-radius: 9px;
    }

    .lynk-song-row-meta h3 {
      font-size: 14px;
    }

    .lynk-song-row-meta p {
      font-size: 11px;
    }

    .lynk-song-row-duration {
      font-size: 11px;
    }
  }

  .lynk-song-detail-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "mini";
    gap: 24px;
  }

  .lynk-song-detail-left {
    min-height: auto;
  }

  .lynk-song-mini-list-wrap {
    flex: 0 0 auto;
  }

  .lynk-song-detail-page {
    width: calc(100% - 2rem);
    border-radius: 20px;
    --lynk-song-top-pad: max(
      calc(3.95rem + env(safe-area-inset-top, 0px)),
      calc(var(--lynk-content-below-header) - 1.25rem)
    );
  }

  /* Mobile / tablet 1 cột: khung lời cao theo nội dung, không scroll nội bộ */
  .lynk-song-lyrics-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* ── Mobile tối ưu riêng (≤ 640px) ─────────────────────────────── */
@media (max-width: 640px) {

  /* Song detail page — padding sát màn hình hơn */
  .lynk-song-detail-page {
    width: calc(100% - 1rem);
    border-radius: 16px;
  }

  /* Tăng khoảng cách đĩa than với navbar trên mobile */
  .lynk-song-detail-content {
    padding-top: max(5rem + env(safe-area-inset-top, 0px), 5.5rem) !important;
  }

  /* Vinyl nhỏ lại để còn chỗ cho nội dung */
  .lynk-song-vinyl {
    width: min(290px, 85vw);
    height: min(290px, 85vw);
    margin-bottom: 28px !important;
  }

  .lynk-song-mock-player {
    margin-top: 20px !important;
  }

  /* Mock player — buttons to hơn cho ngón tay */
  .lynk-song-mock-btns button,
  .lynk-song-mock-actions button {
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .lynk-song-mock-play-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    min-height: 52px;
  }

  /* Seekbar dễ kéo hơn trên mobile */
  .lynk-song-mock-progress {
    height: 6px;
    border-radius: 6px;
  }

  /* Lời bài hát — cỡ chữ phù hợp mobile */
  .lynk-song-lyrics-content {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    line-height: 1.7;
  }

  /* Danh sách mini — row to hơn */
  .lynk-song-mini-row {
    padding: 10px 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Filter buttons — dễ tap */
  .lynk-song-mini-filters button {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Song list page — header nhỏ hơn */
  .lynk-song-list-header h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  /* Filter buttons list page */
  .lynk-song-list-filters button {
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ── Lyrics toggle button (mobile only) ─────────────────────── */
.lynk-lyrics-toggle {
  display: none;
}

/* Tắt Chrome scroll anchoring để tránh nhảy khi toggle lyrics */
html, body {
  overflow-anchor: none;
}

@media (max-width: 1024px) {
  .lynk-lyrics-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 18px;
    color: #f7e7ce;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .lynk-lyrics-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--lynk-neon-rgb), 0.35);
  }

  .lynk-lyrics-toggle-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .lynk-lyrics-toggle[aria-expanded=true] .lynk-lyrics-toggle-arrow {
    transform: rotate(180deg);
  }

  .lynk-song-lyrics-box {
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }

  /* Lời ẩn mặc định trên mobile */
  .lynk-song-lyrics-content.lyrics-collapsed {
    display: none !important;
  }

  /* Lời hiện ra khi mở */
  .lynk-song-lyrics-content.lyrics-expanded {
    display: block !important;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
  }
}
