.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(320px, 520px) minmax(0, 1fr);
    gap: 1.5rem;
    border-radius: 18px;
    padding: 1.35rem;
}

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

.record-gallery-stage {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    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: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 1.7rem;
    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.85rem;
}

.gallery-next {
    right: 0.85rem;
}

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

.record-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    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.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

.record-notes {
    margin-top: 0.95rem;
    color: #c8c8c8;
    font-size: 0.96rem;
    line-height: 1.7;
}

.record-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #ff8c00;
    color: #111;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-secondary {
    background: #f2ede6;
    color: #242424;
}

.tag-muted {
    background: #242424;
    color: #e4e4e4;
    border: 1px solid #383838;
}

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

.kv-item {
    min-height: 76px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
}

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

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.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;
}

.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;
}

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

.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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: #ff8c00;
    color: #131313;
    font-size: 0.85rem;
    font-weight: 700;
}

.offer-buy-link:hover {
    background: #ff9e24;
}

.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;
}

.detail-value {
    color: #fff;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
}

.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;
}

.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: 640px;
        margin: 0 auto;
    }

    .record-panels,
    .record-panels-bottom {
        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;
    }
}
