/* BandMaster rhythm theme */
:root {
  --bm-stage: #101116;
  --bm-panel: #181b22;
  --bm-panel-strong: #20242d;
  --bm-ink: #f7f2e9;
  --bm-muted: #aeb6bd;
  --bm-cyan: #20d5d2;
  --bm-gold: #f3bc46;
  --bm-red: #ff4d5f;
  --bm-green: #55d27b;
  --bm-border: rgba(255, 255, 255, .12);
}

html {
  background: var(--bm-stage);
}

body.bm-app {
  min-height: 100vh;
  padding-top: 88px;
  margin-bottom: 0;
  color: var(--bm-ink);
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(135deg, #101116 0%, #181820 48%, #11151a 100%);
  background-size: 48px 48px, 48px 48px, auto;
  overflow-x: hidden;
}

.beat-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .32;
}

.beat-field span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--bm-cyan), transparent);
  animation: beat-line 6s linear infinite;
}

.beat-field span:nth-child(1) { left: 12%; animation-delay: -1s; }
.beat-field span:nth-child(2) { left: 38%; background: linear-gradient(180deg, transparent, var(--bm-gold), transparent); animation-delay: -3s; }
.beat-field span:nth-child(3) { left: 63%; background: linear-gradient(180deg, transparent, var(--bm-red), transparent); animation-delay: -4s; }
.beat-field span:nth-child(4) { left: 86%; background: linear-gradient(180deg, transparent, var(--bm-green), transparent); animation-delay: -2s; }

@keyframes beat-line {
  0% { transform: translateY(-100%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.site-main,
.bm-navbar,
.bm-footer {
  position: relative;
  z-index: 1;
}

.site-main {
  padding-bottom: 64px;
}

.bm-navbar {
  min-height: 68px;
  display: flex;
  z-index: 1040;
  border-bottom: 1px solid var(--bm-border);
  background: rgba(12, 13, 18, .94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  backdrop-filter: blur(10px);
}

.bm-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  float: none;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--bm-ink);
  text-transform: uppercase;
}

.bm-navbar .navbar-brand img {
  width: 45px;
  height: auto;
  margin: 0;
}

.brand-lockup strong {
  color: var(--bm-gold);
  font-weight: 800;
}

.bm-navbar .navbar-nav .nav-link {
  color: rgba(247, 242, 233, .76);
  padding: 22px 12px;
}

.bm-navbar .navbar-nav .nav-link:hover,
.bm-navbar .navbar-nav .nav-link:focus {
  color: #fff;
  text-decoration: none;
}

.bm-navbar .dropdown-menu {
  z-index: 1050;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  background: #15171e;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .36);
}

.bm-navbar .dropdown-item {
  color: var(--bm-ink);
}

.bm-navbar .dropdown-item:hover,
.bm-navbar .dropdown-item:focus {
  color: #0f1117;
  background: var(--bm-gold);
}

.bm-footer {
  border-top: 1px solid var(--bm-border);
  color: var(--bm-muted);
  background: rgba(12, 13, 18, .92);
}

.bm-footer-grid {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bm-footer p,
.bm-footer ul {
  margin: 0;
}

.bm-footer a {
  color: var(--bm-cyan);
}

.page-header h2,
.page-header h3,
.section-head h1,
.bm-auth-copy h1,
.launch-copy h1 {
  color: var(--bm-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.section-head {
  margin: 10px auto 28px;
  max-width: 780px;
  text-align: center;
}

.section-head.compact {
  margin-bottom: 18px;
}

.promotion-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  margin-bottom: 24px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, .18), rgba(8, 9, 13, .04) 28%, rgba(8, 9, 13, .04) 72%, rgba(8, 9, 13, .18)),
    url('/img/topup-bonus-banner.webp') center / cover no-repeat;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .38);
}

.promotion-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  padding: 26px 32px 28px;
  text-align: center;
}

.promotion-logo {
  width: 148px;
  height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .75));
}

.promotion-kicker {
  display: block;
  color: var(--bm-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.promotion-hero h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .9);
}

.promotion-hero h2 span {
  color: var(--bm-gold);
}

