/* =====================================
   RESET
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #eee4da;

    background: #121011;
}



/* =====================================
   PAGE
===================================== */

.model-page {
    display: grid;

    grid-template-columns:
        30% 70%;

    min-height: 100vh;
}



/* =====================================
   LEFT — MODEL PROFILE
===================================== */

.model-profile {
    position: sticky;

    top: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    align-self: start;

    width: 100%;
    height: 100vh;

    min-width: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 42%,
            #562a33 0%,
            #3a1921 38%,
            #281016 70%,
            #19090d 100%
        );

    border-right:
        1px solid
        rgba(215, 180, 105, 0.12);
}



/* =====================================
   BACK TO GALLERY
===================================== */

.back-link {
    position: absolute;

    top: 35px;
    left: 30px;

    color: #b79d78;

    font-size: 10px;

    letter-spacing: 3px;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.3s ease;
}


.back-link:hover {
    color: #e0bd77;
}



/* =====================================
   PAINTING
===================================== */

.painting {
    position: relative;

    z-index: 2;

    width: 95%;
    max-width: 460px;

    aspect-ratio: 1024 / 1218;

    flex-shrink: 0;
}



/* =====================================
   MODEL PHOTO
===================================== */

.model-photo {
    position: absolute;

    z-index: 1;

    top: 14.5%;
    left: 13.5%;

    width: 73%;
    height: 73%;

    object-fit: cover;
    object-position: center;

    background: #111;
}



/* =====================================
   FRAME
===================================== */

.frame {
    position: absolute;

    z-index: 2;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;
    user-select: none;

    filter:
        drop-shadow(
            0 35px 45px
            rgba(0, 0, 0, 0.55)
        );
}



/* =====================================
   MODEL NAME
===================================== */

.model-name {
    position: absolute;

    z-index: 3;

    top: 89.1%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 30%;

    color: #2b1909;

    font-size:
        clamp(9px, 0.95vw, 14px);

    font-weight: bold;

    line-height: 1;

    letter-spacing: 1.8px;

    text-align: center;
    text-transform: uppercase;

    white-space: nowrap;

    pointer-events: none;

    text-shadow:
        0 1px 0
        rgba(255, 235, 180, 0.35);
}



/* =====================================
   MODEL INFORMATION
===================================== */

.model-info {
    position: relative;

    z-index: 3;

    margin-top: -18px;

    text-align: center;
}



/* =====================================
   COLLECTION
===================================== */

.collection-info {
    text-align: center;
}


.collection-number {
    color: #b78d52;

    font-size: 9px;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.collection-title {
    margin-top: 9px;

    color: #8e7876;

    font-size: 12px;

    font-style: italic;
}



/* =====================================
   FAVORITES
===================================== */

.favorite-area {
    width: 100%;

    margin-top: 21px;

    text-align: center;
}


.favorite-form {
    width: 230px;

    max-width: 100%;

    margin: 0 auto;
}


.favorite-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 230px;
    max-width: 100%;

    min-height: 38px;

    padding: 8px 14px;

    border:
        1px solid
        rgba(198, 156, 89, 0.42);

    background:
        rgba(198, 156, 89, 0.04);

    color: #c8a76a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 9px;

    letter-spacing: 2.3px;

    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.16);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}


.favorite-button:not(.favorite-active):not(:disabled):hover {
    color: #f0d7a0;

    border-color:
        rgba(224, 189, 119, 0.88);

    background:
        rgba(198, 156, 89, 0.13);
}


.favorite-heart {
    position: relative;

    top: -1px;

    color: #c8a76a;

    font-size: 16px;

    line-height: 1;
}


.favorite-button.favorite-active {
    color: #e7c2c8;

    border-color:
        rgba(205, 133, 148, 0.72);

    background:
        rgba(132, 63, 77, 0.28);
}


.favorite-button.favorite-active .favorite-heart {
    color: #df8fa0;
}


.favorite-button:disabled {
    color: #756866;

    border-color:
        rgba(130, 105, 100, 0.20);

    background:
        rgba(20, 10, 13, 0.10);

    cursor: default;

    opacity: 0.65;
}


.favorite-login {
    margin: 0 auto;
}


.favorite-count {
    margin-top: 10px;

    color: #75635f;

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing: 2.2px;

    text-align: center;
    text-transform: uppercase;
}


.favorite-messages {
    width: 230px;
    max-width: 100%;

    height: 35px;

    margin: 8px auto 0;

    overflow: hidden;
}


.favorite-message {
    width: 100%;

    color: #8f7b77;

    font-size: 10px;
    font-style: italic;

    line-height: 1.6;

    text-align: center;
}


