/*
Theme Name: B Royal Beatz
Theme URI: https://broyalbeatz.com
Author: B Royal Beatz
Author URI: https://broyalbeatz.com
Description: A premium beat-selling WordPress theme built for B Royal Beatz. Features a full beat catalog with audio previews, license-tiered checkout via WooCommerce, global sticky audio player, wishlists, user accounts, and advanced search/filter. Dark cinematic aesthetic with electric blue and warm amber accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: broyalbeatz
Tags: e-commerce, music, dark, custom-colors, custom-logo, featured-images

== COLOR SYSTEM ==
--brb-blue:    #2563ff   (Primary / CTA)
--brb-amber:   #f59e0b   (Accent / Highlights)
--brb-dark:    #0a0a0f   (Background)
--brb-dark2:   #111118   (Cards / Surfaces)
--brb-dark3:   #1a1a24   (Borders / Inputs)
--brb-dark4:   #24243a   (Elevated borders)
--brb-gray:    #8888aa   (Muted text)
--brb-white:   #f0f0f5   (Primary text)
*/

/* ═══════════════════════════════════════════
   RESET & ROOT
   ═══════════════════════════════════════════ */
:root {
  --brb-blue: #2563ff;
  --brb-blue-glow: rgba(37, 99, 255, 0.25);
  --brb-blue-soft: rgba(37, 99, 255, 0.12);
  --brb-amber: #f59e0b;
  --brb-dark: #0a0a0f;
  --brb-dark2: #111118;
  --brb-dark3: #1a1a24;
  --brb-dark4: #24243a;
  --brb-gray: #8888aa;
  --brb-white: #f0f0f5;
  --brb-red: #ff2d55;
  --brb-green: #30d158;
  --brb-font-display: 'Bebas Neue', Impact, sans-serif;
  --brb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --brb-radius: 12px;
  --brb-radius-sm: 8px;
  --brb-radius-pill: 20px;
  --brb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --brb-player-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--brb-dark4) var(--brb-dark);
}

body {
  font-family: var(--brb-font-body);
  background: var(--brb-dark);
  color: var(--brb-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
.brb-display {
  font-family: var(--brb-font-display);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: var(--brb-font-display);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.brb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.brb-section {
  padding: 60px 0;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.brb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brb-dark3);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brb-logo {
  font-family: var(--brb-font-display);
  font-size: 26px;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  gap: 6px;
}

.brb-logo .royal { color: var(--brb-blue); }
.brb-logo .beatz { color: var(--brb-white); }

.brb-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brb-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brb-gray);
  transition: color var(--brb-transition);
}

.brb-nav a:hover,
.brb-nav a.active {
  color: var(--brb-white);
}

.brb-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.brb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  font-family: var(--brb-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--brb-transition);
  white-space: nowrap;
}

.brb-btn-primary {
  background: var(--brb-blue);
  color: white;
  padding: 12px 28px;
}

.brb-btn-primary:hover {
  background: #1d4fd8;
  box-shadow: 0 4px 20px var(--brb-blue-glow);
  transform: translateY(-1px);
}

.brb-btn-outline {
  background: transparent;
  color: var(--brb-white);
  border: 1px solid var(--brb-dark4);
  padding: 12px 28px;
}

.brb-btn-outline:hover {
  border-color: var(--brb-blue);
  color: var(--brb-blue);
}

.brb-btn-sm { padding: 8px 18px; font-size: 12px; }
.brb-btn-lg { padding: 14px 36px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.brb-btn-full { width: 100%; }
.brb-btn-icon { background: none; border: none; cursor: pointer; padding: 6px; color: var(--brb-gray); }
.brb-btn-icon:hover { color: var(--brb-white); }

.brb-btn-play {
  background: var(--brb-blue);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--brb-blue-glow);
  transition: all var(--brb-transition);
}

