html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #fff;
    background: #071012 url('../img/background-image.jpg') center center / cover fixed no-repeat;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #071012;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 5px #fff;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.evp-page {
    flex: 1;
    background:
        linear-gradient(180deg, rgba(3, 8, 12, 0.52) 0%, rgba(3, 8, 12, 0.92) 44%, #071012 100%);
}

.evp-hero {
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
    padding: 72px min(7vw, 88px) 42px;
}

.evp-hero__content {
    max-width: 860px;
}

.eyebrow {
    color: #9ed8d0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.evp-hero h1 {
    margin: 0 0 18px;
    max-width: 860px;
    font-size: clamp(34px, 5.2vw, 62px);
    line-height: 1.05;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.evp-hero p:last-child {
    max-width: 740px;
    margin: 0;
    color: #d8e4e3;
    font-size: 19px;
    line-height: 1.65;
}

.evp-archive {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 28px;
    align-items: start;
    padding: 28px min(7vw, 88px) 64px;
}

.archive-heading {
    position: sticky;
    top: 24px;
    padding: 24px 0;
}

.archive-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.archive-heading p:last-child {
    margin: 0;
    color: #c9d5d6;
    font-size: 17px;
    line-height: 1.65;
}

#evpList {
    display: grid;
    gap: 18px;
}

.case-file {
    padding: 26px;
    border: 1px solid rgba(216, 244, 239, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(216, 244, 239, 0.08), rgba(216, 244, 239, 0)),
        rgba(9, 17, 20, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.case-file__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.case-id,
.review-badge,
.archive-empty span {
    color: #9ed8d0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.case-file h3 {
    margin: 8px 0 0;
    font-size: 30px;
}

.review-badge {
    padding: 8px 10px;
    border: 1px solid rgba(158, 216, 208, 0.36);
    border-radius: 999px;
    background: rgba(158, 216, 208, 0.09);
    white-space: nowrap;
}

.wave-strip {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.wave-strip span {
    flex: 1;
    min-width: 4px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d8f4ef, #2a8178);
    opacity: 0.82;
}

.wave-strip span:nth-child(2n) { height: 46px; opacity: 0.62; }
.wave-strip span:nth-child(3n) { height: 66px; opacity: 0.9; }
.wave-strip span:nth-child(5n) { height: 34px; opacity: 0.54; }
.wave-strip span:nth-child(7n) { height: 74px; opacity: 0.95; }

audio {
    width: 100%;
    margin-bottom: 24px;
}

.case-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.case-notes div {
    padding: 16px;
    background: rgba(5, 12, 15, 0.72);
}

.case-notes dt {
    margin-bottom: 8px;
    color: #96a8aa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.case-notes dd {
    margin: 0;
    color: #eef7f5;
    line-height: 1.45;
}

.archive-empty {
    padding: 18px 20px;
    border: 1px dashed rgba(216, 244, 239, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.archive-empty p {
    margin: 8px 0 0;
    color: #c9d5d6;
}

.evp-list-footer {
    grid-column: 2;
}

.evp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.evp-pagination button {
    min-width: 112px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(158, 216, 208, 0.36);
    border-radius: 6px;
    background: rgba(158, 216, 208, 0.1);
    color: #d8f4ef;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.evp-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.evp-pagination span {
    color: #c9d5d6;
    font-size: 14px;
    font-weight: 700;
}

.review-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0 min(7vw, 88px) 64px;
}

.review-strip div {
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-strip div:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
}

.review-strip div:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 8px 8px 0;
}

.review-strip strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.review-strip span {
    color: #c9d5d6;
    line-height: 1.55;
}

footer {
    padding: 20px;
    background: #071012;
    text-align: center;
}

footer p {
    margin: 20px 0 0;
    font-size: 14px;
}

@media (max-width: 900px) {
    .evp-archive {
        grid-template-columns: 1fr;
    }

    .archive-heading {
        position: static;
        padding: 0;
    }

    .archive-empty {
        grid-column: auto;
    }

    .case-notes,
    .review-strip {
        grid-template-columns: 1fr;
    }

    .evp-pagination {
        justify-content: stretch;
    }

    .evp-list-footer {
        grid-column: auto;
    }

    .evp-pagination button {
        flex: 1;
    }

    .review-strip div,
    .review-strip div:first-child,
    .review-strip div:last-child {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

@media (max-width: 640px) {
    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    nav li {
        margin-left: 0;
    }

    .evp-hero,
    .evp-archive,
    .review-strip {
        padding-left: 20px;
        padding-right: 20px;
    }

    .evp-hero h1 {
        font-size: 34px;
    }

    .evp-hero p:last-child {
        font-size: 17px;
    }

    .case-file {
        padding: 20px;
    }

    .case-file__header {
        flex-direction: column;
    }
}
