

.beat-detail-cart-icon {
    display: none !important;
}

.main-container:has(.beat-detail-page) {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    background: var(--bg);
}

.beat-detail-page.beat-detail-container {
    display: block;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    box-sizing: border-box;
}

.beat-page {
    --beat-cover-col: minmax(240px, 320px);
    --beat-gap: clamp(28px, 5vw, 48px);
    --beat-page-pad: clamp(20px, 4vw, 40px);
    --beat-radius-cover: 22px;
    --beat-radius-panel: 16px;
    --beat-radius-pill: 980px;
    --beat-surface: var(--card);
    --beat-surface-elevated: color-mix(in srgb, var(--card) 88%, var(--fill-elevated));
    --beat-hairline: color-mix(in srgb, var(--border) 55%, transparent);
    padding: calc(var(--header-height) + 24px) var(--beat-page-pad) 80px;
    background: var(--bg);
    overflow: visible;
}

.beat-page-grid {
    --beat-store-col: minmax(268px, 300px);
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--beat-cover-col) minmax(0, 1fr) var(--beat-store-col);
    grid-template-rows: auto auto;
    gap: var(--beat-gap);
    align-items: start;
    overflow: visible;
}

.beat-page-cover {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.beat-page-main {
    grid-column: 2;
    grid-row: 1;
}

.beat-page-store {
    grid-column: 3;
    grid-row: 1 / -1;
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.beat-page-details {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.beat-page-store__extra {
    width: 100%;
}

.beat-page-store__extra .beat-toolbar-btn {
    width: 100%;
}

.beat-cover-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.12);
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-image: var(--beat-cover-glow-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(56px) saturate(1.5) brightness(0.96);
    opacity: 0.68;
    z-index: 0;
    pointer-events: none;
    animation: beat-cover-glow-rotate 45s linear infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .beat-cover-container::before {
        animation: none;
    }
}

@keyframes beat-cover-glow-rotate {
    from {
        transform: translate(-50%, -50%) scale(1.12) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) scale(1.12) rotate(360deg);
    }
}

.beat-page-cover:not([style*="--beat-cover-glow-url"]) .beat-cover-container::before {
    display: none;
}

.beat-cover-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 1;
}

.beat-cover-plays {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.beat-cover-like-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.beat-cover-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.beat-cover-like:hover {
    opacity: 0.7;
}

.beat-cover-like.is-liked {
    color: var(--text);
}

.beat-cover-like .material-symbols-outlined {
    font-size: 1.35rem;
}

.beat-cover-likes-count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1;
}

.beat-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
    padding: 0 2px;
}

.beat-title-row .beat-detail-title {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.beat-title-share {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.beat-title-share:hover {
    background: color-mix(in srgb, var(--card) 55%, var(--fill-elevated));
}

.beat-title-share .bi, .beat-title-share svg.lucide {
    font-size: 1.25rem;
}

.beat-hero,
.beat-body,
.beat-hero-inner,
.beat-body-inner,
.beat-hero-visual,
.beat-hero-info,
.beat-body-content {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.beat-page-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.beat-cover-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    margin: 0;
    border-radius: var(--beat-radius-cover);
    overflow: hidden;
    background: var(--card-secondary);
    border: none;
    box-shadow:
        0 1px 2px color-mix(in srgb, var(--shadow-color) 25%, transparent),
        0 12px 36px color-mix(in srgb, var(--shadow-color) 28%, transparent);
}

.beat-cover-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: var(--beat-radius-cover);
    background: var(--card-secondary);
}

.beat-cover-container:hover .play-overlay,
.beat-cover-container:focus-within .play-overlay {
    opacity: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.beat-cover-container .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: pointer;
    z-index: 2;
}

.beat-cover-container .play-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, #000000 55%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.beat-cover-container .play-button:hover {
    transform: scale(1.05);
    opacity: 0.92;
}

.beat-cover-container .play-button .material-symbols-outlined,
.beat-cover-container .play-button svg.lucide,
.beat-cover-container .play-button [data-lucide] {
    width: auto;
    height: auto;
    font-size: 2.125rem;
    line-height: 1;
    color: #ffffff;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.beat-cover-container .play-button svg.lucide.play-button-icon {
    width: 34px;
    height: 34px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.beat-page-main,
.beat-hero-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 2px;
}

