:root {
    --detail-border: rgba(40, 46, 68, 0.14);
    --detail-border-2: rgba(40, 46, 68, 0.1);
    --detail-soft: rgba(124, 93, 247, 0.12);
    --detail-soft-2: rgba(95, 140, 255, 0.12);
    --detail-success: #2eae3d;
    --detail-success-bg: rgba(46, 174, 61, 0.14);
}

.crumb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 6px 12px;
    color: #5b6173;
    font-size: 13px;
}

.crumb-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--detail-border-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crumb-row a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.crumb-row .sep {
    opacity: 0.6;
}

.detail-shell {
    position: relative;
}

.nav-arrow {
    position: fixed;
    top: 54%;
    transform: translateY(-50%);
    width: 56px;
    height: 120px;
    border-radius: 16px;
    border: 1px solid rgba(51, 60, 91, 0.16);
    background: rgba(129, 140, 163, 0.55);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 50;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.02);
    background: rgba(129, 140, 163, 0.7);
}

.nav-arrow svg {
    width: 18px;
    height: 18px;
}

.nav-arrow.prev {
    left: 12px;
}

.nav-arrow.next {
    right: 12px;
}

.detail-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid #e8eaf2;
    overflow: hidden;
}

.detail-main {
    display: grid;
    grid-template-columns: 1.55fr 0.9fr;
    gap: 0;
}

.player-wrap {
    padding: 22px 18px 18px 22px;
    border-right: 1px solid rgba(231, 234, 245, 0.9);
}

.player-shell {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: linear-gradient(135deg, rgba(98, 120, 255, 0.22), rgba(209, 123, 255, 0.16));
    aspect-ratio: 16 / 9;
    box-shadow: 0 16px 34px rgba(17, 22, 46, 0.12);
}

.player-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 70% at 10% 10%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(120% 70% at 90% 90%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.player-watermark {
    position: absolute;
    left: 18px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    letter-spacing: 0.4px;
    font-size: 12px;
    z-index: 3;
}

.player-watermark .mark {
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff4d7d 0%, #ffb84d 100%);
}

.cover-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.85);
    color: #2c3143;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cover-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.52) 100%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.22);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    min-width: 40px;
}

.progress {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.progress > span {
    display: block;
    height: 100%;
    width: 18%;
    background: linear-gradient(90deg, rgba(124, 93, 247, 0.95), rgba(95, 140, 255, 0.95));
    border-radius: 999px;
}

.control-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info-wrap {
    padding: 22px 22px 18px 18px;
}

.info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.title-box {
    display: grid;
    gap: 8px;
}

.title-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.detail-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: #2b3143;
}

.icon-mini {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    border: 1px solid rgba(124, 93, 247, 0.3);
    background: rgba(124, 93, 247, 0.06);
    color: #4f45d4;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(97, 80, 238, 0.14);
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6a6f82;
    font-size: 12px;
}

.meta-line .dot::before {
    content: "•";
    margin-right: 8px;
    color: #b0b6c8;
}

.more-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(124, 93, 247, 0.36);
    background: rgba(255, 255, 255, 0.85);
    color: #4f45d4;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.crew-strip {
    margin-top: 18px;
    border-radius: 14px;
    border: 1px solid rgba(231, 234, 245, 0.9);
    background: rgba(246, 247, 251, 0.9);
    padding: 14px 14px;
    color: #404657;
    font-size: 12px;
    line-height: 1.8;
}

.crew-strip b {
    color: #2b3143;
}

.crew-strip .sep {
    margin: 0 10px;
    color: rgba(64, 70, 87, 0.35);
}

.info-actions {
    margin-top: 14px;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.7);
}

.detail-sections {
    padding: 14px 18px 22px;
    border-top: 1px solid rgba(231, 234, 245, 0.9);
    background: rgba(255, 255, 255, 0.8);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #2b3143;
    margin: 4px 0 12px 2px;
    font-size: 14px;
}

.section-label::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), #5f8cff);
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(51, 60, 91, 0.14);
    background: #ffffff;
}

.file-table th,
.file-table td {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(51, 60, 91, 0.08);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.6;
}

.file-table th {
    background: rgba(124, 93, 247, 0.06);
    font-weight: 900;
    color: #3a4056;
}

.file-table tr:last-child td {
    border-bottom: 0;
}

.file-name {
    color: #3c2fb9;
    font-weight: 800;
    word-break: break-all;
}

.external {
    display: flex;
    align-items: center;
    gap: 8px;
}

.external a {
    color: #4b5166;
    text-decoration: none;
    display: inline-block;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(51, 60, 91, 0.14);
    background: rgba(255, 255, 255, 0.75);
    color: #4b5166;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.copy-btn:hover {
    border-color: rgba(124, 93, 247, 0.3);
    color: #4f45d4;
    background: rgba(124, 93, 247, 0.06);
}

.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(46, 174, 61, 0.25);
    background: var(--detail-success-bg);
    color: var(--detail-success);
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.badge-success::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--detail-success);
    box-shadow: 0 0 0 3px rgba(46, 174, 61, 0.15);
}

.ops {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.op-link {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    color: #4f45d4;
    font-weight: 800;
}

.op-link.muted {
    color: #7a8196;
    font-weight: 700;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(51, 60, 91, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(17, 22, 46, 0.14);
    color: #2b3143;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 80;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 1100px) {
    .nav-arrow {
        display: none;
    }

    .detail-main {
        grid-template-columns: 1fr;
    }

    .player-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(231, 234, 245, 0.9);
        padding: 18px 18px 16px;
    }

    .info-wrap {
        padding: 18px 18px 16px;
    }
}

@media (max-width: 760px) {
    .external a {
        max-width: 280px;
    }

    .file-table th:nth-child(2),
    .file-table td:nth-child(2) {
        display: none;
    }
}

