.detail-header {
    color: var(--white);
    padding: 3rem 2rem 2rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 24px 56px rgba(2, 6, 23, 0.24);
    overflow: hidden;
}

.detail-header .back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-tags {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-tag {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    text-align: center;
}

.detail-summary {
    font-size: 1.05rem;
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    color: rgba(248, 250, 252, 0.9);
}

.detail-credit {
    margin-top: 0.75rem;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.8125rem;
    text-align: center;
}

.detail-credit a {
    color: inherit;
}

.detail-content {
    background: rgba(15, 23, 42, 0.8);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.24);
    line-height: 1.8;
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-metric-card {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 0.4rem;
}

.detail-metric-card span {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.detail-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding-bottom: 0.5rem;
}

.detail-list {
    list-style: disc;
    margin-left: 1.25rem;
    color: var(--text-light);
}

.action-bar {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.action-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.detail-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.pager-link {
    min-height: 92px;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    align-content: center;
    gap: 0.35rem;
    color: var(--white);
}

.pager-next {
    text-align: right;
}

.pager-link span {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.pager-link strong {
    color: var(--primary-color);
    font-size: 0.98rem;
    line-height: 1.45;
}

.pager-link.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.related-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.2);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.section-link {
    color: var(--primary-color);
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.related-card {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.related-cover {
    min-height: 132px;
    display: flex;
    align-items: flex-end;
    padding: 0.85rem;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.related-cover span {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8125rem;
    font-weight: 700;
}

.related-body {
    padding: 1rem;
}

.related-meta {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.8125rem;
}

.related-body h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    line-height: 1.45;
}

.related-body h3 a {
    color: var(--primary-color);
}

.related-body p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .detail-metrics {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
    }

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

    .pager-next {
        text-align: left;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
