:root {
  --tf-ink: #15171c;
  --tf-muted: #667085;
  --tf-line: #e7e9ef;
  --tf-accent: #14b8a6;
  --tf-warm: #f59e0b;
}

body {
  background: #f7f8fb;
  color: var(--tf-ink);
}

.tf-link-icon {
  display: inline-block;
  margin-right: .4rem;
  line-height: 1;
  vertical-align: -.08em;
}

.tf-hero {
  min-height: 74vh;
  background: linear-gradient(rgba(10, 13, 20, .68), rgba(10, 13, 20, .58)), url("../theme/assets/img/1920x1080/img4.jpg") center/cover;
  color: #00c853;
  display: flex;
  align-items: center;
}

.tf-hero .lead {
  color: #00c853;
}

.tf-hero-eyebrow,
.tf-hero-title {
  color: #00c853;
}

.tf-shell {
  max-width: 1180px;
}

.tf-settings-shell {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
}

.tf-card {
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.tf-discover-page {
  padding-bottom: 7rem !important;
}

.tf-discover-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: 1.5rem;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(255, 255, 255, .96) 54%, rgba(245, 158, 11, .08));
}

.tf-discover-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #047857;
}

.tf-discover-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: .75rem;
}

.tf-discover-stats div {
  padding: .8rem .9rem;
  border: 1px solid rgba(20, 184, 166, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.tf-discover-stats strong,
.tf-discover-stats span {
  display: block;
}

.tf-discover-stats strong {
  font-size: 1.2rem;
}

.tf-discover-stats span {
  font-size: .74rem;
  color: var(--tf-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tf-discover-filters {
  padding: 1rem;
  background: #fff;
}

.tf-discover-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, auto) auto auto;
  gap: .75rem;
}

.tf-discover-search {
  position: relative;
}

.tf-discover-search .tf-link-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tf-muted);
  margin-right: 0;
}

.tf-discover-search .form-control {
  padding-left: 2.35rem;
}

.tf-discover-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.tf-filter-label {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tf-muted);
  margin-right: .15rem;
}

.tf-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: .38rem .7rem;
  border: 1px solid var(--tf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tf-ink);
  font-size: .9rem;
  text-decoration: none;
}

.tf-filter-chip:hover,
.tf-filter-chip:focus-visible,
.tf-filter-chip.is-active {
  border-color: rgba(20, 184, 166, .6);
  background: rgba(20, 184, 166, .1);
  color: #047857;
}

.tf-discover-spotlight {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}

.tf-discover-spotlight__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.tf-discover-spotlight__body {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tf-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.tf-discover-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
}

.tf-discover-empty__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: rgba(20, 184, 166, .12);
  color: #047857;
}

.tf-discover-empty__icon .tf-link-icon {
  margin-right: 0;
}

.tf-discover-skeleton {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tf-discover-skeleton div {
  height: 320px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  animation: tf-skeleton 1.4s ease-in-out infinite;
}

body.is-pjax-loading .tf-discover-skeleton {
  display: grid;
}

@keyframes tf-skeleton {
  0% { background-position: 0 0; }
  100% { background-position: -220% 0; }
}

.tf-track-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tf-track-card:hover,
.tf-track-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, .45);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .11);
}

.tf-track-card__media {
  position: relative;
  background: #111827;
}

.tf-track-card__media .tf-art {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.tf-track-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .45));
  opacity: .72;
}

.tf-track-card__duration {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  z-index: 2;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: .78rem;
}

.tf-track-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  width: 4.25rem;
  height: 4.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 184, 166, .94);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .28);
}

.tf-track-card__play .tf-link-icon {
  margin-right: 0;
  font-size: 1.35rem;
}

.tf-track-card__play span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tf-track-card__body {
  display: flex;
  flex-direction: column;
}

.tf-track-card__creator {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  font-size: .92rem;
}

.tf-track-card__creator img {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  object-fit: cover;
}

.tf-track-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tf-track-card__metrics span {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--tf-muted);
  font-size: .82rem;
}

.tf-track-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}

.tf-track-page {
  max-width: 1240px;
}

.tf-track-stage {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 248, 251, .92));
}

.tf-track-stage__media {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(20, 184, 166, .04), rgba(15, 23, 42, .02));
  border-right: 1px solid var(--tf-line);
}

.tf-track-stage__cover-wrap {
  position: relative;
}

.tf-track-stage__cover {
  box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
}

.tf-track-stage__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.tf-track-stat {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(231, 233, 239, .94);
  border-radius: .875rem;
  padding: .85rem 1rem;
}

.tf-track-stat__label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tf-muted);
  margin-bottom: .25rem;
}

.tf-track-stat__value {
  display: block;
  font-size: 1.1rem;
  color: var(--tf-ink);
}

.tf-track-stage__body {
  padding: 1.5rem;
}

.tf-track-stage__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tf-muted);
  margin-bottom: .85rem;
}

.tf-track-stage__title {
  margin-bottom: .45rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.tf-track-stage__byline {
  font-size: 1.04rem;
  margin-bottom: .9rem;
}

.tf-track-stage__details {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  color: var(--tf-muted);
  font-size: .92rem;
  margin-bottom: 1rem;
}

.tf-track-stage__details span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.tf-track-stage__description {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(21, 23, 28, .92);
}

.tf-track-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.tf-track-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, .1);
  color: #0f766e;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.tf-panel {
  background: rgba(255, 255, 255, .95);
}

.tf-panel__header {
  padding: 1.1rem 1.25rem 0;
}

.tf-panel__body {
  padding: 1rem 1.25rem 1.25rem;
}

.tf-track-lyrics {
  white-space: pre-line;
  line-height: 1.85;
  color: rgba(21, 23, 28, .92);
}

.tf-comment-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(231, 233, 239, .94);
  border-radius: .95rem;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,248,251,.92));
}

.tf-track-reactions {
  display: grid;
  gap: .85rem;
}

.tf-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.65rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(231, 233, 239, .96);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--tf-ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.tf-reaction-chip:hover,
.tf-reaction-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, .34);
  box-shadow: 0 12px 28px rgba(16, 24, 40, .08);
  outline: none;
}

.tf-reaction-chip.is-active {
  background: rgba(20, 184, 166, .12);
  border-color: rgba(20, 184, 166, .32);
  color: #0f766e;
}

.tf-reaction-chip__emoji {
  font-size: 1rem;
  line-height: 1;
}

.tf-reaction-chip__count {
  font-size: .88rem;
  font-weight: 700;
}

.tf-comment-form,
.tf-comment-gate {
  padding: 1rem;
  border: 1px solid rgba(231, 233, 239, .94);
  border-radius: .95rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,248,251,.94));
}

.tf-comment-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(231, 233, 239, .96);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-comment-card.is-pending {
  opacity: .72;
}

.tf-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(17, 24, 39, .88);
  backdrop-filter: blur(4px);
}

.tf-upload-overlay[hidden] {
  display: none !important;
}

