html.preload *,
html.preload *::before,
html.preload *::after {
  transition: none !important;
  animation: none !important;
}

html[data-theme="dark"] body {
  background-color: #1e1f23;
  color: #f1f1f1;
}

html[data-theme="dark"] .wallet-btn {
  background: #0098ea;
  border-color: #0098ea;
  color: #ffffff;
}

html[data-theme="dark"] .wallet-balances {
  color: #f1f1f1;
}

html[data-theme="dark"] .now-playing,
html[data-theme="dark"] .tracks-toggle,
html[data-theme="dark"] .controls button,
html[data-theme="dark"] ul#tracks li,
html[data-theme="dark"] .dropdown-panel,
html[data-theme="dark"] .dropdown-list li,
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .track-search,
html[data-theme="dark"] .player-bar,
html[data-theme="dark"] .player-btn,
html[data-theme="dark"] .mode-btn,
html[data-theme="dark"] .theme-btn {
  background: #2a2c31;
  border-color: #3a3c42;
  color: #f1f1f1;
}

html[data-theme="dark"] .btn-icon,
html[data-theme="dark"] .now-playing-inner,
html[data-theme="dark"] .player-time {
  color: #f1f1f1;
}

html[data-theme="dark"] .player-btn .icon-svg {
  fill: #fff;
}

html[data-theme="dark"] .mode-btn.active {
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #repeatBtn.active {
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .track-search::placeholder {
  color: #9a9a9a !important;
  opacity: 1;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    color: #222;

    --page-top-offset: calc(env(safe-area-inset-top, 0px) + 36px);
    --tracks-top: 12px;
    --tracks-side: 12px;
    --tracks-bottom: 12px;
    --safe-b: env(safe-area-inset-bottom, 0px);

    --tracks-open-ms: 320ms;
    --tracks-close-ms: 190ms;

    --tracks-bounce: cubic-bezier(0.20, 1.25, 0.30, 1);
    --tracks-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    --tracks-btn-h: 50px;
    --tracks-search-h: 56px;
    --tracks-gap: 6px;

    --tracks-panel-in: 18px;

    --tracks-drag-dy: 0px;
    --tracks-drag-opacity: 1;

    --tracks-closed-y: calc((100dvh - var(--tracks-top) - var(--tracks-bottom) - var(--safe-b)) - var(--tracks-btn-h));
    --tracks-ty: var(--tracks-closed-y);

    --tracks-item-in-y: 16px;
    --tracks-item-in-scale: 0.985;
    --tracks-item-ms: 420ms;
    --tracks-item-opacity-ms: 220ms;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 12px;
    padding-top: var(--page-top-offset);
    display: flex;
    flex-direction: column;
    padding-bottom: calc(12px + var(--tracks-btn-h) + 12px + var(--safe-b));
}

body.tracks-open {
    overflow: hidden;
    --tracks-ty: 0px;
}

body.tracks-closing { --tracks-ty: var(--tracks-closed-y); }

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wallet-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 10px 0;
}

.wallet-col {
    flex: 1 1 0;
    min-width: 0;
}

.wallet-btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #0098ea;
    background: #0098ea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #ffffff;
    transition: transform 0.08s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-btn:focus,
.wallet-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.wallet-btn:active {
    background-color: #0098ea !important;
    border-color: #0098ea !important;
    color: #ffffff !important;
    transform: scale(0.98);
}

.wallet-balances {
    width: 100%;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
    padding: 2px 0;
    font-size: 14px;
    font-weight: 900;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
}

.wallet-balance-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    line-height: 1.15;
}

.wallet-balance-label {
    opacity: 1;
    color: inherit;
}

#walletTonBalance {
    color: inherit;
}

body.dark .wallet-balances {
    color: #f1f1f1;
}

.wallet-balances,
.wallet-balances * {
  animation: none !important;
  transition-property: none !important;
  transition-duration: 0s !important;
  will-change: auto !important;
}

@media (max-width: 480px) {
    .wallet-btn {
        font-size: 13px;
        padding: 0 10px;
    }

    .wallet-balances {
        font-size: 13px;
    }
}

.site-title {
    flex: 1;
    text-align: center;
    margin: 0;
    line-height: 1;
}

.site-logo {
    display: block;
    height: 34px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.logo-juke { letter-spacing: 1px; }
.logo-box {
    letter-spacing: 1px;
    margin-left: -1px;
}

@media (max-width: 480px){
  .site-title .logo-box{
    padding: 5px 9px;
    border-radius: 7px;
    transform: translateY(1px);
  }
}

.lang-btn,
.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.lang-btn {
    font-weight: 900;
    color: #000;
    font-size: 14px;
}

.theme-btn:focus,
.theme-btn:focus-visible,
.lang-btn:focus,
.lang-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.lang-btn:active,
.theme-btn:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: scale(0.93);
}

body.dark .theme-btn {
    background: #2a2c31;
    border-color: #3a3c42;
}

.theme-btn .theme-icon-svg {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
}

.theme-btn .theme-icon-stack {
    position: relative;
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
}

.theme-btn .theme-icon-layer {
    position: absolute;
    inset: 0;
    width: 22px;
    height: 22px;
    transition: opacity 80ms linear;
}

.theme-btn .moon-icon {
    opacity: 1;
    fill: #000000;
    color: #000000;
}

.theme-btn .sun-icon {
    opacity: 0;
    fill: #ff8c00;
    color: #ff8c00;
}

body.dark .theme-btn .moon-icon { opacity: 0; }
body.dark .theme-btn .sun-icon { opacity: 1; }

.mode-switch {
    display: flex;
    gap: 10px;
    margin: 0 0 10px 0;
}

.mode-btn {
    flex: 1 1 0;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.4px;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.mode-btn:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: scale(0.98);
}

.mode-btn.active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
}

.now-playing {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.now-playing::before,
.now-playing::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16px;
    background: inherit;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}
.now-playing::before { left: 0; }
.now-playing::after { right: 0; }

.now-playing-inner {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
    position: relative;
    z-index: 1;
}

.now-playing-spacer { display: none !important; }

@keyframes nowPlayingPingPong {
    0%   { transform: translateX(var(--np-scroll-shift)); }
    50%  { transform: translateX(calc(var(--np-scroll-shift) * -1)); }
    100% { transform: translateX(var(--np-scroll-shift)); }
}

.now-playing-inner.scroll {
    --np-scroll-shift: calc((var(--np-scroll-left, 0px) / 2) + 20px);
    animation: nowPlayingPingPong 6s ease-in-out infinite;
    will-change: transform;
}

.player-bar {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
}

.player-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #000;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.player-btn .icon-svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: #000;
    flex: 0 0 auto;
}

body.dark .player-btn .icon-svg { fill: #fff; }
.player-btn .icon-svg,
body.dark .player-btn .icon-svg { transition: none !important; }

.player-btn:focus,
.player-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.player-btn:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: scale(0.93);
}

.player-time {
    font-size: 13px;
    font-weight: 800;
    color: #222;
    white-space: nowrap;
    user-select: none;
    flex: 0 0 auto;
}

.player-time-sep { margin: 0 4px; opacity: 0.7; }

.seek-bar {
    flex: 1 1 auto;
    min-width: 0;
    height: 6px;
    accent-color: #ff8c00;
}

.volume-bar {
    flex: 0 0 auto;
    height: 6px;
    accent-color: #ff8c00;
    width: min(120px, 34vw);
    max-width: 140px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.controls button {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    outline: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    line-height: 1;
}

.controls button:focus,
.controls button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    color: #000;
    position: static;
}

@media (hover: hover) and (pointer: fine) {
  .controls button:hover { background-color: #ffffff; }
}

.controls button:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: scale(0.93);
}
.controls button:active .btn-icon { color: #ffffff !important; }

#repeatBtn .icon-svg {
    width: 24px;
    height: 24px;
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
}

#repeatBtn.active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
}

#prevBtn .btn-icon { transform: translateX(-0.5px); }
#nextBtn .btn-icon { transform: translateX(1.5px); }

#noticeLine,
#modeNoticeLine,
#billingNoticeLine {
    min-height: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #8c8c8c;
    user-select: none;
    pointer-events: none;
    transition: none !important;
}

#noticeLine {
  text-align: center;
  margin-top: 22px;
  min-height: 1.2em;
}

#modeNoticeLine {
  text-align: center;
  margin-top: 0px;
  min-height: 1.2em;
}

#billingNoticeLine {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px);
  transform: translateX(-50%);
  width: min(500px, calc(100vw - 24px));
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  color: #8c8c8c !important;
  z-index: 10001;
  transition: color 0s linear, opacity 0s linear !important;
  animation: none !important;
  will-change: auto !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

html[data-theme="dark"] #noticeLine,
html[data-theme="dark"] #modeNoticeLine,
html[data-theme="dark"] #billingNoticeLine,
body.dark #noticeLine,
body.dark #modeNoticeLine,
body.dark #billingNoticeLine {
  color: #8c8c8c !important;
}

#noticeLine,
#modeNoticeLine,
#billingNoticeLine,
#noticeLine *,
#modeNoticeLine *,
#billingNoticeLine * {
  transition-property: color, opacity !important;
  transition-duration: 0s !important;
  animation: none !important;
  color: #8c8c8c !important;
  will-change: auto !important;
}

.tracks-toggle {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}

.tracks-toggle:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: scale(0.99);
}

