
/* =========================================================
   GLOBAL
   ========================================================= */

.dp-profile,
.dp-profile *,
.dp-auth-modal *,
.dp-rating-modal * {
    box-sizing: border-box;
}

body.dp-modal-open {
    overflow: hidden;
}

.dp-profile {
    --dp-bg: #101114;
    --dp-panel: #17181c;
    --dp-panel-2: #1c1d21;
    --dp-line: rgba(255,255,255,.11);
    --dp-text: #f1eee8;
    --dp-soft: rgba(241,238,232,.62);
    --dp-hot: #d75950;

    color: var(--dp-text);
}

.dp-profile-eyebrow {
    margin-bottom: 10px;
    color: rgba(241,238,232,.56);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .13em;
}

.dp-profile-primary,
.dp-profile-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.dp-profile-primary {
    border: 1px solid #eeeae3;
    background: #eeeae3;
    color: #171719;
}

.dp-profile-secondary {
    border: 1px solid rgba(255,255,255,.18);
    background: transparent;
    color: #eeeae3;
}


/* =========================================================
   TITLE SAVE
   ========================================================= */

.dp-save-wrap {
    margin-top: 22px;
}

.dp-save-button {
    appearance: none;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 4px;
    background: transparent;
    color: #f2eee7;
    cursor: pointer;
    font: 700 11px/1 system-ui, sans-serif;
    letter-spacing: .08em;
}

.dp-save-button:hover {
    border-color: rgba(255,255,255,.52);
}

.dp-save-button.is-saved {
    border-color: #f0ece4;
    background: #f0ece4;
    color: #171719;
}

.dp-save-button:disabled {
    opacity: .55;
}


/* =========================================================
   AUTH GATE
   ========================================================= */

.dp-auth-modal[hidden],
.dp-rating-modal[hidden] {
    display: none !important;
}

.dp-auth-modal,
.dp-rating-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.dp-auth-backdrop,
.dp-rating-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,5,7,.82);
    backdrop-filter: blur(6px);
}

.dp-auth-panel,
.dp-rating-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: 34px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: #151619;
    box-shadow: 0 28px 80px rgba(0,0,0,.46);
    color: #f2eee7;
}

.dp-auth-panel h2,
.dp-rating-panel h2 {
    margin: 0 0 13px;
    color: #f2eee7;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.05;
}

.dp-auth-panel p,
.dp-rating-panel > p {
    color: rgba(242,238,231,.7);
    line-height: 1.65;
}

.dp-auth-close,
.dp-rating-close {
    position: absolute;
    top: 13px;
    right: 15px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    font-size: 25px;
}

.dp-auth-eyebrow {
    margin-bottom: 12px;
    color: #b9b3ab;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.dp-auth-actions,
.dp-rating-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

.dp-auth-actions a {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
}

.dp-auth-secondary {
    border: 1px solid rgba(255,255,255,.18);
    color: #eeeae3;
}

.dp-auth-primary {
    border: 1px solid #eeeae3;
    background: #eeeae3;
    color: #161719;
}


/* =========================================================
   FEARPRINT ACCOUNT NOTE
   ========================================================= */

.dp-fearprint-account-note {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.67);
    font-size: 12px;
}

.dp-fearprint-account-note a {
    color: inherit;
    font-weight: 700;
}


/* =========================================================
   MY DREADPICK HERO
   ========================================================= */

.dp-profile-hero {
    padding: 54px 0 42px;
    border-bottom: 1px solid var(--dp-line);
}

.dp-profile-hero-grid {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 34px;
}

.dp-profile-hero h1 {
    margin: 0 0 10px;
    color: var(--dp-text);
    font-size: clamp(40px, 6vw, 68px);
    line-height: .95;
}

.dp-profile-archetype {
    color: #e06a61;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
}

.dp-profile-stats {
    display: flex;
    gap: 30px;
}

.dp-profile-stats strong {
    display: block;
    color: var(--dp-text);
    font-size: 22px;
}

