/* ==== Layout Grundstruktur ==== */

.nt-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.nt-header-row {
  text-align: center;
}

.nt-page-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.nt-header-stats {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.nt-stat-box {
  padding: .45rem .7rem;
  border-radius: .75rem;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.5);
  min-width: 110px;
}

.nt-stat-label {
  font-size: .75rem;
  opacity: .8;
}

.nt-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Infos */

.nt-support-hint-row {
  text-align: center;
}

.nt-support-hint {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.16);
  border: 1px solid rgba(34,197,94,0.55);
  font-size: .8rem;
}

/* ==== Buttons Generic ==== */

.nt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .85rem;
  cursor: pointer;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.nt-btn-primary {
  background: linear-gradient(135deg,#22c55e,#16a34a);
  border-color: rgba(74,222,128,0.7);
}

.nt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(22,163,74,.5);
}

.nt-btn-secondary {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.6);
}

.nt-btn-text {
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}

.nt-btn-danger {
  color: #fca5a5;
}

.nt-btn-danger:hover {
  color: #fecaca;
}

/* Track hinzufügen Button leicht pulsierend */

.nt-btn-show-create {
  animation: nt-pulse-soft 1.8s ease-in-out infinite;
}

.nt-btn-create-submit {
  animation: nt-pulse-soft 2.2s ease-in-out infinite;
}

@keyframes nt-pulse-soft {
  0%   { box-shadow: 0 0 0 rgba(34,197,94,0);   transform: translateY(0); }
  50%  { box-shadow: 0 0 16px rgba(34,197,94,.8); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 rgba(34,197,94,0);   transform: translateY(0); }
}

/* ==== Alerts ==== */

.nt-alert {
  padding: .5rem .8rem;
  border-radius: .6rem;
  font-size: .8rem;
  margin: .25rem 0;
}

.nt-alert-info {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.4);
}

.nt-alert-success {
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.4);
}

.nt-alert-warn {
  background: rgba(234,179,8,0.12);
  border: 1px solid rgba(250,204,21,0.4);
}

/* ==== Gift Card / Progressbar / Geschenke ==== */

.nt-gift-card {
  position: relative;
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.92), rgba(15,23,42,0.98));
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(56,189,248,0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nt-gift-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}

.nt-gift-text h2 {
  font-size: 1.3rem;
  margin-bottom: .15rem;
}

.nt-gift-hint {
  font-size: .8rem;
  opacity: .9;
}

.nt-gift-balance-row {
  margin-top: .35rem;
  font-size: .85rem;
}

.nt-gift-balance-value {
  margin-left: .25rem;
  font-weight: 600;
  color: #a7f3d0;
}

.nt-gift-progress-wrap {
  width: 100%;
  max-width: 680px;
  margin: .4rem auto 0 auto;
  position: relative;
  padding-top: 2.6rem; /* Platz für Geschenke */
}

.nt-gift-progress-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(8,47,73,1), rgba(12,74,110,0.9));
  box-shadow: inset 0 0 10px rgba(15,23,42,0.7);
}

.nt-gift-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,#22c55e,#a3e635,#f97316,#fb7185,#a855f7);
  transform-origin: left center;
  width: 0%;
  transition: width .6s ease-out;
}

.nt-gift-progress-fill-active {
  animation: nt-gift-progress-pulse 1.8s ease-in-out infinite;
}

@keyframes nt-gift-progress-pulse {
  0%   { filter: drop-shadow(0 0 0 rgba(250,250,250,0)); }
  50%  { filter: drop-shadow(0 0 14px rgba(250,250,250,.95)); }
  100% { filter: drop-shadow(0 0 0 rgba(250,250,250,0)); }
}