.tf-upload-overlay__dialog {
  width: min(100%, 420px);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
  background: rgba(15, 23, 42, .96);
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.tf-upload-overlay__spinner {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.tf-upload-progress {
  height: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.tf-upload-progress .progress-bar {
  min-width: 2.5rem;
  background: linear-gradient(90deg, #14b8a6, #22c55e);
  font-size: .75rem;
  font-weight: 700;
  color: #062d28;
  transition: width .18s ease;
}

.tf-upload-progress.is-indeterminate .progress-bar {
  width: 100% !important;
  min-width: 100%;
  color: transparent;
  background: linear-gradient(90deg, rgba(20, 184, 166, .28), #22c55e, rgba(20, 184, 166, .28));
  background-size: 220% 100%;
  animation: tf-upload-progress-pulse 1.1s linear infinite;
}

@keyframes tf-upload-progress-pulse {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -120% 0;
  }
}

body.tf-upload-is-processing {
  overflow: hidden;
}

.tf-notification-menu {
  width: min(92vw, 420px);
  padding: 0;
  overflow: hidden;
}

.tf-notification-menu__header,
.tf-notification-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
}

.tf-notification-menu__header {
  border-bottom: 1px solid rgba(231, 233, 239, .9);
}

.tf-notification-menu__footer {
  border-top: 1px solid rgba(231, 233, 239, .9);
}

.tf-notification-menu__list {
  max-height: min(60vh, 430px);
  overflow-y: auto;
}

.tf-notification-menu__empty {
  padding: 1rem;
  color: var(--tf-muted);
}

.tf-support-chat {
  position: fixed;
  right: 1rem;
  bottom: 6.5rem;
  z-index: 1500;
  font-size: .95rem;
}

.tf-support-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 45px rgba(15, 118, 110, .28);
}

.tf-support-chat__launcher:hover,
.tf-support-chat__launcher:focus-visible {
  background: #115e59;
  color: #fff;
}

.tf-support-chat__panel {
  width: min(92vw, 390px);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: .9rem;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.tf-support-chat__panel[hidden] {
  display: none !important;
}

.tf-support-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem;
  background: #0f766e;
  color: #fff;
}

.tf-support-chat__header p {
  color: rgba(255, 255, 255, .82);
}

.tf-support-chat__header-actions {
  display: inline-flex;
  gap: .35rem;
}

.tf-support-chat__quick {
  display: flex;
  gap: .45rem;
  padding: .7rem .8rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(31, 41, 55, .08);
}

.tf-support-chat__quick button {
  flex: 0 0 auto;
  padding: .42rem .65rem;
  border: 1px solid rgba(15, 118, 110, .25);
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 700;
  font-size: .8rem;
}

.tf-support-chat__messages {
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: .85rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.tf-support-message {
  width: fit-content;
  max-width: 92%;
  margin-bottom: .65rem;
  padding: .65rem .75rem;
  border-radius: .8rem;
  border: 1px solid rgba(31, 41, 55, .08);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.tf-support-message.is-user {
  margin-left: auto;
  background: #0f766e;
  color: #fff;
}

.tf-support-message.is-bot {
  margin-right: auto;
}

.tf-support-message strong,
.tf-support-message span {
  display: block;
}

.tf-support-message ul {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
}

.tf-support-chat__input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid rgba(31, 41, 55, .08);
  background: #fff;
}

.tf-support-chat__escalation {
  padding: .75rem;
  border-top: 1px solid rgba(31, 41, 55, .08);
  background: #f8fafc;
  overflow-y: auto;
}

.tf-support-chat__escalation-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .65rem;
}

.tf-support-chat button:focus-visible,
.tf-support-chat input:focus-visible,
.tf-support-chat textarea:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .45);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .tf-support-chat {
    right: .75rem;
    bottom: 5.75rem;
    left: .75rem;
  }

  .tf-support-chat__launcher {
    margin-left: auto;
    display: flex;
    width: max-content;
  }

  .tf-support-chat__panel {
    width: 100%;
    max-height: min(78vh, 620px);
  }

  .tf-support-chat__messages {
    max-height: 300px;
  }

  .tf-support-chat__quick {
    padding-bottom: .8rem;
  }
}

.tf-notification-dropdown-item,
.tf-notification-link {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.tf-notification-dropdown-item {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(231, 233, 239, .78);
}

.tf-notification-dropdown-item:hover,
.tf-notification-link:hover {
  color: inherit;
  background: rgba(20, 184, 166, .08);
}

.tf-notification-dropdown-item.is-unread,
.tf-notification-item.is-unread {
  background: rgba(20, 184, 166, .12);
}

.tf-notification-dropdown-item.is-new {
  animation: tfNotificationPulse 1.4s ease-out;
}

.tf-notification-thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: .6rem;
  object-fit: cover;
  border: 1px solid rgba(231, 233, 239, .94);
  background: #111827;
}

.tf-notification-copy {
  display: grid;
  gap: .14rem;
  min-width: 0;
}

.tf-notification-title {
  font-weight: 700;
  line-height: 1.25;
}

.tf-notification-message {
  color: var(--tf-muted);
  font-size: .9rem;
  line-height: 1.35;
}

.tf-notification-time {
  color: var(--tf-muted);
  font-size: .78rem;
}

.tf-notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tf-notification-item .tf-notification-link {
  flex: 1 1 auto;
}

.tf-notification-read-form {
  flex: 0 0 auto;
}

@keyframes tfNotificationPulse {
  0% { background: rgba(20, 184, 166, .28); }
  100% { background: transparent; }
}

@media (max-width: 575.98px) {
  .tf-notification-item {
    flex-direction: column;
  }

  .tf-notification-read-form {
    align-self: flex-end;
  }
}

.tf-upload-cover-preview {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid rgba(231, 233, 239, .94);
  border-radius: .75rem;
  background: rgba(248, 250, 252, .86);
}

.tf-upload-cover-preview img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: .55rem;
  object-fit: cover;
  background: #111827;
}

.tf-track-meta-list {
  display: grid;
  gap: .95rem;
}

.tf-track-meta-list dt {
  margin-bottom: .22rem;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tf-muted);
}

.tf-track-meta-list dd {
  margin-bottom: 0;
  font-size: .97rem;
  color: var(--tf-ink);
}

.tf-art {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-waveform {
  height: 104px;
  background: linear-gradient(180deg, #ffffff, #f3fbfa);
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;
}

.tf-waveform::before {
  content: "";
  position: absolute;
  inset: 50% 14px auto;
  height: 1px;
  background: rgba(102, 112, 133, .2);
}

.tf-waveform-scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  padding: 12px 14px;
}

.tf-waveform-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
  min-width: 100%;
  width: max(100%, 1480px);
}

.tf-waveform-progress {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 184, 166, .18), rgba(56, 189, 248, .12));
  pointer-events: none;
  transition: width .06s linear;
}

.tf-waveform-playhead {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  background: var(--tf-warm);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
  transform: translateX(0);
  pointer-events: none;
}

.tf-waveform-bar {
  flex: 1 1 3px;
  min-width: 2px;
  max-width: 8px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  border-radius: 999px;
  opacity: .9;
  z-index: 1;
  transition: opacity .12s linear, filter .12s linear;
}

.tf-waveform.is-active .tf-waveform-bar {
  opacity: .74;
}