.tracks-toggle[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.tracks-chevron {
    font-size: 14px;
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.tracks-toggle.open .tracks-chevron { transform: rotate(0deg); }

.tracks-overlay {
    position: fixed;
    inset: 0;
    z-index: 1499;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.00);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 170ms linear, background-color 170ms linear, backdrop-filter 220ms ease-out, -webkit-backdrop-filter 220ms ease-out;
    will-change: opacity, backdrop-filter;
}

body.tracks-open .tracks-overlay {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.tracks-closing .tracks-overlay {
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.00);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity var(--tracks-close-ms) linear, background-color var(--tracks-close-ms) linear, backdrop-filter var(--tracks-close-ms) ease-out, -webkit-backdrop-filter var(--tracks-close-ms) ease-out;
}

body.dark .tracks-overlay { background: rgba(0,0,0,0.00); }
body.dark.tracks-open .tracks-overlay { background: rgba(0,0,0,0.38); }
body.tracks-open.tracks-dragging .tracks-overlay {
    opacity: var(--tracks-drag-opacity);
    backdrop-filter: blur(calc(10px * var(--tracks-drag-opacity)));
    -webkit-backdrop-filter: blur(calc(10px * var(--tracks-drag-opacity)));
}
body.dark.tracks-open.tracks-dragging .tracks-overlay { background: rgba(0,0,0, calc(0.38 * var(--tracks-drag-opacity))); }
body:not(.dark).tracks-open.tracks-dragging .tracks-overlay { background: rgba(0,0,0, calc(0.12 * var(--tracks-drag-opacity))); }

.track-search-top { display: none; }
.tracks-panel { display: none; }

ul#tracks {
    box-sizing: border-box;
    list-style: none;
    padding: 0 8px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

ul#tracks li {
    padding: 14px;
    background-color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    text-align: center;
    transition: background-color 0.2s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    -ms-user-select: none;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

ul#tracks li,
ul#tracks li * {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

html, body {
    -webkit-touch-callout: none;
}

@media (hover: hover) and (pointer: fine) {
    ul#tracks li:hover { background-color: #e6e6e6; }
}
ul#tracks li:active {
    background-color: #ffffff !important;
    color: inherit !important;
    border-color: #eee !important;
}
ul#tracks li.active-track {
    background-color: #ff8c00;
    color: #ffffff;
    border-color: #ff8c00;
}
ul#tracks li.press-armed {
    background-color: #e6e6e6;
    color: #222;
    border-color: #eee;
}
body.dark ul#tracks li.press-armed {
    background-color: #3a3c42;
    color: #f1f1f1;
    border-color: #3a3c42;
}
ul#tracks li.pending-track {
    background-color: #e6e6e6;
    color: #222;
}
body.dark ul#tracks li.pending-track {
    background-color: #3a3c42;
    border-color: #3a3c42;
    color: #f1f1f1;
}

ul#tracks li .track-artist,
ul#tracks li .track-title,
ul#tracks li .track-single {
    display: block;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

ul#tracks li .track-artist.scrolling,
ul#tracks li .track-title.scrolling { text-overflow: clip; }

ul#tracks li .track-text {
    display: inline-block;
    padding: 0 2px;
    will-change: transform;
}

@keyframes trackMarquee {
    0%   { transform: translateX(0px); }
    50%  { transform: translateX(calc(var(--scroll-left) * -1)); }
    100% { transform: translateX(0px); }
}

ul#tracks li .track-text.scroll { animation: trackMarquee 6s ease-in-out infinite; }
ul#tracks li .track-artist { font-weight: 900; }
ul#tracks li .track-title { font-weight: 700; opacity: 0.85; }
ul#tracks li .track-single {
    font-weight: 800;
    min-height: 2.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
ul#tracks li.track-video .track-single {
    min-height: 1.15em;
    line-height: 1.15;
}

body.tracks-open #tracks li {
    opacity: 0;
    transform: translate3d(0, var(--tracks-item-in-y), 0) scale(var(--tracks-item-in-scale));
    transition: transform var(--tracks-item-ms) var(--tracks-bounce), opacity var(--tracks-item-opacity-ms) linear, background-color 0.2s ease;
    will-change: transform, opacity;
}
body.tracks-open.tracks-items-ready #tracks li {
    opacity: 1;
    transform: translate3d(0, 0px, 0) scale(1);
}
body.tracks-closing #tracks li { transition-delay: 0ms !important; }

@media (prefers-reduced-motion: reduce){
  body.tracks-open #tracks li,
  body.tracks-open.tracks-items-ready #tracks li {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.dropdown-wrap {
    position: relative;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

#playlistsToggle {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1402;
}

.dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 1398;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.00);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 170ms linear, background-color 170ms linear, backdrop-filter 220ms ease-out, -webkit-backdrop-filter 220ms ease-out;
    will-change: opacity, backdrop-filter;
}

.dropdown-overlay.open {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark .dropdown-overlay { background: rgba(0,0,0,0.00); }
body.dark .dropdown-overlay.open { background: rgba(0,0,0,0.38); }

.dropdown-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    z-index: 1400;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: 320px;
    overflow: auto;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    pointer-events: none;
    transition: transform 220ms ease-out, opacity 170ms linear;
    will-change: transform, opacity;
}

.dropdown-panel.open {
    opacity: 1;
    transform: translate3d(0, 0px, 0);
    pointer-events: auto;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.dropdown-list li {
    padding: 14px;
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    text-align: center;
    transition: background-color 0.2s ease;
    border: 1px solid #eee;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
    .dropdown-list li:hover { background-color: #e6e6e6; }
}
.dropdown-list li:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
}
.dropdown-list li.active-playlist {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #ffffff;
}
body.dark .dropdown-list li.active-playlist {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
}

.playlists-chevron {
    font-size: 14px;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}
#playlistsToggle.open .playlists-chevron { transform: rotate(180deg); }

.track-search-wrap {
    position: relative;
    width: 100%;
    margin: 0 0 10px 0;
}
.track-search-top .track-search-wrap { margin-bottom: 0 !important; }

.track-search {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 44px 12px 14px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
}

.track-search::-webkit-search-cancel-button,
.track-search::-webkit-search-decoration,
.track-search::-webkit-search-results-button,
.track-search::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.track-search::-ms-clear,
.track-search::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.track-search::placeholder {
    color: #9a9a9a !important;
    font-weight: 700;
    opacity: 1;
}
.track-search:focus { border-color: #ff8c00; }

.track-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    color: #777;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    padding: 0;
}
.track-search-clear:hover { background: rgba(0, 0, 0, 0.06); }
.track-search-clear:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(0.93);
}

body.dark {
    background-color: #1e1f23;
    color: #f1f1f1;
}

body.dark .now-playing,
body.dark .tracks-toggle,
body.dark .controls button,
body.dark ul#tracks li,
body.dark .dropdown-panel,
body.dark .dropdown-list li,
body.dark .lang-btn,
body.dark .track-search,
body.dark .player-bar,
body.dark .player-btn,
body.dark .mode-btn {
    background: #2a2c31;
    border-color: #3a3c42;
    color: #f1f1f1;
}

body.dark .now-playing-inner { color: #f1f1f1; }
body.dark .player-time { color: #f1f1f1; }
body.dark .track-search::placeholder { color: #9a9a9a !important; opacity: 1; }
body.dark .btn-icon { color: #f1f1f1; }
body.dark .controls button { color: #f1f1f1; }

@media (max-width: 480px) {
    .site-title { font-size: 34px; }
    .now-playing-inner { font-size: 14px; }
    .controls { gap: 10px; }
    .controls button { width: 50px; height: 50px; }
    .btn-icon { font-size: 24px; }
    .tracks-toggle { font-size: 15px; padding: 14px 14px; }
    .track-search { font-size: 15px; padding: 14px 44px 14px 14px; }
    .header { margin: 6px 0 18px 0; }
    .player-bar { flex-wrap: wrap; gap: 8px; padding: 10px 10px; }
    .player-btn {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        font-size: 18px;
    }
    .player-btn .icon-svg { width: 22px; height: 22px; }
    .player-time {
        font-size: 12px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .seek-bar {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        order: 10;
    }
    .volume-bar { width: min(120px, 42vw); max-width: 140px; }
}

#tracksToggle {
    position: fixed;
    top: var(--tracks-top);
    left: 50%;
    width: min(500px, calc(100vw - 24px));
    z-index: 1602;
    transform: translate3d(-50%, var(--tracks-ty), 0);
    transition: transform var(--tracks-open-ms) var(--tracks-bounce);
    will-change: transform;
    -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
}

body.tracks-closing #tracksToggle { transition: transform var(--tracks-close-ms) var(--tracks-ease); }
body.tracks-open #tracksToggle:active,
body.tracks-closing #tracksToggle:active,
body.tracks-dragging #tracksToggle:active {
    transform: translate3d(-50%, var(--tracks-ty), 0) !important;
}

body.tracks-open .track-search-top {
    display: block;
    position: fixed;
    left: 50%;
    width: min(500px, calc(100vw - 24px));
    top: calc(var(--tracks-top) + var(--tracks-btn-h) + 10px);
    z-index: 1601;
    transform: translate3d(-50%, var(--tracks-panel-in), 0);
    opacity: 0;
    transition: transform var(--tracks-open-ms) var(--tracks-bounce), opacity 160ms linear;
    will-change: transform, opacity;
}
body.tracks-open.tracks-ready .track-search-top {
    transform: translate3d(-50%, 0px, 0);
    opacity: 1;
}
body.tracks-closing .track-search-top {
    transform: translate3d(-50%, 18px, 0);
    opacity: 0;
    transition: transform var(--tracks-close-ms) var(--tracks-ease), opacity 100ms linear;
}

body.tracks-open #tracksPanel {
    display: block;
    position: fixed;
    left: 50%;
    width: min(500px, calc(100vw - 24px));
    top: calc(var(--tracks-top) + var(--tracks-btn-h) + 10px + var(--tracks-search-h) + var(--tracks-gap));
    bottom: 0;
    overflow: auto;
    z-index: 10001;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    transform: translate3d(-50%, var(--tracks-panel-in), 0);
    opacity: 0;
    transition: transform var(--tracks-open-ms) var(--tracks-bounce), opacity 160ms linear;
    will-change: transform, opacity;
}
body.tracks-open.tracks-ready #tracksPanel {
    transform: translate3d(-50%, 0px, 0);
    opacity: 1;
}
body.tracks-closing #tracksPanel {
    transform: translate3d(-50%, 26px, 0);
    opacity: 0;
    transition: transform var(--tracks-close-ms) var(--tracks-ease), opacity 100ms linear;
}

body.tracks-open.tracks-dragging #tracksToggle {
    transition: none !important;
    transform: translate3d(-50%, calc(var(--tracks-ty) + var(--tracks-drag-dy)), 0);
}
body.tracks-open.tracks-dragging .track-search-top {
    transition: none !important;
    transform: translate3d(-50%, var(--tracks-drag-dy), 0);
    opacity: var(--tracks-drag-opacity);
}
body.tracks-open.tracks-dragging #tracksPanel {
    transition: none !important;
    transform: translate3d(-50%, var(--tracks-drag-dy), 0);
    opacity: var(--tracks-drag-opacity);
}

