.record-detail-wrap {
    max-width: 1380px;
    margin: 1.5rem auto 0;
    padding: 0 1.25rem 2.5rem;
}

.record-detail-hero,
.panel {
    background: linear-gradient(145deg, #1d1d1d 0%, #141414 100%);
    border: 1px solid #2b2b2b;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.record-detail-hero {
    display: grid;
    grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
    gap: 0.82rem;
    border-radius: 18px;
    padding: 0.82rem;
}

.record-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.record-gallery-stage {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #313131;
    background: #0d0d0d;
    aspect-ratio: 1 / 1;
}

.record-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.record-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.record-gallery-slide img,
.record-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(255, 140, 0, 0.88);
}

.gallery-prev {
    left: 0.7rem;
}

.gallery-next {
    right: 0.7rem;
}

.record-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 0.4rem;
}

.record-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.record-gallery-thumb.is-active,
.record-gallery-thumb:hover {
    border-color: #ff8c00;
    transform: translateY(-1px);
}

.record-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.record-source {
    color: #ff8c00;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.record-title {
    margin-top: 0;
    font-size: 1.68rem;
    line-height: 1.12;
}

.record-title-link {
    color: #fff;
}

.record-title-link:hover {
    color: #ffd49a;
}

.record-artist {
    margin-top: 0.18rem;
    color: #e6e6e6;
    font-size: 0.92rem;
}

.record-artist-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0;
}

.record-artist-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 176, 90, 0.34);
    background: rgba(255, 140, 0, 0.1);
    color: #ffd49a;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.record-artist-link:hover {
    color: #fff;
    border-color: rgba(255, 176, 90, 0.66);
    background: rgba(255, 140, 0, 0.18);
}

.record-notes {
    margin-top: 0.42rem;
    color: #c8c8c8;
    font-size: 0.82rem;
    line-height: 1.42;
}

.record-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-top: 0.5rem;
}

.record-translate-toolbar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.record-translate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.95rem;
    border: 1px solid rgba(255, 140, 0, 0.34);
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    color: #ffe0b2;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.record-translate-btn:hover {
    background: rgba(255, 140, 0, 0.18);
    color: #fff;
}

.record-translate-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.record-translate-status {
    color: #b8b8b8;
    font-size: 0.8rem;
}

.detail-translate-sub {
    display: block;
    margin-top: 0.32rem;
    color: #ffcf94;
    font-size: 0.82em;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 112, 0.28);
    background: linear-gradient(135deg, rgba(255, 196, 112, 0.18), rgba(240, 90, 36, 0.14));
    color: #ffe0b2;
    font-size: 0.74rem;
    font-weight: 700;
}

.tag-secondary {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    color: #f4ede2;
}

.tag-muted {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cacaca;
}

.record-kv-grid {
    margin-top: 0.58rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem;
}

.kv-item {
    min-height: 50px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    padding: 0.42rem 0.58rem;
}

.kv-label {
    display: block;
    color: #a6a6a6;
    font-size: 0.7rem;
    margin-bottom: 0.12rem;
}

.kv-value {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.26;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin-top: 0.72rem;
}

.hero-purchase-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.hero-purchase-item {
    min-height: 74px;
    padding: 0.82rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #2f2f2f;
    background: rgba(255, 255, 255, 0.025);
}

.hero-purchase-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 90, 31, 0.14) 100%);
    border-color: rgba(255, 140, 0, 0.34);
}

.hero-purchase-item-price .hero-purchase-label {
    display: none;
}

.hero-purchase-label {
    display: block;
    color: #a6a6a6;
    font-size: 0.78rem;
    margin-bottom: 0.32rem;
}

.hero-purchase-value {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
}

.hero-purchase-item-price .hero-purchase-value {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.record-panels {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 1rem;
}

.record-panels-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-full {
    grid-column: 1 / -1;
}

.panel {
    border-radius: 16px;
    padding: 1.1rem;
}

.record-notes-panel {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.record-notes-panel .record-notes {
    margin-top: 0;
}

.panel-title {
    margin-bottom: 0.9rem;
    color: #ff8c00;
    font-size: 1.08rem;
}

.track-table {
    width: 100%;
    border-collapse: collapse;
}

.track-table th,
.track-table td {
    text-align: left;
    padding: 0.78rem 0.4rem;
    border-bottom: 1px solid #2b2b2b;
    color: #ececec;
    vertical-align: top;
}

.track-table th {
    color: #a8a8a8;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.track-table th:first-child,
.track-table td:first-child {
    width: 72px;
    min-width: 72px;
    white-space: nowrap;
}

.track-title-cell {
    width: 100%;
    line-height: 1.5;
}

.track-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.5em;
}

.track-row-child .track-title-wrap::before {
    content: "";
    width: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
    flex: 0 0 12px;
    align-self: center;
}

.track-row-child .track-title-wrap {
    min-height: 0;
    line-height: 1.5;
}

.track-row-heading td,
.track-title-wrap.is-heading .track-title-text {
    color: #ffcf94;
    font-weight: 700;
}

.track-title-wrap.has-children .track-title-text {
    color: #fff4e5;
    font-weight: 600;
}

.track-row-group td {
    background: rgba(255, 140, 0, 0.04);
}

.track-title-text {
    line-height: 1.5;
}

.track-duration {
    display: inline-block;
    min-height: 1.5em;
    line-height: 1.5;
}

.stat-list,
.detail-list,
.video-list {
    display: grid;
    gap: 0.7rem;
}

.purchase-card {
    display: grid;
    gap: 0.9rem;
}

.purchase-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.18) 0%, rgba(255, 90, 31, 0.12) 100%);
    border: 1px solid rgba(255, 140, 0, 0.32);
}