.tf-waveform-bar.is-played {
  filter: saturate(1.18) brightness(1.06);
  opacity: 1;
}

.tf-waveform-bar:nth-child(4n) {
  opacity: .62;
}

.tf-waveform-bar:nth-child(6n) {
  background: linear-gradient(180deg, #38bdf8, #0f766e);
}

.tf-stat {
  font-size: 1.85rem;
  font-weight: 700;
}

.tf-muted {
  color: var(--tf-muted);
}

.tf-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #111827;
  color: #fff;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, .18);
}

body {
  padding-bottom: 116px;
}

.tf-player .tf-shell {
  max-width: none;
  width: 100%;
  padding-left: clamp(.75rem, 2vw, 1.5rem);
  padding-right: clamp(.75rem, 2vw, 1.5rem);
}

.tf-player-grid {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(150px, .62fr) auto minmax(260px, 1.15fr) minmax(300px, auto);
  gap: .75rem;
  align-items: center;
}

.tf-player-now {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.tf-player-art {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-player-meta-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tf-player-meta-link:hover,
.tf-player-meta-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.tf-player-title-link {
  max-width: 100%;
}

.tf-player-meta-link[aria-disabled="true"] {
  pointer-events: none;
}

.tf-player-controls,
.tf-player-secondary {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.tf-player-secondary {
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.tf-player-playlist {
  min-width: 0;
}

.tf-player-playlist .form-select {
  min-height: 2.25rem;
  color: #fff;
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

.tf-player-playlist .form-select:focus {
  border-color: var(--tf-accent);
  box-shadow: 0 0 0 .15rem rgba(20, 184, 166, .24);
}

.tf-player-icon-btn,
.tf-player-queue-btn {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tf-player-icon-btn .tf-link-icon,
.tf-player-queue-btn .tf-link-icon,
.tf-player-play-btn .tf-link-icon {
  margin-right: 0;
}

.tf-player-icon-btn.is-active {
  border-color: var(--tf-accent);
  background: rgba(20, 184, 166, .22);
  color: #fff;
}

.tf-player-menu {
  --bs-dropdown-bg: #111827;
  --bs-dropdown-color: #fff;
  --bs-dropdown-link-color: rgba(255, 255, 255, .86);
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(20, 184, 166, .18);
  --bs-dropdown-border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, .22);
}

.tf-player-play-btn {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 10px 26px rgba(20, 184, 166, .28);
}

.tf-player.is-loading .tf-player-play-btn .tf-link-icon {
  animation: tf-player-spin .8s linear infinite;
}

.tf-player.has-track:not(.is-loading) .tf-player-play-btn:not(:disabled) {
  animation: tf-player-pop .22s ease;
}

.tf-player-queue-count {
  position: absolute;
  top: -.35rem;
  right: -.35rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 .25rem;
  border-radius: 999px;
  background: var(--tf-accent);
  color: #fff;
  font-size: .65rem;
  line-height: 1.05rem;
  font-weight: 700;
}

.tf-player-mobile-toggle,
.tf-player [data-player-minimize] {
  display: none;
}

@keyframes tf-player-spin {
  to { transform: rotate(360deg); }
}

@keyframes tf-player-pop {
  0% { transform: scale(.96); }
  100% { transform: scale(1); }
}

.tf-player-progress {
  min-width: 0;
  flex: 1 1 320px;
}

@media (min-width: 576px) {
  .tf-player-progress {
    min-width: min(360px, 100%);
  }
}

.tf-player .form-range {
  min-width: 120px;
  height: 1.35rem;
  cursor: pointer;
}

.tf-player .form-range::-webkit-slider-runnable-track {
  height: .28rem;
  border-radius: 999px;
}

.tf-player .form-range::-webkit-slider-thumb {
  margin-top: -.36rem;
}

.tf-player .form-range::-moz-range-track {
  height: .28rem;
  border-radius: 999px;
}

.tf-volume {
  width: 96px;
}

.min-w-0 {
  min-width: 0;
}

.is-pjax-loading #app-content {
  opacity: .65;
  transition: opacity .16s ease;
}

.tf-inline-editor.is-dirty {
  border-color: var(--tf-warm) !important;
  box-shadow: 0 0 0 .2rem rgba(245, 158, 11, .14);
}

.tf-dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.35rem;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .1), rgba(255, 255, 255, .98) 58%, rgba(245, 158, 11, .08));
}

.tf-dashboard-command__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.tf-dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  color: #047857;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tf-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .9rem;
}

.tf-dashboard-stat {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  color: var(--tf-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tf-dashboard-stat:hover,
.tf-dashboard-stat:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, .5);
  box-shadow: 0 18px 38px rgba(16, 24, 40, .1);
}

.tf-dashboard-stat__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, .12);
  color: #047857;
}

.tf-dashboard-stat__icon .tf-link-icon {
  margin-right: 0;
}

.tf-dashboard-stat__body {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.tf-dashboard-stat__body strong {
  font-size: 1.35rem;
  line-height: 1;
}

.tf-dashboard-stat__body span,
.tf-dashboard-stat__body small {
  color: var(--tf-muted);
}

.tf-dashboard-stat__body span {
  font-size: .88rem;
}

.tf-dashboard-stat__body small {
  font-size: .76rem;
}

.tf-dashboard-attention,
.tf-dashboard-library,
.tf-dashboard-side-panel {
  background: #fff;
}

.tf-dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--tf-line);
}

.tf-dashboard-attention__list {
  display: grid;
  gap: .5rem;
  padding: 1rem;
}

.tf-dashboard-attention__list a,
.tf-dashboard-activity a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  color: var(--tf-ink);
  text-decoration: none;
}

.tf-dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(140px, 1fr));
  gap: .65rem;
  padding: 1rem;
  border-bottom: 1px solid var(--tf-line);
  overflow: hidden;
}

.tf-dashboard-toolbar .form-control,
.tf-dashboard-toolbar .form-select,
.tf-dashboard-toolbar .btn {
  min-width: 0;
}

.tf-dashboard-toolbar .btn-group {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
}

.tf-dashboard-toolbar .btn-group .btn {
  flex: 0 0 auto;
}

.tf-dashboard-search {
  position: relative;
}

.tf-dashboard-search .tf-link-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0;
  color: var(--tf-muted);
}

.tf-dashboard-search .form-control {
  padding-left: 2.3rem;
}

.tf-dashboard-empty {
  padding: 3rem 1rem;
  text-align: center;
}

.tf-dashboard-empty__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(20, 184, 166, .12);
  color: #047857;
}

.tf-dashboard-empty__icon .tf-link-icon {
  margin-right: 0;
}

.tf-dashboard-cover {
  width: 132px;
}

.tf-dashboard-cover img {
  display: block;
  width: 132px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--tf-line);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-album-group {
  background: rgba(255, 255, 255, .96);
}

.tf-album-accordion {
  display: grid;
  gap: 1rem;
}

.tf-album-group__header {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,248,251,.94));
}

.tf-album-group__header:not(.collapsed) {
  color: var(--tf-ink);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,248,251,.94));
  box-shadow: inset 0 -1px 0 var(--tf-line);
}