.favorite-message-success {
    color: #b79a6a;
}


.favorite-message-error {
    color: #b87979;
}

/* =====================================
   MEDIA FAVORITE — ACTIVE
===================================== */

.media-favorite-button.media-favorite-active svg {
    fill: #E186B7;
    stroke: #E186B7;
}

/* =====================================
   RIGHT — MODEL CONTENT
===================================== */

.model-content {
    min-width: 0;
    min-height: 100vh;

    padding:
        75px
        70px
        150px;

    background:
        radial-gradient(
            circle at 38% 16%,
            #302b2c 0%,
            #252122 28%,
            #1b1819 62%,
            #121011 100%
        );
}



/* =====================================
   HEADER
===================================== */

.model-content-header {
    width: 100%;

    padding-bottom: 25px;

    border-bottom:
        1px solid
        rgba(198, 156, 89, 0.16);
}


.model-heading {
    width: 100%;
}


.model-title {
    color: #eee4da;

    font-size:
        clamp(34px, 4vw, 54px);

    font-weight: normal;

    line-height: 1;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.model-quote {
    margin:
        15px
        0
        0
        22px;

    color: #b78d52;

    font-size: 10px;
    font-style: italic;

    line-height: 1.7;

    letter-spacing: 3px;

    text-transform: uppercase;
}



/* =====================================
   HEADER BOTTOM
===================================== */

.model-header-bottom {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    width: 100%;

    margin-top: 27px;
}



/* =====================================
   FILTERS
===================================== */

.category-buttons {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}


.filter-button-wrapper {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;
}



/* =====================================
   FILTER BUTTON
===================================== */

.category-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;

    border:
        1px solid
        rgba(198, 156, 89, 0.20);

    background:
        rgba(198, 156, 89, 0.025);

    cursor: pointer;

    opacity: 0.48;

    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.category-button:hover {
    opacity: 0.82;

    border-color:
        rgba(198, 156, 89, 0.48);

    background:
        rgba(198, 156, 89, 0.07);
}



/* =====================================
   CLASSIC ACTIVE STATE

   ALL + NORMAL TAGS ONLY
===================================== */

.category-button:not(.category-button-ai).active {
    opacity: 1;

    border-color:
        rgba(198, 156, 89, 0.62);

    background:
        rgba(198, 156, 89, 0.09);
}


.category-button img {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;

    pointer-events: none;
    user-select: none;
}


.tag-button-fallback {
    color: #b78d52;

    font-size: 15px;

    line-height: 1;

    text-transform: uppercase;

    pointer-events: none;
}



/* =====================================
   IA — INDEPENDENT TOGGLE
===================================== */

/*
 * IA ON
 *
 * AI media are visible.
 */

.category-button-ai.ai-enabled {
    opacity: 1;

    border-color:
        rgba(198, 156, 89, 0.68);

    background:
        rgba(198, 156, 89, 0.10);
}


.category-button-ai.ai-enabled:hover {
    opacity: 1;

    border-color:
        rgba(224, 189, 119, 0.85);

    background:
        rgba(198, 156, 89, 0.14);
}



/*
 * IA OFF
 *
 * AI media are hidden.
 */

.category-button-ai:not(.ai-enabled) {
    opacity: 0.25;

    border-color:
        rgba(198, 156, 89, 0.10);

    background:
        rgba(0, 0, 0, 0.10);
}


.category-button-ai:not(.ai-enabled):hover {
    opacity: 0.55;

    border-color:
        rgba(198, 156, 89, 0.35);

    background:
        rgba(198, 156, 89, 0.04);
}



/* =====================================
   FILTER TOOLTIP
===================================== */

.filter-tooltip {
    position: absolute;

    z-index: 20;

    top: calc(100% + 8px);
    left: 50%;

    padding:
        6px
        9px;

    transform:
        translate(-50%, -3px);

    border:
        1px solid
        rgba(198, 156, 89, 0.30);

    background:
        rgba(20, 17, 18, 0.97);

    color: #c7a86c;

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    line-height: 1;

    letter-spacing: 1.6px;

    text-transform: uppercase;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.32);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}


.filter-button-wrapper:hover .filter-tooltip {
    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%, 0);
}



/* =====================================
   MEDIA COUNT
===================================== */

.media-count {
    flex-shrink: 0;

    padding-bottom: 2px;

    color: #75635f;

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing: 2.2px;

    text-transform: uppercase;

    white-space: nowrap;
}



/* =====================================
   MEDIA GALLERY
===================================== */

.media-gallery {
    display: flex;
    flex-direction: column;

    width: 100%;

    padding-top: 80px;

    gap: 78px;
}