.theme-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    clip-path: circle(0px at 0 0);
    -webkit-clip-path: circle(0px at 0 0);
    transition: clip-path 0.65s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: clip-path;
    isolation: isolate;
    background: transparent !important;
}
.theme-transition-overlay.to-dark { background: #1e1f23 !important; }
.theme-transition-overlay.to-light { background: #f4f6f9 !important; }
.theme-transition-scope { position: fixed; inset: 0; }
.theme-transition-clone {
    max-width: 500px;
    margin: 0 auto;
    padding: 12px;
    padding-top: var(--page-top-offset);
    pointer-events: none;
}
.theme-transition-overlay .light-scope,
.theme-transition-overlay .dark-scope { min-height: 100vh; }
.theme-transition-overlay .dark-scope {
    background-color: #1e1f23 !important;
    color: #f1f1f1 !important;
}
.theme-transition-overlay .dark-scope .now-playing,
.theme-transition-overlay .dark-scope .tracks-toggle,
.theme-transition-overlay .dark-scope .controls button,
.theme-transition-overlay .dark-scope ul#tracks li,
.theme-transition-overlay .dark-scope .dropdown-panel,
.theme-transition-overlay .dark-scope .dropdown-list li,
.theme-transition-overlay .dark-scope .lang-btn,
.theme-transition-overlay .dark-scope .theme-btn,
.theme-transition-overlay .dark-scope .track-search,
.theme-transition-overlay .dark-scope .track-search-clear,
.theme-transition-overlay .dark-scope .bag-search-input,
.theme-transition-overlay .dark-scope .bag-search-clear,
.theme-transition-overlay .dark-scope .player-bar,
.theme-transition-overlay .dark-scope .player-btn,
.theme-transition-overlay .dark-scope .player-time,
.theme-transition-overlay .dark-scope .mode-btn {
    background: #2a2c31 !important;
    border-color: #3a3c42 !important;
    color: #f1f1f1 !important;
}
.theme-transition-overlay .light-scope {
    background-color: #f4f6f9 !important;
    color: #222 !important;
}
.theme-transition-overlay .light-scope .now-playing,
.theme-transition-overlay .light-scope .tracks-toggle,
.theme-transition-overlay .light-scope .controls button,
.theme-transition-overlay .light-scope ul#tracks li,
.theme-transition-overlay .light-scope .dropdown-panel,
.theme-transition-overlay .light-scope .dropdown-list li,
.theme-transition-overlay .light-scope .lang-btn,
.theme-transition-overlay .light-scope .track-search,
.theme-transition-overlay .light-scope .track-search-clear,
.theme-transition-overlay .light-scope .bag-search-input,
.theme-transition-overlay .light-scope .bag-search-clear,
.theme-transition-overlay .light-scope .player-bar,
.theme-transition-overlay .light-scope .player-btn,
.theme-transition-overlay .light-scope .player-time,
.theme-transition-overlay .light-scope .mode-btn {
    background: #ffffff !important;
    border-color: #ddd !important;
    color: #222 !important;
}
.theme-transition-overlay .dark-scope .player-btn .icon-svg { fill: #fff !important; }
.theme-transition-overlay .light-scope .player-btn .icon-svg { fill: #000 !important; }
.theme-transition-overlay .light-scope .theme-btn {
    background: #ffffff !important;
    border-color: #ddd !important;
}
.theme-transition-overlay .dark-scope .theme-btn {
    background: #2a2c31 !important;
    border-color: #3a3c42 !important;
}
.theme-transition-overlay .light-scope .theme-btn .moon-icon {
    opacity: 1 !important;
    fill: #000000 !important;
    color: #000000 !important;
}
.theme-transition-overlay .light-scope .theme-btn .sun-icon { opacity: 0 !important; }
.theme-transition-overlay .dark-scope .theme-btn .moon-icon { opacity: 0 !important; }
.theme-transition-overlay .dark-scope .theme-btn .sun-icon {
    opacity: 1 !important;
    fill: #ff8c00 !important;
    color: #ff8c00 !important;
}
.theme-transition-overlay .dark-scope .mode-btn.active,
.theme-transition-overlay .light-scope .mode-btn.active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
}
.theme-transition-overlay .dark-scope .btn-icon { color: #f1f1f1 !important; }
.theme-transition-overlay .light-scope .btn-icon { color: #000 !important; }
.theme-transition-overlay .dark-scope .now-playing-inner { color: #f1f1f1 !important; }
.theme-transition-overlay .light-scope .now-playing-inner { color: #222 !important; }
.theme-transition-overlay .btn-icon,
.theme-transition-overlay .now-playing-inner { transition: none !important; }

body.theme-freeze .container,
body.theme-freeze .container *,
body.theme-freeze .bag-search-input { transition: none !important; }

body.dark .dropdown-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.dropdown-wrap {
    position: relative;
    z-index: 1402;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

body:has(.dropdown-overlay.open) #tracksToggle { z-index: 1200; }

.tracks-toggle:active {
    transform: scale(0.99);
    background-color: #ffffff !important;
    border-color: #ddd !important;
    color: #222 !important;
}
body.dark .tracks-toggle:active {
    background-color: #2a2c31 !important;
    border-color: #3a3c42 !important;
    color: #f1f1f1 !important;
}

#playlistsToggle {
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
}
#playlistsToggle:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
    transform: scale(0.99);
}

.dropdown-panel {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.dropdown-list {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}
.dropdown-list li {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.now-playing {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
.now-playing-inner {
    max-width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
}

@keyframes nowPlayingPingPongStronger {
  0%   { transform: translate3d(0px, 0, 0); }
  50%  { transform: translate3d(calc((var(--np-scroll-left, 0px) + 34px) * -1), 0, 0); }
  100% { transform: translate3d(0px, 0, 0); }
}
.now-playing-inner.scroll {
  animation: nowPlayingPingPongStronger 6s ease-in-out infinite !important;
  will-change: transform;
}

body.dark ul#tracks li:active,
body.dark ul#tracks li.press-armed,
html[data-theme="dark"] ul#tracks li:active,
html[data-theme="dark"] ul#tracks li.press-armed {
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255,140,0,.25), 0 0 12px rgba(255,140,0,.18) !important;
}
body.dark ul#tracks li.active-track {
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
}
body.dark ul#tracks li.pending-track {
  background-color: #3a3c42 !important;
  border-color: #3a3c42 !important;
  color: #f1f1f1 !important;
}

.logo-juke { font-weight: 900; }
.logo-box {
  display: inline-block;
  background: #ff8c00;
  color: #fff;
  padding: 1px 4px;
  border-radius: 0;
  font-weight: 900;
}
body:not(.dark) .logo-juke { color: #000; }
body:not(.dark) .logo-box { color: #fff; }
body.dark .logo-juke { color: #fff; }
body.dark .logo-box { color: #000; }
.site-title .logo-box,
.logo-box {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  background: #ff8c00 !important;
  border: 0 !important;
  overflow: visible !important;
}
.site-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.site-title .logo-juke {
  display: inline-block !important;
  line-height: 1 !important;
  transform: translateZ(0);
}
.site-title .logo-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0px 4px !important;
  line-height: 1 !important;
  position: relative !important;
  top: 2px !important;
  transform: translateY(-3px) !important;
  z-index: 0;
}
body:not(.dark) .site-title .logo-juke { color:#000 !important; }
body:not(.dark) .site-title .logo-box { color:#fff !important; }
body.dark .site-title .logo-juke { color:#fff !important; }
body.dark .site-title .logo-box { color:#000 !important; }
.theme-transition-overlay .light-scope .site-title .logo-juke { color:#000 !important; }
.theme-transition-overlay .light-scope .site-title .logo-box { color:#fff !important; background:#ff8c00 !important; }
.theme-transition-overlay .dark-scope .site-title .logo-juke { color:#fff !important; }
.theme-transition-overlay .dark-scope .site-title .logo-box { color:#000 !important; background:#ff8c00 !important; }
.site-title,
.site-title .logo-juke,
.site-title .logo-box,
.theme-transition-overlay .site-title,
.theme-transition-overlay .site-title .logo-juke,
.theme-transition-overlay .site-title .logo-box {
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.theme-transition-overlay,
.theme-transition-overlay .theme-transition-scope,
.theme-transition-overlay .theme-transition-clone {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.site-title,
.site-title .logo-juke,
.site-title .logo-box {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.site-title .logo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff8c00;
  border-radius: 0;
  transform: translateY(1px);
  z-index: -1;
}

.header { margin-bottom: 50px !important; }
@media (max-width: 480px){
  .header { margin-bottom: 50px !important; }
}
body.theme-freeze .site-title,
body.theme-animating .site-title { opacity: 1 !important; }

.seek-bar,
.volume-bar {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.seek-bar::-moz-range-track,
.volume-bar::-moz-range-track {
  height: 6px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}
.seek-bar::-moz-range-progress,
.volume-bar::-moz-range-progress {
  height: 6px;
  border: none;
  border-radius: 999px;
  background: #ff8c00;
}
.seek-bar::-moz-range-thumb,
.volume-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 0;
  background: #ff8c00;
  box-shadow: none !important;
  filter: none !important;
  outline: none !important;
}
.seek-bar::-moz-focus-outer,
.volume-bar::-moz-focus-outer { border: 0 !important; }
.seek-bar:focus,
.volume-bar:focus {
  outline: none !important;
  box-shadow: none !important;
}
body.dark .seek-bar::-moz-range-track,
body.dark .volume-bar::-moz-range-track { background: rgba(255,255,255,0.22); }
.seek-bar::-webkit-slider-runnable-track,
.volume-bar::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  border: none;
}
body.dark .seek-bar::-webkit-slider-runnable-track,
body.dark .volume-bar::-webkit-slider-runnable-track { background: rgba(255,255,255,0.22); }
.seek-bar::-webkit-slider-thumb,
.volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff8c00;
  border: none;
  margin-top: -5px;
  box-shadow: none;
}
.theme-transition-overlay .light-scope { --tw-range-track: rgba(0,0,0,0.18); color-scheme: light; }
.theme-transition-overlay .dark-scope { --tw-range-track: rgba(255,255,255,0.22); color-scheme: dark; }
.theme-transition-overlay .seek-bar,
.theme-transition-overlay .volume-bar {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.theme-transition-overlay .seek-bar::-webkit-slider-runnable-track,
.theme-transition-overlay .volume-bar::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--tw-range-track);
  border: none;
}
.theme-transition-overlay .seek-bar::-webkit-slider-thumb,
.theme-transition-overlay .volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff8c00;
  border: none;
  margin-top: -5px;
  box-shadow: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.theme-transition-overlay .seek-bar::-moz-range-track,
.theme-transition-overlay .volume-bar::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--tw-range-track);
  border: none;
}
.theme-transition-overlay .seek-bar::-moz-range-progress,
.theme-transition-overlay .volume-bar::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #ff8c00;
  border: none;
}
.theme-transition-overlay .seek-bar::-moz-range-thumb,
.theme-transition-overlay .volume-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff8c00;
  border: 0;
  box-shadow: none;
}
.theme-transition-overlay .light-scope input[type="range"],
.theme-transition-overlay .light-scope .seek-bar,
.theme-transition-overlay .light-scope .volume-bar { color-scheme: light; }
.theme-transition-overlay .dark-scope input[type="range"],
.theme-transition-overlay .dark-scope .seek-bar,
.theme-transition-overlay .dark-scope .volume-bar { color-scheme: dark; }
.theme-transition-overlay.to-light .seek-bar,
.theme-transition-overlay.to-light .volume-bar {
  color-scheme: light !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
}
.theme-transition-overlay.to-light .seek-bar::-webkit-slider-runnable-track,
.theme-transition-overlay.to-light .volume-bar::-webkit-slider-runnable-track {
  height: 6px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.18) !important;
  border: none !important;
}
.theme-transition-overlay.to-light .seek-bar::-webkit-slider-thumb,
.theme-transition-overlay.to-light .volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: #ff8c00 !important;
  border: none !important;
  margin-top: -5px !important;
  box-shadow: none !important;
}
.theme-transition-overlay.to-light .seek-bar::-moz-range-track,
.theme-transition-overlay.to-light .volume-bar::-moz-range-track {
  height: 6px !important;
  border: none !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.18) !important;
}
.theme-transition-overlay.to-light .seek-bar::-moz-range-progress,
.theme-transition-overlay.to-light .volume-bar::-moz-range-progress {
  height: 6px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #ff8c00 !important;
}
.theme-transition-overlay.to-light .seek-bar::-moz-range-thumb,
.theme-transition-overlay.to-light .volume-bar::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #ff8c00 !important;
  box-shadow: none !important;
}

@media (min-width: 900px){
  body{
    --tracks-closed-y: calc((100dvh - var(--tracks-top) - var(--tracks-bottom) - var(--safe-b)) - var(--tracks-btn-h));
  }

  body.tracks-open #tracksToggle {
    top: var(--tracks-top);
    transform: translate3d(-50%, 0px, 0);
  }

  body.tracks-open .track-search-top {
    top: calc(var(--tracks-top) + var(--tracks-btn-h) + 10px);
    z-index: 1601;
  }

  body.tracks-open #tracksPanel {
    top: calc(var(--tracks-top) + var(--tracks-btn-h) + 10px + var(--tracks-search-h) + var(--tracks-gap));
  }
}

/* prev/next без серого и без оранжевого фона при нажатии */
#prevBtn,
#nextBtn {
  -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
}

#prevBtn:active .btn-icon,
#nextBtn:active .btn-icon {
  color: #000 !important;
}

body.dark #prevBtn:active .btn-icon,
body.dark #nextBtn:active .btn-icon {
  color: #f1f1f1 !important;
}

.lang-btn {
  overflow: hidden;
}

#langToggleIconWrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#langToggleIconWrap svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}


/* Prevent layout shift when TonConnect opens and toggles page scroll */
html,
body {
  scrollbar-gutter: stable both-edges;
}

body.wallet-modal-open {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

body.wallet-modal-open .container,
body.wallet-modal-open .header,
body.wallet-modal-open .wallet-row,
body.wallet-modal-open .mode-switch,
body.wallet-modal-open .dropdown-wrap,
body.wallet-modal-open .now-playing,
body.wallet-modal-open .controls,
body.wallet-modal-open .player-bar {
  transform: none !important;
  -webkit-transform: none !important;
}

/* ===== WALLET MODAL PAGE BLUR ===== */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none !important;
  background: transparent !important;
  transition: none;
}

body.wallet-modal-open .wallet-modal-overlay {
  opacity: 0;
  pointer-events: none !important;
  background: transparent !important;
}

/* Блюрим только сайт */
body.wallet-modal-open .container {
  filter: blur(10px);
  -webkit-filter: blur(10px);
  transition: filter 220ms ease-out, -webkit-filter 220ms ease-out;
  pointer-events: none;
}

/* Уводим fixed-элементы плеера вниз */
body.wallet-modal-open #tracksToggle,
body.wallet-modal-open .track-search-top,
body.wallet-modal-open #tracksPanel,
body.wallet-modal-open .tracks-overlay,
body.wallet-modal-open .dropdown-wrap,
body.wallet-modal-open #playlistsToggle,
body.wallet-modal-open #playlistsPanel,
body.wallet-modal-open #playlistsOverlay {
  z-index: 100 !important;
}

.theme-transition-overlay .wallet-balances,
.theme-transition-overlay .wallet-balances *,
.theme-transition-clone .wallet-balances,
.theme-transition-clone .wallet-balances * {
  transition: none !important;
  animation: none !important;
  color: inherit !important;
  opacity: 1 !important;
  will-change: auto !important;
}

.theme-transition-overlay .light-scope .wallet-balances,
.theme-transition-overlay .light-scope .wallet-balances * {
  color: #222 !important;
}

.theme-transition-overlay .dark-scope .wallet-balances,
.theme-transition-overlay .dark-scope .wallet-balances * {
  color: #f1f1f1 !important;
}

css/blockchain.css
.wallet-col-right {
  display: flex;
  align-items: stretch;
}

.wallet-jukebox {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
  padding: 0;
}

.wallet-jukebox-title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  color: #222;
  text-align: right;
  white-space: nowrap;
  margin: -5px 0 2px;
}

