/* ══════════════════════════════════════════════════════════════════════════
   model-cards.css — hover profile, actress & movie cards (single file)
   Load after style.css: <link rel="stylesheet" href="model-cards.css" />
   (terminal-site.js also injects this link if missing.)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --card-radius: 10px;
    --photo-radius: 6px;
    --movie-card-radius: 0px;
}

/* Scene */
.yb-scene {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: inherit;
}

.yb-profile {
    line-height: inherit;
    margin: 0;
    padding: 0;
}

/* Trigger */
.yb-profile .yb-trigger-wrap {
    position: relative;
    display: inline-block;
}

.yb-profile .yb-hover-gap {
    display: block;
    height: 22px;
    width: min(300px, 100vw - 2rem);
    min-width: 200px;
    margin: 0;
    pointer-events: auto;
}

.yb-profile .yb-trigger-name {
    font-size: 1em;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;
    color: inherit;
    cursor: default;
    letter-spacing: normal;
    user-select: none;
    transition: color 0.2s;
}

html.dark-mode .yb-trigger-name,
body.dark-mode .yb-trigger-name { color: #558B2F; }

html.light-mode .yb-trigger-name,
body.light-mode .yb-trigger-name { color: #4248ca; }

html.xeur-mode .yb-trigger-name,
body.xeur-mode .yb-trigger-name { color: #00e980; }

.yb-profile .yb-trigger-name:hover {
    color: #5ddec0;
}

.yb-movie-year {
    font-size: 0.85em;
    opacity: 0.6;
    color: inherit !important;
    background: none !important;
    -webkit-text-fill-color: inherit !important;
}

/* Profile / actress card */
.yb-profile .yb-card {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: translateY(-10px);
    width: 300px;
    max-width: calc(100vw - 2rem);
    background: #f5f0dc;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 6px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 9999;
    box-sizing: border-box;
    padding: 14px 14px 0;
}

.yb-profile .yb-card::before {
    content: "";
    position: absolute;
    top: -11px;
    left: clamp(36px, 28%, 120px);
    transform: translateX(-50%);
    border: 11px solid transparent;
    border-bottom-color: #f5f0dc;
    border-top: 0;
}

.yb-profile .yb-card.yb-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.yb-profile .yb-photo-wrap {
    margin: 0;
    border-radius: var(--photo-radius);
    overflow: hidden;
    position: relative;
    background: #000;
}

.yb-profile .yb-photo-wrap img {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
    object-position: top center;
}

/* Movie card — viewport frame + motion from terminal-site.js injected CSS */
.yb-profile .yb-card.yb-movie-card {
    border-radius: var(--movie-card-radius);
    padding: 0;
    background: transparent;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 6px 20px rgba(0, 0, 0, 0.45);
    width: clamp(320px, 92vw, 860px);
    max-width: calc(100vw - 2rem);
}

.yb-profile .yb-card.yb-movie-card::before {
    display: none;
}

.yb-profile .yb-card.yb-movie-card .yb-card-body {
    display: none;
}

.yb-profile .yb-movie-poster-wrap {
    background: transparent;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 72vh, 920px);
    position: relative;
}

.yb-profile .yb-movie-poster {
    width: 100% !important;
    height: auto !important;
    max-height: min(88vh, 1040px);
    object-fit: contain !important;
    object-position: center center !important;
    display: none;
}

.yb-movie-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.85rem;
    font-family: inherit;
    pointer-events: none;
}

/* Card body */
.yb-profile .yb-card-body {
    padding: 12px 4px 22px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.yb-profile .yb-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #111;
    letter-spacing: -0.4px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.yb-profile .yb-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.15px;
    margin-bottom: 16px;
}

.yb-profile .yb-divider {
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #ccc 40%, transparent);
    margin-bottom: 18px;
    border-radius: 2px;
}

/* Socials */
.yb-profile .yb-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.yb-profile .yb-soc {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px;
    transition: transform 0.18s ease, opacity 0.18s;
    line-height: 1;
    cursor: pointer;
}

.yb-profile .yb-soc:hover {
    transform: translateY(-3px) scale(1.12);
    opacity: 0.75;
}

.yb-profile .yb-soc-reddit {
    color: #ff4500;
}

.yb-profile .yb-soc-insta,
.yb-profile .yb-soc-insta i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.yb-profile .yb-soc-tiktok,
.yb-profile .yb-soc-tiktok i {
    color: #111 !important;
    background: none !important;
    -webkit-text-fill-color: #111 !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.yb-profile .yb-soc-twitter,
.yb-profile .yb-soc-twitter i {
    color: #111 !important;
    background: none !important;
    -webkit-text-fill-color: #111 !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.yb-profile .yb-soc-of {
    color: #00aff0;
}

.yb-profile .yb-soc-javlib,
.yb-profile .yb-soc-javlib i {
    color: #8b2942 !important;
    background: none !important;
    -webkit-text-fill-color: #8b2942 !important;
}

/* Framed profile hovers (placement + animation from terminal-site.js inject) */
.yb-profile .yb-card.yb-hover-framed::before {
    display: none !important;
}