.brb-btn-play:hover {
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════ */
.brb-input {
  background: var(--brb-dark3);
  border: 1px solid var(--brb-dark4);
  border-radius: var(--brb-radius-sm);
  padding: 12px 16px;
  color: var(--brb-white);
  font-family: var(--brb-font-body);
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color var(--brb-transition);
}

.brb-input:focus {
  border-color: var(--brb-blue);
}

.brb-input::placeholder {
  color: var(--brb-gray);
}

.brb-select {
  appearance: none;
  background: var(--brb-dark3) url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238888aa'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--brb-dark4);
  border-radius: var(--brb-radius-sm);
  padding: 12px 36px 12px 16px;
  color: var(--brb-white);
  font-family: var(--brb-font-body);
  font-size: 14px;
  cursor: pointer;
}

.brb-select option {
  background: var(--brb-dark2);
}

/* ═══════════════════════════════════════════
   BADGE & TAGS
   ═══════════════════════════════════════════ */
.brb-badge {
  display: inline-block;
  background: var(--brb-blue-soft);
  color: var(--brb-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--brb-radius-pill);
  letter-spacing: 0.5px;
}

.brb-tag {
  display: inline-block;
  background: var(--brb-dark);
  color: var(--brb-gray);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--brb-radius-pill);
}

.brb-tag-mood {
  color: var(--brb-amber);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.brb-hero {
  position: relative;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.brb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--brb-blue-soft) 0%, transparent 70%);
  pointer-events: none;
}

.brb-hero-content {
  position: relative;
  z-index: 1;
}

.brb-hero h1 {
  font-size: clamp(52px, 10vw, 96px);
  line-height: 0.95;
  margin: 16px 0;
}

.brb-hero .gradient-text {
  background: linear-gradient(135deg, var(--brb-blue), var(--brb-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brb-hero p {
  color: var(--brb-gray);
  font-size: 17px;
  max-width: 560px;
  margin: 20px auto 36px;
  line-height: 1.6;
}

.brb-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BEAT CARD
   ═══════════════════════════════════════════ */
.brb-beat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.brb-beat-card {
  background: var(--brb-dark2);
  border-radius: var(--brb-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--brb-transition);
  border: 1px solid transparent;
}

.brb-beat-card:hover {
  border-color: rgba(37, 99, 255, 0.25);
  transform: translateY(-4px);
}

.brb-beat-card__art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.brb-beat-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brb-beat-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--brb-transition);
}

.brb-beat-card:hover .brb-beat-card__overlay,
.brb-beat-card.is-playing .brb-beat-card__overlay {
  opacity: 1;
}

.brb-beat-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  border: none;
  transition: background var(--brb-transition);
}

.brb-beat-card__wishlist:hover { background: rgba(0, 0, 0, 0.7); }
.brb-beat-card__wishlist.is-wishlisted svg { fill: var(--brb-red); stroke: var(--brb-red); }

.brb-beat-card__badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

.brb-beat-card__info {
  padding: 14px 16px 18px;
}

.brb-beat-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brb-beat-card__title {
  font-size: 16px;
  font-weight: 700;
}

.brb-beat-card__price {
  font-family: var(--brb-font-display);
  font-size: 22px;
  color: var(--brb-blue);
}

.brb-beat-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--brb-gray);
}

.brb-beat-card__tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BEAT MODAL
   ═══════════════════════════════════════════ */
.brb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.brb-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.brb-modal {
  background: var(--brb-dark2);
  border-radius: 20px;
  width: 680px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--brb-dark4);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
}

.brb-modal-overlay.is-active .brb-modal {
  transform: translateY(0) scale(1);
}

.brb-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  z-index: 2;
}

.brb-modal__hero {
  padding: 36px 36px 0;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
}

.brb-modal__art {
  width: 180px;
  height: 180px;
  border-radius: var(--brb-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.brb-modal__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brb-modal__details h2 {
  font-size: 40px;
  margin: 10px 0 4px;
  line-height: 1;
}

.brb-modal__producer {
  color: var(--brb-gray);
  font-size: 14px;
}

.brb-modal__producer span {
  color: var(--brb-blue);
}

.brb-modal__stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--brb-gray);
}