.promotion-summary {
  max-width: 590px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

.promotion-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.promotion-countdown-label,
.promotion-countdown-deadline {
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.promotion-countdown-deadline {
  max-width: 180px;
  text-align: right;
}

.promotion-countdown-time {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  gap: 8px;
}

.promotion-countdown-time > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  background: rgba(12, 13, 18, .72);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.promotion-countdown-time strong {
  color: var(--bm-ink);
  font-size: 22px;
  line-height: 1;
}

.promotion-countdown-time small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.promotion-countdown.is-expired {
  justify-content: center;
}

.promotion-countdown.is-expired .promotion-countdown-label {
  font-size: 14px;
}

.promotion-pot-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 30px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 66, .28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 197, 66, .12), transparent 38%),
    linear-gradient(135deg, rgba(24, 27, 34, .98), rgba(13, 14, 19, .98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .3);
}

.promotion-pot-visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.promotion-pot-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.promotion-pot-amount {
  position: absolute;
  top: 56%;
  left: 50%;
  width: 46%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .9);
}

.promotion-pot-amount strong,
.promotion-pot-amount span {
  display: block;
}

.promotion-pot-amount strong {
  color: var(--bm-gold);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.promotion-pot-amount span {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.promotion-pot-copy h2 {
  color: var(--bm-ink);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
}

.promotion-pot-copy p {
  max-width: 570px;
  color: rgba(255, 255, 255, .82);
}

.promotion-pot-copy p strong {
  color: var(--bm-gold);
}

@media (max-width: 767px) {
  .promotion-hero {
    display: block;
    min-height: 0;
    background: #101116;
  }

  .promotion-hero:before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    background: url('/img/topup-bonus-banner.webp') center / cover no-repeat;
  }

  .promotion-hero-content {
    width: 100%;
    padding: 22px 18px 24px;
  }

  .promotion-logo {
    width: 120px;
  }

  .promotion-countdown {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .promotion-countdown-time {
    width: 100%;
  }

  .promotion-countdown-deadline {
    max-width: none;
    text-align: center;
  }

  .promotion-pot-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    text-align: center;
  }

  .promotion-pot-visual {
    max-width: 330px;
  }

  .promotion-pot-copy .eyebrow {
    justify-content: center;
  }

  .promotion-pot-copy p {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 400px) {
  .promotion-countdown-time {
    grid-template-columns: repeat(2, minmax(54px, 1fr));
  }
}

.section-head p,
.bm-auth-copy p,
.launch-copy p,
.form-note {
  color: var(--bm-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--bm-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--bm-gold);
}

.bm-auth-grid,
.launch-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.bm-auth-visual,
.bm-form-card,
.launch-stage,
.rhythm-search,
.rhythm-table,
.music-detail .card,
.panel {
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  background: rgba(24, 27, 34, .92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
}

.bm-auth-visual {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 17, 22, .18), rgba(16, 17, 22, .9)),
    linear-gradient(90deg, rgba(32, 213, 210, .22), rgba(255, 77, 95, .14)),
    url('/img/header.jpg') center / cover no-repeat;
}

.bm-auth-copy {
  max-width: 560px;
}

.bm-auth-copy h1 {
  font-size: 42px;
  line-height: 1.05;
}

.bm-form-card {
  padding: 28px;
}

.bm-form-card .page-header {
  margin-bottom: 22px;
}

.bm-form-card .form-control,
.custom-container .form-control {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  color: var(--bm-ink);
  background: rgba(255, 255, 255, .07);
}

.bm-form-card .form-control:focus,
.custom-container .form-control:focus {
  border-color: var(--bm-cyan);
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 .2rem rgba(32, 213, 210, .16);
}

.bm-form-card label,
.custom-container label {
  color: var(--bm-muted);
  font-weight: 700;
}

.btn {
  border-radius: 6px;
  font-weight: 800;
}

.btn-primary,
.btn-success {
  color: #111319;
  border-color: var(--bm-gold);
  background: var(--bm-gold);
}

.btn-primary:hover,
.btn-success:hover {
  color: #111319;
  border-color: #ffd36f;
  background: #ffd36f;
}

.btn-primary.disabled,
.btn-primary:disabled,
.btn-success.disabled,
.btn-success:disabled {
  color: rgba(247, 242, 233, .68);
  border-color: rgba(243, 188, 70, .32);
  background: rgba(243, 188, 70, .14);
  opacity: 1;
}

.btn-link {
  color: var(--bm-cyan);
}

.btn-outline-light {
  color: var(--bm-ink);
  border-color: rgba(255, 255, 255, .34);
}

.btn-outline-light:hover {
  color: #111319;
  background: var(--bm-cyan);
  border-color: var(--bm-cyan);
}

.alert {
  border-radius: 8px;
}

.launch-stage {
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 440px;
  padding: 32px;
  overflow: hidden;
}

.launch-copy {
  align-self: center;
}

.launch-art {
  min-height: 320px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 17, 22, 0), rgba(16, 17, 22, .72)),
    url('/img/header.jpg') center / cover no-repeat;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rhythm-search {
  overflow: visible;
  margin-bottom: 28px;
}