.nt-gift-gifts-row {
  position: absolute;
  left: 0;
  top: .1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.nt-gift-dot-form {
  pointer-events: auto;
}

.nt-gift-dot-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 0;
  filter: drop-shadow(0 0 4px rgba(250,250,250,.6));
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

.nt-gift-step-small {
  font-size: 1.4rem;
}

.nt-gift-step-big {
  font-size: 1.8rem;
}

.nt-gift-dot-ready:hover {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(250,250,250,.95));
}

.nt-gift-dot-disabled {
  opacity: .3;
  cursor: default;
  filter: none;
}

.nt-gift-step-reached {
  filter: drop-shadow(0 0 8px rgba(250,250,250,.9));
}

.nt-gift-dot-pulse {
  animation: nt-gift-pop .5s ease-out;
}

@keyframes nt-gift-pop {
  0%   { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(251,191,36,0)); }
  50%  { transform: scale(1.4); filter: drop-shadow(0 0 18px rgba(251,191,36,.95)); }
  100% { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(251,191,36,0)); }
}

.nt-gift-progress-numbers {
  font-size: .8rem;
  margin-top: .35rem;
}

.nt-gift-small-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Geschenk-Toast */

.nt-gift-toast {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(15,23,42,0.98);
  border-radius: .7rem;
  padding: .5rem .8rem;
  border: 1px solid rgba(74,222,128,0.8);
  font-size: .8rem;
  box-shadow: 0 12px 28px rgba(22,163,74,.5);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.nt-gift-toast-hide {
  opacity: 0;
  transform: translateY(8px);
}

/* ==== Ehrenplatz / Top Hörer ==== */

.nt-top-listeners {
  margin-top: .7rem;
  text-align: center;
}

.nt-top-title {
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .75rem;
  margin-bottom: .2rem;
  color: #facc15;
}

.nt-top-list {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.nt-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .78rem;
  background: transparent;
  padding: .15rem .4rem;
}

.nt-top-rank {
  font-size: .7rem;
  color: #fde68a;
  font-weight: 600;
}

.nt-top-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(250,250,250,.8);
  margin: .15rem 0;
}

.nt-top-name {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e5e7eb;
}

.nt-top-time {
  font-size: .72rem;
  opacity: .9;
}

/* ==== Filterzeile: Kategorien + Sortierung ==== */

.nt-filter-row {
  margin-top: .5rem;
}

.nt-filter-form {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: center;
}

.nt-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
}

.nt-cat-pill,
.nt-sort-pill {
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .8rem;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.nt-cat-pill:hover,
.nt-sort-pill:hover {
  transform: translateY(-1px);
}

.nt-cat-pill-active {
  background: radial-gradient(circle at 0 0, rgba(74,222,128,0.9), rgba(22,163,74,0.95));
  border-color: rgba(74,222,128,1);
  color: #022c22;
}

.nt-sort-pill-active {
  background: linear-gradient(135deg,#38bdf8,#0ea5e9);
  border-color: rgba(56,189,248,1);
  color: #082f49;
}

/* Create-Form Kategorie-Pills */

.nt-cat-pill-row {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

/* ==== Create Card ==== */

.nt-create-toggle-row {
  text-align: center;
  margin-top: .6rem;
}

.nt-create-card {
  margin-top: .6rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
}

.nt-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.nt-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.nt-form-row-two > .nt-form-group {
  flex: 1 1 0;
  min-width: 0;
}

.nt-form-group label {
  display: block;
  font-size: .8rem;
  margin-bottom: .15rem;
  opacity: .9;
}

.nt-form-group input[type="url"],
.nt-form-group textarea {
  width: 100%;
  border-radius: .6rem;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: .4rem .55rem;
  font-size: .8rem;
}

.nt-form-group textarea {
  resize: vertical;
}

.nt-form-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.nt-form-hint {
  font-size: .75rem;
  opacity: .8;
}

.nt-form-allow-noplayer {
  font-size: .78rem;
}

.nt-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.nt-form-errors {
  margin-top: .35rem;
}

/* ==== Track Liste & Karten ==== */

.nt-track-list {
  margin-top: 1rem;
}

.nt-empty {
  text-align: center;
  opacity: .8;
  font-size: .85rem;
}

.nt-track-card {
  background: rgba(15,23,42,0.9);
  border-radius: 1rem;
  border: 1px solid rgba(75,85,99,0.8);
  padding: .9rem .9rem .7rem .9rem;
  margin-bottom: 1.1rem;
}

.nt-track-header {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
}

.nt-user-info {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.nt-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,0.9);
}

.nt-user-meta {
  display: flex;
  flex-direction: column;
}

.nt-user-name {
  font-size: .9rem;
  font-weight: 600;
}

.nt-user-rank {
  font-size: .75rem;
  opacity: .85;
}

.nt-track-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  font-size: .75rem;
}

.nt-meta-pill {
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(30,64,175,0.4);
  border: 1px solid rgba(59,130,246,0.6);
  font-size: .7rem;
}

.nt-meta-time {
  opacity: .8;
}

/* Player */

.nt-player-wrapper {
  margin-top: .6rem;
  border-radius: .8rem;
  overflow: hidden;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(55,65,81,0.9);
}

.nt-player {
  display: block;
}

.nt-player-placeholder {
  padding: .8rem;
  font-size: .8rem;
  text-align: center;
  opacity: .9;
}

.nt-track-comment-main {
  padding: .6rem .75rem;
  font-size: .8rem;
  border-top: 1px solid rgba(31,41,55,0.9);
}

/* Generic Link Buttons (wenn kein Player möglich) */

.nt-generic-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  padding: .7rem .7rem .4rem .7rem;
}