.wallet-jukebox-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
}

.wallet-jukebox-balances {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-self: start;
}

.wallet-jukebox-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  color: #222;
  white-space: nowrap;
}

.wallet-jukebox-label {
  color: inherit;
  opacity: 1;
}

#jukeboxTonBalance {
  color: inherit;
}

.wallet-jukebox-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}

.jukebox-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #222;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
  outline: none;
  appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.jukebox-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.jukebox-action-btn:active {
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  transform: scale(0.96);
}

html[data-theme="dark"] .wallet-jukebox-title,
html[data-theme="dark"] .wallet-jukebox-line,
body.dark .wallet-jukebox-title,
body.dark .wallet-jukebox-line {
  color: #f1f1f1;
}

html[data-theme="dark"] .jukebox-action-btn,
body.dark .jukebox-action-btn {
  background: #2a2c31;
  border-color: #3a3c42;
  color: #f1f1f1;
}

.wallet-jukebox,
.wallet-jukebox *,
.jukebox-action-btn,
.jukebox-action-btn * {
  animation: none !important;
  transition-property: none !important;
  transition-duration: 0s !important;
  will-change: auto !important;
}

@media (max-width: 480px) {
  .wallet-jukebox-title {
    font-size: 13px;
  }

  .wallet-jukebox-line {
    font-size: 13px;
  }

  .wallet-jukebox-main {
    column-gap: 8px;
  }

  .wallet-jukebox-actions {
    gap: 6px;
  }

  .jukebox-action-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

.blockchain-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.blockchain-modal-overlay.open {
  display: flex;
}

.blockchain-modal {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-sizing: border-box;
  padding: 16px;
  color: #222;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  transform: translateY(-10vh);
}

.blockchain-modal-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 14px;
}

.blockchain-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.blockchain-modal-label {
  font-size: 14px;
  font-weight: 800;
  color: #666;
}

.blockchain-modal-select,
.blockchain-modal-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 14px;
  outline: none;
}

.blockchain-modal-select:focus,
.blockchain-modal-input:focus {
  border-color: #ff8c00;
}

.blockchain-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.blockchain-modal-btn {
  min-width: 108px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #222;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.blockchain-modal-btn.primary {
  border-color: #ff8c00;
  background: #ff8c00;
  color: #fff;
}