.rhythm-search .card-body {
  background: rgba(255, 255, 255, .04);
}

.rhythm-search .form-control {
  color: var(--bm-ink);
  background: transparent;
}

.music-page.rhythm-list .tours {
  gap: 18px;
}

.music-page .tours>.tourcard {
  flex-basis: 340px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  background: var(--bm-panel);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}

.music-page .tours>.tourcard:hover {
  background: var(--bm-panel-strong);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .35);
}

.music-page .tours>.tourcard figure .tourpic img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .72;
}

.music-page .tours>.tourcard figure figcaption {
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .78));
}

.music-page .tours>.tourcard figure figcaption h3 {
  max-width: 100%;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.music-page .tourcat,
.music-page .tourday {
  border-radius: 6px;
  font-weight: 800;
}

.music-page .tourcat {
  background: var(--bm-cyan);
  color: #111319 !important;
}

.music-page .tours>.tourcard figure .tourpic .tourday.hot {
  background: var(--bm-red);
  animation: none;
}

.music-page .tourbtn {
  border-top: 1px solid var(--bm-border);
}

.music-page .btn {
  color: var(--bm-ink);
  border: 0;
  border-radius: 0;
}

.music-page .btn:hover {
  color: #111319;
  background: var(--bm-gold);
}

.pagination .page-link {
  color: var(--bm-ink);
  border-color: var(--bm-border);
  background: rgba(255, 255, 255, .06);
}

.pagination .page-item.active .page-link {
  color: #111319;
  border-color: var(--bm-cyan);
  background: var(--bm-cyan);
}

.rhythm-detail .table,
.rhythm-table .table,
.table {
  color: var(--bm-ink);
}

.table th,
.table td {
  border-color: rgba(255, 255, 255, .1);
}

.table .thead-light th,
.table .thead-dark th {
  color: var(--bm-ink);
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
}

.rhythm-table {
  padding: 20px;
}

.top-ranking {
  color: #fff;
  background: rgba(243, 188, 70, .08);
}

.music-detail .card,
.music-detail .card-footer,
.music-detail .tab-card-header {
  color: var(--bm-ink);
  background: var(--bm-panel);
}

.music-detail .card-block,
.music-detail .card-footer {
  border-color: rgba(255, 255, 255, .1) !important;
}

.music-detail .card-text,
.music-detail .meta,
.music-detail .meta a {
  color: var(--bm-muted);
}

.nav-tabs {
  border-bottom-color: rgba(255, 255, 255, .12);
}

.nav-tabs .nav-link {
  color: var(--bm-muted);
  border-radius: 6px 6px 0 0;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #111319;
  border-color: var(--bm-cyan);
  background: var(--bm-cyan);
}

.panel {
  padding: 18px;
  color: var(--bm-ink);
}

.panel-default>.panel-heading,
.panel-title {
  color: var(--bm-ink);
}

.card {
  border-color: var(--bm-border);
  color: var(--bm-ink);
  background: rgba(24, 27, 34, .92);
}

.scroll {
  background: rgba(255, 255, 255, .05);
}

.autocomplete {
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  color: #111319;
}

@media (max-width: 991px) {
  body.bm-app {
    padding-top: 76px;
  }

  .bm-navbar .navbar-nav .nav-link {
    padding: 10px 0;
  }

  .bm-server-nav {
    margin: 8px 0;
  }

  .bm-auth-grid,
  .launch-stage {
    grid-template-columns: 1fr;
  }

  .bm-auth-visual {
    min-height: 360px;
  }

  .launch-art {
    min-height: 220px;
  }
}

@media (max-width: 575px) {
  .brand-lockup {
    display: none;
  }

  .bm-auth-visual,
  .bm-form-card,
  .launch-stage,
  .rhythm-table {
    padding: 20px;
  }

  .bm-auth-copy h1,
  .launch-copy h1 {
    font-size: 32px;
  }

  .bm-footer-grid {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