.nt-generic-link-btn {
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.7);
  background: rgba(15,23,42,0.95);
  font-size: .78rem;
  text-decoration: none;
  color: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nt-generic-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,.5);
}

.nt-generic-links-note {
  font-size: .75rem;
  text-align: center;
  padding: 0 .7rem .6rem .7rem;
  opacity: .9;
}

/* neue Klassen passend zum PHP-Template */

.nt-generic-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: .6rem;
}

.nt-btn-generic-link {
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.7);
  background: rgba(15,23,42,0.95);
  font-size: .78rem;
  text-decoration: none;
  color: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.nt-btn-generic-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,.5);
}

/* Stats / Hype Reihe */

.nt-track-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: .7rem;
}

.nt-boost-area {
  flex: 1 1 auto;
}

.nt-boost-form {
  width: 100%;
}

/* nicht mehr genutzt, bleibt aber falls woanders verwendet */
.nt-track-stats-right {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .8rem;
}

.nt-track-stats-right .nt-boost-total {
  text-align: left;
}

.nt-track-stats-right .nt-views {
  text-align: right;
}

.nt-btn-boost {
  position: relative;
  width: 100%;
  justify-content: space-between;
  padding-inline: .9rem;
  border-radius: .9rem;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.8);
  color: #e5e7eb;
  font-weight: 500;
  overflow: hidden;
}

.nt-btn-boost:disabled {
  cursor: default;
  opacity: .9;
}

.nt-boost-main {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.nt-boost-icon {
  font-size: 1.1rem;
}

.nt-boost-label {
  font-size: .9rem;
}

.nt-boost-cooldown-text {
  font-size: .75rem;
  opacity: .9;
  font-variant-numeric: tabular-nums;
}

/* Hype aktiv (klassischer, starker Effekt – aktuell nicht von PHP gesetzt, aber belassen) */

/* Stärkerer Effekt, wenn ein Track schon Hype hat */
.nt-btn-hype-active {
  position: relative;
  /* etwas größer */
  transform: scale(1.02);
  /* kräftiger Glow */
  box-shadow:
    0 0 10px rgba(190, 242, 100, 0.8),
    0 0 25px rgba(22, 163, 74, 0.9);
  /* pulsende Animation */
  animation: nt-hype-pulse 0.9s infinite ease-in-out;
}

/* extra „Ring“ um den Button */
.nt-btn-hype-active::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(190, 242, 100, 0.7);
  opacity: 0.7;
  pointer-events: none;
  animation: nt-hype-ring 1.4s infinite ease-out;
}

