/* BDteque - Dark cinema design system */

:root {
  --bg: #0c0c0c;
  --surface: #181818;
  --surface-2: #242424;
  --border: #2a2a2a;
  --yellow: #FFF183;
  --cyan: #5CC1D3;
  --pink: #EF82B3;
  --text: #ffffff;
  --text-mid: #888888;
  --text-dim: #444444;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bdt {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

.bdt *, .bdt *::before, .bdt *::after { box-sizing: border-box; }

.bdt a { color: inherit; text-decoration: none; }
.bdt button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.bdt img { display: block; max-width: 100%; }

/* ───────── Typography utilities ───────── */
.bdt .label,
.bdt .ui-label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-mid);
}

.bdt .label-sm { font-size: 9px; letter-spacing: 1.5px; }
.bdt .label-lg { font-size: 11px; letter-spacing: 4px; }

.bdt .serif { font-family: var(--serif); }
.bdt .serif-italic { font-family: var(--serif); font-style: italic; }

/* ───────── Buttons ───────── */
.bdt .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  border-radius: 2px;
  transition: all .15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.bdt .btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.bdt .btn-outline:hover { background: var(--text); color: var(--bg); }
.bdt .btn-cyan { background: var(--cyan); color: var(--bg); }
.bdt .btn-cyan:hover { background: #7fd3e3; }
.bdt .btn-yellow { background: var(--yellow); color: var(--bg); }
.bdt .btn-icon {
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.bdt .btn-icon:hover { border-color: var(--text-mid); }

/* ───────── Badges & Tags ───────── */
.bdt .badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 2px;
  z-index: 2;
}
.bdt .badge-yellow { background: var(--yellow); color: var(--bg); }
.bdt .badge-cyan { background: var(--cyan); color: var(--bg); }
.bdt .badge-pink { background: var(--pink); color: var(--bg); }
.bdt .badge-dark { background: rgba(12,12,12,.85); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(4px); }

.bdt .tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.bdt .tag-yellow { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.bdt .tag-cyan { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.bdt .tag-pink { background: transparent; color: var(--pink); border-color: var(--pink); }

/* ───────── Section title with yellow underline ───────── */
.bdt .section-title {
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bdt .section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 20px; height: 2px;
  background: var(--yellow);
}
.bdt .section-title .more {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-mid);
  cursor: pointer;
}
.bdt .section-title .more:hover { color: var(--text); }

/* ───────── Cover placeholder ───────── */
.bdt .cover {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.bdt .cover-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
}
.bdt .cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(255,255,255,0.015) 6px,
    rgba(255,255,255,0.015) 12px
  );
  pointer-events: none;
}
.bdt .cover-series {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .7;
}
.bdt .cover-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(14px, 4cqw, 28px);
  container-type: inline-size;
}
.bdt .cover-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .8;
}
.bdt .cover-bar {
  height: 1px;
  background: currentColor;
  opacity: .5;
  margin-bottom: 4px;
}

