﻿/* Shared finishing touches: surfaces, geometry and readable mobile controls. */
.hm-coming.hm-coming-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  width: 100%;
}
.hm-coming-cards article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border: 1px solid #ffffff20;
  border-radius: 18px;
  background: #181914e8;
  text-decoration: none;
}
.hm-coming-cards strong {
  font: 500 25px/1.3 var(--font-heading);
  color: #eee9df;
}
.hm-coming-cards p {
  color: #b9b9ad;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.hm-coming-cards article > span {
  font-size: 10px;
  color: #d8bc83;
}
.nbk-unavailable {
  color: #9c9c95;
  font-size: 13px;
  cursor: default;
}
.hm-card-foot [data-hm-credit] {
  display: block;
  color: #bcb2a0;
  font-size: 10px;
}
/* Keep open/closed queue geometry identical; only opacity changes. */
body #queuePanel.queue-panel {
  box-sizing: border-box;
  right: 16px;
  bottom: 100px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(65dvh, 520px);
  padding: 14px;
  border-radius: 18px;
  transform: none;
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
  background: #171c18f7;
  backdrop-filter: none;
}
body #queuePanel.queue-panel.open {
  right: 16px;
  bottom: 100px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(65dvh, 520px);
  padding: 14px;
  border-radius: 18px;
  transform: none;
}
.account-polished .page {
  max-width: 1080px;
  width: calc(100% - 40px);
}
.account-polished .card {
  border-radius: 24px;
  background: #171b16ed;
  border: 1px solid #ffffff24;
  padding: 28px;
  box-shadow: 0 18px 55px #0003;
}
.account-polished .top-header {
  text-align: left;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
}
.account-polished .top-header .header-star {
  width: 48px;
  height: 48px;
  margin: 0;
}
.account-polished .top-header h1 {
  font-size: 32px;
  margin: 0;
}
.account-polished .top-header p {
  width: 100%;
  margin: 0;
  color: #b7bcb0;
}
.account-polished .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ffffff18;
}
.account-polished .tab {
  flex: 0 1 auto;
  padding: 12px 16px;
  border-radius: 10px;
  min-height: 44px;
  color: #b8beb2;
}
.account-polished .tab.active {
  background: #ffffff0d;
  color: #f2ead7;
  box-shadow: none;
}
.account-polished .panel {
  padding-top: 26px;
}
.account-polished .section-title {
  font-size: 22px;
  color: #efeee4;
}
.account-polished .section-hint {
  color: #aeb6aa;
  line-height: 1.8;
}
.account-polished .nbk-timezone-settings {
  border: 1px solid #ffffff20;
  padding: 0 18px;
  border-radius: 14px;
  background: #101510;
}
.account-polished .nbk-timezone-settings summary {
  color: #d8ddcf;
  font-size: 13px;
  min-height: 54px;
}
.account-polished .nbk-timezone-settings p {
  font-size: 12px;
  line-height: 1.8;
  color: #b6beaf;
  padding-bottom: 16px;
}
.nbk-auto-timezone form {
  display: none;
}
.nbk-auto-timezone summary span::after {
  display: none;
}
.listening-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 14px !important;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  margin: 8px 0;
}
.listening-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--listen-share);
  background: linear-gradient(90deg, #a7c3a31c, #a7c3a306);
  z-index: -1;
  border-bottom: 2px solid #a7c3a360;
}
.listening-rank {
  font:
    500 22px/1.2 Georgia,
    serif;
  color: #b8c9ae;
  min-width: 26px;
}
.listening-row .fav-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #eeeae0;
}
.account-polished .nbk-choice-face {
  background: #101610;
  border: 1px solid #ffffff25;
  border-radius: 16px;
}
.account-polished .nbk-choice input:checked + .nbk-choice-face {
  background: #20281e;
  box-shadow: inset 0 0 0 1px #adc8a6;
}
.login-container {
  width: min(460px, calc(100% - 32px));
  margin-inline: auto;
}
.login-container :is(.login-form, .register-form, .verify-form) {
  border: 1px solid #ffffff25;
  border-radius: 24px;
  background: #171b16ed;
  padding: 32px;
  box-shadow: 0 24px 70px #0004;
}
.login-container .login-header {
  margin-bottom: 28px;
}
.login-container .header-star {
  width: 58px;
  height: 58px;
  margin-inline: auto;
}
.login-container input:not([type="checkbox"]) {
  min-height: 48px;
  border-radius: 12px;
  background: #101510;
  color: #eeeae0;
  border: 1px solid #ffffff25;
}
.login-container .login-btn {
  min-height: 48px;
  border-radius: 12px;
}
/* Dhikr: equal-height cards and a stable dial without protruding orbit rings. */
.dhikr-container {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.dhikr-box {
  height: 100%;
  box-sizing: border-box;
  border-image: none;
  border: 1px solid #ffffff25;
  border-radius: 22px;
  background: #171b16ee;
  opacity: 1;
  transform: none;
}
.dhikr-box.in-view {
  animation: none;
}
.dhikr-box.in-view:hover {
  transform: none;
}
.dhikr-box .counter-container {
  margin-top: auto;
  padding-top: 22px;
}
html[data-dhikr-design="orbit"] .dhikr-box .dial {
  box-shadow: none;
  background: radial-gradient(circle, #b5c9b718, transparent 68%);
  border: 1px solid #b5c9b744;
  box-sizing: border-box;
}
html[data-dhikr-design="orbit"] .dhikr-box .dial-guide {
  stroke-dasharray: 1 8;
  stroke-linecap: round;
}
html[data-dhikr-design="minimal"] .dhikr-box .dial {
  border-radius: 48px 48px 18px 18px;
  border: 1px solid #b8c7ad55;
  background: linear-gradient(180deg, #c8d3bc10, #121810);
}
html[data-dhikr-design="minimal"] .dhikr-box .dial svg {
  opacity: 1;
}
html[data-dhikr-design="minimal"] .dhikr-box .counter {
  font: 500 38px/1.2 var(--font-heading);
}
.nbk-counter-minimal b {
  border: 1px solid currentColor;
  border-radius: 22px 22px 8px 8px;
  padding: 8px;
}
/* Separate themes use actual surface colors, never a page-wide image filter. */
html[data-nbk-theme] body {
  background-blend-mode: normal !important;
}
html[data-nbk-theme]
  :is(
    .nsf-library,
    .qrf-library,
    #main-player,
    .hm-plan,
    .hm-name-card,
    .login-container :is(.login-form, .register-form, .verify-form)
  ) {
  background: rgb(var(--nbk-surface-rgb));
  border-color: rgba(var(--nbk-theme-rgb), 0.25);
  color: var(--nbk-foreground);
}
html[data-nbk-theme] :is(.track-title, .hm-plan h3, .section-title) {
  color: var(--nbk-foreground);
}
html[data-nbk-theme] :is(.track.current-track, .track.playing) {
  background: rgba(var(--nbk-theme-rgb), 0.09);
}
/* New profile frames retain the same server-side Plus entitlement. */
:is(.plus-frame-sage, .plus-frame-azure, .plus-frame-petal) {
  position: relative;
}
:is(.plus-frame-sage, .plus-frame-azure, .plus-frame-petal)::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid #a7c4ad;
  border-radius: 50%;
  pointer-events: none;
}
.plus-frame-azure::after {
  border-color: #9bbdd9;
  box-shadow: 0 0 0 3px #9bbdd920;
}
.plus-frame-petal::after {
  border-color: #c5a5b7;
  border-style: dashed;
  border-radius: 38%;
}
.school-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #b7cbb440;
  color: #c5d6be;
  font-size: 10px;
  margin-right: 4px;
}
.school-icon.aqidah-icon {
  border-radius: 50%;
  color: #c8c4dd;
  border-color: #c8c4dd44;
}
.category-card,
.room-card,
.cat-card {
  border-radius: 20px;
  background: #181c17eb;
  border: 1px solid #ffffff20;
  box-shadow: none;
}
.chat-wrap {
  border-radius: 22px;
  background: #111711ed;
  border-color: #ffffff20;
}
.message-bubble,
.m-bubble {
  border-radius: 18px;
  background: #20281f;
  color: #eeeae1;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .account-polished .page {
    width: calc(100% - 24px);
  }
  .account-polished .card {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .account-polished .top-header h1 {
    font-size: 27px;
  }
  .account-polished .tab {
    padding: 10px;
    font-size: 12px;
  }
  .account-polished .nbk-timezone-settings summary {
    flex-wrap: wrap;
  }
  .login-container .login-form {
    padding: 24px 20px;
  }
  .hm-coming-cards article {
    padding: 18px 14px;
  }
  .hm-coming-cards p {
    font-size: 11px;
  }
  .hm-coming-cards strong {
    font-size: 23px;
  }
  .dhikr-box {
    padding: 24px 18px;
  }
  .listening-row {
    gap: 10px;
  }
  .nbk-streak-week {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body #queuePanel.queue-panel {
    transition: none;
  }
}

/* Nasheeds use the same open editorial language as the Quran library. */
.nasheed-refreshed .nsf-library {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nasheed-refreshed .nsf-library::before,
.nasheed-refreshed .nsf-library::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.14;
  animation: quran-library-aura 14s ease-in-out infinite alternate;
}
.nasheed-refreshed .nsf-library::before {
  top: 4%;
  left: -12%;
  background: #7b5d35;
}
.nasheed-refreshed .nsf-library::after {
  right: -10%;
  bottom: 12%;
  background: #61715a;
  animation-delay: -7s;
}
.nasheed-refreshed .nsf-library > * {
  position: relative;
  z-index: 1;
}
.nasheed-refreshed .nsf-tab-row {
  padding: 8px 4px 0;
  gap: 20px;
}
.nasheed-refreshed #browseTabs {
  width: fit-content;
  gap: 30px;
}
.nasheed-refreshed #browseTabs button {
  position: relative;
  min-height: 46px;
  padding: 0 1px 8px;
  border: 0;
  color: #a7afa4;
  font:
    500 21px/1.2 "Playfair Display",
    serif;
  transition: color 0.2s ease;
}
.nasheed-refreshed #browseTabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d9bb80, #9caf91);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nasheed-refreshed #browseTabs button.active {
  color: #f0e9dc;
  border: 0;
  background: transparent;
}
.nasheed-refreshed #browseTabs button.active::after {
  transform: scaleX(1);
}
.nasheed-refreshed .nsf-queue-open {
  min-height: 44px;
  color: #d8bb80;
}
.nasheed-refreshed .list-wrap {
  padding: 20px 4px 0;
}
.nasheed-refreshed .search-wrap {
  margin-bottom: 14px;
}
.nasheed-refreshed .search-inner {
  min-height: 48px;
  padding-inline: 20px;
  border-color: rgba(218, 192, 139, 0.2);
  border-radius: 99px;
  background: rgba(10, 14, 11, 0.56);
  box-shadow: none;
}
.nasheed-refreshed #searchInput {
  color: var(--bb-text);
  font-size: 13px;
}
.nasheed-refreshed #searchInput::placeholder {
  color: #aeb5a9;
}
.nasheed-refreshed .nsf-filters {
  gap: 8px;
  margin: 14px 0;
}
.nasheed-refreshed .nsf-filters button {
  min-height: 38px;
  padding: 7px 14px;
  border-color: transparent;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  color: #bcc2b7;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.nasheed-refreshed .nsf-filters button:hover {
  color: #e8decd;
  background: rgba(217, 187, 128, 0.08);
}
.nasheed-refreshed .nsf-filters button[aria-pressed="true"] {
  border-color: rgba(217, 187, 128, 0.5);
  background: linear-gradient(
    135deg,
    rgba(217, 187, 128, 0.13),
    rgba(173, 193, 162, 0.08)
  );
  color: #f0dfbd;
}
.nasheed-refreshed .toolbar {
  margin: 0 4px 10px;
}
.nasheed-refreshed .toolbar-label {
  color: #aeb5a9;
}
.nasheed-refreshed .view-toggle {
  border-color: rgba(210, 190, 150, 0.16);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
}
.nasheed-refreshed .nsf-columns {
  display: none;
}
.nasheed-refreshed #playlist {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 0 12px;
}
.nasheed-refreshed .track {
  position: relative;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.nasheed-refreshed .track::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -4px;
  left: 62px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(210, 195, 160, 0.13),
    transparent 88%
  );
  pointer-events: none;
}
.nasheed-refreshed .track:hover {
  border-color: rgba(201, 188, 151, 0.13);
  border-radius: 20px;
  background: linear-gradient(
    100deg,
    rgba(119, 87, 49, 0.1),
    rgba(92, 116, 86, 0.06)
  );
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
}
.nasheed-refreshed .track.playing,
.nasheed-refreshed .track.current-track {
  border-color: rgba(214, 188, 130, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 4% 50%,
      rgba(225, 193, 125, 0.16),
      transparent 22%
    ),
    linear-gradient(100deg, rgba(75, 57, 36, 0.78), rgba(34, 49, 38, 0.74));
  box-shadow:
    inset 3px 0 #dec280,
    0 16px 34px rgba(0, 0, 0, 0.18);
  transform: none;
}
.nasheed-refreshed .track.playing::after,
.nasheed-refreshed .track.current-track::after {
  opacity: 0;
}
.nasheed-refreshed .track-toggle {
  border: 1px solid rgba(211, 187, 133, 0.18);
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(217, 187, 128, 0.09),
    rgba(156, 175, 145, 0.05)
  );
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
.nasheed-refreshed .track:hover .track-toggle,
.nasheed-refreshed .track.playing .track-toggle,
.nasheed-refreshed .track.current-track .track-toggle {
  border-color: rgba(221, 193, 133, 0.42);
  transform: scale(1.06);
}
.nasheed-refreshed .track-title {
  color: #eeeae0;
  font:
    600 18px/1.25 "Playfair Display",
    serif;
  letter-spacing: -0.01em;
}
.nasheed-refreshed .track.playing .track-title,
.nasheed-refreshed .track.current-track .track-title {
  color: #f1eadc;
}
.nasheed-refreshed .nsf-track-meta,
.nasheed-refreshed .track-dur {
  color: #aeb6aa;
}
.nasheed-refreshed .track-menu-btn {
  border: 1px solid rgba(193, 197, 178, 0.12);
  border-radius: 50%;
  background: rgba(14, 19, 15, 0.52);
  color: #b8c1b5;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.nasheed-refreshed .track-menu-btn:hover {
  border-color: rgba(217, 187, 128, 0.34);
  background: rgba(217, 187, 128, 0.08);
  transform: rotate(4deg);
}
.nasheed-refreshed #main-player {
  border-color: rgba(217, 187, 128, 0.25);
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(217, 187, 128, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(119, 143, 109, 0.12),
      transparent 42%
    ),
    linear-gradient(150deg, rgba(45, 35, 24, 0.97), rgba(20, 30, 24, 0.98));
}
.nasheed-refreshed .nsf-mini {
  border-color: rgba(217, 187, 128, 0.3);
  background: linear-gradient(
    110deg,
    rgba(58, 43, 26, 0.98),
    rgba(21, 33, 25, 0.98)
  );
}
@media (max-width: 820px) {
  .nasheed-refreshed .nsf-workspace {
    padding-inline: 18px;
  }
  .nasheed-refreshed .nsf-library::before,
  .nasheed-refreshed .nsf-library::after {
    width: 70%;
    opacity: 0.11;
  }
  .nasheed-refreshed .nsf-library::before { left: 12%; }
  .nasheed-refreshed .nsf-library::after { right: 12%; }
  .nasheed-refreshed .nsf-tab-row {
    padding: 2px 0 0;
    flex-wrap: nowrap;
  }
  .nasheed-refreshed #browseTabs {
    gap: 20px;
  }
  .nasheed-refreshed #browseTabs button {
    font-size: 18px;
  }
  .nasheed-refreshed .nsf-queue-open {
    flex: none;
    margin-left: auto;
    font-size: 11px;
  }
  .nasheed-refreshed .list-wrap {
    padding: 20px 0 0;
  }
  .nasheed-refreshed .search-inner {
    padding-inline: 16px;
  }
  .nasheed-refreshed .track {
    min-height: 72px;
    padding: 12px 8px;
    border-radius: 17px;
  }
  .nasheed-refreshed .track:hover {
    transform: none;
  }
  .nasheed-refreshed .track::after {
    left: 50px;
  }
  .nasheed-refreshed .track-title {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nasheed-refreshed .nsf-library::before,
  .nasheed-refreshed .nsf-library::after {
    animation: none;
  }
  .nasheed-refreshed .track,
  .nasheed-refreshed .track-toggle {
    transition: none;
  }
}
.login-container {
  max-width: 460px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.login-container::before {
  display: none;
}
.category-card {
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.category-card:hover {
  transform: none;
  background: #20271e;
  border-color: #a9bd9e55;
}
.category-card .cat-desc {
  color: #b9c2b2;
  line-height: 1.8;
}
.category-card .category-card-footer {
  border-top-color: #ffffff18;
}
.m-badge.school {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-color: #ffffff20;
  color: #c7cebf;
  padding: 3px 5px;
}
/* One shared gold/sage palette: warm accents over green-black surfaces. */
:root {
  --bb-surface: #171d17;
  --bb-raised: #22291f;
  --bb-gold: #d9bb80;
  --bb-sage: #adc1a2;
  --bb-text: #eeeade;
  --bb-muted: #b7bcae;
  --bb-border: rgba(202, 190, 151, 0.22);
  --bb-panel:
    radial-gradient(ellipse at 100% 0%, #d9bb800b, transparent 65%),
    linear-gradient(145deg, #25291eef, #141b16f5);
}
html[data-nbk-theme] {
  --bb-surface: rgb(var(--nbk-surface-rgb));
  --bb-raised: rgb(var(--nbk-elevated-rgb));
  --bb-gold: var(--nbk-theme-accent);
  --bb-sage: var(--nbk-companion-color);
  --bb-text: var(--nbk-foreground);
  --bb-muted: var(--nbk-muted);
  --bb-border: rgba(var(--nbk-theme-rgb), 0.22);
  --bb-panel: linear-gradient(
    145deg,
    rgb(var(--nbk-elevated-rgb)),
    rgb(var(--nbk-surface-rgb))
  );
}
:is(
  .home-editorial .hm-deck,
  .home-editorial .hm-destination,
  .home-editorial .hm-community-story,
  .home-editorial .hm-name-card,
  .home-editorial .hm-suggest-card,
  .hm-coming-cards article,
  .hm-plan,
  .category-card,
  .chat-wrap,
  .dhikr-box,
  .account-polished .card,
  .login-container :is(.login-form, .register-form, .verify-form)
) {
  background: var(--bb-panel);
  border-color: var(--bb-border);
  color: var(--bb-text);
}
.home-editorial
  :is(
    .hm-plan h3,
    .hm-destination h3,
    .hm-section-head h2,
    .hm-community-story h2,
    .hm-name-card h3
  ),
.nasheed-refreshed :is(.track-title, .playlist-tile-title),
.quran-refreshed .surah-title {
  color: var(--bb-text);
}
.home-editorial :is(.hm-eyebrow, .hm-text-link),
.nasheed-refreshed .nsf-eyebrow {
  color: var(--bb-gold);
}
.home-editorial
  :is(.hm-intro > p, .hm-destination-copy p, .hm-community-story p, .hm-plan p),
.nasheed-refreshed :is(.nsf-track-meta, .toolbar-label),
.quran-refreshed .surah-file-reference {
  color: var(--bb-muted);
}
.hm-plan-plus {
  border-color: #d9bb805c;
}
.hm-plan li::before,
.listening-rank {
  color: var(--bb-sage);
}
.quran-refreshed .surah-row.active {
  background: linear-gradient(90deg, #c6b77f12, #adc1a20b);
}
.nasheed-refreshed .featured-playlist-tile,
.nasheed-refreshed .featured-playlist-tile.featured-calm {
  background: var(--bb-panel);
  border: 1px solid var(--bb-border);
}
.nasheed-refreshed .featured-playlist-tile .featured-playlist-art {
  background:
    radial-gradient(circle at 40% 25%, #d9bb801b, transparent 70%), #182019;
  border-color: var(--bb-border);
}
.nasheed-refreshed .featured-calm .featured-playlist-art {
  background:
    radial-gradient(circle at 40% 25%, #adc1a225, transparent 70%), #182019;
}
/* Phone playlists: predictable cover/text columns and no oversized card minimum. */
@media (max-width: 820px) {
  .nasheed-refreshed #playlistManager {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 18px 12px !important;
  }
  .nasheed-refreshed #featuredPlaylistsList,
  .nasheed-refreshed #playlistManagerList {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    width: 100%;
    min-width: 0;
  }
  .nasheed-refreshed .featured-playlist-tile {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }
  .nasheed-refreshed .featured-playlist-tile .featured-playlist-art {
    width: 88px;
    height: 88px;
    aspect-ratio: 1;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
  }
  .nasheed-refreshed .featured-playlist-art .featured-badge {
    display: none;
  }
  .nasheed-refreshed .featured-playlist-art .featured-play-button {
    width: 38px;
    height: 38px;
    right: 6px;
    bottom: 6px;
  }
  .nasheed-refreshed .featured-playlist-tile .playlist-tile-title {
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: break-word;
    margin: 0 0 8px;
  }
  .nasheed-refreshed .playlist-tile-body {
    min-width: 0;
  }
  .nasheed-refreshed .playlist-tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    font-size: 11px;
  }
  .nasheed-refreshed #playlistManagerList .playlist-tile {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--bb-border);
    border-radius: 16px;
    background: var(--bb-panel);
  }
  .nasheed-refreshed #playlistManagerList .playlist-tile-art {
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 12px;
  }
  .nasheed-refreshed #playlistManagerList .playlist-tile-title {
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .nasheed-refreshed .playlist-tile-actions {
    flex-wrap: wrap;
  }
  .nasheed-refreshed .playlist-tile-actions button {
    min-width: 44px;
    min-height: 44px;
  }
  .nasheed-refreshed .playlist-new-row {
    display: flex;
    width: 100%;
    gap: 8px;
    margin: 0 0 18px;
  }
  .nasheed-refreshed .playlist-new-row input {
    flex: 1;
    width: 0;
    min-width: 0;
    font-size: 16px;
  }
  .nasheed-refreshed .playlist-new-row button {
    flex: 0 0 48px;
  }
  .nasheed-refreshed .playlist-detail-top {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }
  .nasheed-refreshed .playlist-detail-cover {
    width: 76px;
    height: 76px;
    min-width: 0;
  }
  .nasheed-refreshed .playlist-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nasheed-refreshed .playlist-tile:hover {
    transform: none;
  }
  .nasheed-refreshed .featured-playlist-tile:hover {
    transform: none;
  }
}

/* Quran library: one composed surface instead of a flat green override. */
.quran-refreshed .player-wrap > .desktop-left {
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(216, 187, 128, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(217, 187, 128, 0.07),
      transparent 35%
    ),
    linear-gradient(145deg, rgba(29, 35, 27, 0.97), rgba(18, 23, 19, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs {
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs button {
  min-height: 48px;
  padding: 0 2px 11px;
  color: #aeb5aa;
  font-size: 20px;
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs button.active {
  color: #eee7d8;
  border-color: var(--bb-gold);
}
.quran-refreshed .qrf-search {
  min-height: 46px;
  box-sizing: border-box;
  border-color: rgba(213, 190, 143, 0.2);
  background: rgba(11, 15, 12, 0.62);
}
.quran-refreshed .qrf-search input {
  color: var(--bb-text);
  font-size: 13px;
}
.quran-refreshed .qrf-filters button {
  border-color: rgba(210, 190, 150, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: #bcc2b7;
}
.quran-refreshed .qrf-filters button[aria-pressed="true"] {
  border-color: rgba(217, 187, 128, 0.5);
  background: linear-gradient(
    135deg,
    rgba(217, 187, 128, 0.13),
    rgba(173, 193, 162, 0.08)
  );
  color: #f0dfbd;
}
.quran-refreshed:not(.quran-playlists) #surahList {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}
.quran-refreshed:not(.quran-playlists) .surah-row {
  min-height: 76px;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.quran-refreshed:not(.quran-playlists) .surah-row:hover {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
  transform: none;
}
.quran-refreshed:not(.quran-playlists) .surah-row.active {
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(
    90deg,
    rgba(217, 187, 128, 0.12),
    rgba(173, 193, 162, 0.055)
  );
  box-shadow: inset 3px 0 var(--bb-gold);
}
.quran-refreshed:not(.quran-playlists) .surah-num {
  border-color: rgba(217, 187, 128, 0.2);
  background: rgba(217, 187, 128, 0.045);
  color: #c7b17f;
}
.quran-refreshed:not(.quran-playlists) .surah-title {
  color: #eeeae0;
  font-size: 20px;
}
.quran-refreshed:not(.quran-playlists) .surah-file-reference {
  color: #aeb6aa;
}
.quran-refreshed:not(.quran-playlists) .surah-badge {
  border-color: rgba(217, 187, 128, 0.32);
  background: rgba(217, 187, 128, 0.08);
  color: #ddc58f;
}
.quran-refreshed:not(.quran-playlists) .surah-badge.maqam,
.quran-refreshed:not(.quran-playlists) .surah-badge[data-maqam] {
  border-color: rgba(173, 193, 162, 0.32);
  background: rgba(173, 193, 162, 0.09);
  color: #c3d2bb;
}
.quran-refreshed .player-wrap > .desktop-right .player-panel {
  border-color: rgba(217, 187, 128, 0.25);
  background:
    radial-gradient(
      circle at 75% 10%,
      rgba(217, 187, 128, 0.1),
      transparent 34%
    ),
    linear-gradient(155deg, rgba(31, 37, 28, 0.98), rgba(17, 23, 19, 0.99));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.quran-refreshed .player-wrap > .desktop-right .qrf-cover {
  border-color: rgba(217, 187, 128, 0.18);
}
.quran-refreshed .player-wrap > .desktop-right .ambience-row button {
  border-color: rgba(208, 190, 151, 0.18);
  background: rgba(20, 26, 21, 0.75);
}
.quran-refreshed .player-wrap > .desktop-right .ambience-row button.active {
  border-color: rgba(217, 187, 128, 0.58);
  color: var(--bb-gold);
  background: linear-gradient(
    145deg,
    rgba(217, 187, 128, 0.12),
    rgba(173, 193, 162, 0.08)
  );
}
@media (max-width: 820px) {
  .quran-refreshed .player-wrap > .desktop-left {
    padding: 15px 12px;
    border-radius: 18px;
  }
  .quran-refreshed .player-wrap > .desktop-left #browseTabs {
    gap: 20px;
  }
  .quran-refreshed .player-wrap > .desktop-left #browseTabs button {
    font-size: 18px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-row {
    min-height: 72px;
    padding: 13px 4px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-title {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  .nasheed-refreshed .featured-playlist-tile {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }
  .nasheed-refreshed .featured-playlist-tile .featured-playlist-art {
    width: 72px;
    height: 72px;
  }
  .nasheed-refreshed .featured-playlist-tile .playlist-tile-title {
    font-size: 16px;
  }
}
.quran-refreshed .player-panel,
.quran-refreshed .playlist-card,
.plan-card {
  background: var(--bb-panel);
  border-color: var(--bb-border);
  color: var(--bb-text);
}
.quran-refreshed .qrf-player-label {
  color: var(--bb-gold);
}
@media (max-width: 820px) {
  .nasheed-refreshed #playlistManagerList .playlist-tile-meta {
    align-items: flex-start;
  }
  .nasheed-refreshed #playlistManagerList .playlist-tile-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 4px;
  }
}
@media (max-width: 820px) {
  .quran-refreshed .qp-playlist-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .quran-refreshed .qp-tile {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--bb-border);
    border-radius: 16px;
    background: var(--bb-panel);
  }
  .quran-refreshed .qp-tile-art {
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 12px;
  }
  .quran-refreshed .qp-tile-body {
    min-width: 0;
  }
  .quran-refreshed .qp-tile-title {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: var(--bb-text);
  }
  .quran-refreshed .qp-tile-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
  .quran-refreshed .qp-tile-count {
    color: var(--bb-muted);
  }
  .quran-refreshed .qp-tile-actions {
    width: 100%;
  }
  .quran-refreshed .qp-tile-actions button {
    min-width: 44px;
    min-height: 44px;
  }
  .quran-refreshed .qp-tile:hover {
    transform: none;
  }
}

/* Quran editorial library: open composition, warm brown/sage depth. */
.quran-refreshed .player-wrap > .desktop-left {
  position: relative;
  isolation: isolate;
  padding: 10px 4px 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.quran-refreshed .player-wrap > .desktop-left::before,
.quran-refreshed .player-wrap > .desktop-left::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.14;
  animation: quran-library-aura 14s ease-in-out infinite alternate;
}
.quran-refreshed .player-wrap > .desktop-left::before {
  top: 4%;
  left: -12%;
  background: #7b5d35;
}
.quran-refreshed .player-wrap > .desktop-left::after {
  right: -10%;
  bottom: 12%;
  background: #61715a;
  animation-delay: -7s;
}
@keyframes quran-library-aura {
  from {
    transform: translate3d(-3%, -2%, 0) scale(0.94);
  }
  to {
    transform: translate3d(4%, 5%, 0) scale(1.08);
  }
}
.quran-refreshed .player-wrap > .desktop-left > * {
  position: relative;
  z-index: 1;
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs {
  width: fit-content;
  gap: 30px;
  margin: 0 0 22px;
  border: 0;
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs button {
  position: relative;
  min-height: 46px;
  padding: 0 1px 8px;
  border: 0;
  color: #a7afa4;
  font-size: 21px;
  transition: color 0.2s ease;
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d9bb80, #9caf91);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs button.active {
  color: #f0e9dc;
  border: 0;
}
.quran-refreshed .player-wrap > .desktop-left #browseTabs button.active::after {
  transform: scaleX(1);
}
.quran-refreshed .qrf-tools {
  padding: 18px;
  border: 1px solid rgba(204, 187, 145, 0.16);
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(44, 35, 24, 0.72),
    rgba(24, 33, 27, 0.76)
  );
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}
.quran-refreshed .qrf-search {
  min-height: 48px;
  border-color: rgba(218, 192, 139, 0.2);
  border-radius: 99px;
  background: rgba(10, 14, 11, 0.56);
  padding-inline: 20px;
}
.quran-refreshed .qrf-filters {
  margin: 14px 0 0;
}
.quran-refreshed .qrf-filters button {
  min-height: 38px;
  padding-inline: 14px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.035);
}
.quran-refreshed .qrf-filters button:hover {
  color: #e8decd;
  background: rgba(217, 187, 128, 0.08);
}
.quran-refreshed .qrf-results {
  margin: 14px 4px 8px;
  color: #aeb5a9;
}
.quran-refreshed:not(.quran-playlists) #surahListHeader {
  padding: 16px 10px 9px;
}
.quran-refreshed:not(.quran-playlists) #surahList {
  gap: 7px;
  padding-top: 4px;
  border: 0;
}
.quran-refreshed:not(.quran-playlists) .surah-row {
  position: relative;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.quran-refreshed:not(.quran-playlists) .surah-row::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -4px;
  left: 62px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(210, 195, 160, 0.13),
    transparent 88%
  );
  pointer-events: none;
}
.quran-refreshed:not(.quran-playlists) .surah-row:hover {
  border-color: rgba(201, 188, 151, 0.13);
  border-radius: 20px;
  background: linear-gradient(
    100deg,
    rgba(119, 87, 49, 0.1),
    rgba(92, 116, 86, 0.06)
  );
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
}
.quran-refreshed:not(.quran-playlists) .surah-row.active {
  border-color: rgba(214, 188, 130, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 4% 50%,
      rgba(225, 193, 125, 0.16),
      transparent 22%
    ),
    linear-gradient(100deg, rgba(75, 57, 36, 0.78), rgba(34, 49, 38, 0.74));
  box-shadow:
    inset 3px 0 #dec280,
    0 16px 34px rgba(0, 0, 0, 0.18);
  transform: none;
}
.quran-refreshed:not(.quran-playlists) .surah-row.active::after {
  opacity: 0;
}
.quran-refreshed:not(.quran-playlists) .surah-num {
  width: 34px;
  min-height: 34px;
  border-color: rgba(211, 187, 133, 0.18);
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(217, 187, 128, 0.09),
    rgba(156, 175, 145, 0.05)
  );
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
.quran-refreshed:not(.quran-playlists) .surah-row:hover .surah-num,
.quran-refreshed:not(.quran-playlists) .surah-row.active .surah-num {
  border-color: rgba(221, 193, 133, 0.42);
  transform: scale(1.06);
}
.quran-refreshed:not(.quran-playlists) .surah-title {
  font-size: 21px;
  letter-spacing: -0.01em;
}
.quran-refreshed:not(.quran-playlists) .surah-file-reference {
  margin-top: 3px;
  color: #aeb6aa;
}
.quran-refreshed .surah-menu-btn {
  border-color: rgba(193, 197, 178, 0.12);
  background: rgba(14, 19, 15, 0.52);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.quran-refreshed .surah-menu-btn:hover {
  border-color: rgba(217, 187, 128, 0.34);
  background: rgba(217, 187, 128, 0.08);
  transform: rotate(4deg);
}
.quran-refreshed .player-wrap > .desktop-right .player-panel {
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(217, 187, 128, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(119, 143, 109, 0.12),
      transparent 42%
    ),
    linear-gradient(150deg, rgba(45, 35, 24, 0.97), rgba(20, 30, 24, 0.98));
}
@media (max-width: 820px) {
  .quran-refreshed .player-wrap > .desktop-left {
    padding: 2px 0 14px;
  }
  .quran-refreshed .player-wrap > .desktop-left::before,
  .quran-refreshed .player-wrap > .desktop-left::after {
    /* Keep animated decoration inside the mobile layout viewport. */
    width: 70%;
    opacity: 0.11;
  }
  .quran-refreshed .player-wrap > .desktop-left::before {
    left: 12%;
  }
  .quran-refreshed .player-wrap > .desktop-left::after {
    right: 12%;
  }
  .quran-refreshed .qrf-tools {
    padding: 14px;
    border-radius: 18px;
  }
  .quran-refreshed:not(.quran-playlists) #surahListHeader {
    padding-inline: 4px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-row {
    min-height: 72px;
    padding: 12px 8px;
    border-radius: 17px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-row:hover {
    transform: none;
  }
  .quran-refreshed:not(.quran-playlists) .surah-row::after {
    left: 50px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-title {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quran-refreshed .player-wrap > .desktop-left::before,
  .quran-refreshed .player-wrap > .desktop-left::after {
    animation: none;
  }
  .quran-refreshed:not(.quran-playlists) .surah-row,
  .quran-refreshed:not(.quran-playlists) .surah-num {
    transition: none;
  }
}

.login-container :is(.login-form, .register-form, .verify-form) {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.login-container .login-header {
  margin-bottom: 2rem;
}
.login-container .form-group {
  margin-bottom: 1.15rem;
}
.login-container .form-group input:not([type="checkbox"]) {
  min-height: 54px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}
.login-container .login-buttons {
  margin-top: 1.4rem;
}
.login-container .login-btn {
  min-height: 52px;
}
.login-container .toggle-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 1.25rem;
  line-height: 1.7;
}
@media (max-width: 560px) {
  .login-container .login-header {
    margin-bottom: 1.5rem;
  }
}