/* =====================================
   MEDIA ITEM
===================================== */

.media-item {
    display: flex;
    flex-direction: column;

    width: 58%;

    min-width: 0;
}


.media-item[hidden] {
    display: none;
}


.media-item-left {
    align-self: flex-start;
}


.media-item-right {
    align-self: flex-end;
}



/* =====================================
   MEDIA DISPLAY
===================================== */

.media-display {
    display: block;

    width: 100%;

    min-width: 0;
}


.media-thumbnail {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}



/* =====================================
   LOCKED MEDIA
===================================== */

.media-locked-wrapper {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #080607;
}



/* =====================================
   STRONG BLUR
===================================== */

.media-thumbnail-locked {
    display: block;

    width: 100%;
    height: auto;

    transform:
        scale(1.14);

    filter:
        blur(42px)
        brightness(0.30)
        saturate(0.42);

    user-select: none;

    pointer-events: none;
}



/* =====================================
   LOCK OVERLAY
===================================== */

.media-lock-overlay {
    position: absolute;

    z-index: 2;

    inset: 0;

    background:
        rgba(8, 6, 7, 0.27);

    pointer-events: none;
}



/* =====================================
   LOCK CONTENT
===================================== */

.media-lock-content {
    position: absolute;

    z-index: 3;

    top: 50%;
    left: 50%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 82%;

    transform:
        translate(-50%, -50%);

    text-align: center;
}



/* =====================================
   LOCK ICON
===================================== */

.media-lock-icon {
    display: block;

    width:
        clamp(120px, 15vw, 185px);

    height: auto;

    object-fit: contain;

    user-select: none;

    pointer-events: none;

    filter:
        drop-shadow(
            0 12px 25px
            rgba(0, 0, 0, 0.55)
        );
}



/* =====================================
   LOCK TEXT
===================================== */

.media-lock-text {
    display: flex;
    flex-direction: column;

    align-items: center;

    margin-top: 14px;

    pointer-events: none;
}


.media-lock-title {
    font-size:
        clamp(13px, 1.3vw, 18px);

    font-weight: normal;

    line-height: 1.2;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.media-lock-description {
    margin-top: 7px;

    font-family:
        Arial,
        sans-serif;

    font-size:
        clamp(9px, 0.8vw, 11px);

    line-height: 1.4;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    opacity: 0.80;
}


.media-lock-text-adult {
    color: #df8fa0;
}


.media-lock-text-member {
    color: #d5b46f;
}



/* =====================================
   SIGN IN
===================================== */

.media-lock-signin {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 112px;

    height: 34px;

    margin-top: 18px;

    padding:
        0
        20px;

    font-size: 9px;

    line-height: 1;

    letter-spacing: 2.5px;

    text-decoration: none;
    text-transform: uppercase;

    background:
        rgba(10, 8, 9, 0.38);

    backdrop-filter:
        blur(4px);

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}


.media-lock-signin:hover {
    transform:
        translateY(-1px);
}


.media-lock-signin-adult {
    color: #e7a1b0;

    border:
        1px solid
        rgba(223, 143, 160, 0.70);

    background:
        rgba(126, 55, 72, 0.22);
}


.media-lock-signin-adult:hover {
    color: #ffd5de;

    border-color:
        rgba(239, 163, 179, 0.95);

    background:
        rgba(151, 67, 86, 0.42);
}


.media-lock-signin-member {
    color: #dfc17d;

    border:
        1px solid
        rgba(213, 180, 111, 0.70);

    background:
        rgba(126, 94, 42, 0.18);
}


.media-lock-signin-member:hover {
    color: #f5dda2;

    border-color:
        rgba(224, 189, 119, 0.95);

    background:
        rgba(151, 113, 51, 0.34);
}



/* =====================================
   MEDIA FOOTER
===================================== */

.media-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    width: 100%;

    min-height: 24px;

    margin-top: 1px;
}



/* =====================================
   MEDIA META
===================================== */

.media-meta {
    display: flex;

    align-items: center;

    min-width: 0;

    gap: 12px;
}



/* =====================================
   MEDIA TITLE
===================================== */

.media-title {
    flex-shrink: 0;

    color: #b78d52;

    font-size: 11px;
    font-weight: normal;

    line-height: 1.25;

    letter-spacing: 3px;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}



/* =====================================
   MEDIA TAGS
===================================== */

.media-tags {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    min-width: 0;
}



/* =====================================
   INDIVIDUAL MEDIA TAG
===================================== */

.media-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 18px;

    padding:
        3px
        7px;

    border:
        1px solid
        rgba(183, 141, 82, 0.28);

    background:
        rgba(183, 141, 82, 0.025);

    color: #756966;

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    line-height: 1;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    white-space: nowrap;
}