/* Puls-Animation (Button wird größer/heller) */
@keyframes nt-hype-pulse {
  0% {
    transform: scale(1.00);
    box-shadow:
      0 0 6px rgba(190, 242, 100, 0.6),
      0 0 15px rgba(22, 163, 74, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 14px rgba(190, 242, 100, 1),
      0 0 32px rgba(22, 163, 74, 1);
  }
  100% {
    transform: scale(1.00);
    box-shadow:
      0 0 6px rgba(190, 242, 100, 0.6),
      0 0 15px rgba(22, 163, 74, 0.7);
  }
}

/* Wellen-Ring nach außen */
@keyframes nt-hype-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Zustand: Hype möglich -> ruhiger, aber leicht hervorgehoben */

.nt-btn-boost-can:not(.nt-btn-hype-active) {
  border-color: rgba(168,85,247,0.7);
  box-shadow: 0 0 8px rgba(168,85,247,.4);
}

/* Zustand: Cooldown mit aktivem Hype -> lila Wellen-Glow (Effekt getauscht) */

.nt-btn-boost-cooldown {
  border-color: transparent;
  background-image: linear-gradient(90deg, #4c1d95, #7e22ce, #a855f7, #7e22ce, #4c1d95);
  background-size: 200% 100%;
  animation: nt-hype-wave 3s linear infinite;
  opacity: .97;
}

@keyframes nt-hype-wave {
  0%   { background-position: 0% 50%; box-shadow: 0 0 6px rgba(168,85,247,.5); }
  50%  { background-position: 100% 50%; box-shadow: 0 0 16px rgba(192,132,252,.8); }
  100% { background-position: 0% 50%; box-shadow: 0 0 6px rgba(168,85,247,.5); }
}

.nt-views-count {
  font-variant-numeric: tabular-nums;
}

/* Hype / Views Zahlen-Reihe unter dem Button */

.nt-boost-info {
  margin-top: .35rem;
  font-size: .78rem;
}

.nt-boost-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.nt-boost-total {
  text-align: left;
}

.nt-views {
  text-align: right;
}

/* ==== Kommentare ==== */

.nt-track-footer {
  margin-top: .7rem;
  border-top: 1px solid rgba(31,41,55,0.95);
  padding-top: .55rem;
}

.nt-comments-preview {
  font-size: .78rem;
}

.nt-comment-row {
  display: flex;
  gap: .4rem;
  margin-bottom: .35rem;
}

.nt-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.nt-comment-body {
  flex: 1 1 auto;
}

.nt-comment-top {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: baseline;
  font-size: .72rem;
}

.nt-comment-name {
  font-weight: 600;
}

.nt-comment-rank {
  opacity: .85;
}

.nt-comment-time {
  opacity: .7;
}

.nt-comment-text {
  font-size: .78rem;
}

.nt-comment-empty {
  font-size: .78rem;
  opacity: .8;
}

.nt-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: .45rem;
}

.nt-inline-form {
  display: inline;
}

.nt-comments-full {
  margin-top: .45rem;
}

/* Links */

.nt-link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: .75rem;
  color: #93c5fd;
  cursor: pointer;
}

.nt-link-danger {
  color: #fecaca;
}

/* ==== Sonstiges ==== */

.nt-owner-actions {
  font-size: .8rem;
}

/* Responsive */

@media (max-width: 640px) {
  .nt-track-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nt-track-meta {
    align-items: flex-start;
  }
  .nt-track-stats-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nt-track-stats-right {
    justify-content: space-between;
  }
}
/* Datum + Kategorie immer oben rechts in der Header-Zeile */
.nt-track-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.nt-track-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}