.purchase-label {
    color: #ffd7ad;
    font-size: 0.9rem;
}

.purchase-price {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.purchase-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.purchase-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.offer-list {
    display: grid;
    gap: 0.7rem;
}

.offer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #292929;
    border-radius: 12px;
    background: #151515;
}

.offer-main {
    display: grid;
    gap: 0.25rem;
}

.offer-shop-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.offer-shop {
    color: #fff;
    font-size: 0.96rem;
}

.offer-meta {
    color: #a8a8a8;
    font-size: 0.82rem;
}

.offer-side {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.offer-price {
    color: #ffbe6b;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.18);
    color: #ffbe6b;
    font-size: 0.74rem;
    font-weight: 700;
}

.offer-buy-link {
    min-width: 72px;
    height: 34px;
    padding: 0 0.9rem;
    font-size: 0.85rem;
}

.offer-buy-link:hover {
    box-shadow: var(--btn-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.offer-card.is-selected {
    border-color: rgba(255, 140, 0, 0.45);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08), rgba(255, 90, 31, 0.04));
}

.stat-item,
.detail-row,
.video-item,
.credit-card {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 12px;
}

.stat-item,
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    color: #d6d6d6;
}

.detail-row-stack {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
}

.detail-label {
    color: #a8a8a8;
    font-size: 0.82rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.detail-value {
    color: #fff;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
}

.detail-value-multiline span {
    display: block;
}

.stat-item strong {
    color: #fff;
    font-size: 0.95rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    border: 1px solid #383838;
    color: #ddd;
    font-size: 0.8rem;
    background: #181818;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.credit-card {
    padding: 0.85rem 0.9rem;
}

.credit-role {
    display: block;
    color: #ff8c00;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.credit-name {
    color: #fff;
    font-size: 0.96rem;
}

.credit-meta {
    display: block;
    margin-top: 0.35rem;
    color: #a9a9a9;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0.9rem;
    color: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.video-item:hover {
    border-color: #ff8c00;
    transform: translateY(-1px);
}

.video-title {
    line-height: 1.5;
}

.video-meta {
    color: #ffbe6b;
    white-space: nowrap;
}

.mt-24 {
    margin-top: 1.5rem;
}

@media (max-width: 1199px) {
    .record-detail-hero {
        grid-template-columns: 1fr;
    }

    .record-gallery {
        max-width: 540px;
        margin: 0 auto;
    }

    .record-panels,
    .record-panels-bottom {
        grid-template-columns: 1fr;
    }

    .hero-purchase-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .record-detail-wrap {
        padding: 0 1rem 2rem;
    }

    .record-detail-hero,
    .panel {
        padding: 0.9rem;
        border-radius: 14px;
    }

    .record-title {
        font-size: 1.8rem;
    }

    .record-kv-grid {
        grid-template-columns: 1fr;
    }

    .record-gallery-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .track-table th,
    .track-table td {
        padding: 0.6rem 0.3rem;
        font-size: 0.9rem;
    }

    .panel-title {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }

    .purchase-card {
        gap: 0.75rem;
    }

    .purchase-price-row {
        padding: 0.72rem 0.78rem;
        border-radius: 12px;
    }

    .purchase-label {
        font-size: 0.82rem;
    }

    .purchase-price {
        font-size: 1.45rem;
    }

    .detail-list {
        gap: 0.55rem;
    }

    .detail-value,
    .video-item {
        text-align: left;
    }

    .stat-item,
    .detail-row,
    .video-item {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.72rem 0.78rem;
        border-radius: 10px;
    }

    .offer-card,
    .offer-side {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-card {
        gap: 0.75rem;
        padding: 0.72rem 0.78rem;
        border-radius: 10px;
    }

    .offer-shop {
        font-size: 0.9rem;
    }

    .offer-meta,
    .offer-price {
        font-size: 0.78rem;
    }

    .offer-buy-link {
        min-height: 34px;
        padding: 0.4rem 0.72rem;
        font-size: 0.74rem;
    }
}