.tf-album-group__header:focus {
  box-shadow: 0 0 0 .2rem rgba(20, 184, 166, .18);
}

.tf-album-group__cover {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--tf-line);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-dashboard-album-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, auto);
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding-right: 1rem;
  min-width: 0;
}

.tf-dashboard-album-head__main,
.tf-dashboard-album-head__meta {
  display: grid;
  min-width: 0;
}

.tf-dashboard-album-head__main > .h5,
.tf-dashboard-album-head__main > .small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-dashboard-album-head__meta {
  justify-items: end;
  gap: .25rem;
}

.tf-dashboard-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, .11);
  color: #047857;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.3;
}

.tf-dashboard-badge.is-warning {
  background: rgba(245, 158, 11, .14);
  color: #92400e;
}

.tf-dashboard-album-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--tf-line);
  background: #fbfcfe;
}

.tf-dashboard-track-list {
  display: grid;
}

.tf-dashboard-track-row {
  display: grid;
  grid-template-columns: 56px minmax(160px, 1.25fr) minmax(220px, 1fr) minmax(110px, auto) auto;
  gap: .85rem;
  align-items: center;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--tf-line);
  background: #fff;
}

.tf-dashboard-track-row:last-child {
  border-bottom: 0;
}

.tf-dashboard-track-row__cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--tf-line);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-dashboard-track-row__title,
.tf-dashboard-track-row__metrics {
  display: grid;
  min-width: 0;
}

.tf-dashboard-track-row__badges,
.tf-dashboard-track-row__metrics,
.tf-dashboard-track-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tf-dashboard-track-row__metrics span {
  display: inline-flex;
  align-items: center;
  color: var(--tf-muted);
  font-size: .84rem;
}

.tf-dashboard-track-row__actions {
  justify-content: flex-end;
}

.tf-dashboard-library[data-view="grid"] .tf-album-accordion {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-dashboard-library[data-view="grid"] .tf-dashboard-track-row {
  grid-template-columns: 72px minmax(0, 1fr);
}

.tf-dashboard-library[data-view="grid"] .tf-dashboard-track-row__cover {
  width: 72px;
  height: 72px;
}

.tf-dashboard-library[data-view="grid"] .tf-dashboard-track-row__badges,
.tf-dashboard-library[data-view="grid"] .tf-dashboard-track-row__metrics,
.tf-dashboard-library[data-view="grid"] .tf-dashboard-track-row__actions {
  grid-column: 1 / -1;
}

.tf-dashboard-activity {
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.tf-dashboard-activity a {
  justify-content: flex-start;
  align-items: flex-start;
}

.tf-dashboard-activity a > span:first-child {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #047857;
  background: rgba(20, 184, 166, .12);
}

.tf-dashboard-activity a > span:first-child .tf-link-icon {
  margin-right: 0;
}

.tf-dashboard-activity strong,
.tf-dashboard-activity small {
  display: block;
}

.tf-dashboard-activity small {
  color: var(--tf-muted);
}

.tf-profile-card {
  background: rgba(255, 255, 255, .96);
}

.tf-profile-cover {
  position: relative;
  border-bottom: 1px solid var(--tf-line);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-profile-cover__image {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.tf-profile-avatar {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, .96);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .16);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-profile-bio {
  max-width: 72ch;
  white-space: pre-line;
  line-height: 1.8;
  color: rgba(21, 23, 28, .92);
}

.tf-social-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--tf-line);
  background: #fff;
  color: var(--tf-ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.tf-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, .35);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.tf-social-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 184, 166, .12);
  color: #0f766e;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.tf-profile-editor-media {
  padding: 1rem;
  border: 1px solid var(--tf-line);
  border-radius: .9rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,248,251,.94));
}

.tf-profile-editor-avatar {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
  background: linear-gradient(135deg, #111827, #14b8a6);
  margin: 0 auto;
}

.tf-genre-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--tf-line);
  border-radius: .85rem;
  background: #fff;
  cursor: pointer;
}

.tf-genre-option input {
  margin: 0;
}

.tf-settings-album-row {
  display: grid;
  grid-template-columns: minmax(160px, 190px) minmax(280px, 2fr) minmax(170px, .7fr) minmax(170px, .7fr);
  gap: 1.15rem;
  align-items: start;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: #fff;
}

.tf-settings-album-row--new {
  border-style: dashed;
  background: rgba(20, 184, 166, .04);
}

.tf-settings-playlist-row {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(180px, .7fr) minmax(170px, auto);
  gap: 1.15rem;
  align-items: start;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: #fff;
}

.tf-settings-playlist-row--new {
  border-style: dashed;
  background: rgba(20, 184, 166, .04);
}

.tf-settings-album-cover img {
  display: block;
  width: 100%;
  max-width: 178px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--tf-line);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-collection-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tf-collection-header__cover {
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--tf-line);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-artist-hero {
  position: relative;
  background: rgba(255, 255, 255, .98);
}

.tf-artist-hero__cover {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-artist-hero__cover-image {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
}

.tf-artist-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, .12) 0%, rgba(7, 10, 18, .45) 62%, rgba(247, 248, 251, .96) 100%),
    linear-gradient(120deg, rgba(20, 184, 166, .18), rgba(17, 24, 39, .18));
  pointer-events: none;
}

.tf-artist-hero__body {
  position: relative;
  margin-top: -88px;
  padding: 0 1.5rem 1.5rem;
}

.tf-artist-hero__identity {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
}

.tf-artist-hero__avatar {
  width: 152px;
  height: 152px;
  flex: 0 0 152px;
  object-fit: cover;
  border-radius: 28px;
  border: 5px solid rgba(255, 255, 255, .98);
  box-shadow: 0 28px 48px rgba(15, 23, 42, .18);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-artist-hero__meta {
  flex: 1 1 320px;
  padding-bottom: .35rem;
}

.tf-artist-hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  color: var(--tf-muted);
  font-size: .95rem;
  margin-bottom: .65rem;
}

.tf-artist-hero__handle {
  font-weight: 600;
  color: #344054;
}

.tf-artist-hero__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(102, 112, 133, .55);
}

.tf-artist-hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: .96;
  letter-spacing: -.04em;
  margin: 0;
}

.tf-artist-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-left: calc(152px + 1.25rem);
}

.tf-artist-section,
.tf-artist-sidepanel {
  background: rgba(255, 255, 255, .96);
}

.tf-artist-section__header,
.tf-artist-sidepanel__header {
  padding: 1.35rem 1.4rem 0;
}

.tf-artist-section__header--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.tf-albums-management-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.tf-albums-management-toggle .btn {
  pointer-events: none;
}

#profile-albums .tf-settings-album-row {
  grid-template-columns: minmax(140px, 160px) minmax(0, 1fr) minmax(130px, .45fr) minmax(130px, .45fr);
  overflow: hidden;
}

#profile-albums .tf-settings-album-row > div {
  min-width: 0;
}

#profile-albums .tf-settings-album-cover img {
  max-width: 160px;
}

.tf-artist-section__body,
.tf-artist-sidepanel__body {
  padding: 1.15rem 1.4rem 1.4rem;
}