/* =====================================
   MEDIA ACTIONS
===================================== */

.media-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.media-action-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #75635f;

    cursor: pointer;

    opacity: 0.72;

    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


.media-action-button svg {
    display: block;

    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.4;

    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}


.media-action-button:hover {
    opacity: 1;

    transform:
        translateY(-1px);
}


.media-favorite-button:hover {
    color: #df8fa0;
}


.media-hide-button:hover {
    color: #b78d52;
}



/* =====================================
   VIDEO
===================================== */

.media-video-trigger {
    position: relative;

    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.media-play-icon {
    position: absolute;

    top: 50%;
    left: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(238, 228, 218, 0.55);

    border-radius: 50%;

    background:
        rgba(10, 8, 9, 0.42);

    color: #eee4da;

    font-family:
        Arial,
        sans-serif;

    font-size: 18px;

    padding-left: 3px;

    pointer-events: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.media-video-trigger:hover .media-play-icon {
    border-color:
        rgba(238, 228, 218, 0.85);

    background:
        rgba(10, 8, 9, 0.68);

    transform:
        translate(-50%, -50%)
        scale(1.06);
}


.media-video {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    background: #000;
}



/* =====================================
   EMPTY GALLERY
===================================== */

.media-empty {
    width: 100%;

    padding:
        40px
        0;

    color: #75635f;

    font-size: 11px;
    font-style: italic;

    letter-spacing: 2px;

    text-align: center;
}


.media-filter-empty[hidden] {
    display: none;
}



/* =====================================
   END OF COLLECTION
===================================== */

.collection-end-line {
    width: 100%;

    margin-top: 80px;

    border-top:
        2px solid
        rgba(198, 156, 89, 0.18);
}



/* =====================================
   TABLET
===================================== */

@media (max-width: 1100px) {

    .model-page {
        grid-template-columns:
            35% 65%;
    }


    .painting {
        width: 90%;

        max-width: 430px;
    }


    .favorite-form,
    .favorite-button,
    .favorite-messages {
        width: 210px;
    }


    .model-content {
        padding:
            65px
            45px
            110px;
    }


    .media-gallery {
        gap: 70px;
    }


    .media-item {
        width: 62%;
    }


    .media-lock-icon {
        width:
            clamp(110px, 14vw, 160px);
    }


    .media-meta {
        gap: 10px;
    }

}



/* =====================================
   MOBILE
===================================== */

@media (max-width: 800px) {

    .model-page {
        display: block;
    }


    .model-profile {
        position: relative;

        height: auto;
        min-height: 100vh;

        padding:
            90px
            15px
            60px;
    }


    .back-link {
        top: 30px;
        left: 25px;
    }


    .painting {
        width:
            min(430px, 90%);
    }


    .model-info {
        margin-top: -10px;
    }


    .favorite-area {
        margin-top: 30px;
    }


    .favorite-form,
    .favorite-button,
    .favorite-messages {
        width: 240px;
    }


    .model-content {
        padding:
            60px
            30px
            80px;
    }


    .model-title {
        font-size:
            clamp(32px, 9vw, 46px);
    }


    .model-quote {
        margin-left: 12px;
    }


    .model-header-bottom {
        gap: 20px;
    }


    .media-gallery {
        padding-top: 60px;

        gap: 60px;
    }


    .media-item {
        width: 72%;
    }


    .media-lock-icon {
        width:
            clamp(95px, 20vw, 140px);
    }


    .media-footer {
        align-items: flex-start;
    }


    .media-meta {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

}



/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 480px) {

    .painting {
        width: 90%;
    }


    .favorite-form,
    .favorite-button,
    .favorite-messages {
        width:
            min(230px, 90%);
    }


    .model-content {
        padding:
            50px
            20px
            70px;
    }


    .model-header-bottom {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;
    }


    .category-buttons {
        gap: 9px;
    }


    .category-button {
        width: 48px;
        height: 48px;
    }


    .category-button img {
        width: 38px;
        height: 38px;
    }


    .media-gallery {
        gap: 50px;
    }


    .media-item {
        width: 88%;
    }


    .media-lock-icon {
        width:
            clamp(85px, 25vw, 120px);
    }


    .media-lock-text {
        margin-top: 9px;
    }


    .media-lock-signin {
        min-width: 100px;

        height: 31px;

        margin-top: 13px;

        padding:
            0
            15px;

        font-size: 8px;
    }


    .media-tag {
        padding:
            3px
            6px;

        font-size: 7px;

        letter-spacing: 1.2px;
    }


    .collection-end-line {
        margin-top: 60px;
    }

}