
/* --- Slider Hero --- */
#tdm-featured .swiper {
  height: 400px !important;
}
#tdm-featured .swiper-slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* --- Top 10 Final Lock-In --- */
.tdm-top10-list {
  max-height: 530px !important; /* increased for perfect #10 fit */
  height: auto !important;
  padding-bottom: 10px !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.tdm-top10-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 6px;
  border-radius: 8px;
}

.tdm-top10-item img {
  width: 33.5px;
  height: 33.5px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 6px;
}

.tdm-top10-item .meta {
  flex: 1;
  min-width: 0;
  margin-right: 6px;
}

.tdm-top10-item .title {
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tdm-top10-item .artist {
  font-size: 10.5px;
  opacity: 0.8;
}

.tdm-top10-item .tdm-actions {
  display: flex;
  gap: 1px;
}

/* ===========================
   TOOLS & DISTRIBUTION SECTION
=========================== */
.tdm-tools-section {
  background: #0e0e0e;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.tdm-tools-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.tdm-tools-section img {
  height: 60px;
  margin-bottom: 15px;
}

.tdm-tools-section h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.tdm-tools-section h1 span:nth-child(1) {
  color: #4db2ff;
}
.tdm-tools-section h1 span:nth-child(2) {
  color: #f94d6a;
}
.tdm-tools-section h1 span:nth-child(3) {
  color: #ffb84d;
}

.tdm-tools-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.tdm-tools-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  opacity: 0.85;
}

.tdm-tools-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.tdm-tools-buttons .btn {
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease;
}

.tdm-tools-buttons .btn:nth-child(1) {
  background: #1e90ff;
}
.tdm-tools-buttons .btn:nth-child(2) {
  background: #a020f0;
}
.tdm-tools-buttons .btn:nth-child(3) {
  background: #ff4747;
}

.tdm-tools-buttons .btn:hover {
  opacity: 0.85;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.tool-grid > div {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 10px;
}

.tool-grid h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-grid p {
  opacity: 0.8;
  margin-bottom: 15px;
}

.tool-grid .btn {
  background: #1e90ff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  display: inline-block;
}

/* ===========================
   WHY PRODUCERS SECTION
=========================== */
.tdm-why-section {
  background: #000;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.tdm-why-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.tdm-why-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.tdm-why-section h2 span {
  color: #f94d6a;
}

.tdm-why-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.tdm-why-section .grid > div {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
}

.tdm-why-section h3 {
  font-weight: 700;
  margin-bottom: 10px;
}

.tdm-why-section p {
  opacity: 0.8;
  margin: 0;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .tdm-tools-section h1 {
    font-size: 1.8rem;
  }
  .tdm-tools-section h2 {
    font-size: 1.4rem;
  }
  .tdm-why-section h2 {
    font-size: 1.6rem;
  }
}

/* ================== FOOTER ================== */
.tdm-footer {
  background: #0b0b0b;
  color: #ccc;
  padding-top: 50px;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #222;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 10px;
}

.footer-logo p {
  max-width: 280px;
  line-height: 1.5;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links ul li a:hover {
  color: #fff;
}

.social-links li a i {
  margin-right: 8px;
}

.footer-bottom {
  background: #080808;
  padding: 15px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 25px;
  }

  .footer-logo p {
    margin: 0 auto;
  }
}
/* ================== CHECKOUT MODAL ================== */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.checkout-content {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  position: relative;
}

.checkout-close {
  background: none;
  border: none;
  color: #888;
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.checkout-close:hover {
  color: #fff;
}

.checkout-content h2 {
  margin-top: 0;
  color: #fff;
  font-weight: 800;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
}

#checkoutItems {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}

/* Enforced by cleanup */
.logo-img { width: 420px !important; height: 400px !important; object-fit: contain !important; }

/* 🧭 Fix header height to hug logo tightly */
header,
.navbar,
.site-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: auto !important;
  line-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between; /* keeps nav links aligned */
}

/* 🖼 Clean single rule for logo size */
header .logo-img,
.navbar .logo-img,
.site-header .logo-img,
.logo-img {
  width: 120px !important;
  height: 80px !important;
  object-fit: contain !important;
  display: block;
}

#tdmUserBox {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
}

#tdmUserBox img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

#tdmUserBox .tdm-name {
  display: block;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
button.btn-credits {
  color: #fff !important;
  text-shadow: 0 0 3px rgba(0,0,0,0.7);
}
/* 🛒 Make credit buttons show a clickable pointer on hover */
button.btn-credits {
  cursor: pointer;
}
#audioPlayerBar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 9999;
  transition: background 0.3s ease;
}
#audioPlayerBar {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* 🎧 Global Player Bar */
#audioPlayerBar {
  position: fixed;
  bottom: -120px; /* start hidden for slide-in animation */
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 20px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  transition: bottom 0.4s ease;
  z-index: 9999;
}

.toast {
  background: #ff4444;
  color: #fff;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 8px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: none;
}


/* Slide in when active */
#audioPlayerBar.active {
  bottom: 0;
}

#audioPlayerBar button#playPauseBtn {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#audioPlayerBar input#volumeSlider {
  appearance: none;
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
}
#audioPlayerBar input#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255,255,255,0.6);
}
#audioPlayerBar input#volumeSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255,255,255,0.6);
}

/* Canvas visualizer */
#audioCanvas {
  flex: 1;
  height: 100%;
  display: block;
}
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.player-cover {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}
.player-bar {
  right: 400px; /* leaves a gap for the cart button */
}
#audioPlayerBar.active {
  transform: translateY(0);
  opacity: 1;
}

#tdmUserBox .tdm-credits {
  display: inline-block;
  background: #a00;
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 700;
  position: static !important; /* <<< THIS removes the overlap problem */
}
/* ✅ New safe username style */
.tdm-username {
  display: inline-block;     /* make sure it actually renders */
  color: #fff;              /* white text so it's visible on dark headers */
  font-weight: 600;         /* make it stand out a bit */
  font-size: 0.95rem;       /* slightly smaller than header titles */
  vertical-align: middle;   /* align nicely with avatar */
  margin-left: 6px;         /* spacing from avatar */
  opacity: 1 !important;    /* override any previous opacity settings */
  visibility: visible !important; /* force it visible */
}

.artists-section {
  background: #111;
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.artists-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.artists-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.artists-slider {
  display: flex;
  transition: transform 0.4s ease;
}

.artist-card {
  min-width: 25%; /* 4 per row */
  box-sizing: border-box;
  padding: 10px;
}

.artist-img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.artist-img:hover {
  transform: scale(1.05);
}

.artist-name {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.artist-socials a {
  color: #fff;
  margin: 0 5px;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.artist-socials a:hover {
  color: #f03;
}

.slider-btn {
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  z-index: 2;
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

@media (max-width: 768px) {
  .artist-card { min-width: 50%; } /* 2 per row on mobile */
}