.tf-artist-section__label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tf-muted);
}

.tf-artist-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}

.tf-artist-stat {
  padding: .95rem .85rem;
  border: 1px solid rgba(231, 233, 239, .95);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,248,251,.95));
}

.tf-artist-stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tf-ink);
}

.tf-artist-stat__label {
  display: block;
  margin-top: .2rem;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tf-muted);
}

.tf-profile-playlist-create,
.tf-profile-playlist-empty {
  padding: 1rem;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: #fff;
}

.tf-profile-playlist-empty {
  text-align: center;
}

.tf-profile-playlists {
  display: grid;
  gap: .75rem;
}

.tf-profile-playlist {
  border: 1px solid var(--tf-line) !important;
  border-radius: 8px !important;
  overflow: hidden;
  background: #fff;
}

.tf-profile-playlist .accordion-button {
  gap: .75rem;
  box-shadow: none;
}

.tf-profile-playlist .accordion-button:not(.collapsed) {
  color: var(--tf-ink);
  background: rgba(20, 184, 166, .08);
}

.tf-profile-playlist__summary {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.tf-profile-playlist__summary strong,
.tf-profile-playlist__summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-profile-playlist__summary span {
  color: var(--tf-muted);
  font-size: .86rem;
  font-weight: 400;
}

.tf-profile-playlist-edit {
  padding: .85rem;
  border: 1px dashed rgba(20, 184, 166, .35);
  border-radius: 8px;
  background: rgba(20, 184, 166, .04);
}

.tf-profile-playlist-track {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .65rem;
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  background: #fff;
}

.tf-profile-playlist-track img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--tf-line);
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.tf-artist-facts {
  display: grid;
  gap: 1rem;
}

.tf-artist-facts dt {
  margin-bottom: .2rem;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tf-muted);
}

.tf-artist-facts dd {
  margin: 0;
  color: var(--tf-ink);
  word-break: break-word;
}

.tf-social-link--stacked {
  justify-content: flex-start;
  border-radius: 1rem;
  padding: .8rem .95rem;
}

.tf-social-link__content {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.tf-social-link__label {
  font-weight: 600;
  color: var(--tf-ink);
}

.tf-social-link__url {
  font-size: .82rem;
  color: var(--tf-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  body {
    padding-bottom: 86px;
  }

  .tf-player.py-3 {
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
  }

  .tf-player.is-auto-hidden {
    transform: translateY(calc(100% - 10px));
    box-shadow: none;
  }

  .tf-player .tf-shell {
    padding-left: .55rem;
    padding-right: .55rem;
  }

  .tf-player-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .55rem !important;
    align-items: center !important;
  }

  .tf-player-now {
    gap: .55rem;
  }

  .tf-player-art {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .tf-player [data-player-artist] {
    font-size: .72rem;
    line-height: 1.1;
  }

  .tf-player [data-player-label] {
    max-width: 100%;
    font-size: .88rem;
    line-height: 1.15;
  }

  .tf-player-controls {
    justify-content: flex-end;
    gap: .35rem !important;
  }

  .tf-player-playlist {
    grid-column: 1 / -1;
  }

  .tf-player-playlist .form-select {
    min-height: 2rem;
    font-size: .82rem;
  }

  .tf-player [data-player-prev],
  .tf-player [data-player-next] {
    display: none;
  }

  .tf-player-mobile-toggle {
    display: inline-flex;
  }

  .tf-player [data-player-minimize] {
    display: inline-flex;
  }

  .tf-player-icon-btn,
  .tf-player-queue-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
  }

  .tf-player [data-player-play] {
    width: 2.65rem;
    height: 2.65rem;
    min-width: 2.65rem;
    padding: 0;
    border-radius: 999px;
    font-size: .95rem;
  }

  .tf-player [data-player-prev] .tf-link-icon,
  .tf-player [data-player-next] .tf-link-icon {
    margin-right: 0;
    font-size: .95rem;
  }

  .tf-player-progress {
    grid-column: 1 / -1;
    min-width: 0;
    flex: 1 1 auto;
    gap: .45rem !important;
  }

  .tf-player-progress span {
    font-size: .72rem;
  }

  .tf-player .form-range {
    min-width: 0;
  }

  .tf-player-secondary {
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: .45rem !important;
  }

  .tf-volume {
    display: none;
    width: min(34vw, 116px);
  }

  .tf-player.is-volume-open .tf-volume,
  .tf-player[data-player-collapsed="false"] .tf-volume {
    display: block;
  }

  .tf-player .btn[href*="/discover"] {
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
  }

  .tf-player[data-player-collapsed="true"] .tf-player-progress,
  .tf-player[data-player-collapsed="true"] .tf-player-secondary,
  .tf-player[data-player-collapsed="true"] .tf-player-playlist,
  .tf-player[data-player-collapsed="true"] [data-player-status],
  .tf-player[data-player-collapsed="true"] [data-player-prev],
  .tf-player[data-player-collapsed="true"] [data-player-next] {
    display: none !important;
  }

  .tf-player[data-player-collapsed="false"] [data-player-prev],
  .tf-player[data-player-collapsed="false"] [data-player-next] {
    display: inline-flex;
  }

  .tf-dashboard-command,
  .tf-dashboard-toolbar,
  .tf-dashboard-album-head,
  .tf-dashboard-track-row {
    grid-template-columns: 1fr;
  }

  .tf-dashboard-command__actions,
  .tf-dashboard-album-actions,
  .tf-dashboard-track-row__actions {
    justify-content: stretch;
  }

  .tf-dashboard-command__actions .btn,
  .tf-dashboard-album-actions .btn,
  .tf-dashboard-track-row__actions .btn,
  .tf-dashboard-track-row__actions .dropdown,
  .tf-dashboard-track-row__actions .dropdown-toggle {
    width: 100%;
  }

  .tf-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .tf-dashboard-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tf-dashboard-album-head__meta {
    justify-items: start;
  }

  .tf-dashboard-track-row__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .tf-discover-hero,
  .tf-discover-spotlight,
  .tf-discover-filter-grid {
    grid-template-columns: 1fr;
  }

  .tf-discover-hero {
    padding: 1.15rem;
  }

  .tf-discover-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .tf-discover-stats div {
    padding: .65rem .55rem;
  }

  .tf-discover-spotlight__body {
    padding: 1rem;
  }

  .tf-discover-spotlight__media img {
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }

  .tf-discover-skeleton {
    grid-template-columns: 1fr;
  }

  .tf-track-card__play {
    width: 3.7rem;
    height: 3.7rem;
  }

  .tf-track-card__actions .btn,
  .tf-track-card__actions form {
    flex: 1 1 auto;
  }

  .tf-track-card__actions .btn {
    width: 100%;
  }

  .tf-track-stage__media,
  .tf-track-stage__body,
  .tf-panel__header,
  .tf-panel__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tf-track-stage__meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tf-track-stage__title {
    font-size: 2.1rem;
  }

  .tf-profile-avatar {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .tf-social-link {
    width: 100%;
    justify-content: flex-start;
  }

  .tf-artist-hero__cover,
  .tf-artist-hero__cover-image {
    min-height: 200px;
  }

  .tf-artist-hero__body {
    margin-top: -52px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
  }

  .tf-artist-hero__avatar {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
    border-radius: 22px;
  }

  .tf-artist-hero__actions {
    padding-left: 0;
    margin-top: 1rem;
  }

  .tf-artist-section__header,
  .tf-artist-sidepanel__header,
  .tf-artist-section__body,
  .tf-artist-sidepanel__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tf-artist-stats {
    grid-template-columns: 1fr;
  }

  .tf-profile-playlist-track {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .tf-profile-playlist-track form {
    grid-column: 1 / -1;
  }

  .tf-settings-album-row,
  .tf-settings-playlist-row {
    grid-template-columns: 1fr;
  }

  .tf-collection-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tf-collection-header__cover {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }

  .tf-dashboard-cover,
  .tf-dashboard-cover img {
    width: 100%;
  }
}

@media (max-width: 1199.98px) {
  body {
    padding-bottom: 164px;
  }

  .tf-player.py-3 {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
  }

  .tf-player-grid {
    grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
    gap: .75rem !important;
  }

  .tf-player-playlist {
    grid-column: 1 / -1;
  }

  .tf-player-progress {
    grid-column: 1 / 3;
  }

  .tf-player-secondary {
    grid-column: 3 / 4;
    flex-wrap: wrap;
  }

  .tf-settings-album-row {
    grid-template-columns: minmax(140px, 170px) minmax(240px, 1fr) minmax(150px, .55fr) minmax(150px, .55fr);
  }

  #profile-albums .tf-settings-album-row {
    grid-template-columns: minmax(130px, 160px) minmax(0, 1fr) minmax(130px, 1fr);
  }

  #profile-albums .tf-settings-album-row > div:nth-child(4) {
    grid-column: 2 / -1;
  }

  .tf-settings-playlist-row {
    grid-template-columns: minmax(240px, 1fr) minmax(160px, .55fr) minmax(150px, auto);
  }

  .tf-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-dashboard-track-row {
    grid-template-columns: 1fr 1fr;
  }

  .tf-dashboard-toolbar {
    grid-template-columns: 1fr;
  }

  .tf-dashboard-toolbar .btn-group {
    justify-self: stretch;
  }

  .tf-dashboard-toolbar .btn-group .btn {
    flex: 1 1 0;
  }

  .tf-dashboard-track-row__badges,
  .tf-dashboard-track-row__metrics,
  .tf-dashboard-track-row__actions {
    grid-column: 1 / -1;
  }

  .tf-track-stage__media {
    border-right: 0;
    border-bottom: 1px solid var(--tf-line);
  }

  .tf-artist-hero__actions {
    padding-left: 0;
  }
}

@media (max-width: 991.98px) {
  .tf-settings-shell {
    width: min(100% - 1.5rem, 100%);
  }

  .tf-settings-album-row {
    grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  }

  #profile-albums .tf-settings-album-row {
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  }

  .tf-settings-album-row > div:nth-child(3),
  .tf-settings-album-row > div:nth-child(4) {
    grid-column: auto;
  }

  .tf-settings-playlist-row {
    grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr);
  }

  .tf-settings-playlist-row > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-bottom: 86px;
  }

  .tf-dashboard-command,
  .tf-dashboard-toolbar,
  .tf-dashboard-album-head,
  .tf-dashboard-track-row {
    grid-template-columns: 1fr;
  }

  .tf-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .tf-player.py-3 {
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
  }

  .tf-player-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .55rem !important;
  }

  .tf-player[data-player-collapsed="true"] .tf-player-progress,
  .tf-player[data-player-collapsed="true"] .tf-player-playlist,
  .tf-player[data-player-collapsed="true"] .tf-player-secondary {
    display: none !important;
  }

  .tf-player-playlist,
  .tf-player-progress,
  .tf-player-secondary {
    grid-column: 1 / -1;
  }

}

