.dmm-actress-profile-box {
    overflow: hidden;
    margin: 40px 0;
    border: 2px solid var(--color-border-pink, #ffc2d8);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dmm-actress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--color-border-pink, #ffc2d8);
    background: var(--color-bg-light, #fff2f7);
}

.dmm-actress-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-accent, #ff477e);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.dmm-actress-name {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--color-primary, #d63384) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.dmm-actress-name-link {
    color: inherit !important;
    text-decoration: none !important;
}

.dmm-actress-name-link:hover {
    text-decoration: underline !important;
}

.dmm-actress-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
}

.dmm-actress-img {
    overflow: hidden;
    flex: 0 0 120px;
    width: 120px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fafafa;
    text-align: center;
}

.dmm-actress-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 5px !important;
    object-fit: cover;
}

.dmm-actress-info {
    flex: 1;
}

.dmm-actress-table {
    width: 100%;
    margin-bottom: 15px !important;
    border: 0 !important;
    border-collapse: collapse;
    font-size: 13px;
}

.dmm-actress-table th,
.dmm-actress-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
    background: transparent !important;
    text-align: left;
}

.dmm-actress-table th {
    width: 30%;
    color: #888;
    font-weight: 400;
}

.dmm-actress-table td {
    color: var(--color-text, #333);
    font-weight: 700;
}

.dmm-actress-link-btn {
    display: block;
    padding: 10px;
    border-radius: 5px;
    background: var(--color-primary, #d63384);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.dmm-actress-link-btn:hover {
    opacity: 0.8;
}

/* An internal archive link is deliberately not styled as an affiliate button. */
.dmm-actress-link-btn-internal {
    background: transparent;
    border: 1px solid var(--color-primary, #d63384);
    color: var(--color-primary, #d63384) !important;
}

/* Public characteristic chips supplied by the Plugin trait model. */
.dmm-profile-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.dmm-profile-trait {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.03);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

a.dmm-profile-trait:hover {
    border-color: var(--color-primary, #d63384);
    color: var(--color-primary, #d63384);
}

.dmm-actress-ruby {
    margin-bottom: 0;
    color: var(--color-primary, #d63384);
    font-size: 10px;
    font-weight: 400;
}

.dmm-name-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.dmm-actress-profile-box.single-embed {
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: avwebmProfileFadeIn 0.5s ease;
}

.dmm-actress-profile-box.single-embed .dmm-actress-header {
    padding: 10px 15px;
    border-bottom-width: 2px;
}

.dmm-actress-profile-box.single-embed .dmm-actress-body {
    gap: 15px;
}

.dmm-actress-profile-box.single-embed .dmm-actress-img {
    flex: 0 0 100px;
    width: 100px;
}

.dmm-actress-profile-box.single-embed .dmm-actress-img img {
    height: 100px !important;
    border: 2px solid #ffe4e1;
    border-radius: 50%;
}

.dmm-actress-profile-box.single-embed .dmm-actress-info {
    font-size: 13px;
}

.dmm-actress-profile-box.single-embed .dmm-actress-table th {
    width: 4em;
    padding: 4px 0;
}

.dmm-actress-profile-box.single-embed .dmm-actress-table td {
    padding: 4px 0;
}

.dmm-actress-profile-box.archive-top {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 30px !important;
}

.avwebm-performer-profile-async {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    margin-bottom: 20px;
    border: 2px dashed var(--color-border-pink, #ffc2d8);
    border-radius: 8px;
    background: #fff;
    color: var(--color-primary, #d63384);
    font-weight: 700;
}

.avwebm-performer-profile-async .loading-text {
    animation: avwebmProfileBlink 1.5s infinite;
}

.avwebm-profile-message,
.dmm-profile-unpublished {
    color: #999;
    font-size: 12px;
}

.dmm-profile-empty {
    color: #ccc;
}

.dmm-profile-search-link {
    color: var(--color-primary, #d63384);
    font-weight: 700;
    text-decoration: underline;
}

.dmm-profile-socials {
    margin-top: 5px;
}

.dmm-profile-social {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 11px;
    text-decoration: none;
}

.dmm-profile-social-x {
    background: #000;
}

.dmm-profile-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.dmm-actress-link-btn:focus-visible,
.dmm-actress-name-link:focus-visible,
.dmm-profile-search-link:focus-visible,
.dmm-profile-social:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

@keyframes avwebmProfileFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes avwebmProfileBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media screen and (max-width: 480px) {
    .dmm-actress-body {
        flex-direction: column;
        align-items: center;
    }

    .dmm-actress-profile-box.single-embed .dmm-actress-body {
        text-align: center;
    }

    .dmm-actress-img {
        flex: 0 0 100px;
        width: 100px;
        margin: 0 auto 10px;
    }

    .dmm-actress-table th {
        width: 35%;
        white-space: nowrap;
    }

    .dmm-actress-table td {
        font-size: 12px;
    }

    .dmm-actress-profile-box.single-embed .dmm-actress-table th {
        display: none;
    }

    .dmm-actress-profile-box.single-embed .dmm-actress-table td {
        display: inline-block;
        margin-right: 10px;
        border: 0;
    }

    .dmm-actress-profile-box.single-embed .dmm-actress-table td::before {
        content: attr(data-label) "：";
        color: #999;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dmm-actress-profile-box.single-embed,
    .avwebm-performer-profile-async .loading-text {
        animation: none;
    }

    .dmm-actress-link-btn {
        transition: none;
    }
}