.brb-modal__tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* License selector */
.brb-license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 28px 36px 36px;
}

.brb-license-card {
  background: var(--brb-dark3);
  border: 2px solid var(--brb-dark4);
  border-radius: var(--brb-radius);
  padding: 18px;
  cursor: pointer;
  transition: all var(--brb-transition);
}

.brb-license-card.is-selected {
  background: var(--brb-blue-soft);
  border-color: var(--brb-blue);
}

.brb-license-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.brb-license-card__name {
  font-weight: 700;
  font-size: 15px;
}

.brb-license-card__price {
  font-family: var(--brb-font-display);
  font-size: 28px;
  color: var(--brb-blue);
}

.brb-license-card__rights {
  font-size: 11px;
  color: var(--brb-gray);
  margin-top: 8px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   GLOBAL AUDIO PLAYER
   ═══════════════════════════════════════════ */
.brb-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--brb-dark3);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 150;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: var(--brb-player-height);
}

.brb-player.is-active {
  transform: translateY(0);
}

.brb-player__art {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.brb-player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brb-player__info {
  flex: 0 0 160px;
}

.brb-player__title {
  font-weight: 600;
  font-size: 14px;
}

.brb-player__meta {
  font-size: 11px;
  color: var(--brb-gray);
}

.brb-player__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brb-player__controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: white;
}

.brb-player__play-btn {
  background: var(--brb-blue) !important;
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brb-player__progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brb-player__time {
  font-size: 11px;
  color: var(--brb-gray);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.brb-player__bar {
  flex: 1;
  height: 4px;
  background: var(--brb-dark4);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.brb-player__bar-fill {
  height: 100%;
  background: var(--brb-blue);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.brb-player__bar-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  left: 0%;
}

.brb-player__volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brb-player__volume input[type="range"] {
  width: 80px;
  accent-color: var(--brb-blue);
}

/* ═══════════════════════════════════════════
   CART SIDEBAR
   ═══════════════════════════════════════════ */
.brb-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.brb-cart-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.brb-cart-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.brb-cart-sidebar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--brb-dark2);
  border-left: 1px solid var(--brb-dark4);
  padding: 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.brb-cart-overlay.is-active .brb-cart-sidebar {
  transform: translateX(0);
}

.brb-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--brb-dark3);
}

.brb-cart-item__art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.brb-cart-item__details { flex: 1; }
.brb-cart-item__title { font-weight: 600; font-size: 14px; }
.brb-cart-item__license { font-size: 12px; color: var(--brb-gray); }
.brb-cart-item__price { font-weight: 700; color: var(--brb-blue); font-size: 16px; }
.brb-cart-item__remove { cursor: pointer; color: var(--brb-gray); font-size: 18px; padding: 4px; background: none; border: none; }

.brb-cart-total {
  border-top: 1px solid var(--brb-dark4);
  padding-top: 20px;
  margin-top: 16px;
}

.brb-cart-total__row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.brb-cart-total__amount { color: var(--brb-blue); }

/* ═══════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════ */
.brb-filters {
  background: var(--brb-dark2);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--brb-dark3);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.brb-filter-group label {
  display: block;
  font-size: 11px;
  color: var(--brb-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.brb-genre-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.brb-genre-pill {
  background: var(--brb-dark3);
  color: var(--brb-gray);
  border: none;
  border-radius: var(--brb-radius-pill);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--brb-transition);
  font-family: var(--brb-font-body);
}

.brb-genre-pill.is-active,
.brb-genre-pill:hover {
  background: var(--brb-blue);
  color: white;
}

/* ═══════════════════════════════════════════
   TOP CHARTS
   ═══════════════════════════════════════════ */
.brb-chart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--brb-radius-sm);
  cursor: pointer;
  transition: background var(--brb-transition);
}