.btn-primary {
  background-color: var(--tf-accent);
  border-color: var(--tf-accent);
}

.btn-primary:hover {
  background-color: #0f9488;
  border-color: #0f9488;
}

[data-bs-theme="dark"] body,
body[data-bs-theme="dark"] {
  background: #111827;
  color: #f9fafb;
}

.tf-admin-page {
  background: #f4f7f8;
  color: #1f2937;
}

.tf-admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 1440px;
  margin: 0 auto;
}

.tf-admin-sidebar,
.tf-admin-panel,
.tf-admin-hero,
.tf-admin-metric {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, .08);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.tf-admin-sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
  border-radius: 10px;
  padding: 1rem;
}

.tf-admin-sidebar__brand {
  display: grid;
  gap: .2rem;
  padding: .35rem .45rem 1rem;
  border-bottom: 1px solid rgba(31, 41, 55, .08);
  margin-bottom: .75rem;
}

.tf-admin-sidebar__brand span,
.tf-admin-eyebrow,
.tf-admin-table small,
.tf-admin-audit small,
.tf-admin-health small,
.tf-admin-list small {
  color: #64748b;
}

.tf-admin-nav {
  display: grid;
  gap: .2rem;
}

.tf-admin-nav a {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #334155;
  padding: .65rem .7rem;
  border-radius: 8px;
  font-weight: 700;
}

.tf-admin-nav a:hover,
.tf-admin-nav a.is-active {
  background: #e8f7f5;
  color: #08766e;
}

.tf-admin-main {
  min-width: 0;
}

.tf-admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-radius: 12px;
  padding: 1.35rem;
}

.tf-admin-hero--compact {
  margin-bottom: 1rem;
}

.tf-admin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.tf-admin-eyebrow {
  text-transform: uppercase;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
}

.tf-admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.tf-admin-metric {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #1f2937;
  border-radius: 10px;
  padding: .9rem;
}

.tf-admin-metric:hover {
  transform: translateY(-1px);
}

.tf-admin-metric__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: #e8f7f5;
  color: #08766e;
}

.tf-admin-metric strong {
  display: block;
  color: #111827;
  font-size: 1.25rem;
}

.tf-admin-metric small {
  display: block;
  color: #64748b;
  font-weight: 700;
}

.tf-admin-panel {
  border-radius: 10px;
  padding: 1rem;
}

.tf-admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.tf-admin-list,
.tf-admin-audit,
.tf-admin-health {
  display: grid;
  gap: .55rem;
}

.tf-admin-list a,
.tf-admin-audit > div,
.tf-admin-health > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 8px;
  padding: .72rem;
}

.tf-admin-health > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) minmax(0, auto);
  align-items: center;
}

.tf-admin-list strong,
.tf-admin-list small,
.tf-admin-audit strong,
.tf-admin-audit small,
.tf-admin-health strong,
.tf-admin-health small {
  display: block;
}

.tf-admin-health strong,
.tf-admin-health small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-admin-health small {
  text-align: right;
}

.tf-admin-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 1.5rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: capitalize;
  background: #eef2f7;
  color: #475569;
}

.tf-admin-badge.is-success {
  background: #dff8ec;
  color: #087641;
}

.tf-admin-badge.is-warning {
  background: #fff3d8;
  color: #925b00;
}