.blockchain-modal-btn:active {
  transform: scale(0.98);
}

html[data-theme="dark"] .blockchain-modal,
body.dark .blockchain-modal {
  background: #1f2228;
  border-color: #343843;
  color: #f1f1f1;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

html[data-theme="dark"] .blockchain-modal-label,
body.dark .blockchain-modal-label {
  color: #b9bec7;
}

html[data-theme="dark"] .blockchain-modal-select,
html[data-theme="dark"] .blockchain-modal-input,
body.dark .blockchain-modal-select,
body.dark .blockchain-modal-input {
  background: #2a2d34;
  border-color: #3a3f49;
  color: #f1f1f1;
}

html[data-theme="dark"] .blockchain-modal-btn,
body.dark .blockchain-modal-btn {
  background: #2a2d34;
  border-color: #3a3f49;
  color: #f1f1f1;
}

html[data-theme="dark"] .blockchain-modal-btn.primary,
body.dark .blockchain-modal-btn.primary {
  background: #ff8c00;
  border-color: #ff8c00;
  color: #fff;
}

/* fixed billing notice above TRACKS button */
.theme-transition-overlay #billingNoticeLine,
.theme-transition-overlay .light-scope #billingNoticeLine,
.theme-transition-overlay .dark-scope #billingNoticeLine {
  display: none !important;
}

body.tracks-open #billingNoticeLine,
body.tracks-closing #billingNoticeLine,
body.tracks-dragging #billingNoticeLine {
  position: fixed !important;
  left: 50% !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px) !important;
  top: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  transition-property: color, opacity !important;
  transition-duration: 0s !important;
  animation: none !important;
}

/* === ton76 UI fixes === */
#langToggleIconWrap img {
  width: 24px;
  height: 24px;
  display: block;
}

html[data-theme="dark"] #langToggleIconWrap img[alt="RU"],
body.dark #langToggleIconWrap img[alt="RU"],
.theme-transition-overlay .dark-scope #langToggleIconWrap img[alt="RU"],
html[data-theme="dark"] #langToggleIconWrap img[alt="EN"],
body.dark #langToggleIconWrap img[alt="EN"],
.theme-transition-overlay .dark-scope #langToggleIconWrap img[alt="EN"] {
  filter: brightness(0) invert(1);
}

html[data-theme="light"] #langToggleIconWrap img[alt="RU"],
body:not(.dark) #langToggleIconWrap img[alt="RU"],
.theme-transition-overlay .light-scope #langToggleIconWrap img[alt="RU"],
html[data-theme="light"] #langToggleIconWrap img[alt="EN"],
body:not(.dark) #langToggleIconWrap img[alt="EN"],
.theme-transition-overlay .light-scope #langToggleIconWrap img[alt="EN"] {
  filter: none;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .controls button:hover,
  body:not(.dark) .controls button:hover {
    background-color: #ffffff !important;
    border-color: #ccc !important;
    color: #000 !important;
  }

  .theme-transition-overlay .light-scope .controls button:hover {
    background-color: #ffffff !important;
    border-color: #ccc !important;
    color: #000 !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] #prevBtn:active,
  html[data-theme="light"] #nextBtn:active,
  body:not(.dark) #prevBtn:active,
  body:not(.dark) #nextBtn:active,
  .theme-transition-overlay .light-scope #prevBtn:active,
  .theme-transition-overlay .light-scope #nextBtn:active {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #ffffff !important;
  }

  html[data-theme="light"] #prevBtn:active .btn-icon,
  html[data-theme="light"] #nextBtn:active .btn-icon,
  body:not(.dark) #prevBtn:active .btn-icon,
  body:not(.dark) #nextBtn:active .btn-icon,
  .theme-transition-overlay .light-scope #prevBtn:active .btn-icon,
  .theme-transition-overlay .light-scope #nextBtn:active .btn-icon {
    color: #ffffff !important;
  }
}

.wallet-jukebox-balances {
  gap: 1px;
}

/* ton83 ui polish */
.no-select,
.no-select *,
#nowPlaying,
#nowPlaying *,
#jukeboxBalancePanel,
#jukeboxBalancePanel * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}


@media (max-width: 480px) {
  .blockchain-modal {
    transform: translateY(-8vh);
  }
}



/* Make billing notice blur/fade together with overlays and sheets */
body.tracks-open #billingNoticeLine,
body.tracks-closing #billingNoticeLine,
body.playlists-open #billingNoticeLine,
body.playlists-closing #billingNoticeLine,
body.history-open #billingNoticeLine,
html.history-open #billingNoticeLine,
body.tracks-open #noticeLine,
body.tracks-open #modeNoticeLine,
body.playlists-open #noticeLine,
body.playlists-open #modeNoticeLine {
  filter: blur(10px) !important;
  opacity: .28 !important;
  transition: filter 140ms ease, opacity 140ms ease !important;
}

/* Orange press feedback for track buttons in both themes */
ul#tracks li {
  -webkit-tap-highlight-color: rgba(255,140,0,.28);
}

ul#tracks li:active,
ul#tracks li.press-armed,
body.dark ul#tracks li:active,
html[data-theme="dark"] ul#tracks li:active,
html[data-theme="dark"] body ul#tracks li:active {
  background-color: #ff8c00 !important;
  color: #ffffff !important;
  border-color: #ff8c00 !important;
  box-shadow: 0 0 0 1px rgba(255,140,0,.25), 0 0 12px rgba(255,140,0,.18) !important;
}



/* Strong blur/hide for subscription notice when sheets/overlays are open */
html.tracks-open #billingNotice,
html.playlists-open #billingNotice,
html.tracks-open .billing-notice,
html.playlists-open .billing-notice,
body.tracks-open #billingNotice,
body.playlists-open #billingNotice,
body.tracks-open .billing-notice,
body.playlists-open .billing-notice,
body.sheet-open #billingNotice,
body.sheet-open .billing-notice,
body.modal-open #billingNotice,
body.modal-open .billing-notice,
body.history-open #billingNotice,
body.history-open .billing-notice,
html[data-sheet="tracks"] #billingNotice,
html[data-sheet="tracks"] .billing-notice,
html[data-sheet="playlists"] #billingNotice,
html[data-sheet="playlists"] .billing-notice,
.tracks-panel-open #billingNotice,
.tracks-panel-open .billing-notice,
.playlists-panel-open #billingNotice,
.playlists-panel-open .billing-notice {
  opacity: 0 !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
  pointer-events: none !important;
}

#billingNotice.billing-notice,
.billing-notice {
  transition: opacity .16s ease, filter .16s ease !important;
}



/* Orange press feedback for track buttons without orange border */
.track-btn,
.track-item button,
.track-list button,
.tracks-list button,
#tracksList button {
  -webkit-tap-highlight-color: rgba(255,140,0,.24);
}

.track-btn:active,
.track-item button:active,
.track-list button:active,
.tracks-list button:active,
#tracksList button:active,
.track-btn.press-armed,
.track-item button.press-armed,
.track-list button.press-armed,
.tracks-list button.press-armed,
#tracksList button.press-armed {
  background-color: rgba(255,140,0,.22) !important;
  box-shadow: inset 0 0 0 9999px rgba(255,140,0,.16) !important;
  border-color: inherit !important;
  outline: none !important;
}

.track-btn:active *,
.track-item button:active *,
.track-list button:active *,
.tracks-list button:active *,
#tracksList button:active *,
.track-btn.press-armed *,
.track-item button.press-armed *,
.track-list button.press-armed *,
.tracks-list button.press-armed *,
#tracksList button.press-armed * {
  border-color: inherit !important;
}



/* Force subscription notice to blur/fade with the site when playlists/tracks overlays are open */
body.playlists-open #billingNoticeLine,
body.tracks-open #billingNoticeLine,
body.playlists-closing #billingNoticeLine,
body.tracks-closing #billingNoticeLine,
html.playlists-open #billingNoticeLine,
html.tracks-open #billingNoticeLine,
body.playlists-open .billing-notice-line,
body.tracks-open .billing-notice-line,
html.playlists-open .billing-notice-line,
html.tracks-open .billing-notice-line,
#playlistsOverlay.open ~ #billingNoticeLine,
#tracksOverlay[aria-hidden="false"] ~ #billingNoticeLine {
  opacity: 0 !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
  pointer-events: none !important;
}

#billingNoticeLine,
.billing-notice-line {
  transition: opacity .16s ease, filter .16s ease !important;
}



/* Keep notice lines visible but blurred together with the site when overlays are open */
#noticeLine,
#modeNoticeLine,
#billingNoticeLine {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: filter, opacity;
}

body.tracks-open #noticeLine,
body.tracks-open #modeNoticeLine,
body.tracks-open #billingNoticeLine,
body.playlists-open #noticeLine,
body.playlists-open #modeNoticeLine,
body.playlists-open #billingNoticeLine,
body.tracks-closing #noticeLine,
body.tracks-closing #modeNoticeLine,
body.tracks-closing #billingNoticeLine,
body.playlists-closing #noticeLine,
body.playlists-closing #modeNoticeLine,
body.playlists-closing #billingNoticeLine,
html.tracks-open #noticeLine,
html.tracks-open #modeNoticeLine,
html.tracks-open #billingNoticeLine,
html.playlists-open #noticeLine,
html.playlists-open #modeNoticeLine,
html.playlists-open #billingNoticeLine,
.dropdown-overlay.open ~ #noticeLine,
.dropdown-overlay.open ~ #modeNoticeLine,
.dropdown-overlay.open ~ #billingNoticeLine {
  opacity: 1 !important;
  visibility: visible !important;
  filter: blur(10px) !important;
  -webkit-filter: blur(10px) !important;
  pointer-events: none !important;
}