.brb-chart-row:nth-child(odd) { background: var(--brb-dark2); }
.brb-chart-row:hover { background: var(--brb-dark3); }

.brb-chart-rank {
  font-family: var(--brb-font-display);
  font-size: 24px;
  width: 36px;
  text-align: center;
}

.brb-chart-rank.top-3 { color: var(--brb-amber); }
.brb-chart-rank:not(.top-3) { color: var(--brb-gray); }

.brb-chart-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.brb-chart-info { flex: 1; }
.brb-chart-title { font-weight: 600; font-size: 15px; }
.brb-chart-meta { font-size: 12px; color: var(--brb-gray); }
.brb-chart-plays { color: var(--brb-gray); font-size: 13px; }
.brb-chart-price { font-family: var(--brb-font-display); font-size: 22px; color: var(--brb-blue); }

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.brb-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  border-top: 1px solid var(--brb-dark3);
  border-bottom: 1px solid var(--brb-dark3);
}

.brb-stat__value {
  font-family: var(--brb-font-display);
  font-size: 48px;
  color: var(--brb-blue);
  text-align: center;
}

.brb-stat__label {
  color: var(--brb-gray);
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* ═══════════════════════════════════════════
   LICENSE PAGE
   ═══════════════════════════════════════════ */
.brb-license-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.brb-license-page-card {
  background: var(--brb-dark2);
  border-radius: 16px;
  padding: 32px;
  border: 2px solid var(--brb-dark4);
  text-align: center;
  position: relative;
}

.brb-license-page-card.is-popular {
  border-color: var(--brb-blue);
}

.brb-license-page-card__popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brb-blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--brb-radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brb-license-page-card h3 {
  font-size: 28px;
  margin: 14px 0 6px;
}

.brb-license-page-card__price {
  font-family: var(--brb-font-display);
  font-size: 52px;
  color: var(--brb-blue);
  margin: 8px 0 16px;
}

.brb-license-page-card__rights {
  font-size: 13px;
  color: var(--brb-gray);
  line-height: 1.8;
  text-align: left;
  list-style: none;
}

.brb-license-page-card__rights li::before {
  content: '✓ ';
  color: var(--brb-green);
}

/* ═══════════════════════════════════════════
   DOWNLOADS PAGE
   ═══════════════════════════════════════════ */
.brb-download-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--brb-dark2);
  border-radius: var(--brb-radius);
  margin-bottom: 12px;
  border: 1px solid var(--brb-dark3);
}

.brb-download-item__art {
  width: 64px;
  height: 64px;
  border-radius: var(--brb-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.brb-download-item__info { flex: 1; }
.brb-download-item__title { font-weight: 700; font-size: 16px; }
.brb-download-item__meta { font-size: 13px; color: var(--brb-gray); }

/* ═══════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════ */
.brb-profile-card {
  background: var(--brb-dark2);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--brb-dark3);
  max-width: 600px;
  margin: 0 auto;
}

.brb-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.brb-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brb-blue), var(--brb-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  font-family: var(--brb-font-display);
}

.brb-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.brb-profile-stat {
  background: var(--brb-dark3);
  border-radius: var(--brb-radius);
  padding: 20px;
  text-align: center;
}

.brb-profile-stat__value {
  font-family: var(--brb-font-display);
  font-size: 32px;
}

.brb-profile-stat__label {
  font-size: 12px;
  color: var(--brb-gray);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════ */
.brb-auth-modal {
  background: var(--brb-dark2);
  border-radius: 16px;
  padding: 40px;
  width: 400px;
  max-width: 90vw;
  border: 1px solid var(--brb-dark4);
}

.brb-auth-modal h2 {
  font-size: 32px;
  margin-bottom: 28px;
}

.brb-auth-modal .brb-input {
  margin-bottom: 14px;
}

.brb-auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--brb-gray);
  margin-top: 16px;
}