.tf-admin-badge.is-danger {
  background: #fde2e2;
  color: #9f1239;
}

.tf-admin-badge.is-muted {
  background: #eef2f7;
  color: #475569;
}

.tf-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, auto)) auto auto;
  gap: .6rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tf-admin-toolbar .form-control,
.tf-admin-toolbar .form-select {
  min-width: 150px;
}

.tf-admin-bulkbar,
.tf-admin-pagination,
.tf-admin-moderation-form,
.tf-admin-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tf-admin-bulkbar .form-control {
  min-width: min(24rem, 100%);
}

.tf-admin-pagination {
  justify-content: space-between;
  color: #64748b;
}

.tf-admin-table {
  font-size: .92rem;
  vertical-align: middle;
}

.tf-admin-table--wide {
  min-width: 1320px;
}

.tf-admin-table thead th {
  color: #475569;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom-color: rgba(31, 41, 55, .12);
}

.tf-admin-table td {
  border-color: rgba(31, 41, 55, .08);
}

.tf-admin-person {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 220px;
}

.tf-admin-person--large img {
  width: 72px;
  height: 72px;
}

.tf-admin-person img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
  flex: 0 0 auto;
}

.tf-admin-person strong,
.tf-admin-person small {
  display: block;
}

.tf-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.tf-admin-actions--stack,
.tf-admin-note-action {
  display: grid;
}

.tf-admin-note-action {
  grid-template-columns: 130px minmax(150px, 1fr) auto;
  gap: .35rem;
}

.tf-admin-action-grid {
  align-items: stretch;
}

.tf-admin-action-grid form {
  flex: 1 1 12rem;
}

.tf-admin-checkbox-list {
  display: grid;
  gap: .5rem;
}

.tf-admin-dl {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: .55rem 1rem;
  margin-bottom: 0;
}

.tf-admin-dl dt {
  color: #64748b;
  font-weight: 700;
}

.tf-admin-dl dd {
  margin-bottom: 0;
}

.tf-admin-moderation-form .form-control,
.tf-admin-moderation-form .form-select {
  flex: 1 1 14rem;
}

.tf-admin-moderation-form textarea {
  flex-basis: 100%;
}

.tf-admin-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 150px;
  padding: 2rem;
  border: 1px dashed rgba(31, 41, 55, .18);
  border-radius: 10px;
  color: #64748b;
}

.tf-admin-empty strong,
.tf-admin-empty span {
  display: block;
}

.tf-admin-empty strong {
  color: #1f2937;
}

.tf-ad-slot {
  display: grid;
  gap: .75rem;
}

.tf-ad-unit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  min-height: 90px;
  padding: .75rem;
  border: 1px solid rgba(31, 41, 55, .1);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  overflow: hidden;
}

.tf-ad-unit:hover {
  border-color: rgba(10, 191, 83, .35);
  color: #111827;
}

.tf-ad-unit img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2f7;
}

.tf-ad-unit--banner {
  grid-template-columns: minmax(180px, 360px) minmax(0, 1fr);
}

.tf-ad-copy {
  display: grid;
  min-width: 0;
  gap: .15rem;
}

.tf-ad-copy strong,
.tf-ad-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-ad-label {
  position: absolute;
  top: .4rem;
  right: .4rem;
  padding: .1rem .35rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .tf-admin-layout {
    grid-template-columns: 1fr;
  }

  .tf-admin-sidebar {
    position: static;
  }

  .tf-admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tf-admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .tf-admin-hero,
  .tf-admin-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .tf-admin-hero__actions,
  .tf-admin-hero__actions .btn {
    width: 100%;
  }

  .tf-admin-nav,
  .tf-admin-metrics,
  .tf-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .tf-admin-health > div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tf-admin-health small {
    text-align: left;
  }

  .tf-ad-unit,
  .tf-ad-unit--banner {
    grid-template-columns: 1fr;
  }

  .tf-admin-note-action {
    grid-template-columns: 1fr;
  }
}

.tf-analytics-page {
  color: #1f2937;
}

.tf-analytics-hero,
.tf-analytics-panel,
.tf-analytics-kpi,
.tf-analytics-empty {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, .08);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.tf-analytics-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 12px;
  padding: 1.25rem;
}

.tf-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.tf-analytics-range {
  min-width: 150px;
}

.tf-analytics-eyebrow {
  color: #08766e;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.tf-analytics-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: .35rem;
  border-radius: 12px;
  padding: 2.5rem 1rem;
  margin-top: 1rem;
}

.tf-analytics-empty__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: #e8f7f5;
  color: #08766e;
  font-size: 1.6rem;
}

.tf-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.tf-analytics-kpi {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-radius: 10px;
  padding: .9rem;
}

.tf-analytics-kpi__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #e8f7f5;
  color: #08766e;
}

.tf-analytics-kpi strong,
.tf-analytics-kpi small,
.tf-analytics-kpi em {
  display: block;
}

.tf-analytics-kpi strong {
  color: #111827;
  font-size: 1.28rem;
  line-height: 1.1;
}

.tf-analytics-kpi small {
  color: #64748b;
  font-weight: 700;
}

.tf-analytics-kpi em {
  margin-top: .2rem;
  font-size: .76rem;
  font-style: normal;
  font-weight: 800;
}

.tf-analytics-kpi em.is-positive {
  color: #087641;
}

.tf-analytics-kpi em.is-negative {
  color: #9f1239;
}

.tf-analytics-panel {
  border-radius: 10px;
  padding: 1rem;
}

.tf-analytics-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.tf-analytics-chart {
  min-height: 260px;
}

.tf-analytics-chart svg {
  display: block;
  width: 100%;
  height: 240px;
  background: linear-gradient(180deg, #f8fbfc, #fff);
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 10px;
}

.tf-analytics-chart line {
  stroke: rgba(100, 116, 139, .28);
  stroke-width: 2;
}

.tf-analytics-chart polyline {
  display: none;
  fill: none;
  stroke: #08766e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf-analytics-chart polyline.is-active {
  display: block;
}

.tf-analytics-chart__labels {
  display: flex;
  justify-content: space-between;
  margin-top: .45rem;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.tf-analytics-table {
  font-size: .92rem;
  vertical-align: middle;
}

.tf-analytics-table thead th {
  color: #475569;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tf-analytics-track,
.tf-analytics-albums a {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #1f2937;
}

.tf-analytics-track img,
.tf-analytics-albums img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.tf-analytics-track strong,
.tf-analytics-track small,
.tf-analytics-albums strong,
.tf-analytics-albums small {
  display: block;
}

.tf-analytics-track small,
.tf-analytics-albums small,
.tf-analytics-list small,
.tf-analytics-bar span,
.tf-analytics-funnel span {
  color: #64748b;
}

.tf-analytics-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 1.45rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  background: #eef2f7;
  color: #475569;
}

.tf-analytics-badge.is-success {
  background: #dff8ec;
  color: #087641;
}

.tf-analytics-badge.is-warning {
  background: #fff3d8;
  color: #925b00;
}

.tf-analytics-badge.is-danger {
  background: #ffe4e6;
  color: #be123c;
}

.tf-analytics-badge.is-muted {
  background: #eef2f7;
  color: #475569;
}

.tf-analytics-list,
.tf-analytics-albums {
  display: grid;
  gap: .55rem;
}

.tf-analytics-list a,
.tf-analytics-list > div,
.tf-analytics-albums a {
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 8px;
  padding: .72rem;
}

.tf-analytics-list a,
.tf-analytics-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .15rem .55rem;
  color: #1f2937;
}

.tf-analytics-list span {
  grid-row: span 2;
  color: #08766e;
}

.tf-analytics-list strong,
.tf-analytics-list small {
  display: block;
}

.tf-analytics-soft-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 1rem;
  border: 1px dashed rgba(31, 41, 55, .16);
  border-radius: 10px;
  color: #64748b;
  text-align: center;
}