/* Cover color schemes */
.bdt .cover-c1 { background: #1a2238; color: var(--yellow); }
.bdt .cover-c2 { background: #2a1a18; color: var(--yellow); }
.bdt .cover-c3 { background: #18261f; color: var(--yellow); }
.bdt .cover-c4 { background: #261a26; color: var(--cyan); }
.bdt .cover-c5 { background: #2a2418; color: var(--pink); }
.bdt .cover-c6 { background: #181f2a; color: var(--cyan); }
.bdt .cover-c7 { background: #2c1d1a; color: var(--pink); }
.bdt .cover-c8 { background: #1f1f1f; color: var(--yellow); }

/* ───────── Frames (mobile / desktop containers) ───────── */
.bdt-frame-mobile {
  width: 430px;
  height: 932px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  position: relative;
  font-family: var(--sans);
  color: var(--text);
}

.bdt-frame-desktop {
  width: 1280px;
  height: 820px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  position: relative;
  font-family: var(--sans);
  color: var(--text);
}

/* ───────── Custom scrollbar ───────── */
.bdt .scrollarea {
  overflow-y: auto;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.bdt .scrollarea::-webkit-scrollbar { width: 6px; }
.bdt .scrollarea::-webkit-scrollbar-track { background: transparent; }
.bdt .scrollarea::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 0; }

/* ───────── Mobile-specific ───────── */
.m-statusbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}
.m-statusbar .icons { display: flex; align-items: center; gap: 4px; }
.m-statusbar .battery {
  width: 24px; height: 11px;
  border: 1px solid var(--text);
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.m-statusbar .battery::after {
  content:''; position: absolute; right: -3px; top: 3px;
  width: 2px; height: 5px; background: var(--text); border-radius: 0 1px 1px 0;
}
.m-statusbar .battery > div { height: 100%; background: var(--text); width: 70%; border-radius: 1px; }

.m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
}
.m-logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.5px;
}
.m-logo .dot { color: var(--yellow); }

.m-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 12px 0 28px;
}
.m-tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.m-tabbar .tab.active { color: var(--yellow); }
.m-tabbar .tab svg { width: 22px; height: 22px; }

.m-content {
  height: calc(100% - 44px - 80px);
  overflow-y: auto;
  padding: 0 20px 24px;
}

/* ───────── Desktop-specific ───────── */
.d-shell { display: flex; height: 100%; }
.d-sidebar {
  width: 200px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 0;
}
.d-sidebar .logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  padding: 0 24px 32px;
  letter-spacing: -.5px;
}
.d-sidebar .logo .dot { color: var(--yellow); }
.d-sidebar nav { display: flex; flex-direction: column; }
.d-sidebar nav a {
  padding: 10px 24px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-mid);
  border-left: 2px solid transparent;
  display: flex; align-items: center; gap: 12px;
}
.d-sidebar nav a:hover { color: var(--text); }
.d-sidebar nav a.active { color: var(--yellow); border-left-color: var(--yellow); }

.d-sidebar .sb-section {
  margin-top: 32px;
  padding: 0 24px 8px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.d-sidebar .stat-mini {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.d-sidebar .stat-mini .num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}
.d-sidebar .stat-mini .label { margin-top: 6px; font-size: 9px; letter-spacing: 1.5px; }

.d-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
}

/* ───────── Filter chips ───────── */
.bdt .filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.bdt .filter-bar::-webkit-scrollbar { display: none; }
.bdt .chip {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-mid);
  white-space: nowrap;
  transition: all .15s;
}
.bdt .chip:hover { color: var(--text); border-color: var(--text-mid); }
.bdt .chip.active { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }

/* ───────── Cards ───────── */
.bdt .album-card { cursor: pointer; }
.bdt .album-card .cover { transition: transform .25s ease; }
.bdt .album-card:hover .cover { transform: translateY(-3px); }
.bdt .album-card .title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.25;
}
.bdt .album-card .meta {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-mid);
  letter-spacing: 1px;
}

/* ───────── Specs grid ───────── */
.bdt .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.bdt .spec .spec-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.bdt .spec .spec-val {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.bdt .spec .spec-val small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mid);
  margin-left: 4px;
  letter-spacing: 1px;
}

/* ───────── Stat cards ───────── */
.bdt .stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 22px;
  border-radius: 2px;
}
.bdt .stat-card .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--text);
}
.bdt .stat-card.accent .num { color: var(--yellow); }
.bdt .stat-card .lbl {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ───────── Rating ───────── */
.bdt .rating {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  font-weight: 700;
}
.bdt .rating .big {
  font-size: 56px;
  color: var(--yellow);
  line-height: 1;
}
.bdt .rating .max {
  font-size: 16px;
  color: var(--text-mid);
}

/* ───────── Hero (detail page) ───────── */
.bdt .hero-mobile {
  position: relative;
  margin: 0 -20px;
  padding: 0 20px 24px;
}
.bdt .hero-mobile .hero-cover {
  width: 200px;
  margin: 0 auto;
}

.bdt .hero-desktop {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ───────── Author chip ───────── */
.bdt .author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.bdt .author-chip .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  color: var(--yellow);
  flex-shrink: 0;
}
.bdt .author-chip .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
}
.bdt .author-chip .role {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 2px;
}

/* ───────── Sort dropdown ───────── */
.bdt .sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 18px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.bdt .sort-row .count { color: var(--text-mid); }
.bdt .sort-row .sort {
  color: var(--text);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.bdt .sort-row .sort .accent { color: var(--yellow); }

/* ───────── Active state for tabs/chips ───────── */
.bdt .active-marker { color: var(--yellow); }

/* ───────── Number circle ───────── */
.bdt .num-bullet {
  width: 22px; height: 22px;
  border: 1px solid var(--text-dim);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
}

/* ───────── Album list row (V2 / desktop) ───────── */
.bdt .album-row {
  display: grid;
  grid-template-columns: 60px 1fr 110px 80px 60px;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.bdt .album-row:hover { background: rgba(255,255,255,0.02); }
.bdt .album-row .mini-cover {
  width: 60px; aspect-ratio: 2/3; border-radius: 2px;
}
.bdt .album-row .ar-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
}
.bdt .album-row .ar-sub {
  font-size: 10px;
  color: var(--text-mid);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.bdt .album-row .ar-cell {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
}
.bdt .album-row .ar-rating {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  text-align: right;
}