.beat-main-info {
    padding: 0 2px;
    margin-top: -2px;
}

.beat-page-details,
.beat-detail-sections {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.beat-detail-title {
    font-size: clamp(1.625rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    word-break: break-word;
    color: var(--text);
}

.beat-main-info .artist {
    margin: 0 0 4px;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.beat-main-info .artist a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.beat-main-info .artist a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.beat-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.beat-stats li {
    display: inline-flex;
    align-items: center;
}

.beat-stats li:not(:last-child)::after {
    content: '·';
    margin: 0 8px;
    color: var(--border-hover);
    font-weight: 400;
}

.beat-stats-value {
    font-weight: 400;
    color: var(--text-muted);
}

.beat-wave-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-height: 3rem;
}

.beat-wave-card .beat-wave-track {
    min-height: 2.75rem;
}

.beat-store-card {
    display: block;
    width: 100%;
}

.beat-store-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: var(--beat-radius-panel);
    background: var(--beat-surface-elevated);
    box-shadow:
        0 1px 2px color-mix(in srgb, var(--shadow-color) 18%, transparent),
        0 16px 40px color-mix(in srgb, var(--shadow-color) 24%, transparent);
}

.beat-store-panel--kit {
    gap: 20px;
}

.beat-store-panel__tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--beat-surface) 72%, var(--fill-elevated));
    border: 1px solid var(--beat-hairline);
}

.beat-store-panel__tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 6px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.beat-store-panel__tab:hover {
    color: var(--text);
}

.beat-store-panel__tab.is-active {
    background: color-mix(in srgb, var(--text) 14%, transparent);
    color: var(--text);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow-color) 20%, transparent);
}