.tf-analytics-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tf-analytics-bar,
.tf-analytics-funnel > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
  min-height: 2.1rem;
  margin-top: .45rem;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f8fa;
  padding: .35rem .55rem;
}

.tf-analytics-bar i,
.tf-analytics-funnel i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #14b8a6;
}

.tf-analytics-bar strong,
.tf-analytics-funnel strong {
  color: #1f2937;
}

.tf-analytics-funnel {
  display: grid;
  gap: .55rem;
}

.tf-analytics-albums a {
  justify-content: space-between;
}

.tf-analytics-albums a span {
  min-width: 0;
  flex: 1 1 auto;
}

.tf-analytics-compare {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.tf-analytics-compare span {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(31, 41, 55, .08);
  padding: .7rem;
  color: #334155;
  font-weight: 800;
}

.tf-messages-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tf-message-list,
.tf-message-panel {
  overflow: hidden;
}

.tf-message-list__header,
.tf-message-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(31, 41, 55, .08);
}

.tf-message-list__body {
  display: grid;
}

.tf-message-thread {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  padding: .9rem 1rem;
  color: #1f2937;
  border-bottom: 1px solid rgba(31, 41, 55, .06);
}

.tf-message-thread:hover,
.tf-message-thread.is-active {
  background: #f1f7f7;
}

.tf-message-thread img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.tf-message-thread__content {
  min-width: 0;
}

.tf-message-thread__content strong,
.tf-message-thread__content small,
.tf-message-thread__content span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-message-thread__content small,
.tf-message-thread__content span {
  color: #64748b;
}

.tf-message-thread em {
  align-self: center;
  min-width: 1.5rem;
  border-radius: 999px;
  background: #14b8a6;
  color: #fff;
  font-size: .75rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5rem;
  text-align: center;
}

.tf-message-panel__body {
  display: grid;
  gap: .8rem;
  max-height: 62vh;
  min-height: 320px;
  overflow: auto;
  padding: 1rem;
  background: #f8fafc;
}

.tf-message-bubble {
  max-width: min(78%, 620px);
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 12px;
  background: #fff;
  padding: .85rem 1rem;
}

.tf-message-bubble.is-mine {
  justify-self: end;
  background: #e7fbf6;
}

.tf-message-bubble div {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: baseline;
  margin-bottom: .35rem;
}

.tf-message-bubble small {
  color: #64748b;
}

.tf-message-bubble p {
  margin: 0;
  color: #1f2937;
}

.tf-message-reply {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border-top: 1px solid rgba(31, 41, 55, .08);
}

.tf-monetization-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tf-monetization-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
  color: #64748b;
  font-weight: 800;
}

.tf-monetization-form fieldset {
  min-width: 0;
}

.tf-monetization-readonly,
.tf-monetization-locked,
.tf-monetization-note {
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.tf-monetization-readonly {
  min-height: 38px;
  padding: .48rem .75rem;
  font-weight: 800;
}

.tf-monetization-locked {
  display: grid;
  gap: .3rem;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
}

.tf-monetization-locked strong {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #0f766e;
}

.tf-monetization-checklist,
.tf-monetization-account,
.tf-monetization-statements {
  display: grid;
  gap: .75rem;
}

.tf-monetization-checklist div,
.tf-monetization-account div,
.tf-monetization-statements div {
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 8px;
  background: #fff;
  padding: .8rem;
}

.tf-monetization-checklist div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .65rem;
  align-items: start;
}

.tf-monetization-checklist span {
  grid-row: span 2;
  color: #94a3b8;
}

.tf-monetization-checklist .is-ready span {
  color: #14b8a6;
}

.tf-monetization-checklist strong,
.tf-monetization-checklist small,
.tf-monetization-account span,
.tf-monetization-account strong,
.tf-monetization-statements strong,
.tf-monetization-statements span,
.tf-monetization-statements small {
  display: block;
  min-width: 0;
}

.tf-monetization-checklist small,
.tf-monetization-account span,
.tf-monetization-statements small {
  color: #64748b;
}

.tf-monetization-account div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.tf-monetization-note {
  margin-top: .75rem;
  padding: .8rem;
}

.tf-monetization-statements div {
  display: grid;
  gap: .15rem;
}

.tf-help-guide section {
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.tf-help-guide section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tf-help-guide h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.tf-help-guide ol,
.tf-help-guide ul {
  padding-left: 1.35rem;
}

.tf-help-guide li + li {
  margin-top: .4rem;
}

.tf-help-result,
.tf-help-tip {
  background: rgba(20, 184, 166, .1);
  border-left: 4px solid #14b8a6;
  border-radius: .5rem;
  color: #0f172a;
  margin-bottom: 0;
  padding: .85rem 1rem;
}

.tf-help-tip {
  background: rgba(59, 130, 246, .1);
  border-left-color: #3b82f6;
  margin-bottom: 1rem;
}

.tf-help-sidebar {
  position: sticky;
  top: 6rem;
}

.tf-help-sidebar nav a {
  border-radius: .5rem;
  color: #334155;
  font-size: .92rem;
  padding: .35rem .5rem;
  text-decoration: none;
}

.tf-help-sidebar nav a:hover,
.tf-help-sidebar nav a:focus {
  background: rgba(20, 184, 166, .1);
  color: #0f766e;
}

[data-auto-dismiss],
[data-auto-dismiss-container] {
  transition: opacity .25s ease, transform .25s ease;
}

[data-auto-dismiss].is-dismissing,
[data-auto-dismiss-container].is-dismissing {
  opacity: 0;
  transform: translateY(-.35rem);
  pointer-events: none;
}

@media (max-width: 1199.98px) {
  .tf-analytics-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tf-analytics-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .tf-analytics-hero,
  .tf-monetization-hero,
  .tf-analytics-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .tf-monetization-status {
    align-items: flex-start;
  }

  .tf-analytics-actions,
  .tf-analytics-actions .btn,
  .tf-analytics-range {
    width: 100%;
  }

  .tf-analytics-kpis,
  .tf-analytics-breakdown,
  .tf-analytics-compare {
    grid-template-columns: 1fr;
  }

  .tf-messages-layout {
    grid-template-columns: 1fr;
  }

  .tf-message-panel__body {
    max-height: none;
  }

  .tf-message-bubble {
    max-width: 100%;
  }
}
