/* mmx-home.css — all selectors use mmx-* custom classes only */

/* Theme tokens (scoped by convention, no globals) */
.mmx-vars {
  --mmx-bg:#0e1116;
  --mmx-surface:#181e27;
  --mmx-soft:#1e2633;
  --mmx-text:#e8edf3;
  --mmx-dim:#a6b0bd;
  --mmx-accent:#62d3ff;
  --mmx-accent2:#7cf59a;
}

/* Wrapper (optional utility to activate vars) */
.mmx-wrap { color: var(--mmx-text); }

/* Hero band */
.mmx-hero-band {
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(98,211,255,.18), transparent 60%),
    radial-gradient(1000px 400px at 110% 0%, rgba(124,245,154,.14), transparent 60%),
    linear-gradient(180deg, #121824, #0e1116 60%);
  border-radius: 12px;
  padding: 42px 0 28px;
  margin: 22px 0;
  color: var(--mmx-text);
  border: 1px solid rgba(255,255,255,.06);
}

/* DRM-Free pill */
.mmx-drm-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(98,211,255,.16), rgba(124,245,154,.16));
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.mmx-drm-bar i { font-size: 18px; }
.mmx-sep { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); }

/* Headline + sub */
.mmx-hero-title {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.6rem);
  line-height: 1.15;
  margin: 14px 0 8px;
  font-weight: 800;
  color: var(--mmx-text);
}
.mmx-hero-sub { color: var(--mmx-dim); margin: 0 0 12px; }

/* Feature chips */
.mmx-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mmx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--mmx-soft);
  color: var(--mmx-dim);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}

/* Optional right-rail wrapper if you use it later */
.mmx-rail {
  background: var(--mmx-surface);
  color: var(--mmx-text);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px;
}

/* Utilities (namespaced) */
.mmx-mt-2{margin-top:.5rem}.mmx-mt-3{margin-top:1rem}.mmx-mt-4{margin-top:1.25rem}
.mmx-mb-2{margin-bottom:.5rem}.mmx-mb-3{margin-bottom:1rem}.mmx-mb-4{margin-bottom:1.25rem}

/* Mobile tweaks (namespaced effect only through classes above) */
@media (max-width: 991px){
  .mmx-hero-band { padding: 28px 0 20px; margin: 18px 0; }
}
@media (max-width: 575px){
  .mmx-drm-bar { font-size: 12px; }
  .mmx-hero-title { font-size: 1.6rem; }
  .mmx-hero-chips { gap: 8px; }
}
/* ===== Collection (detail) ===== */

.collection-wrapper { margin-top: 3rem; }

/* Card */
.collection-box{
  display:flex; gap:2rem;
  background:#2b2b2b; color:#ccc;
  border:1px solid #333; border-radius:10px;
  padding:1.5rem; margin-bottom:2rem;
  box-shadow:0 10px 26px rgba(0,0,0,.25);
}