/* Zoom/theme stability on desktop: keep dimensions stable during theme animation */
html, body {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body.theme-animating .container,
body.theme-freeze .container,
body.theme-animating .wallet-row,
body.theme-freeze .wallet-row,
body.theme-animating .wallet-btn,
body.theme-freeze .wallet-btn,
body.theme-animating .wallet-jukebox,
body.theme-freeze .wallet-jukebox,
body.theme-animating .wallet-jukebox-main,
body.theme-freeze .wallet-jukebox-main,
body.theme-animating .wallet-jukebox-actions,
body.theme-freeze .wallet-jukebox-actions,
body.theme-animating .wallet-jukebox-balances,
body.theme-freeze .wallet-jukebox-balances,
body.theme-animating .mode-switch,
body.theme-freeze .mode-switch,
body.theme-animating .controls,
body.theme-freeze .controls,
body.theme-animating .player-bar,
body.theme-freeze .player-bar,
body.theme-animating .tracks-toggle,
body.theme-freeze .tracks-toggle,
body.theme-animating .dropdown-wrap,
body.theme-freeze .dropdown-wrap,
body.theme-animating .dropdown-panel,
body.theme-freeze .dropdown-panel,
body.theme-animating #noticeLine,
body.theme-freeze #noticeLine,
body.theme-animating #modeNoticeLine,
body.theme-freeze #modeNoticeLine,
body.theme-animating #billingNoticeLine,
body.theme-freeze #billingNoticeLine {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, filter !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
}

body.theme-animating .container,
body.theme-freeze .container {
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  body.theme-animating,
  body.theme-freeze {
    overflow-x: hidden;
  }

  body.theme-animating .container,
  body.theme-freeze .container {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}



/* Ensure the whole site behind tracks/playlists is blurred, not hidden, on both desktop and mobile */
body.tracks-open .container,
body.playlists-open .container,
html.tracks-open .container,
html.playlists-open .container {
  filter: none;
}

#playlistsOverlay.open,
#tracksOverlay[aria-hidden="false"],
#tracksOverlay.open {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}



/* Keep notice lines perfectly centered and prevent theme-animation jump */
#noticeLine,
#modeNoticeLine,
#billingNoticeLine {
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) translateZ(0) !important;
  -webkit-transform: translateX(-50%) translateZ(0) !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

body.theme-animating #noticeLine,
body.theme-freeze #noticeLine,
body.theme-animating #modeNoticeLine,
body.theme-freeze #modeNoticeLine,
body.theme-animating #billingNoticeLine,
body.theme-freeze #billingNoticeLine,
body.theme-animating #tracksToggle,
body.theme-freeze #tracksToggle {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateZ(0) !important;
  -webkit-transform: translateX(-50%) translateZ(0) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  top: auto !important;
  bottom: auto !important;
}

/* Prevent temporary page narrowing during theme switch */
html {
  overflow-y: scroll;
}

body,
.container,
.header,
.wallet-row,
.mode-switch,
#tracksToggle,
.track-search-top,
.player-bar,
.controls,
#noticeLine,
#modeNoticeLine,
#billingNoticeLine {
  box-sizing: border-box;
}

body.theme-animating,
body.theme-freeze {
  width: 100% !important;
  min-width: 100% !important;
  overflow-x: hidden !important;
}

body.theme-animating .container,
body.theme-freeze .container {
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  transform: none !important;
  -webkit-transform: none !important;
}

/* Freeze Tracks button vertical position during theme switch */
#tracksToggle {
  position: fixed;
  left: 12px;
  right: 12px;
  width: auto;
  margin: 0 !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body.theme-animating #tracksToggle,
body.theme-freeze #tracksToggle {
  position: fixed !important;
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  margin: 0 !important;
  top: auto !important;
}



.theme-transition-overlay,
.theme-transition-scope,
.theme-transition-clone {
  box-sizing: border-box !important;
}

.theme-transition-clone #noticeLine,
.theme-transition-clone #modeNoticeLine,
.theme-transition-clone #billingNoticeLine {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
}

.theme-transition-clone #tracksToggle {
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
}



/* Final restore: Tracks button stays bottom-centered and notice lines stay centered */
#tracksToggle {
  position: fixed !important;
  top: var(--tracks-top) !important;
  left: 50% !important;
  right: auto !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  margin: 0 !important;
  transform: translate3d(-50%, var(--tracks-ty), 0) !important;
  -webkit-transform: translate3d(-50%, var(--tracks-ty), 0) !important;
  box-sizing: border-box !important;
}

body.theme-animating #tracksToggle,
body.theme-freeze #tracksToggle,
.theme-transition-clone #tracksToggle {
  position: fixed !important;
  top: var(--tracks-top) !important;
  left: 50% !important;
  right: auto !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  transform: translate3d(-50%, var(--tracks-ty), 0) !important;
  -webkit-transform: translate3d(-50%, var(--tracks-ty), 0) !important;
}

#noticeLine,
#modeNoticeLine,
#billingNoticeLine,
.theme-transition-clone #noticeLine,
.theme-transition-clone #modeNoticeLine,
.theme-transition-clone #billingNoticeLine {
  left: 50% !important;
  right: auto !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Keep inline notice lines centered too */
#noticeLine, #modeNoticeLine {
  position: relative !important;
  left: 50% !important;
  right: auto !important;
}

/* Theme animation stability without width/position jumps */
html {
  overflow-y: scroll;
}

body.theme-animating,
body.theme-freeze {
  overflow-x: hidden !important;
}

body.theme-animating .container,
body.theme-freeze .container,
.theme-transition-clone {
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}



/* Final width fix: Tracks button/search/panel match site container width exactly */
.container {
  width: min(500px, calc(100vw - 24px));
  max-width: 500px;
  box-sizing: border-box;
}

#tracksToggle,
body.theme-animating #tracksToggle,
body.theme-freeze #tracksToggle,
.theme-transition-clone #tracksToggle,
body.tracks-open .track-search-top,
body.tracks-closing .track-search-top,
body.tracks-open #tracksPanel,
body.tracks-closing #tracksPanel {
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  box-sizing: border-box !important;
}

#tracksToggle {
  left: 50% !important;
  right: auto !important;
  transform: translate3d(-50%, var(--tracks-ty), 0) !important;
  -webkit-transform: translate3d(-50%, var(--tracks-ty), 0) !important;
}

body.tracks-open .track-search-top,
body.tracks-closing .track-search-top,
body.tracks-open #tracksPanel,
body.tracks-closing #tracksPanel {
  left: 50% !important;
  right: auto !important;
}

/* Keep subscription line anchored just above Tracks button without theme-jump */
#billingNoticeLine {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px) !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  text-align: center !important;
  box-sizing: border-box !important;
  top: auto !important;
}

body.theme-animating #billingNoticeLine,
body.theme-freeze #billingNoticeLine,
.theme-transition-clone #billingNoticeLine {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(var(--tracks-bottom) + var(--safe-b) + var(--tracks-btn-h) + 8px) !important;
  top: auto !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  margin: 0 !important;
}

/* When tracks are open, keep line in place but blurred with rest of site */
body.tracks-open #billingNoticeLine,
body.playlists-open #billingNoticeLine,
body.tracks-closing #billingNoticeLine,
body.playlists-closing #billingNoticeLine,
html.tracks-open #billingNoticeLine,
html.playlists-open #billingNoticeLine {
  opacity: 1 !important;
  filter: blur(10px) !important;
  -webkit-filter: blur(10px) !important;
  pointer-events: none !important;
}



/* Unified site geometry: all main UI uses the same left/right boundaries as Tracks */
:root {
  --site-side-gap: 12px;
  --site-max-width: 500px;
  --site-width: min(var(--site-max-width), calc(100vw - (var(--site-side-gap) * 2)));
}

.container {
  width: var(--site-width) !important;
  max-width: var(--site-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--site-side-gap) !important;
  padding-right: var(--site-side-gap) !important;
  box-sizing: border-box !important;
}

.wallet-row,
.mode-switch,
.dropdown-wrap,
.player-bar,
.controls,
.now-playing,
#noticeLine,
#modeNoticeLine,
#billingNoticeLine,
#tracksToggle,
.track-search-top,
#tracksPanel {
  width: var(--site-width) !important;
  max-width: var(--site-max-width) !important;
  box-sizing: border-box !important;
}

#tracksToggle,
.track-search-top,
#tracksPanel,
#billingNoticeLine {
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

#tracksToggle {
  transform: translate3d(-50%, var(--tracks-ty), 0) !important;
  -webkit-transform: translate3d(-50%, var(--tracks-ty), 0) !important;
}

body.tracks-open .track-search-top {
  transform: translate3d(-50%, var(--tracks-panel-in), 0) !important;
  -webkit-transform: translate3d(-50%, var(--tracks-panel-in), 0) !important;
}

body.tracks-open.tracks-ready .track-search-top {
  transform: translate3d(-50%, 0px, 0) !important;
  -webkit-transform: translate3d(-50%, 0px, 0) !important;
}

body.tracks-closing .track-search-top {
  transform: translate3d(-50%, 18px, 0) !important;
  -webkit-transform: translate3d(-50%, 18px, 0) !important;
}

.mode-switch {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.mode-switch .mode-btn,
.mode-btn {
  width: 100% !important;
  min-width: 0 !important;
}

.wallet-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.wallet-col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.wallet-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#noticeLine,
#modeNoticeLine,
#billingNoticeLine {
  text-align: center !important;
}

@media (max-width: 480px) {
  :root {
    --site-side-gap: 12px;
  }
}



/* Final site-width harmonization: use Tracks width as the single visual boundary */
:root {
  --site-side-gap: 12px;
  --site-max-width: 500px;
  --site-visual-width: min(var(--site-max-width), calc(100vw - (var(--site-side-gap) * 2)));
}