.dp-profile-stats span {
    display: block;
    margin-top: 5px;
    color: var(--dp-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =========================================================
   PROFILE SECTIONS + FEARPRINT
   ========================================================= */

.dp-profile-section {
    padding: 54px 0;
    border-bottom: 1px solid var(--dp-line);
}

.dp-profile-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 27px;
}

.dp-profile-section h2 {
    margin: 0;
    color: var(--dp-text);
    font-size: clamp(30px, 4vw, 44px);
}

.dp-profile-fearprint {
    display: grid;
    grid-template-columns: minmax(330px, .95fr) minmax(0, 1.05fr);
    min-height: 470px;
    overflow: hidden;
    border: 1px solid var(--dp-line);
    background:
        radial-gradient(
            circle at 25% 42%,
            rgba(215,89,80,.08),
            transparent 280px
        ),
        rgba(255,255,255,.025);
}

.dp-fearprint-radar-column {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 42px 38px;
    border-right: 1px solid var(--dp-line);
}

.dp-fearprint-radar-wrap {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 1 / 1;
}

.dp-fearprint-radar {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.dp-radar-grid,
.dp-radar-axis {
    fill: none;
    stroke: rgba(241,238,232,.17);
    stroke-width: 1;
}

.dp-radar-value {
    fill: rgba(215,89,80,.17);
    stroke: #d75950;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.dp-radar-point {
    fill: #e56a60;
    stroke: #151619;
    stroke-width: 2;
}

.dp-radar-label {
    position: absolute;
    color: rgba(241,238,232,.56);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
}

.dp-radar-label.is-atmosphere {
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
}

.dp-radar-label.is-tension {
    top: 25%;
    right: -3px;
}

.dp-radar-label.is-fear {
    right: 5%;
    bottom: 24%;
}

.dp-radar-label.is-action {
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
}

.dp-radar-label.is-gore {
    left: 8%;
    bottom: 24%;
}

.dp-radar-label.is-psychological {
    top: 25%;
    left: -8px;
}

.dp-profile-fearprint-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.dp-profile-fearprint-copy p {
    max-width: 540px;
    margin: 16px 0 25px;
    color: var(--dp-soft);
    line-height: 1.7;
}

.dp-fearprint-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1px;
    margin: 0 0 28px;
    border: 1px solid var(--dp-line);
    background: var(--dp-line);
}

.dp-fearprint-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 0 13px;
    background: #17181c;
}

.dp-fearprint-value span {
    color: rgba(241,238,232,.56);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dp-fearprint-value strong {
    color: var(--dp-text);
    font-size: 12px;
}

.dp-profile-fearprint-copy .dp-profile-secondary {
    align-self: flex-start;
}

.dp-profile-empty-fearprint {
    padding: 32px;
    border: 1px solid var(--dp-line);
    background: rgba(255,255,255,.025);
}

.dp-profile-empty-fearprint h3 {
    margin-top: 0;
}


/* =========================================================
   LIBRARY
   ========================================================= */

.dp-library-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--dp-line);
    overflow-x: auto;
}

.dp-library-tabs button {
    appearance: none;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: rgba(241,238,232,.45);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.dp-library-tabs button.is-active {
    border-bottom-color: var(--dp-hot);
    color: var(--dp-text);
}

.dp-library-tabs span {
    margin-left: 4px;
    opacity: .65;
}

.dp-library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    align-items: stretch;
    gap: 16px;
}

.dp-library-card[hidden] {
    display: none !important;
}

.dp-library-card {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--dp-line);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
}

.dp-library-image {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--dp-line);
    background: #111216;
    color: inherit;
    text-decoration: none;
}

.dp-library-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .22s ease;
}

.dp-library-card:hover .dp-library-image img {
    transform: scale(1.025);
}

.dp-library-image > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    opacity: .35;
    font-size: 10px;
    letter-spacing: .09em;
}