/* Cover */
.collection-cover img{
  width:500px; max-width:100%; height:auto;
  display:block;
  border-radius:10px; border:1px solid #3a3a3a;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

/* Right column */
.collection-content{ flex:1; display:flex; flex-direction:column; gap:1rem; }
.collection-content h1{
  font-size:2rem; line-height:1.2; margin:0;
  color:#fff; padding-bottom:.6rem; border-bottom:1px solid #4a4a4a;
}

/* Meta */
.collection-meta{ font-size:1.05rem; line-height:1.8; }
.collection-meta b{ color:#f0f0f0; }

/* Description */
.collection-description{
  background:#1f1f1f; color:#d5d5d5;
  border:1px solid #333; border-radius:10px;
  padding:1rem;
}

/* Track table container */
.collection-tracks{ margin-top:.5rem; }

/* Neutralise Bootstrap panel look just here */
.collection-tracks .panel,
.collection-tracks .panel-default,
.collection-tracks .panel-body,
.collection-tracks .table-responsive{ background:transparent; border:0; box-shadow:none; padding:0; }

/* Table */
.trackarea .table{
  background:#1a1a1a; color:#eee;
  border:1px solid #333; border-radius:10px; overflow:hidden;
  margin:0;
}
.trackarea .table thead th{
  background:#232323; color:#e6e6e6;
  border:0; padding:.85rem .75rem; white-space:nowrap;
}
.trackarea .table td{
  background:#1a1a1a; color:#ddd;
  border-top:1px solid #2f2f2f; padding:.85rem .75rem;
}
.trackarea .table-hover tbody tr:hover td{ background:#1e1e1e; }

/* Footer buttons */
.panel-footer{
  background:transparent; border:0;
  padding:1rem; text-align:right;
  display:flex; gap:.6rem; justify-content:flex-end; flex-wrap:wrap;
}
.panel-footer .btn{
  border-radius:8px; border:1px solid transparent;
  padding:.55rem .9rem; font-weight:700;
  box-shadow:none !important; outline:none !important;
}
.panel-footer .btn-default{ background:#2a2a2a; color:#e6e6e6; border-color:#3a3a3a; }
.panel-footer .btn-primary{ background:#00e6e6; color:#0e1216; border-color:#00d1d1; }
.panel-footer .btn-success.cdbutton{ background:#00c37a; color:#05130e; border-color:#00ad6d; }
.panel-footer .btn:hover{ filter:brightness(1.06); }

/* ===== Responsiveness ===== */

/* Large tablets / small desktops */
@media (max-width: 1200px){
  .collection-cover img{ width:420px; }
}

/* Tablets */
@media (max-width: 992px){
  .collection-box{ gap:1.25rem; padding:1.25rem; }
  .collection-content h1{ font-size:1.8rem; }
  .collection-meta{ font-size:1rem; }
  .trackarea .table thead th,
  .trackarea .table td{ padding:.75rem .6rem; }
}

/* Mobile: stack columns */
@media (max-width: 768px){
  .collection-box{ flex-direction:column; }
  .collection-cover img{ width:100%; }
  .panel-footer{ justify-content:stretch; }
  .panel-footer .btn{ flex:1 1 auto; }
}

/* Small mobile */
@media (max-width: 480px){
  .collection-content h1{ font-size:1.5rem; }
  .collection-meta{ line-height:1.6; }
  .panel-footer .btn{ padding:.55rem .7rem; }
}
.collection-tracks .panel,
.collection-tracks .panel-default,
.collection-tracks .panel-body,
.collection-tracks .table-responsive,
.collection-tracks {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.trackarea {
  background: transparent !important;
}
.collection-meta {
  font-size: 1.4rem;
  line-height: 2;
}
.collection-meta b {
  color: #fff;
  font-size: 1.45rem; /* makes the labels stand out a touch more */
}
.panel-footer .btn,
.panel-footer .btn-primary {
  background-color: #00e0d0 !important; /* match your cyan button */
  color: #000 !important;
  border: none !important;
  font-weight: bold;
}

.panel-footer .btn:hover,
.panel-footer .btn-primary:hover {
  background-color: #00cbbd !important; /* slightly darker on hover */
  color: #000 !important;
}
/* ===============================
   LATEST PAGE (full width, compact)
   =============================== */

/* Page shell */
.latestarea{
  margin-top: 30px;
}

/* Header */
.mmx-latest-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 16px;
  padding:0 4px;
}
.mmx-latest-title{
  margin:0;
  font-size:2rem;
  line-height:1.2;
  font-weight:800;
  color:#fff;
  letter-spacing:.2px;
}
.mmx-rss-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:#00e6e6;
  color:#0e1216 !important;
  text-decoration:none;
  font-weight:800;
  border:1px solid #00d1d1;
}
.mmx-rss-chip .fa-rss{ font-size:.95em; }

/* Grid wrapper (cards are injected from html/collection.htm) */
.mmx-latest-grid{
  margin-top:8px;
}

/* ===============================
   ART SIZE OVERRIDES (Latest only)
   =============================== */

/* If your collection.htm uses .collection-cover img (detail-style) */
.latestarea .collection-cover img{
  width:40% !important;   /* ~60% smaller than original */
  height:auto;
}

/* If your collection.htm uses art-only cards (.mmx-cover / .mmx-cover-wrap) */
.latestarea .mmx-cover-wrap{ max-width: 240px; margin: 0 auto; }
.latestarea .mmx-cover{ width:100%; height:auto; }

/* If your collection.htm uses Bootstrap cols for a grid, keep card tight */
.latestarea .mmx-card.mmx-artonly{
  padding:10px;
}

/* Optional: slightly smaller track-count badge on Latest */
.latestarea .mmx-track-count{
  transform: scale(0.9);
  transform-origin: left top;
}

/* ===============================
   Responsive tuning
   =============================== */

@media (max-width: 1200px){
  .mmx-latest-title{ font-size:1.85rem; }
  .latestarea .collection-cover img{ width:45% !important; }
}

@media (max-width: 992px){
  .mmx-latest-title{ font-size:1.7rem; }
  .latestarea .collection-cover img{ width:55% !important; }
  .latestarea .mmx-cover-wrap{ max-width: 220px; }
}

@media (max-width: 768px){
  .mmx-latest-title{ font-size:1.6rem; }
  .latestarea .collection-cover img{ width:60% !important; }
  .latestarea .mmx-cover-wrap{ max-width: 200px; }
}

@media (max-width: 576px){
  .mmx-latest-title{ font-size:1.45rem; }
  .latestarea .collection-cover img{ width:75% !important; }
  .latestarea .mmx-cover-wrap{ max-width: 180px; }
}

/* ===============================
   Dark consistency (in case any panels creep in)
   =============================== */

.latestarea .panel,
.latestarea .panel-default,
.latestarea .panel-body,
.latestarea .table-responsive{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
}
/* fixed footer player */
.mmplayer { position:fixed; left:0; right:0; bottom:-160px; height:160px; background:#0e0f12; color:#fff; z-index:9999; transition:bottom .25s ease; }
.mmplayer--open { bottom:0; }
.mmplayer__inner { display:grid; grid-template-columns:64px 1fr auto; grid-template-rows:auto 1fr; gap:12px 16px; padding:14px 16px; height:100%; align-items:center; }
.mmplayer__art { grid-row:1 / span 2; width:64px; height:64px; border-radius:8px; overflow:hidden; background:#1a1c22; }
.mmplayer__art img { width:100%; height:100%; object-fit:cover; display:block; }
.mmplayer__title { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mmplayer__controls { display:flex; align-items:center; gap:10px; }
.mmplayer__btn { width:36px; height:36px; border:0; border-radius:999px; background:#2a2d36; color:#fff; cursor:pointer; }
.mmplayer__wave { grid-column:1 / -1; height:64px; }
body.mmplayer--pad { padding-bottom:160px; }
@media (max-width:640px){ .mmplayer { height:150px; } body.mmplayer--pad{ padding-bottom:150px; } .mmplayer__inner{ grid-template-columns:48px 1fr auto; } .mmplayer__art{ width:48px; height:48px; } }