/* The page container should not create a second inner width */
.container {
  width: var(--site-visual-width) !important;
  max-width: var(--site-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Main rows and blocks share the exact same boundaries as Tracks */
.header,
.wallet-row,
.mode-switch,
.dropdown-wrap,
.now-playing,
.controls,
.player-bar,
#noticeLine,
#modeNoticeLine {
  width: var(--site-visual-width) !important;
  max-width: var(--site-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Fixed centered elements */
#tracksToggle,
.track-search-top,
#tracksPanel,
#billingNoticeLine {
  width: var(--site-visual-width) !important;
  max-width: var(--site-max-width) !important;
  box-sizing: border-box !important;
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep existing Y animation for tracks */
#tracksToggle {
  transform: translate3d(-50%, var(--tracks-ty), 0) !important;
  -webkit-transform: translate3d(-50%, var(--tracks-ty), 0) !important;
}

/* Two-half geometry for wallet row and mode row */
.wallet-row,
.mode-switch {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.wallet-col,
.wallet-col-left,
.wallet-col-right {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.wallet-col-left {
  grid-column: 1 / 2 !important;
}

.wallet-col-right {
  grid-column: 2 / 3 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
}

.wallet-btn,
.mode-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* When wallet is disconnected, only left half is visible, same width as TON button */
body:not(.wallet-connected) .wallet-row {
  grid-template-columns: 1fr 1fr !important;
}

body:not(.wallet-connected) .wallet-col-right {
  display: none !important;
}

body:not(.wallet-connected) .wallet-col-left {
  grid-column: 1 / 2 !important;
  width: 100% !important;
  max-width: none !important;
}

/* Notice line remains centered */
#noticeLine,
#modeNoticeLine,
#billingNoticeLine {
  text-align: center !important;
}



/* Freeze upper layout horizontally during theme switch */
body.theme-animating .container,
body.theme-freeze .container,
.theme-transition-clone {
  left: auto !important;
  right: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
}

body.theme-animating .header,
body.theme-freeze .header,
body.theme-animating .wallet-row,
body.theme-freeze .wallet-row,
body.theme-animating .mode-switch,
body.theme-freeze .mode-switch,
body.theme-animating .dropdown-wrap,
body.theme-freeze .dropdown-wrap,
body.theme-animating .wallet-col,
body.theme-freeze .wallet-col,
body.theme-animating .wallet-col-left,
body.theme-freeze .wallet-col-left,
body.theme-animating .wallet-col-right,
body.theme-freeze .wallet-col-right,
body.theme-animating .wallet-jukebox,
body.theme-freeze .wallet-jukebox,
body.theme-animating .wallet-jukebox-main,
body.theme-freeze .wallet-jukebox-main,
body.theme-animating .wallet-jukebox-balances,
body.theme-freeze .wallet-jukebox-balances,
body.theme-animating .wallet-jukebox-actions,
body.theme-freeze .wallet-jukebox-actions,
body.theme-animating .now-playing,
body.theme-freeze .now-playing,
body.theme-animating .controls,
body.theme-freeze .controls,
body.theme-animating .player-bar,
body.theme-freeze .player-bar {
  transform: none !important;
  -webkit-transform: none !important;
}

body.theme-animating .header,
body.theme-freeze .header,
body.theme-animating .wallet-row,
body.theme-freeze .wallet-row,
body.theme-animating .mode-switch,
body.theme-freeze .mode-switch,
body.theme-animating .dropdown-wrap,
body.theme-freeze .dropdown-wrap,
body.theme-animating .now-playing,
body.theme-freeze .now-playing,
body.theme-animating .controls,
body.theme-freeze .controls,
body.theme-animating .player-bar,
body.theme-freeze .player-bar {
  width: var(--site-visual-width, min(500px, calc(100vw - 24px))) !important;
  max-width: var(--site-max-width, 500px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Keep theme clone aligned to the same centered geometry */
.theme-transition-clone .header,
.theme-transition-clone .wallet-row,
.theme-transition-clone .mode-switch,
.theme-transition-clone .dropdown-wrap,
.theme-transition-clone .now-playing,
.theme-transition-clone .controls,
.theme-transition-clone .player-bar {
  width: var(--site-visual-width, min(500px, calc(100vw - 24px))) !important;
  max-width: var(--site-max-width, 500px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  transform: none !important;
  -webkit-transform: none !important;
}



/* Prevent horizontal page shift when Tracks opens/closes */
html {
  scrollbar-gutter: stable;
}

body,
.container,
.header,
.wallet-row,
.mode-switch,
.dropdown-wrap,
.now-playing,
.controls,
.player-bar {
  box-sizing: border-box;
}

body.tracks-open,
body.tracks-closing {
  padding-right: 0 !important;
}



/* Restore circular theme transition without layout shift */
.theme-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  clip-path: circle(0px at 0 0);
  -webkit-clip-path: circle(0px at 0 0);
  transition: clip-path 0.65s cubic-bezier(0.4, 0.0, 0.2, 1), -webkit-clip-path 0.65s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: clip-path;
  isolation: isolate;
  background: transparent !important;
}

.theme-transition-scope {
  position: fixed;
  inset: 0;
}

.theme-transition-clone {
  width: var(--site-visual-width, min(500px, calc(100vw - 24px)));
  max-width: var(--site-max-width, 500px);
  margin: 0 auto;
  padding-top: var(--page-top-offset);
  box-sizing: border-box;
  pointer-events: none;
}

body.theme-animating .container,
body.theme-freeze .container {
  width: auto !important;
  max-width: var(--site-max-width, 500px) !important;
}



/* Hard horizontal lock during circular theme animation */
body.theme-animating .container,
body.theme-freeze .container,
.theme-transition-clone {
  transform: none !important;
  -webkit-transform: none !important;
  position: relative !important;
  left: 0 !important;
  right: auto !important;
}

body.theme-animating .header,
body.theme-freeze .header,
body.theme-animating .wallet-row,
body.theme-freeze .wallet-row,
body.theme-animating .mode-switch,
body.theme-freeze .mode-switch,
body.theme-animating .dropdown-wrap,
body.theme-freeze .dropdown-wrap,
body.theme-animating .now-playing,
body.theme-freeze .now-playing,
body.theme-animating .controls,
body.theme-freeze .controls,
body.theme-animating .player-bar,
body.theme-freeze .player-bar {
  transform: none !important;
  -webkit-transform: none !important;
}



/* Theme animation: do not move the real page layout */
body.theme-animating .container,
body.theme-freeze .container {
  width: auto !important;
  max-width: var(--site-max-width, 500px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.theme-transition-clone {
  width: var(--site-visual-width, min(500px, calc(100vw - 24px))) !important;
  max-width: var(--site-max-width, 500px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}



/* Desktop fix: remove/freeze the left pseudo-scrollbar gutter strip */
@media (min-width: 769px) {
  html {
    overflow-y: scroll;
    scrollbar-gutter: stable !important;
    background-color: #f4f6f9;
  }

  html[data-theme="dark"] {
    background-color: #1e1f23;
  }

  body {
    overflow-x: hidden;
    background: transparent;
  }

  /* Prevent any left-edge reserved gutter from visually appearing */
  body::before {
    content: none !important;
  }

  .theme-transition-overlay,
  .theme-transition-scope {
    left: 0 !important;
    right: 0 !important;
    inset: 0 !important;
    margin: 0 !important;
  }
}


body.dark ul#tracks li.pending-track.press-armed,
body.dark ul#tracks li.active-track.press-armed,
html[data-theme="dark"] ul#tracks li.pending-track.press-armed,
html[data-theme="dark"] ul#tracks li.active-track.press-armed {
  background-color: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255,140,0,.25), 0 0 12px rgba(255,140,0,.18) !important;
}


/* Blur subscription notice under operations history */
body.history-open #billingNoticeLine,
html.history-open #billingNoticeLine,
body.history-open .billing-notice-line,
html.history-open .billing-notice-line {
  opacity: 0 !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
  pointer-events: none !important;
}


/* layout update: keep ton/gate inside the left wallet column and keep balances under action buttons */
.wallet-col-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.wallet-col-left .mode-switch,
.mode-switch-inline {
  width: 100% !important;
  max-width: none !important;
  margin: 10px 0 0 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.wallet-col-left .mode-btn,
.mode-switch-inline .mode-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.wallet-col-right {
  align-self: start !important;
}

.wallet-jukebox-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  row-gap: 6px !important;
}

.wallet-jukebox-actions {
  justify-content: flex-end !important;
}

.wallet-jukebox-balances {
  align-self: flex-end !important;
  width: 100% !important;
  text-align: right !important;
  align-items: flex-end !important;
}

.wallet-jukebox-line {
  justify-content: flex-end !important;
}


/* stable TON/GATE width and right-column balance placement */
.wallet-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

.wallet-col-left,
.wallet-col-right {
  min-width: 0 !important;
}

.wallet-col-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.wallet-col-left .mode-switch-inline,
.wallet-col-left .mode-switch {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 10px 0 0 0 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}

.wallet-col-left .mode-switch-inline .mode-btn,
.wallet-col-left .mode-switch .mode-btn,
#tonModeBtn,
#gateModeBtn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  box-sizing: border-box !important;
}

body.theme-animating .wallet-col-left .mode-switch-inline,
body.theme-freeze .wallet-col-left .mode-switch-inline,
body.theme-animating .wallet-col-left .mode-switch,
body.theme-freeze .wallet-col-left .mode-switch,
.theme-transition-clone .wallet-col-left .mode-switch-inline,
.theme-transition-clone .wallet-col-left .mode-switch {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.wallet-col-right {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
}

.wallet-jukebox {
  width: 100% !important;
  min-width: 0 !important;
}

.wallet-jukebox-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  row-gap: 6px !important;
}

.wallet-jukebox {
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  margin-left: auto !important;
}

.wallet-jukebox-main {
  display: grid !important;
  grid-template-columns: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  grid-template-rows: var(--jukebox-wallet-control-size) var(--jukebox-balance-panel-height) !important;
  row-gap: var(--jukebox-wallet-stack-gap) !important;
  justify-content: end !important;
  align-items: start !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
}

.wallet-jukebox-actions {
  display: grid !important;
  grid-template-columns: repeat(3, var(--jukebox-wallet-control-size)) !important;
  column-gap: var(--jukebox-wallet-gap) !important;
  row-gap: 0 !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  margin: 0 !important;
}

.wallet-jukebox-balances,
#jukeboxBalancePanel {
  display: grid !important;
  grid-template-rows: 20px 14px 14px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  align-self: start !important;
  width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  min-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  max-width: calc((var(--jukebox-wallet-control-size) * 3) + (var(--jukebox-wallet-gap) * 2)) !important;
  text-align: left !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.wallet-jukebox-line,
.wallet-jukebox-meta,
.wallet-jukebox-status {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.wallet-jukebox-line {
  justify-content: flex-end !important;
}

.wallet-jukebox-meta,
.wallet-jukebox-status {
  text-align: right !important;
}


.billing-state-block{display:flex;flex-direction:column;gap:2px;margin:8px 0 10px;padding:8px 10px;border-radius:10px;background:rgba(0,0,0,.04);font-size:12px;line-height:1.25} 
.billing-state-row{display:flex;justify-content:space-between;gap:12px} 
.billing-state-label{opacity:.78;font-weight:700} 
.billing-state-value{font-weight:800;text-align:right} 
html[data-theme="dark"] .billing-state-block, body.dark .billing-state-block{background:rgba(255,255,255,.06)}


.wallet-ui-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.now-playing.wallet-ui-disabled,
.player-bar.wallet-ui-disabled,
.controls.wallet-ui-disabled {
    filter: grayscale(0.08);
}

.player-bar input:disabled,
.controls button:disabled,
.mode-switch .mode-btn:disabled,
.player-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}


.wallet-jukebox-line,
.wallet-jukebox-meta,
.wallet-jukebox-status,
#walletConnectBtn {
  transform: none !important;
  -webkit-transform: none !important;
  font-variant-numeric: tabular-nums;
}

.theme-transition-overlay .wallet-jukebox-line,
.theme-transition-overlay .wallet-jukebox-meta,
.theme-transition-overlay .wallet-jukebox-status,
.theme-transition-overlay #walletConnectBtn,
.theme-transition-clone .wallet-jukebox-line,
.theme-transition-clone .wallet-jukebox-meta,
.theme-transition-clone .wallet-jukebox-status,
.theme-transition-clone #walletConnectBtn {
  transform: none !important;
  -webkit-transform: none !important;
}


/* walletfix10b: equalize vertical spacing to match Playlists -> Now Playing */
.now-playing {
  margin-bottom: 10px !important;
}

.player-bar {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.controls {
  margin-top: 0 !important;
}


.dropdown-wrap-hidden { display: none !important; }
.bag-search-wrap { margin: 0 0 10px 0; }
.bag-search-row { display: flex; align-items: stretch; gap: 10px; }
.bag-search-field { position: relative; flex: 1 1 auto; min-width: 0; }
.bag-search-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  line-height: 44px;
  box-sizing: border-box;
  padding: 0 46px 0 14px;
  border-radius: 10px;
  border: 1px solid #d8dde6;
  font-size: 14px;
  background: #fff;
  color: #222;
  transition: opacity .18s ease !important;
  color-scheme: light;
  -webkit-appearance: none;
  appearance: none;
}
.bag-search-input::-ms-clear,
.bag-search-input::-ms-reveal,
.bag-search-input::-webkit-search-cancel-button,
.bag-search-input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}
.bag-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: rgba(34,34,34,.72);
  font-size: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.bag-search-clear[hidden] { display: none !important; }
.bag-search-btn { width: 132px; min-width: 132px; max-width: 132px; height: 44px; border-radius: 8px; border: 1px solid #18a957; background: #18a957; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; letter-spacing: 0.4px; padding: 0 16px; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none !important; transition: transform 0.08s ease, opacity 0.15s ease; }
.bag-search-btn:active { transform: scale(0.98); }
.bag-search-btn:focus,
.bag-search-btn:focus-visible { outline: none !important; box-shadow: none !important; }
.bag-search-btn:disabled { opacity: .38; cursor: default; box-shadow: none; border-color: rgba(0,0,0,.12); background: rgba(200,205,210,.9); color: #ffffff; transform: none; }
html[data-theme="dark"] .bag-search-btn,
body.dark .bag-search-btn {
  border-color: #20b766;
  background: #20b766;
  color: #fff;
  border-color: #18a957;
  background: #18a957;
  color: #f1f1f1;
  box-shadow: none;
}
.bag-search-btn:active { transform: scale(0.98); }
.bag-search-btn:focus,
.bag-search-btn:focus-visible { outline: none !important; box-shadow: none !important; }
html[data-theme="dark"] .bag-search-btn:disabled,
body.dark .bag-search-btn:disabled { background: rgba(90,96,102,.9); color: #ffffff; border-color: rgba(255,255,255,.12); box-shadow: none; }
.bag-search-input:disabled { opacity: .55; cursor: default; }
html[data-theme="dark"] .bag-search-input,
body.dark .bag-search-input {
  background: #2a2c31;
  border-color: #3a3c42;
  color: #f1f1f1;
  color-scheme: dark;
}
html[data-theme="dark"] .bag-search-clear,
body.dark .bag-search-clear { color: rgba(241,241,241,.72); }
.bag-search-input::placeholder { color: rgba(34,34,34,.72) !important; -webkit-text-fill-color: rgba(34,34,34,.72) !important; opacity: 1 !important; }
html[data-theme="dark"] .bag-search-input::placeholder,
body.dark .bag-search-input::placeholder { color: rgba(241,241,241,.72) !important; -webkit-text-fill-color: rgba(241,241,241,.72) !important; opacity: 1 !important; }

.bag-search-input,
.bag-search-input:focus,
.bag-search-input:active,
.bag-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0); caret-color: currentColor;
}
.bag-search-input:focus,
.bag-search-input:active,
.bag-search-input:focus-visible {
  border-color: #d8dde6 !important;
  background: #fff !important;
  color: #222 !important;
}
html[data-theme="dark"] .bag-search-input:focus,
html[data-theme="dark"] .bag-search-input:active,
html[data-theme="dark"] .bag-search-input:focus-visible,
body.dark .bag-search-input:focus,
body.dark .bag-search-input:active,
body.dark .bag-search-input:focus-visible {
  border-color: #3a3c42 !important;
  background: #2a2c31 !important;
  color: #f1f1f1 !important;
}
.bag-search-input::placeholder {
  transition: none !important;
  opacity: 1;
}
.theme-transition-overlay .dark-scope .bag-search-input::placeholder {
  color: rgba(241,241,241,.72) !important;
  transition: none !important;
}
.theme-transition-overlay .light-scope .bag-search-input::placeholder {
  color: rgba(34,34,34,.72) !important;
  transition: none !important;
}
.video-player-shell { position: relative; margin: -26px 0 18px; border: 1px solid #d8dde6; border-radius: 14px; background: rgba(255,255,255,.98); overflow: hidden; z-index: 35; box-shadow: none; }
.video-player-shell.hidden { display: none !important; }
.video-player-body { position: relative; background: rgba(248,249,251,.98); }
.video-player { display: block; width: 100%; max-height: 220px; min-height: 180px; background: rgba(248,249,251,.98); }
body.video-player-active #noticeLine,
body.video-player-active #modeNoticeLine,
body.video-player-active #billingNoticeLine { opacity: 0; pointer-events: none; }
html[data-theme="dark"] .video-player-shell,
body.dark .video-player-shell { border-color: #3a3c42; background: rgba(26,26,28,.98); box-shadow: none; }
html[data-theme="dark"] .video-player-body,
html[data-theme="dark"] .video-player,
body.dark .video-player-body,
body.dark .video-player { background: rgba(32,34,39,.98); }
.video-inline-select-wrap[hidden],
.video-inline-btn[hidden] { display: none !important; }
.video-inline-select-wrap { flex: 0 1 auto; min-width: 0; }
.video-inline-select { width: 58px; min-width: 58px; max-width: 58px; height: 58px; border-radius: 50%; border: 1px solid #d8dde6; background: rgba(255,255,255,.96); color: #111; padding: 0 6px; font-size: 11px; font-weight: 800; text-align: center; text-align-last: center; appearance: none; -webkit-appearance: none; }
.video-inline-select:focus, .video-inline-select:active, .video-inline-select:focus-visible { outline: none; box-shadow: none; }
.video-inline-btn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid #d8dde6; background: rgba(255,255,255,.96); color: #111; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1; padding: 0; font-size: 24px; font-weight: 700; box-sizing: border-box; }
.video-inline-close-btn { font-size: 28px; }
html[data-theme="dark"] .video-inline-select,
body.dark .video-inline-select,
html[data-theme="dark"] .video-inline-btn,
body.dark .video-inline-btn { border-color: #3a3c42; background: rgba(42,44,49,.96); color: #f1f1f1; }
@media (max-width: 480px) { .video-player-shell { margin-top: -18px; } .video-player { max-height: 200px; min-height: 160px; } .bag-search-btn { width: 132px; min-width: 132px; max-width: 132px; padding: 0 12px; } .video-inline-select { width: 58px; min-width: 58px; max-width: 58px; padding: 0 6px; } }


.video-inline-select option { text-align: center; }
#videoInlineQualitySelect { background-image: none !important; }
#videoInlineAudioTrackSelect { background-image: none !important; }
.video-inline-select::-ms-expand { display: none; }
.video-inline-select, .video-inline-btn { box-shadow: none !important; }
.video-inline-btn > * { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