.beat-store-panel__price {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.beat-store-panel__tagline {
    margin: -6px 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.beat-store-panel__details {
    border-top: 1px solid var(--beat-hairline);
    padding-top: 4px;
}

.beat-store-panel__details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.beat-store-panel__details-summary::-webkit-details-marker {
    display: none;
}

.beat-store-panel__details-summary::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.beat-store-panel__details[open] .beat-store-panel__details-summary::after {
    transform: rotate(180deg);
}

.beat-store-panel__details-body {
    padding-bottom: 4px;
}

.beat-store-panel__details-title {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.beat-store-panel__terms,
.beat-store-panel__terms-option {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.beat-store-panel__terms li,
.beat-store-panel__terms-option li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.beat-store-panel__terms .material-symbols-outlined,
.beat-store-panel__terms-option .material-symbols-outlined {
    font-size: 1rem;
    color: var(--text);
    flex-shrink: 0;
    margin-top: 1px;
}

.beat-store-panel__actions {
    margin-top: 2px;
}

.beat-store-panel__owner-yt {
    padding-top: 4px;
    border-top: 1px solid var(--beat-hairline);
}

.beat-store-panel__yt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--beat-hairline);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.beat-store-panel__yt-btn:hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.beat-store-panel__yt-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
}

.beat-store-panel__yt-btn .bi-youtube {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.beat-license-heading {
    order: 1;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.beat-license-toolbar {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 12px;
    width: 100%;
}

.beat-license-grid {
    order: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.beat-license-total {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.beat-license-total strong {
    color: var(--text);
    font-weight: 600;
}

.beat-license-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.beat-purchase-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.beat-purchase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.beat-purchase-btn__label {
    min-width: 0;
}

.beat-purchase-btn--cart {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--button-primary-bg, #fff);
    color: var(--button-primary-text, #000);
}

.beat-purchase-btn--cart .material-symbols-outlined {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.beat-store-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--border, color-mix(in srgb, var(--text) 18%, transparent));
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.beat-store-like.is-liked {
    color: #ff453a;
    border-color: color-mix(in srgb, #ff453a 35%, transparent);
}

.beat-store-like .material-symbols-outlined {
    font-size: 1.25rem;
}

.beat-store-like:hover {
    opacity: 0.92;
}

.beat-purchase-btn:hover {
    opacity: 0.92;
}

.beat-purchase-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.beat-cover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.beat-license-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    --btn-size: 40px;
    --width: var(--btn-size);
    min-height: var(--btn-size);
    padding: 0 18px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.beat-license-btn .bi-youtube {
    font-size: 1.05rem;
    line-height: 1;
    color: inherit;
}

.beat-license-btn--cart {
    background: var(--bg-secondary);
    color: var(--text);
}

.beat-license-btn--buy {
    background: #ffffff;
    color: #000000;
}

.beat-license-btn:hover {
    opacity: 0.92;
}

.beat-license-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.beat-owner-actions .beat-license-btn,
.beat-youtube-btn {
    width: 100%;
}

.beat-license-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.beat-license-card.is-active {
    border-color: #ffffff;
    background: transparent;
}

.beat-license-card__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.beat-license-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.beat-license-card__price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.beat-license-card__formats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.beat-store-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.beat-store-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: opacity 0.15s ease;
    position: relative;
}

.beat-store-option + .beat-store-option {
    border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

.beat-store-option:hover {
    opacity: 0.88;
}

.beat-store-option.is-active {
    opacity: 1;
}

.beat-store-option > .beat-store-option__radio {
    grid-row: 1 / -1;
    align-self: center;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--text);
    cursor: pointer;
}

.beat-store-option__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 10px;
}

.beat-store-option__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.beat-store-option__price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.beat-store-option__desc {
    grid-column: 2;
    display: block;
    margin-top: 3px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.beat-store-buy {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 20px !important;
    border: none !important;
    border-radius: 12px !important;
    background: var(--text) !important;
    color: var(--bg) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
    box-shadow: none !important;
    transition: opacity 0.2s ease, transform 0.15s ease !important;
}

.beat-store-buy:hover:not(:disabled) {
    opacity: 0.9 !important;
    background: var(--text) !important;
    color: var(--bg) !important;
}

.beat-store-buy__label {
    flex-shrink: 0;
}

.beat-store-buy__sep {
    opacity: 0.45;
    font-weight: 400;
}

.beat-store-buy__price,
#beat-detail-buy-price {
    font-variant-numeric: tabular-nums;
}

.beat-store-sold {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 20px;
    border-radius: var(--beat-radius-panel);
    background: var(--beat-surface-elevated);
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.beat-store-sold .material-symbols-outlined {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.beat-toolbar--compact {
    margin-top: 0;
}

.beat-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

.beat-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.beat-toolbar-btn:hover {
    background: color-mix(in srgb, var(--bg-secondary) 70%, var(--fill-elevated));
}

.beat-toolbar .icon-btn,
.beat-toolbar .btn-favorite {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

.beat-toolbar .btn-favorite.favorited {
    color: #e53935;
}

.beat-toolbar .btn-download {
    width: auto;
    min-height: 44px;
    padding: 0 16px;
    border: none;
    background: var(--bg-secondary);
    text-transform: none;
    letter-spacing: -0.01em;
}

.beat-toolbar .btn-download span:not(.material-symbols-outlined) {
    display: inline;
}

.beat-description,
.beat-tags,
.beat-files {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.beat-page-details > .beat-files,
.beat-page-details > .comments-toggle-row,
.beat-page-details > .beat-owner-actions {
    margin-top: 0;
    margin-bottom: 0;
}

.beat-page-details .comments-toggle-row {
    margin-top: 0;
    width: 100%;
}

.beat-page-details .comments-toggle-row + .beat-owner-actions {
    margin-top: 0;
}

.beat-bottom-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
}

.beat-page-details > .beat-files + .beat-bottom-stack {
    margin-top: 0;
}

.beat-description-body {
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: -0.015em;
}
.beat-description-body p {
    margin: 0 0 0.75rem 0;
}
.beat-description-body p:last-child {
    margin-bottom: 0;
}
.beat-description-body a.beat-desc-link,
.beat-description-body a.mention-link {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.beat-youtube-publish {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}
.beat-owner-actions {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.beat-youtube-publish__channel {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}
.beat-action-btn,
.beat-youtube-publish__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: none;
  background: var(--beat-surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}
.beat-action-btn:hover,
.beat-youtube-publish__btn:hover {
    background: var(--beat-surface-elevated);
}
.beat-action-btn .bi-youtube,
.beat-action-btn svg.lucide-youtube {
    font-size: 1.15rem;
    color: #ff0033;
}
.beat-youtube-publish__btn:disabled,
.beat-action-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.beat-youtube-publish__status {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}
.beat-youtube-publish__status.is-loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid color-mix(in srgb, var(--text) 25%, transparent);
    border-top-color: var(--text);
    border-radius: 50%;
    vertical-align: -2px;
    animation: beat-yt-spin 0.7s linear infinite;
}
@keyframes beat-yt-spin {
    to { transform: rotate(360deg); }
}
.beat-tags-details {
    margin: 0;
}
.beat-tags-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-transform: none;
    letter-spacing: -0.01em;
    user-select: none;
}
.beat-tags-summary::-webkit-details-marker {
    display: none;
}
.beat-tags-summary::after {
    content: '';
    width: 0.35em;
    height: 0.35em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 0.15em;
    transition: transform 0.2s ease;
    opacity: 0.75;
}
.beat-tags-details[open] .beat-tags-summary::after {
    transform: rotate(-135deg);
    margin-bottom: -0.1em;
}
.beat-tags-summary:focus {
    outline: none;
}
.beat-tags-summary:focus-visible {
    outline: 2px solid var(--text-muted);
    outline-offset: 3px;
    border-radius: 2px;
}
.beat-tags-count {
    font-weight: 400;
    opacity: 0.85;
}
.beat-tags-details .tags-list {
    margin-top: 0.65rem;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
}
.tag-item {
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
}

.comments-section {
    margin-top: clamp(1.75rem, 5vw, 2.5rem);
}
.comments-count-line {
    margin: 0 0 1rem 0;
    font-size: 0.88em;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 1.75rem;
}
.comment-form .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-form-main {
    flex-grow: 1;
}
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95em;
    resize: vertical;
    min-height: 2.75rem;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--bg) 78%, var(--card));
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.comment-form textarea:focus {
    border-color: var(--text-muted);
}
.comment-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.45;
}
.comment-form button {
  display: block;
  margin-left: auto;
  margin-top: 0.65rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comment-form button:hover {
    color: var(--text-secondary);
    background: transparent;
}

.comment-list .comment {
    display: flex;
    gap: 16px;
    padding: 1rem 0;
    border-bottom: none;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}
.comment-list .comment:last-child { border-bottom: none; }
.comment .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-body {
    flex-grow: 1;
    max-width: 520px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.comment-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}
.comment-header .username {
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    transition: color 0.25s ease;
}
.comment-header .timestamp {
    font-size: 0.8em;
    color: var(--text-muted);
    transition: color 0.25s ease;
}
.comment-text {
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: pre-wrap;
    overflow: hidden;
    color: var(--text);
    transition: color 0.25s ease;
}
.no-comments {
    padding: 1rem 0;
    text-align: center;
    color: var(--text-muted);
    background: transparent;
    border-radius: 0;
}

@media (max-width: 768px) {
    .beat-page {
        --beat-page-pad: 16px;
        padding: 8px var(--beat-page-pad) calc(var(--bottom-nav-clearance, 16px) + 96px);
    }

    .beat-page-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .beat-page-cover,
    .beat-page-main,
    .beat-page-store,
    .beat-page-details {
        grid-column: 1;
        grid-row: auto;
    }

    .beat-page-store {
        position: relative;
        top: auto;
    }

    .beat-page-cover {
        position: relative;
        top: auto;
        width: 100%;
        gap: 12px;
        overflow: visible;
    }

    .beat-cover-container::before {
        width: 88%;
        opacity: 0.54;
    }

    .beat-cover-container {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 20px;
    }

    .beat-cover-container .play-overlay {
        opacity: 1;
    }

    .beat-cover-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 2px;
    }

    .beat-page-main {
        gap: 16px;
        padding-top: 0;
        position: relative;
        z-index: 1;
    }

    .beat-title-row {
        align-items: center;
        margin-bottom: 0;
    }

    .beat-detail-title {
        font-size: clamp(1.5rem, 6.8vw, 2rem);
    }

    .beat-main-info .artist {
        font-size: 1rem;
    }

    .beat-stats {
        font-size: 0.78rem;
    }

    .beat-youtube-btn {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    .beat-store-card {
        gap: 12px;
    }

    .beat-license-grid {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .beat-license-toolbar {
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .beat-purchase-actions,
    .beat-license-buttons {
        order: 1;
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .beat-purchase-btn--cart {
        flex: 1 1 auto;
    }

    .beat-license-total {
        order: 2;
        font-size: 0.9375rem;
    }

    .beat-license-btn {
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
    }

    .beat-license-card {
        padding: 12px;
        min-height: 88px;
    }

    .beat-license-card__title {
        font-size: 0.8125rem;
    }

    .beat-license-card__price {
        font-size: 0.875rem;
    }

    .beat-license-card__formats {
        font-size: 0.6875rem;
    }

    .beat-youtube-btn {
        width: 100%;
        min-height: 48px;
    }

    .beat-toolbar {
        width: 100%;
    }

    .beat-toolbar-btn {
        width: 100%;
        min-height: 48px;
    }

    .beat-page-details {
        margin-top: 4px;
        gap: 14px;
    }

    .beat-owner-actions {
        margin-top: 0;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .beat-page {
        --beat-page-pad: 14px;
        padding-top: 4px;
    }

    .beat-title-row {
        gap: 10px;
    }

    .beat-title-share {
        width: 36px;
        height: 36px;
        margin-top: 0;
    }

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

    .beat-purchase-actions,
    .beat-license-buttons {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    
    .player-volume-button .material-symbols-outlined {
        font-size: 20px;
    }

    
    .volume-bar::-webkit-slider-thumb,
    .volume-bar::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 500px) {
            .player-volume-button,
    .volume-bar {
        display: none;
    }
}

.beat-detail-page .action-buttons .btn {
  min-height: 40px;
  padding: 0 20px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beat-detail-page .beat-store-buy,
.beat-detail-container .beat-store-buy {
    width: 100% !important;
}

.beat-detail-container .btn-buy--sold {
    cursor: not-allowed !important;
    opacity: 0.45;
    text-decoration: none !important;
}

.beat-detail-container .btn-buy--sold:hover {
    color: var(--text-muted) !important;
    text-decoration: none !important;
}

.beat-detail-page .btn-favorite,
.beat-detail-container .btn-favorite {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beat-detail-container .btn-favorite.favorited {
    color: #e53935;
}

.beat-detail-container .btn-favorite:hover {
    background: var(--button-hover-bg);
}

.beat-detail-page .btn-download,
.beat-detail-container .btn-download {
  width: auto;
  min-height: 40px;
  padding: 0 4px;
  background: transparent;
  border: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.0625rem;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0;
}

.beat-detail-page .btn-download:hover,
.beat-detail-container .btn-download:hover {
    background: transparent;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.beat-detail-container .btn-download .material-symbols-outlined {
    font-size: 1.35rem;
}

.beat-detail-container .btn-download span:not(.material-symbols-outlined) {
    display: inline;
}

.beat-detail-container .icon-btn {
  width: auto !important;
  height: auto !important;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem;
  background: transparent !important;
  border: none !important;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.beat-detail-container .icon-btn:hover {
    background: transparent !important;
    color: var(--text-secondary);
}

.beat-detail-container .icon-btn .material-symbols-outlined {
    font-size: 1.35rem;
}

.beat-detail-container .icon-btn .bi, .beat-detail-container .icon-btn svg.lucide {
    font-size: 1.35rem;
    line-height: 1;
    color: inherit;
}

.beat-files {
    margin-bottom: 0;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.beat-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    padding: 0.35rem 0;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}

.beat-file-row--split {
    justify-content: space-between;
    align-items: center;
}

.beat-file-row__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.beat-file-row__icon {
    font-size: 1.15rem !important;
    color: var(--text-muted) !important;
    flex-shrink: 0;
}

.beat-file-row__label {
    font-weight: 500;
    color: var(--text);
}

.beat-file-row__hint {
    color: var(--text-muted);
    font-size: 0.92em;
    text-transform: none;
    letter-spacing: 0.03em;
}

.beat-file-row__link {
    font-size: 0.88em;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.beat-file-row__link:hover {
    color: var(--text-secondary);
}

.beat-share-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 3000;
    padding: 12px 20px;
    max-width: min(90vw, 18rem);
    background: var(--card-secondary);
    color: var(--text);
    font-family: var(--font-family);
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: opacity 0.28s ease;
    opacity: 0;
    pointer-events: none;
}

.beat-modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.beat-modal-panel {
    max-width: 26rem;
    width: 90vw;
    padding: clamp(24px, 4vw, 32px);
    text-align: center;
    background: var(--card-secondary);
    color: var(--text);
    border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    border-radius: 18px;
    box-shadow: 0 8px 32px var(--shadow-color);
    font-family: var(--font-family);
}

.beat-modal-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text);
}

.beat-modal-text {
    margin: 0 0 1.35rem;
    line-height: 1.55;
    font-size: 0.88em;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.03em;
}

.beat-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.beat-modal-btn {
  padding: 0.4rem 0.5rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beat-modal-btn--ghost {
    color: var(--text-muted);
}

.beat-modal-btn--primary {
    font-weight: 500;
    color: var(--text);
}

.beat-wave-card .beat-wave-track {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    max-width: 100%;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.beat-wave-card .beat-wave-play {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.beat-wave-card .beat-wave-play.is-playing {
    background: color-mix(in srgb, #ffffff 92%, #111111);
}

.beat-wave-card .beat-wave-play:hover {
    opacity: 0.88;
}

.beat-wave-card .beat-wave-play .material-symbols-outlined,
.beat-wave-card .beat-wave-play svg.lucide,
.beat-wave-card .beat-wave-play [data-lucide] {
    width: auto;
    height: auto;
    font-size: 1.625rem;
    line-height: 1;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.beat-wave-card .beat-wave-play svg.lucide.play-button-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.beat-wave-road {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0;
}

.beat-wave-visual {
    position: relative;
    width: 100%;
    min-height: 2.2rem;
    height: 2.2rem;
}

.beat-wave-bars {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    overflow: hidden;
}

.beat-wave-card .beat-wave-bars span {
    flex: 1 1 0;
    min-width: 0;
    height: var(--bar-h, 45%);
    background: color-mix(in srgb, var(--text-muted) 35%, transparent);
    border-radius: 999px;
    transition: background-color 0.12s linear;
}

.beat-wave-card .beat-wave-bars span.is-played {
    background: color-mix(in srgb, var(--text) 55%, var(--text-muted));
}

.beat-wave-card .beat-wave-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--text);
    border-radius: 99px;
    pointer-events: none;
    transform: translateX(-1px);
    z-index: 2;
}

.beat-wave-seek {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.beat-wave-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
    min-height: 1rem;
    flex-shrink: 0;
}

.beat-wave-card .beat-wave-time {
    position: static;
    font-size: 0.6875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.beat-wave-time--current {
    text-align: left;
}

.beat-wave-time--duration {
    text-align: right;
}

@media (max-width: 768px) {
    .beat-wave-card {
        min-height: 40px;
    }

    .beat-wave-card .beat-wave-track {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 40px;
        height: auto;
    }

    .beat-wave-card .beat-wave-play {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .beat-wave-card .beat-wave-road {
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .beat-wave-card .beat-wave-visual {
        flex: 1;
        min-width: 0;
        height: 28px;
        min-height: 28px;
    }

    .beat-wave-card .beat-wave-bars {
        gap: 1px;
    }

    .beat-wave-card .beat-wave-playhead {
        top: 50%;
        bottom: auto;
        height: 28px;
        transform: translate(-1px, -50%);
    }

    .beat-wave-card .beat-wave-times {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        width: auto;
        min-width: 4.5rem;
        min-height: 0;
        justify-content: flex-end;
        white-space: nowrap;
    }

    .beat-wave-card .beat-wave-time {
        font-size: 0.6875rem;
        line-height: 1;
    }

    .beat-wave-card .beat-wave-time--current::after {
        content: '/';
        margin: 0 3px;
        opacity: 0.55;
    }
}

.comments-toggle-row {
    margin-top: 0;
}

.comments-drawer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: none;
    background: var(--beat-surface);
    color: var(--text);
    border-radius: var(--beat-radius-panel);
    padding: 12px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comments-drawer-toggle:hover {
    background: var(--beat-surface-elevated);
}

.comments-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(30rem, 92vw);
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    transform: translateX(104%);
    transition: transform 0.28s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.comments-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.comments-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.comments-drawer-close {
    border: none;
    background: transparent;
    color: var(--text);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comments-drawer-body {
    padding: 0.95rem 1rem 1.2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.comments-drawer .comment-list .comment {
    max-width: none;
}

.service-detail-page .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 320px;
}

.service-detail-page .service-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--beat-radius-pill, 980px);
    background: var(--beat-surface, var(--card));
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.service-detail-page .service-meta-inactive {
    color: var(--text-muted);
}

.service-detail-page .service-demos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-detail-page .service-demo-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-detail-page .service-demo-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.service-detail-page .service-store-row {
    margin-top: 4px;
}

.service-detail-page .service-store-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--beat-hairline, var(--border));
    border-radius: var(--beat-radius-pill, 980px);
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.service-detail-page .service-store-buy:hover {
    background: var(--button-hover-bg);
    border-color: color-mix(in srgb, var(--text) 18%, var(--border));
}

.service-detail-page .service-store-buy__sep {
    opacity: 0.45;
    font-weight: 400;
}

.service-detail-page .service-store-buy__price {
    font-variant-numeric: tabular-nums;
}

.service-detail-page .service-store-price-only {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    border-radius: var(--beat-radius-pill, 980px);
    border: 1px solid var(--beat-hairline, var(--border));
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.service-detail-page .service-edit-icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.service-detail-page .service-edit-icon-btn:hover {
    background: var(--button-hover-bg);
    color: var(--text);
}

.service-detail-page .service-edit-icon-btn .material-symbols-outlined {
    font-size: 1.35rem;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.service-modal.is-open {
    display: flex;
}

.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.service-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    max-height: min(88vh, 760px);
    overflow-y: auto;
    border-radius: 28px;
    background: color-mix(in srgb, var(--card) 94%, var(--fill-elevated));
    color: var(--text);
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
}

.service-edit-modal__card {
    width: min(640px, calc(100vw - 32px));
}

.service-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.service-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
}

.service-modal-form,
.service-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-edit-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.service-modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.service-modal-field--full {
    grid-column: 1 / -1;
}

.service-modal-field--checkbox {
    grid-column: 1 / -1;
    padding-top: 2px;
}

.service-modal-field label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.service-modal-field textarea,
.service-modal-field input[type="url"],
.service-modal-field input[type="text"],
.service-modal-field input[type="number"],
.service-modal-field input[type="file"],
.service-modal-field select,
.service-edit-form textarea,
.service-edit-form input[type="text"],
.service-edit-form input[type="number"],
.service-edit-form input[type="file"],
.service-edit-form select {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg-secondary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.service-modal-field textarea,
.service-edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.service-modal-field textarea:focus,
.service-modal-field input[type="url"]:focus,
.service-edit-form textarea:focus,
.service-edit-form input[type="text"]:focus,
.service-edit-form input[type="number"]:focus,
.service-edit-form select:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--text) 28%, var(--border));
    background: var(--card);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent);
}

.service-modal-field textarea::placeholder,
.service-modal-field input[type="url"]::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.service-modal-hint {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.service-modal-error {
    margin: 0;
    font-size: 0.8125rem;
    color: #d32f2f;
}

.service-modal-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.service-modal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--text);
}

.service-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.service-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.service-modal-btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.service-modal-btn--ghost:hover {
    background: var(--button-hover-bg);
}

.service-modal-btn--primary {
    background: var(--text);
    color: var(--bg);
}

.service-modal-btn--primary:hover {
    opacity: 0.9;
}

.service-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.service-modal-close:hover {
    background: var(--button-hover-bg);
}

@media (max-width: 768px) {
    .service-modal-card {
        padding: 20px 18px;
        border-radius: 24px;
    }

    .service-edit-form__grid {
        grid-template-columns: 1fr;
    }

    .service-modal-actions {
        flex-direction: column-reverse;
    }

    .service-modal-btn {
        width: 100%;
    }
}

.mention-link {
    color: var(--accent, #ffffff);
    text-decoration: none;
    font-weight: 500;
}

.mention-link:hover {
    text-decoration: underline;
}