.brb-auth-switch a {
  color: var(--brb-blue);
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   CART ICON
   ═══════════════════════════════════════════ */
.brb-cart-icon {
  position: relative;
  cursor: pointer;
}

.brb-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--brb-blue);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.brb-empty {
  text-align: center;
  padding: 60px 0;
}

.brb-empty h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.brb-empty p {
  color: var(--brb-gray);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.brb-footer {
  border-top: 1px solid var(--brb-dark3);
  padding: 40px 24px;
}

.brb-footer.has-player {
  margin-bottom: var(--brb-player-height);
}

.brb-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brb-footer__links {
  display: flex;
  gap: 28px;
}

.brb-footer__links a {
  font-size: 13px;
  color: var(--brb-gray);
  transition: color var(--brb-transition);
}

.brb-footer__links a:hover { color: var(--brb-white); }

.brb-footer__copy {
  font-size: 11px;
  color: var(--brb-gray);
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   NOTIFICATION
   ═══════════════════════════════════════════ */
.brb-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--brb-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  z-index: 999;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px var(--brb-blue-glow);
  animation: brb-fadeIn 0.3s ease;
}

@keyframes brb-fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brb-slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ═══════════════════════════════════════════
   PAGE PADDING (when player active)
   ═══════════════════════════════════════════ */
body.brb-player-active .site-main {
  padding-bottom: var(--brb-player-height);
}

body.brb-player-active .brb-footer {
  margin-bottom: var(--brb-player-height);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .brb-beat-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .brb-modal__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .brb-modal__art { width: 140px; height: 140px; }
  .brb-modal__details h2 { font-size: 28px; }
  .brb-modal__stats { justify-content: center; flex-wrap: wrap; }
  .brb-modal__tags { justify-content: center; }

  .brb-license-grid {
    grid-template-columns: 1fr;
    padding: 20px 24px 24px;
  }

  .brb-player__progress { display: none; }
  .brb-player__volume { display: none; }

  .brb-stats { gap: 40px; }
  .brb-stat__value { font-size: 36px; }

  .brb-filters { flex-direction: column; }

  .brb-license-page-grid { grid-template-columns: 1fr 1fr; }

  .brb-profile-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brb-header { padding: 12px 16px; }
  .brb-logo { font-size: 22px; }

  .brb-nav { display: none; }

  .brb-hero { padding: 60px 16px 50px; }

  .brb-beat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .brb-license-page-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   WOOCOMMERCE OVERRIDES
   ═══════════════════════════════════════════ */
.woocommerce .button,
.woocommerce input.button,
.woocommerce button.button {
  background: var(--brb-blue) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--brb-font-body) !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  transition: all var(--brb-transition) !important;
}

.woocommerce .button:hover {
  background: #1d4fd8 !important;
  box-shadow: 0 4px 20px var(--brb-blue-glow) !important;
}

.woocommerce-message,
.woocommerce-info {
  background: var(--brb-dark2) !important;
  color: var(--brb-white) !important;
  border-top-color: var(--brb-blue) !important;
}

.woocommerce-error {
  background: var(--brb-dark2) !important;
  color: var(--brb-red) !important;
  border-top-color: var(--brb-red) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: var(--brb-dark3) !important;
  border: 1px solid var(--brb-dark4) !important;
  color: var(--brb-white) !important;
  border-radius: var(--brb-radius-sm) !important;
}

.woocommerce table.shop_table {
  background: var(--brb-dark2);
  border-color: var(--brb-dark3);
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  border-color: var(--brb-dark3) !important;
  color: var(--brb-white);
}

/* ═══════════════════════════════════════════
   MOBILE NAV TOGGLE
   ═══════════════════════════════════════════ */
.brb-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .brb-mobile-toggle { display: block; }
  .brb-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--brb-dark2);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--brb-dark3);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    z-index: 99;
  }
  .brb-nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }
}