.dp-library-body {
    min-height: 205px;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.dp-library-type {
    color: var(--dp-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.dp-library-body h3 {
    min-height: 42px;
    margin: 7px 0 12px;
    overflow: hidden;
    color: var(--dp-text);
    font-size: 17px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dp-library-body h3 a {
    color: inherit;
    text-decoration: none;
}

.dp-library-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.dp-library-badges span {
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.62);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
}

.dp-library-badges span.is-hot {
    border-color: rgba(215,89,80,.45);
    color: #e8877f;
}

.dp-library-rating-summary {
    margin-bottom: 12px;
    color: rgba(255,255,255,.5);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.65;
}

.dp-library-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dp-library-status,
.dp-library-rate {
    appearance: none;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 4px;
    background: transparent;
    color: var(--dp-text);
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
}

.dp-library-status.is-active {
    border-color: #eeeae3;
    background: #eeeae3;
    color: #171719;
}

.dp-library-rate {
    border-color: rgba(215,89,80,.6);
    color: #ef8a81;
}

.dp-library-empty,
.dp-library-filter-empty {
    padding: 26px 0;
    color: var(--dp-soft);
}


/* =========================================================
   RATING SLIDERS
   ========================================================= */

.dp-rating-row {
    display: grid;
    grid-template-columns: 115px 1fr 28px;
    align-items: center;
    gap: 12px;
    margin: 19px 0;
}

.dp-rating-row label {
    color: rgba(255,255,255,.76);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.dp-rating-row input {
    width: 100%;
    accent-color: #d75950;
}

.dp-rating-row output {
    text-align: right;
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   LOGIN
   ========================================================= */

.dp-profile-login {
    padding: 34px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.025);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .dp-profile-hero-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .dp-profile-stats {
        width: 100%;
        justify-content: space-between;
    }

    .dp-profile-fearprint {
        grid-template-columns: 1fr;
    }

    .dp-library-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 560px) {
    .dp-profile-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .dp-profile-fearprint {
        padding: 22px;
    }

    .dp-profile-axis {
        grid-template-columns: 92px 1fr 24px;
    }

    .dp-library-grid {
        grid-template-columns: 1fr;
    }

    .dp-auth-panel,
    .dp-rating-panel {
        padding: 28px 22px 22px;
    }

    .dp-auth-actions,
    .dp-rating-actions {
        flex-direction: column-reverse;
    }

    .dp-rating-row {
        grid-template-columns: 100px 1fr 24px;
    }
}


/* =========================================================
   LIBRARY TYPE FILTERS
   ========================================================= */

.dp-library-type-filters {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    background: rgba(255,255,255,.025);
}

.dp-library-type-filters button {
    appearance: none;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: rgba(241,238,232,.48);
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.dp-library-type-filters button.is-active {
    background: #eeeae3;
    color: #171719;
}

.dp-library-tabs button[hidden] {
    display: none !important;
}


/* v0.2.4 — equal-height collection cards */

.dp-library-card .dp-library-badges {
    min-height: 25px;
}

.dp-library-card .dp-library-rating-summary {
    min-height: 31px;
}

.dp-library-card .dp-library-actions {
    margin-top: auto;
}

@media (max-width: 1100px) {
    .dp-library-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 820px) {
    .dp-profile-fearprint {
        grid-template-columns: 1fr;
    }

    .dp-fearprint-radar-column {
        border-right: 0;
        border-bottom: 1px solid var(--dp-line);
    }

    .dp-library-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 560px) {
    .dp-fearprint-radar-column {
        padding: 32px 25px;
    }

    .dp-profile-fearprint-copy {
        padding: 28px 22px;
    }

    .dp-fearprint-values {
        grid-template-columns: 1fr;
    }

    .dp-library-grid {
        grid-template-columns: 1fr;
    }

    .dp-library-image {
        aspect-ratio: 16 / 10;
    }

    .dp-library-body {
        min-height: 190px;
    }
}


/* =========================================================
   PICKED FOR YOU
   ========================================================= */

.dp-picked-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    gap: 18px;
}

.dp-picked-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--dp-line);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
}

.dp-picked-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    background: #111216;
    color: inherit;
    text-decoration: none;
}

.dp-picked-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .22s ease;
}

.dp-picked-card:hover
.dp-picked-image img {
    transform: scale(1.025);
}

.dp-picked-image > span:not(.dp-picked-match) {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    opacity: .35;
    font-size: 10px;
    letter-spacing: .09em;
}

.dp-picked-match {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 3px;
    background: #d75950;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
}

.dp-picked-body {
    padding: 15px;
}

.dp-picked-body h3 {
    min-height: 42px;
    margin: 7px 0 13px;
    overflow: hidden;
    color: var(--dp-text);
    font-size: 18px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dp-picked-body h3 a,
.dp-picked-link {
    color: inherit;
    text-decoration: none;
}

.dp-picked-link {
    color: rgba(241,238,232,.6);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
}


/* =========================================================
   LIBRARY PAGINATION
   ========================================================= */

.dp-library-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.dp-library-pagination[hidden] {
    display: none !important;
}

.dp-library-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-library-page-numbers button,
.dp-library-page-arrow {
    appearance: none;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 4px;
    background: transparent;
    color: rgba(241,238,232,.65);
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
}

.dp-library-page-numbers button.is-active {
    border-color: #eeeae3;
    background: #eeeae3;
    color: #171719;
}

.dp-library-page-arrow:disabled {
    opacity: .3;
    cursor: default;
}

@media (max-width: 760px) {
    .dp-picked-grid {
        grid-template-columns: 1fr;
    }

    .dp-library-pagination {
        gap: 6px;
    }

    .dp-library-page-arrow {
        padding: 0 8px;
    }
}


/* =========================================================
   PICKED FOR YOU 0.2.6
   ========================================================= */

.dp-picked-head {
    align-items: flex-end;
}

.dp-picked-intro {
    max-width: 590px;
    margin: 11px 0 0;
    color: var(--dp-soft);
    font-size: 12px;
    line-height: 1.55;
}

.dp-picked-more {
    appearance: none;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 4px;
    background: transparent;
    color: rgba(241,238,232,.78);
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    white-space: nowrap;
}

.dp-picked-more:hover {
    border-color: rgba(255,255,255,.36);
    color: var(--dp-text);
}

.dp-picked-more[hidden],
.dp-picked-card[hidden] {
    display: none !important;
}

.dp-picked-body {
    min-height: 190px;
    display: flex;
    flex-direction: column;
}

.dp-picked-why {
    min-height: 55px;
    margin: 0 0 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.dp-picked-why span {
    display: block;
    margin-bottom: 6px;
    color: rgba(241,238,232,.38);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.dp-picked-why p {
    margin: 0;
    color: rgba(241,238,232,.68);
    font-size: 11px;
    line-height: 1.45;
}

.dp-picked-link {
    margin-top: auto;
}

@media (max-width: 760px) {
    .dp-picked-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .dp-picked-more {
        width: 100%;
    }
}
