/*! Built: 2025-12-08 14:28:51 | Source: C:\laragon\www\camunite\css\v5/src/pages/model-hybrid.css */
/**
 * CSS-V5 MODEL PAGE - HYBRID LAYOUT
 * Page-only (core excluded). Build will inline, not minify.
 */
/* === Inlined from: ../../../03-components/model-page.css === */
/* Model page redesign - 2025-11-05. Dedicated styling for single model layouts. 
 * Migrated to CSS-v2 tokens: 2025-11-10
 * Replaced legacy tokens with universal CSS-v2 tokens for consistency
 */

body.model-page {
    --stack-gap: clamp(0.3rem, 0.5vw, 0.4rem);
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Links - subtle by default, accent on hover */
body.model-page a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

body.model-page a:hover,
body.model-page a:focus {
    color: var(--index-accent);
}

/* Navigation and CTA links remain accent */
body.model-page .model-nav a,
body.model-page .model-button {
    color: var(--text-secondary);
}

body.model-page .model-nav a:hover,
body.model-page .model-nav a:focus {
    color: var(--text-on-accent);
}

.model-page__main {
    padding-top: clamp(90px, 12vw, 120px);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Top header (flag + H1 + intro) - Full width like H1 on other pages */
.model-page__header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: var(--max-width-container);
    margin: 0 auto var(--stack-gap);
    padding: 0 var(--page-padding-x);
}

.model-navbar {
    margin: 0 0 0.15rem 0; /* almost glued to media below */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.35rem;
}

.model-page__heading {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.model-page__flag img {
    display: block;
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); /* Universal shadow token */
}

.model-page__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-heading);
}

.model-page__subtitle {
    margin: 0;
    max-width: 100%; /* Full width to match header container */
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

[data-theme="dark"] .model-page__subtitle {
    color: rgba(242, 243, 248, 0.78);
}

/* Mobile: Collapsible subtitle */
.subtitle-collapsible {
    position: relative;
}

.subtitle-collapsible .model-page__subtitle,
.subtitle-collapsible .model-hero__subtitle {
    max-height: 3.3em; /* ~2 lines */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.subtitle-collapsible.is-expanded .model-page__subtitle,
.subtitle-collapsible.is-expanded .model-hero__subtitle {
    max-height: none;
}

.subtitle-toggle {
    display: inline;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9em;
}

.subtitle-toggle:hover {
    color: var(--text-primary);
}

.subtitle-collapsible.is-expanded .subtitle-toggle {
    display: block;
    margin-top: 0.5em;
}

.model-hero {
    margin: 0 auto var(--stack-gap);
    padding: clamp(1rem, 2vw, 1.6rem);
    border-radius: var(--radius-xl);
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-elevated); /* Subtle shadow like sidebar */
}

.model-hero__inner {
    display: grid;
    gap: clamp(0.9rem, 1.8vw, 1.6rem);
}

@media (min-width: 992px) {
    .model-hero__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: start;
    }
}

.model-hero__info {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.6vw, 1.35rem);
}

.model-hero__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.model-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--index-accent) 16%, transparent);
    color: var(--index-accent-strong);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.model-hero__title {
    margin: 0;
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-heading);
}

.model-hero__subtitle {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
}

[data-theme="dark"] .model-hero__subtitle {
    color: rgba(242, 243, 248, 0.9);
}

/* model-hero__subtitle uses same collapsible styles defined above */

.model-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.model-hero__features i {
    font-size: var(--font-size-base);
    color: var(--index-accent);
}

.model-hero__rating {
    margin-top: -0.25rem;
}

.model-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.model-hero__stat {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

[data-theme="dark"] .model-hero__stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-hero__stat-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.model-hero__stat-value {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.model-hero__stat-note {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--text-tertiary);
}

[data-theme="dark"] .model-hero__stat-value {
    color: rgba(242, 243, 248, 0.92);
}

.model-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.model-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    background: var(--accent-primary);
    color: var(--text-on-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--inset-button), var(--shadow-button);
    cursor: pointer;
}

.model-button--cta {
    padding: 0.52rem 1.1rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.model-button:hover,
.model-button:focus {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--inset-button-hover), var(--shadow-card-hover);
}

.model-button:active {
    transform: translateY(0);
    box-shadow: var(--inset-button-active);
}

/* Ghost variant - outlined style */
.model-button--ghost {
    background: var(--chip-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    box-shadow: var(--inset-button);
}

.model-button--ghost:hover,
.model-button--ghost:focus {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-on-accent);
    transform: translateY(-1px);
    box-shadow: var(--inset-button-hover), var(--shadow-card-hover);
}

.model-button--ghost:active {
    transform: translateY(0);
    box-shadow: var(--inset-button-active);
}

/* Nav buttons - subtle style with hover effect */
.model-navbtn {
    white-space: nowrap;
}

.model-navbtn.model-button--ghost {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
}

.model-navbtn-placeholder { 
    width: 0; 
    height: 0; 
    display: block; 
}

.model-hero__media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-hero__player,
.model-hero__photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: rgba(15, 19, 34, 0.75);
}

.model-hero__player video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.model-hero__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.model-hero__status {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.model-nav {
    padding: 0.25rem;
    border-radius: var(--radius-full);
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.model-nav a {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 1px solid transparent;
}

.model-nav a:hover,
.model-nav a:focus {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-on-accent);
    box-shadow: var(--inset-button-hover);
}

.model-nav a:active {
    box-shadow: var(--inset-button-active);
}

.model-nav a.active {
    background: var(--accent-primary);
    color: var(--text-on-accent);
}

/* Progressive hiding on resize - elements disappear instead of stacking */
@media (max-width: 991px) {
    .model-nav a:nth-child(4) {
        display: none; /* Hide "Similar models" on medium screens */
    }
}

@media (max-width: 767px) {
    .model-nav a:nth-child(3) {
        display: none; /* Hide "Tags" on small screens */
    }
}

@media (max-width: 575px) {
    .model-nav a:nth-child(2) {
        display: none; /* Hide "Comments" on very small screens */
    }
}

.model-section {
    padding: clamp(1.4rem, 2.4vw, 2rem);
    border-radius: var(--radius-xl);
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card); /* Subtle shadow like sidebar */
}

.model-section + .model-section {
    /* Reduced global vertical spacing between consecutive sections (~80% cut) */
    margin-top: clamp(0.1rem, 0.2vw, 0.15rem);
}

/* Reduce spacing between overview and reviews sections */
.model-section--plain + .model-section--reviews {
    margin-top: clamp(0.1rem, 0.2vw, 0.15rem);
}

/* Reduce spacing around description section */
.model-section--description {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.model-section + .model-section--description,
.model-section--description + .model-section {
    margin-top: 0 !important;
}

.model-section__head {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: clamp(0.4rem, 0.6vw, 0.5rem);
}

.model-section__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-heading);
}

.model-section__subtitle {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-tertiary);
}

/* Plain section variant for overview */
.model-section--plain {
    background: transparent;
    border: 1px solid var(--border-default);
    box-shadow: none;
    padding: clamp(0.3rem, 0.6vw, 0.45rem);
    padding-top: 0.35rem;
}

.model-section--plain .model-section__head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

/* All section headers in plain section must be on new row, aligned left relative to section */
.model-section--plain > .model-section__head {
    width: 100%;
    margin-top: clamp(0.2rem, 0.4vw, 0.3rem);
    margin-bottom: 0.3rem;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    clear: both;
}

/* First header has no top margin */
.model-section--plain > .model-section__head:first-of-type {
    margin-top: 0;
}

.model-section--plain .model-section__title {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-heading);
    margin: 0;
    display: inline;
}

.model-section--plain .model-section__subtitle {
    display: inline;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    margin: 0;
    color: var(--text-tertiary);
}

.model-section--plain .model-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.85rem;
    margin-top: 0.15rem;
    --detail-col-gap: 0.85rem;
}


.model-section--plain .model-detail {
    background: transparent !important;
    border: 0 !important;
    padding: 0.05rem 0.35rem 0.05rem 0.1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center; /* center content inside the item */
    text-align: center;  /* center text lines */
    position: relative;
}

/* Style links in model-detail values - subtle, accent on hover */
.model-section--plain .model-detail__value a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--border-secondary);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.model-section--plain .model-detail__value a:hover,
.model-section--plain .model-detail__value a:focus {
    color: var(--index-accent);
    border-bottom-color: var(--index-accent);
}


/* Ensure absolutely no visuals on inner blocks */
.model-section--plain .model-details-grid .model-detail > * {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.model-section--plain .model-stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.85rem;
    margin-top: 0.15rem;
}

.model-section--plain .model-stat-card {
    background: transparent !important;
    border: 0 !important;
    padding: 0.05rem 0.35rem 0.05rem 0.1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.model-section--plain .model-stat-card__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.model-section--plain .model-stat-card__value {
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.model-section--plain .model-stat-card__note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Small popup infographic for stats */
.stat-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    color: var(--text-secondary);
    position: relative;
}

/* Bubble */
.stat-info__bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-size: 0.78rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.stat-info__bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--bg-glass);
    border-left: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    transform: translateX(-50%) rotate(45deg);
}

.model-stat-card:hover .stat-info__bubble,
.model-stat-card:focus-within .stat-info__bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Subtle vertical separators between detail items */
/* Subtle separators drawn into the gap so they are visible */
.model-section--plain .model-details-grid .model-detail { position: relative; }
.model-section--plain .model-details-grid .model-detail:not(:first-child)::before {
    content: "";
    position: absolute;
    left: calc(-1 * (var(--detail-col-gap) / 2));
    top: 4%;
    bottom: 4%;
    width: 2px;
    background: var(--border-default);
}

/* Apply the same visible separators to Fan stats grid */
.model-section--plain .model-stat-grid {
    --detail-col-gap: 0.85rem;
}
.model-section--plain .model-stat-grid .model-stat-card { position: relative; }
.model-section--plain .model-stat-grid .model-stat-card:not(:first-child)::before {
    content: "";
    position: absolute;
    left: calc(-1 * (var(--detail-col-gap) / 2));
    top: 4%;
    bottom: 4%;
    width: 2px;
    background: var(--border-default);
}

/* Tags inline in plain section - text links, left aligned */
.model-section--plain .model-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: clamp(0.4rem, 0.8vw, 0.6rem);
    align-items: center;
    text-align: left;
}

.model-section--plain .model-tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--chip-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.model-section--plain .model-tag-link:hover,
.model-section--plain .model-tag-link:focus {
    background: var(--chip-bg-hover);
    border-color: var(--border-default);
    color: var(--text-primary);
}

.model-section--plain .model-tags-empty {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

/* Featured collections / Cross-links - subtle chips */
.model-crosslinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: clamp(0.4rem, 0.8vw, 0.6rem);
}

.model-crosslink {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--chip-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.2s ease;
}

.model-crosslink:hover,
.model-crosslink:focus {
    background: var(--chip-bg-hover);
    border-color: var(--border-default);
    color: var(--text-primary);
}

/* Navbar and hero proximity - margin already defined above */
.model-navbar + .model-hero { margin-top: 0.15rem; }

.model-hero--media-only {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
}

.model-hero--media-only .model-hero__inner { 
    display: block;
    width: 100%;
}
.model-hero--media-only .model-hero__media {
    width: 100%;
}
.model-hero--media-only .model-hero__photo,
.model-hero--media-only .model-hero__player { border: 0; border-radius: 0; }
.model-hero--media-only .model-hero__photo img { width: 100%; height: auto; display: block; }

/* ===== MODEL MEDIA CONTAINER ===== */
/* Universal container for model media (image, video, live feed) */
.model-media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 0; /* Full width on model hero */
}

.model-media-container__figure {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.model-media-container__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Support for video/iframe elements */
.model-media-container__video,
.model-media-container__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Loading state */
.model-media-container--loading {
    background: linear-gradient(90deg, 
        var(--bg-secondary) 0%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark theme adjustments */
[data-theme="dark"] .model-media-container {
    background: rgba(15, 19, 34, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== OFFLINE MODEL STYLING (Hero Section) ===== */
.model-media-container--offline {
    position: relative;
}

.model-media-container--offline::after {
    content: 'OFFLINE';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md, 6px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 20;
}

/* OLD CLASS SUPPORT (deprecated - use .model-media-container instead) */
.model-hero__media-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.model-hero__media-placeholder .model-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin: 0;
}

.model-hero__media-placeholder .model-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA button below placeholder image */
.model-hero__media .model-button--cta {
    display: block;
    width: fit-content;
    margin: 0 auto 0; /* no spacing above: glued under image */
    background: var(--accent-primary); /* orange on light theme */
    color: var(--text-on-accent); /* Always white for readability on colored backgrounds */
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 700;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-button); /* universal shadow token */
    text-shadow: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 0; /* no border needed */
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.model-hero__media .model-button--cta:hover,
.model-hero__media .model-button--cta:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg); /* universal shadow token for hover */
    background: var(--accent-primary-hover);
    color: var(--text-on-accent); /* stays readable */
}

/* Dark theme specific adjustments for CTA */
[data-theme="dark"] .model-hero__media .model-button--cta,
[data-mode="dark"] .model-hero__media .model-button--cta {
    background: var(--accent-primary); /* Orange CTA for consistency */
    color: var(--text-on-accent); /* Always white for colored buttons */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .model-hero__media .model-button--cta:hover,
[data-theme="dark"] .model-hero__media .model-button--cta:focus,
[data-mode="dark"] .model-hero__media .model-button--cta:hover,
[data-mode="dark"] .model-hero__media .model-button--cta:focus {
    background: var(--accent-primary-hover); /* Orange hover */
    color: var(--text-on-accent); /* Keep text readable */
    border-color: rgba(255, 255, 255, 0.25);
}

/* Remove gap between image and CTA in media-only hero */
.model-hero--media-only .model-hero__media { gap: 0; }

/* Tighten vertical spacing between hero and first section on model pages */
body.model-page .index-content-main { gap: clamp(0.2rem, 0.5vw, 0.35rem); }

/* Rating block (vote) — neutral styling on model pages (transparent, no hover overlay) */
body.model-page .vote,
body.model-page .vote.with-rating {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: var(--spacing-2xs) 0 !important;
}

body.model-page .vote .stars,
body.model-page .vote .rating {
    margin: 0 auto;
}

/* Disable hover overlay/tooltip behavior for rating on model pages */
body.model-page .vote:not(.nohover):hover {
    cursor: default;
}
body.model-page .vote:not(.nohover):hover > span,
body.model-page .vote:not(.nohover):hover .totalrate {
    display: none !important;
    background: transparent !important;
    position: static !important;
    width: auto !important;
}

/* Always hide vote counts/text under stars on model pages */
body.model-page .with-rating > span,
body.model-page .with-rating .totalrate {
    display: none !important;
}

/* CTA row with left cluster (rating + actions) and centered CTA */
.model-hero__cta-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(0.4rem, 1vw, 0.75rem);
    margin-top: 0;
}

.model-hero__cta-left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-self: start;
}

.model-hero__cta-center {
    justify-self: center;
}

.model-hero__cta-right {
    justify-self: end;
}

.model-hero__action-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    background: transparent;
}

.model-hero__inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.model-hero__inline-actions a,
.model-hero__inline-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 0; /* No border - clean icon look */
    color: var(--text-primary);
    text-decoration: none;
    padding: 0;
}

.model-hero__inline-actions a:hover,
.model-hero__inline-actions a:focus,
.model-hero__inline-actions button:hover,
.model-hero__inline-actions button:focus {
    color: var(--index-accent);
    background: var(--bg-secondary); /* Subtle background on hover instead of border */
}

/* ===== RESPONSIVE: CTA Row on smaller screens ===== */

/* Prevent overflow on model hero elements */
.model-hero__cta-row,
.model-navbar {
    max-width: 100%;
    overflow: hidden;
}

/* Desktop dead-zone (1280 → 1024): keep sidebar visible, tighten nav spacing */
@media (max-width: 1280px) and (min-width: 1024px) {
    body.model-page .content-layout {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    }

    .model-navbar .model-nav {
        gap: 0.25rem;
    }

    .model-navbar .model-nav a {
        padding: 0.4rem 0.85rem;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
    }

    .model-hero__cta-row {
        grid-template-columns: auto auto auto;
        justify-content: center;
        column-gap: 0.35rem;
    }

    .model-hero__cta-left,
    .model-hero__cta-right {
        justify-self: center;
    }

    .model-hero__action-chip {
        gap: 0.25rem;
        padding: 0.2rem 0.45rem;
    }

    .model-hero__action-chip .vote,
    .model-hero__action-chip .vote.with-rating {
        padding: 0.1rem 0.3rem !important;
    }

    .model-button--cta {
        padding: 0.55rem 1.25rem;
        font-size: 0.82rem;
        letter-spacing: 0.05em;
    }

    /* Hide "Similar models" a bit earlier to prevent wrap */
    .model-nav a:nth-child(4) {
        display: none;
    }
}

/* Below sidebar breakpoint (1024px) - single column layout */
@media (max-width: 1023px) {
    /* Hide rating and action buttons - they're in sidebar/mobile menu anyway */
    .model-hero__cta-left,
    .model-hero__cta-right {
        display: none !important;
    }
    
    /* CTA row: just the button, centered */
    .model-hero__cta-row {
        display: flex;
        justify-content: center;
        grid-template-columns: none;
    }
    
    .model-hero__cta-center {
        flex: 0 0 auto;
    }

    .model-button--cta {
        padding: 0.5rem 1.15rem;
        font-size: 0.8rem;
    }
    
    /* Model navbar: ensure it fits */
    .model-navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .model-navbar a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .model-navbar a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Comments form submit button - align with theme and keep readable */
.emAddComment input.button.lite-grey-button {
    color: var(--btn-color) !important;
    border-color: var(--btn-border) !important;
    background: var(--btn-bg) !important;
}

.emAddComment input.button.lite-grey-button:hover,
.emAddComment input.button.lite-grey-button:focus {
    color: var(--btn-color) !important;
    background: var(--btn-bg-hover) !important;
    border-color: var(--btn-border) !important;
}

/* Reviews submit button – neutral palette (not orange), scoped to reviews section */
.model-section--reviews .emAddComment input.button.lite-grey-button {
    color: var(--text-primary) !important;
    background: var(--chip-bg) !important;
    border: 1px solid var(--border-secondary) !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.model-section--reviews .emAddComment input.button.lite-grey-button:hover,
.model-section--reviews .emAddComment input.button.lite-grey-button:focus {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .model-section--reviews .emAddComment input.button.lite-grey-button:hover,
[data-theme="dark"] .model-section--reviews .emAddComment input.button.lite-grey-button:focus {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Sidebar model actions */
.index-sidebar__section--model-actions .model-actions {
    display: grid;
    gap: 0.5rem;
}

.model-actions__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

/* Plain inline items (no chips) */
.model-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.model-inline i { color: var(--text-tertiary); font-size: 1rem; }

.model-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-lg);
    background: var(--chip-bg);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    width: 100%;
}

.model-actions__row--icons {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: space-between;
}

.model-actions__row--icons .fa { display: inline; }

.model-actions__row--icons .fa .tooltip {
    position: static !important;
    opacity: 1 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--text-primary) !important;
}

/* Use genders pill look */
.model-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--text-primary);
    text-decoration: none;
}

.model-icon i { font-size: 1.6rem; }

/* Status colors */
.feature-status-0 { color: #8b8f98; }      /* offline */
.feature-status-1 { color: #f5c542; }      /* away */
.feature-status-2 { color: #f59e0b; }      /* member chat */
.feature-status-3 { color: #ef4444; }      /* private */
.feature-status-4 { color: #8b5cf6; }      /* group */
.feature-status-5 { color: #22c55e; }      /* free */
.feature-status-6 { color: #10b981; }      /* online */

.model-section--plain .model-detail__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-right: 0.5rem;
}

.model-section--plain .model-detail__value {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.model-section--notice {
    background: rgba(255, 230, 230, 0.9);
    border-color: rgba(255, 194, 194, 0.8);
    color: #7a2b2b;
}

[data-theme="dark"] .model-section--notice {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 200, 200, 0.9);
}

.model-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.model-detail {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
}

[data-theme="dark"] .model-detail {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-detail__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.model-detail__value {
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

[data-theme="dark"] .model-detail__value {
    color: rgba(242, 243, 248, 0.9);
}

.model-detail__value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s ease;
}

/* ===== LONG TEXT DETAILS (Turns on/off, Current goal) ===== */
/* Container - HORIZONTAL inline layout like About section */
/* Use high specificity to override .model-section--plain styles */
.model-section--plain .model-details-grid.model-details-grid--preferences,
.model-details-grid.model-details-grid--preferences {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem 0.85rem !important;
    margin-top: 0.15rem !important;
    --detail-col-gap: 0.85rem;
    grid-template-columns: unset !important; /* Remove grid */
}

/* Override for preference items - inline horizontal layout */
.model-section--plain .model-details-grid--preferences .model-detail,
.model-details-grid--preferences .model-detail {
    background: transparent !important;
    border: 0 !important;
    padding: 0.05rem 0.35rem 0.05rem 0.1rem !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Left aligned */
    text-align: left !important;
    position: relative;
}

/* Vertical separator between items */
.model-details-grid--preferences .model-detail:not(:first-child)::before {
    content: "";
    position: absolute;
    left: calc(-1 * (var(--detail-col-gap) / 2));
    top: 4%;
    bottom: 4%;
    width: 2px;
    background: var(--border-default);
}

/* Preference labels - consistent with other labels */
.model-section--plain .model-details-grid--preferences .model-detail__label,
.model-details-grid--preferences .model-detail__label {
    font-size: var(--font-size-xs) !important;
    font-weight: var(--font-weight-medium) !important;
    color: var(--text-tertiary) !important;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: 0.15rem;
    margin-right: 0 !important;
}

/* Value container with truncation */
.model-section--plain .model-details-grid--preferences .model-detail__value,
.model-details-grid--preferences .model-detail__value {
    font-size: var(--font-size-sm) !important;
    font-weight: var(--font-weight-normal) !important;
    color: var(--text-primary);
    line-height: var(--line-height-snug);
    text-align: left;
    max-width: 220px; /* Limit width to keep compact */
}

/* Expandable text - visually collapsed but FULL text in DOM for SEO */
.model-detail--expandable .model-detail__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Expanded state - show full text */
.model-detail--expandable.is-expanded .model-detail__text {
    display: inline;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* Read more link - subtle, accent on hover */
.model-detail__readmore {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 0.15rem;
}

.model-detail__readmore:hover {
    color: var(--index-accent);
    text-decoration: underline;
}

.model-detail__value a:hover,
.model-detail__value a:focus {
    border-bottom-color: currentColor;
}

.model-tags {
    margin-top: clamp(1rem, 1.5vw, 1.5rem);
}

.model-tag-chips,
.model-tags ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.model-tag-chips li a,
.model-tags a,
.model-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--chip-bg);
    border: 1px solid var(--border-default);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.model-tag-chips li a:hover,
.model-tag-chips li a:focus,
.model-tags a:hover,
.model-tags a:focus,
.model-chip:hover,
.model-chip:focus {
    background: color-mix(in srgb, var(--index-accent) 14%, transparent);
    border-color: color-mix(in srgb, var(--index-accent) 45%, transparent);
    color: var(--index-accent);
}

.model-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.model-stat-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

[data-theme="dark"] .model-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-stat-card__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--text-tertiary);
}

.model-stat-card__value {
    font-size: 1.35rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.model-stat-card__note {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-normal);
    color: var(--text-tertiary);
}

[data-theme="dark"] .model-stat-card__value {
    color: rgba(242, 243, 248, 0.92);
}

.model-turns {
    display: grid;
    gap: 0.75rem;
}

.model-turns__item {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
}

.model-turns__item strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--text-tertiary);
}

[data-theme="dark"] .model-turns__item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-gallery-grid {
    display: grid;
    gap: clamp(0.75rem, 1.5vw, 1.2rem);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.model-gallery-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: rgba(15, 19, 34, 0.75);
}

.model-gallery-card img {
    display: block;
    width: 100%;
    height: auto;
}

.model-gallery-card .short-info {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.model-related-grid {
    display: grid;
    gap: 1rem;
}

.model-inline-info {
    margin-top: 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--text-tertiary);
}

[data-theme="dark"] .model-inline-info {
    color: rgba(242, 243, 248, 0.72);
}

.model-sidebar {
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.model-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem 1.2rem;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
}

[data-theme="dark"] .model-sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-sidebar-card__link {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.model-sidebar-card__link:hover,
.model-sidebar-card__link:focus {
    color: var(--index-accent);
}

/* Reviews section - same visual style as plain section */
.model-section--reviews {
    background: transparent;
    border: 1px solid var(--border-default);
    box-shadow: none;
    padding: clamp(0.6rem, 1.2vw, 0.9rem);
    padding-top: 0.35rem;
}

.model-section--reviews .model-section__head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.model-section--reviews .model-section__title {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-heading);
    margin: 0;
    display: inline;
}

.model-section--reviews .model-section__subtitle {
    display: inline;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    margin: 0;
    color: var(--text-tertiary);
}

.model-section--reviews p {
    color: var(--text-secondary);
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

[data-theme="dark"] .model-section--reviews p {
    color: rgba(242, 243, 248, 0.75);
}

/* Comments styling - align with plain section design */
.model-section--reviews .emComment {
    background: transparent !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: clamp(0.6rem, 1.2vw, 0.9rem) !important;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem) !important;
    transition: none !important;
}

.model-section--reviews .emComment:hover {
    background: transparent !important;
    border-color: var(--border-default) !important;
    box-shadow: none !important;
    transform: none !important;
}

[data-theme="dark"] .model-section--reviews .emComment {
    background: transparent !important;
    border-color: var(--border-default) !important;
    color: inherit !important;
}

[data-theme="dark"] .model-section--reviews .emComment:hover {
    background: transparent !important;
    border-color: var(--border-default) !important;
}

/* Related models (Fans also enjoyed) - simplified index cards */
.model-section--related {
    margin-top: clamp(0.2rem, 0.4vw, 0.4rem);
}

.model-section--related .model-section__head {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

/* Use index grid; only image + name */
#model-related .index-results-list {
    margin-top: clamp(0.4rem, 0.8vw, 0.6rem);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    column-gap: clamp(0.6rem, 1.2vw, 1rem);
    row-gap: clamp(1rem, 2vw, 1.4rem);
}

/* Neutralize legacy float/width rules on .item inside grid */
#model-related .index-results-list .item {
    width: 100% !important;
    float: none !important;
    display: block;
}

#model-related .index-results-list .glam {
    width: 100%;
}

#model-related .result-site-badge,
#model-related .features,
#model-related .model-info-line--secondary,
#model-related .model-age {
    display: none !important;
}

/* Alternate Accounts Section - show site badge prominently */
#model-aliases .result-site-badge {
    display: flex !important;
}

#model-aliases .features,
#model-aliases .model-info-line--secondary,
#model-aliases .model-age {
    display: none !important;
}

/* Slightly smaller titles for supplementary sections */
#model-aliases .results-section__title,
#model-related .results-section__title {
    font-size: 1.5rem; /* 24px */
}

/* Ensure images fill cards properly */
#model-related .glam .image-container {
    width: 100%;
    overflow: hidden;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 4px 4px 0 0; /* Match card-wrapper corners */
}

#model-related .glam .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tighter info area under name for related cards */
#model-related .glam,
#model-aliases .glam {
    --model-card-info-h: auto; /* No forced height - content determines size */
}

#model-related .card-wrapper,
#model-aliases .card-wrapper {
    min-height: auto !important;
    padding: 0.3rem 0.5rem !important;
    gap: 0;
    border-radius: 0 0 4px 4px !important; /* Subtle corners, not too rounded */
}

/* Force full name display in related cards - no truncation */
#model-related .model-info-line--primary,
#model-related .index-results-list .model-info-line--primary {
    display: block !important; /* Stack instead of flex to allow full width */
    overflow: visible !important;
}

#model-related .model-info-line--primary .name,
#model-related .model-info-line--primary .name a,
#model-related .card-wrapper .name,
#model-related .card-wrapper .name a,
#model-related .index-results-list .name,
#model-related .index-results-list .name a {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
    width: auto !important;
    display: inline !important;
}

@media (min-width: 1200px) {
    #model-related .index-results-list {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 767px) {
    #model-related .index-results-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}


/* Model Description Section */
.model-section--description {
    margin-top: 0;
    margin-bottom: 0;
}

.model-section--description .model-section__head {
    margin-bottom: 0.3rem;
}

.model-section--description .model-section__title {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-heading);
    margin: 0;
}

.model-description-content {
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

.model-description__text {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    margin: 0;
}

[data-theme="dark"] .model-description__text {
    color: rgba(242, 243, 248, 0.75);
}

.model-description__toggle {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--index-accent);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

.model-description__toggle:hover,
.model-description__toggle:focus {
    color: var(--index-accent-strong);
    text-decoration: underline;
}

.model-description-content.expanded .model-description__snippet {
    display: none;
}

.model-description-content.expanded .model-description__full {
    display: block !important;
}

.model-description-content.expanded .model-description__toggle[data-action="expand"] {
    display: none;
}

.model-description-content.expanded .model-description__toggle[data-action="collapse"] {
    display: inline-block;
}

@media (max-width: 767px) {
    .model-hero,
    .model-section {
        border-radius: var(--radius-xl);
    }

    .model-detail,
    .model-stat-card,
    .model-hero__stat,
    .model-turns__item {
        border-radius: var(--radius-lg);
    }
}

/* ============================================
   HYBRID LAYOUT v2 - Hero Card Top Design
   SEO-optimized model page without tabs
   ============================================ */

/* Hybrid layout modifier - no sidebar */
.model-page--hybrid .model-page__main {
    padding-bottom: var(--spacing-md); /* Minimal space before footer */
}

/* Hybrid: All sections use same max-width for alignment */
.model-page--hybrid .model-page__header {
    max-width: var(--max-width-content, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md, 1rem);
    padding-right: var(--spacing-md, 1rem);
}

.model-page--hybrid .model-page__content {
    max-width: var(--max-width-content, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Hybrid: normalize vertical rhythm between content sections */
.model-page--hybrid .model-section {
    margin-top: 0;
    margin-bottom: 0;
}

.model-page--hybrid .model-section + .model-section {
    margin-top: var(--stack-gap);
}

/* ============================================
   HERO CARD - Avatar + Stats + CTA (Top)
   ============================================ */

.model-hero-card {
    max-width: var(--max-width-content, 1200px);
    margin: 0 auto var(--stack-gap);
    margin-left: var(--spacing-md, 1rem);
    margin-right: var(--spacing-md, 1rem);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: none;
}

/* Desktop: auto margins for centering */
@media (min-width: 1280px) {
    .model-hero-card {
        margin-left: auto;
        margin-right: auto;
    }
}

.model-hero-card__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    grid-template-areas: "avatar info stats cta actions";
    gap: clamp(0.75rem, 1.5vw, 1.1rem);
    align-items: center;
    padding: clamp(0.45rem, 0.9vw, 0.7rem);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
}

/* Avatar */
.model-hero-card__avatar {
    grid-area: avatar;
    position: relative;
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    flex-shrink: 0;
}

.model-hero-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 0 2px var(--bg-primary), var(--shadow-md);
}

.model-hero-card__status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border: 2px solid var(--surface-secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Info */
.model-hero-card__info {
    grid-area: info;
    min-width: 0;
}

.model-hero-card__name {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.model-hero-card__live-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.model-hero-card__meta {
    margin-top: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.model-hero-card__sep {
    color: var(--text-tertiary);
}

/* Stats */
.model-hero-card__stats {
    grid-area: stats;
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.model-hero-card__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--chip-bg);
    border-radius: var(--radius-lg);
    min-width: 70px;
}

.model-hero-card__stat-value {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
}

.model-hero-card__stat-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* CTA */
.model-hero-card__cta {
    grid-area: cta;
}

.model-button--large {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Actions */
.model-hero-card__actions {
    grid-area: actions;
    display: flex;
    gap: 0.5rem;
}

.model-hero-card__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 50px;
}

.model-hero-card__action i {
    font-size: 1.1rem;
}

.model-hero-card__action:hover {
    background: var(--chip-bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.model-hero-card__action--rating {
    border: none;
    padding: 0;
    background: transparent;
}

.model-hero-card__action--rating .vote {
    padding: 0.3rem !important;
}

/* Hero Card Responsive */
@media (max-width: 991px) {
    .model-hero-card__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: 
            "avatar info info"
            "stats stats stats"
            "cta cta actions";
        gap: 0.75rem;
    }
    
    .model-hero-card__stats {
        justify-content: center;
    }
    
    .model-hero-card__cta {
        flex: 1;
    }
    
    .model-hero-card__cta .model-button {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .model-hero-card {
        padding: 1rem;
    }
    
    .model-hero-card__inner {
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "avatar info"
            "stats stats"
            "cta cta"
            "actions actions";
    }
    
    .model-hero-card__avatar {
        width: 56px;
        height: 56px;
    }
    
    .model-hero-card__actions {
        justify-content: center;
        width: 100%;
    }
    
    .model-hero-card__action span {
        display: none;
    }
    
    .model-hero-card__action {
        min-width: 44px;
    }
}

/* MOBILE: Reorder - H1 → Video → CTA Card → Content */
@media (max-width: 767px) {
    /* Use flexbox on main to reorder children */
    .model-page--hybrid .model-page__main {
        display: flex;
        flex-direction: column;
    }
    
    /* 1. Header stays first (H1 + description) */
    .model-page--hybrid .model-page__header {
        order: 1;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .model-page--hybrid .model-page__header .model-page__title {
        font-size: 1.15rem;
    }
    
    .model-page--hybrid .model-page__header .model-page__subtitle {
        font-size: var(--font-size-sm);
        margin-top: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* 2. Video comes second */
    .model-page--hybrid .model-video-section {
        order: 2;
        margin: 0 var(--spacing-md) var(--spacing-sm);
    }
    
    /* 3. Hero card (CTA + Actions) comes after video */
    .model-page--hybrid .model-hero-card {
        order: 3;
        margin: 0 var(--spacing-md) var(--spacing-sm);
        padding: var(--spacing-sm);
        border-radius: var(--radius-lg);
    }
    
    /* Compact layout for mobile hero card - only CTA and actions */
    .model-page--hybrid .model-hero-card__inner {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "cta"
            "actions";
        gap: 0.5rem;
    }
    
    /* Hide avatar, name, stats on mobile (already in H1 area) */
    .model-page--hybrid .model-hero-card__avatar,
    .model-page--hybrid .model-hero-card__info,
    .model-page--hybrid .model-hero-card__stats {
        display: none;
    }
    
    /* CTA full width - prominent! */
    .model-page--hybrid .model-hero-card__cta {
        width: 100%;
    }
    
    .model-page--hybrid .model-hero-card__cta .model-button {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Actions row centered */
    .model-page--hybrid .model-hero-card__actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* 4. Main content */
    .model-page--hybrid .model-page__content {
        order: 4;
    }
    
    /* 5. Similar section */
    .model-page--hybrid .model-similar-section {
        order: 5;
    }
    
    /* 6. Content updated info - stays at bottom, above footer (was order:0 by default = top) */
    .model-page--hybrid .model-inline-info {
        order: 6;
    }
}

/* ============================================
   EXPANDABLE SECTIONS (Pictures, Reviews)
   ============================================ */

.model-section--expandable {
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-default);
}

.model-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    background: var(--surface-secondary);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.model-expand-toggle:hover {
    background: var(--chip-bg-hover);
}

.model-expand-toggle__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.model-expand-toggle__left i:first-child {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.model-expand-toggle__title {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: var(--font-weight-semibold);
    color: var(--text-heading);
}

.model-expand-toggle__count {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    padding: 0.2rem 0.5rem;
    background: var(--chip-bg);
    border-radius: var(--radius-full);
}

.model-expand-toggle__arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.model-expand-toggle.is-expanded .model-expand-toggle__arrow {
    transform: rotate(180deg);
}

.model-expand-content {
    padding: clamp(1rem, 2vw, 1.5rem);
    border-top: 1px solid var(--border-subtle);
    animation: expandIn 0.3s ease;
}

.model-expand-content[hidden] {
    display: none;
}

@keyframes expandIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* ============================================
   MOBILE BOTTOM BAR (Sticky Actions)
   ============================================ */

.model-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-index-sticky);
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
    background: var(--surface-primary);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Desktop: show only when scrolled past hero card */
.model-mobile-bar.is-visible {
    display: flex;
    transform: translateY(0);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.model-mobile-bar__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.model-mobile-bar__action:hover,
.model-mobile-bar__action:active {
    background: var(--chip-bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.model-mobile-bar__cta {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-button);
    transition: all var(--transition-fast);
}

.model-mobile-bar__cta:hover {
    background: var(--accent-primary-hover);
    transform: scale(1.02);
}

.model-mobile-bar__cta i {
    font-size: 1rem;
}

/* Compact vote in mobile bar */
.vote--compact {
    padding: 0 !important;
}

.vote--compact .stars {
    font-size: 0.9rem;
}

/* Mobile: Hide bottom bar (CTA card is visible under video) */
@media (max-width: 767px) {
    .model-mobile-bar {
        display: none;
    }
    
    .model-page--hybrid .model-page__main {
        padding-bottom: var(--spacing-sm);
    }
}

/* Tablet/Desktop: show bottom bar on scroll only (when hero card scrolls out) */
@media (min-width: 768px) {
    .model-mobile-bar {
        display: none;
    }
    
    .model-mobile-bar.is-visible {
        display: flex;
    }
}

/* ============================================
   SIMILAR MODELS SECTION (Full Width)
   ============================================ */

.model-similar-section {
    width: 100%;
    margin-top: var(--stack-gap);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: none;
}

/* Content updated info - at very bottom */
.model-page--hybrid .model-inline-info {
    max-width: var(--max-width-container, 1600px);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-align: center;
}

/* Sidebar wrapper - visually hidden but in DOM for JS "Filters" button */
/* JS needs to find .sidebar to create the mobile FAB button */
.model-page--hybrid .model-page__sidebar-wrapper {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure sidebar inside is still "findable" by JS */
.model-page--hybrid .model-page__sidebar-wrapper .sidebar {
    position: static;
    width: auto;
    height: auto;
}

.model-similar-section__container {
    max-width: var(--max-width-container, 1600px);
    margin: 0 auto;
    padding: clamp(0.6rem, 1.2vw, 0.9rem) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
}

.model-similar-section .results-section__header {
    margin: 0;
}

.model-similar-section .results-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: clamp(0.4rem, 0.8vw, 0.6rem);
}

@media (min-width: 1200px) {
    .model-similar-section .results-list {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 767px) {
    .model-similar-section .results-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   DARK MODE ADJUSTMENTS FOR HYBRID LAYOUT
   ============================================ */

[data-theme="dark"] .model-hero-card,
[data-mode="dark"] .model-hero-card {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

[data-theme="dark"] .model-hero-card__inner,
[data-mode="dark"] .model-hero-card__inner {
    background: transparent;
    border-color: var(--border-default);
}

[data-theme="dark"] .model-hero-card__avatar img,
[data-mode="dark"] .model-hero-card__avatar img {
    border-color: var(--accent-primary);
}

[data-theme="dark"] .model-hero-card__stat,
[data-mode="dark"] .model-hero-card__stat {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .model-expand-toggle,
[data-mode="dark"] .model-expand-toggle {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .model-expand-toggle:hover,
[data-mode="dark"] .model-expand-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .model-mobile-bar,
[data-mode="dark"] .model-mobile-bar {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .model-similar-section,
[data-mode="dark"] .model-similar-section {
    background: transparent;
    border-color: transparent;
}

[data-theme="dark"] .model-similar-section__container,
[data-mode="dark"] .model-similar-section__container {
    background: transparent;
    border-color: var(--border-default);
}

 /* full base */
/* === Inlined from: ../../../03-components/unified-media-player.css === */
/**
 * UnifiedMediaPlayer - CSS Styles
 * 
 * A modern, accessible media player component for cam sites.
 * Uses CSS custom properties from tokens.css for consistency.
 * 
 * @version 1.0.0
 * @since 2025-05-28
 */

/* ============================================
   Base Container
   ============================================ */
.ump {
    --ump-radius: var(--radius-lg, 12px);
    --ump-bg: var(--bg-tertiary, #0a0a0a);
    --ump-accent: var(--accent-primary, #dc2626);
    --ump-accent-hover: var(--accent-hover, #b91c1c);
    --ump-text: #ffffff; /* Always white for dark overlay */
    --ump-text-muted: rgba(255, 255, 255, 0.7);
    --ump-overlay: rgba(0, 0, 0, 0.75);
    --ump-overlay-light: rgba(0, 0, 0, 0.5);
    --ump-transition: 0.2s ease;
    
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--ump-bg);
    border-radius: var(--ump-radius);
    overflow: hidden;
    contain: layout style paint;
}

/* Focus outline for accessibility */
.ump:focus-within {
    outline: 2px solid var(--ump-accent);
    outline-offset: 2px;
}

/* ============================================
   Layers (Stacked with z-index)
   ============================================ */
.ump__poster-layer,
.ump__loader-layer,
.ump__error-layer,
.ump__media-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ump__poster-layer {
    z-index: 1;
}

.ump__loader-layer {
    z-index: 3;
    background: var(--ump-overlay);
    flex-direction: column;
    gap: 16px;
    color: var(--ump-text);
}

.ump__error-layer {
    z-index: 3;
    background: var(--ump-overlay);
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    color: var(--ump-text);
    text-align: center;
}

.ump__media-layer {
    z-index: 2;
}

/* Hidden state - use !important to override any conflicting styles */
.ump__loader-layer[hidden],
.ump__error-layer[hidden],
.ump__media-layer[hidden],
.ump__poster-layer[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure visible layers are properly shown */
.ump__loader-layer:not([hidden]),
.ump__error-layer:not([hidden]) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   Poster Image
   ============================================ */
.ump__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ump-transition), filter var(--ump-transition);
}

.ump__poster-layer:hover .ump__poster {
    transform: scale(1.02);
}

/* Blurred poster for auth gate */
.ump__poster--blurred {
    filter: blur(8px) brightness(0.7);
    transform: scale(1.05);
}

/* ============================================
   Play Button
   ============================================ */
.ump__play-btn {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 40px;
    background: var(--ump-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--ump-text);
    cursor: pointer;
    transition: all var(--ump-transition);
    font-family: inherit;
}

.ump__play-btn:hover,
.ump__play-btn:focus {
    background: var(--ump-accent);
    border-color: var(--ump-accent);
    transform: scale(1.05);
    outline: none;
}

.ump__play-btn:active {
    transform: scale(0.98);
}

.ump__play-icon {
    width: 64px;
    height: 64px;
    color: var(--ump-text);
}

.ump__play-icon svg {
    width: 100%;
    height: 100%;
}

.ump__play-label {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ump__play-hint {
    font-size: 12px;
    color: var(--ump-text-muted);
    opacity: 0.8;
}

/* Mobile optimization */
@media (max-width: 640px) {
    .ump__play-btn {
        padding: 16px 28px;
        gap: 8px;
    }
    
    .ump__play-icon {
        width: 48px;
        height: 48px;
    }
    
    .ump__play-label {
        font-size: 14px;
    }
    
    .ump__play-hint {
        font-size: 11px;
    }
}

/* ============================================
   Offline Overlay
   ============================================ */
.ump__offline-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--ump-overlay);
    color: var(--ump-text);
    text-align: center;
    padding: 24px;
}

.ump__offline-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #6b7280;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ump__offline-text {
    font-size: 14px;
    color: var(--ump-text-muted);
    margin: 0;
}

/* ============================================
   Loading Spinner
   ============================================ */
.ump__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--ump-accent);
    border-radius: 50%;
    animation: ump-spin 0.8s linear infinite;
}

@keyframes ump-spin {
    to {
        transform: rotate(360deg);
    }
}

.ump__loader-text {
    font-size: 14px;
    color: var(--ump-text-muted);
}

/* ============================================
   Error State
   ============================================ */
.ump__error-icon {
    width: 48px;
    height: 48px;
    color: var(--ump-accent);
}

.ump__error-icon svg {
    width: 100%;
    height: 100%;
}

.ump__error-msg {
    font-size: 16px;
    margin: 0;
    max-width: 300px;
}

.ump__error-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   Buttons
   ============================================ */
.ump__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ump-transition);
}

.ump__btn--primary {
    background: var(--accent-primary, var(--ump-accent));
    color: var(--text-on-accent, #ffffff);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.ump__btn--primary:hover,
.ump__btn--primary:focus {
    background: var(--accent-hover, var(--ump-accent-hover));
    outline: none;
}

.ump__btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.ump__btn--secondary:hover,
.ump__btn--secondary:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

/* ============================================
   Media Elements (Video & Iframe)
   ============================================ */
.ump__video,
.ump__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--ump-bg);
}

.ump__video {
    object-fit: contain;
}

/* Video controls styling */
.ump__video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* ============================================
   Auth Gate - Compact responsive sizing
   ============================================ */
.ump--auth-gate .ump__auth-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 2%, 16px);
}

.ump__auth-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1.5vw, 10px);
    max-width: min(220px, 75%);
    padding: clamp(10px, 2.5vw, 20px);
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: clamp(8px, 1.5vw, 12px);
    text-align: center;
}

.ump__auth-icon {
    width: clamp(20px, 5vw, 32px);
    height: clamp(20px, 5vw, 32px);
    color: var(--ump-accent);
}

.ump__auth-icon svg {
    width: 100%;
    height: 100%;
}

.ump__auth-title {
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: 600;
    margin: 0;
    color: var(--ump-text);
}

.ump__auth-text {
    font-size: clamp(10px, 2vw, 12px);
    color: var(--ump-text-muted);
    margin: 0;
    line-height: 1.3;
}

.ump__auth-actions {
    display: flex;
    gap: clamp(4px, 1.5vw, 8px);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: clamp(2px, 1vw, 6px);
}

.ump__auth-actions .ump__btn {
    padding: clamp(4px, 1vw, 8px) clamp(8px, 2vw, 14px);
    font-size: clamp(10px, 2vw, 12px);
}

/* ============================================
   Fallback Mode (External Link) - Updated Design
   ============================================ */
.ump--fallback .ump__external-link {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--ump-overlay-light);
    color: var(--ump-text);
    text-decoration: none;
    transition: background var(--ump-transition);
}

.ump--fallback .ump__external-link:hover {
    background: var(--ump-overlay);
}

.ump__external-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--ump-accent);
    border-radius: 50%;
}

.ump__external-icon svg {
    width: 100%;
    height: 100%;
}

.ump__external-label {
    font-size: 16px;
    font-weight: 600;
}

/* Redirect overlay - consistent design */
.ump__redirect-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ump-overlay-light);
    transition: background var(--ump-transition);
}

.ump__redirect-overlay:hover {
    background: var(--ump-overlay);
}

.ump__btn-icon {
    display: flex;
    align-items: center;
}

.ump__btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Overlay Mode Modifiers
   ============================================ */

/* Blur mode - controlled by CSS variable */
.ump--blur .ump__poster {
    filter: blur(var(--ump-blur, 8px)) brightness(0.7);
    transform: scale(1.05);
}

/* Dark mode - 100% dark overlay */
.ump--dark .ump__poster {
    filter: brightness(0.1);
}

.ump--dark .ump__poster-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ump-overlay-bg, rgba(0, 0, 0, 0.95));
    z-index: 1;
}

/* Custom image mode */
.ump--custom .ump__poster {
    object-fit: cover;
}

/* Offline mode */
.ump--offline .ump__poster {
    filter: blur(var(--ump-blur, 12px)) brightness(0.6) grayscale(30%);
    transform: scale(1.05);
}

/* ============================================
   State Classes
   ============================================ */
.ump[data-state="idle"] .ump__media-layer {
    display: none;
}

/* Loading state - hide play button, dim poster */
.ump[data-state="loading"] .ump__poster-layer {
    opacity: 0.5;
}

.ump[data-state="loading"] .ump__play-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Playing state - hide poster and loader */
.ump[data-state="playing"] .ump__poster-layer,
.ump[data-state="playing"] .ump__loader-layer {
    display: none !important;
}

.ump[data-state="playing"] .ump__play-btn {
    display: none !important;
}

/* Error state - dim poster, hide play button */
.ump[data-state="error"] .ump__poster-layer {
    opacity: 0.3;
}

.ump[data-state="error"] .ump__play-btn {
    display: none !important;
}

/* ============================================
   Animations
   ============================================ */
@keyframes ump-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ump__media-layer {
    animation: ump-fade-in 0.3s ease;
}

/* ============================================
   Dark/Light Mode Support
   ============================================ */
@media (prefers-color-scheme: light) {
    .ump {
        --ump-bg: #1a1a1a;
    }
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .ump__spinner {
        animation: none;
    }
    
    .ump__poster,
    .ump__play-btn,
    .ump__btn {
        transition: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .ump {
        display: none;
    }
}



/* === Inlined from: ../../../03-components/comments-and-voting.css === */
/* ===================================================================
   COMMENTS & VOTING SYSTEM - CSS-v2
   Extracted from legacy style.css + thumbsup/styles.css
   =================================================================== */

/* ===== UTILITY: HIDE ELEMENTS ===== */
/* Standard hidden class (for optional fields like email) */
.dn {
    display: none !important;
}

/* Honeypot anti-spam field (complete invisibility) */
.honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* ===== THUMBSUP VOTING SYSTEM ===== */
/* Import from thumbsup/styles.css with CSS-v2 tokens */
/* TODO: missing import: ../../../thumbsup/styles.css */


/* ===== STAR RATING SYSTEM (NEW DESIGN FOR CSS-V2) ===== */
/* Custom star rating design for model pages */
.vote.with-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 180px;
}

.vote.with-rating .totalrate {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote.with-rating .totalrate i,
.vote.with-rating .totalrate span {
    color: var(--text-secondary);
    font-weight: 500;
    font-style: normal;
}

.vote.with-rating .stars {
    position: relative;
    width: 110px; /* Fixed width for 5 stars */
    height: 24px;
    display: block;
    margin: 0 auto;
}

/* Star background (empty stars) */
.vote.with-rating .stars::before {
    content: '★★★★★';
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 24px;
    color: var(--border-default);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: left; /* Align left to match overlay */
}

/* Filled stars overlay */
.vote.with-rating .stars .star_n {
    position: absolute;
    left: 0;
    top: 0;
    height: 24px;
    overflow: hidden;
    transition: width 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
}

.vote.with-rating .stars .star_n::before {
    content: '★★★★★';
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 24px;
    color: #fbbf24; /* Yellow stars */
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    text-align: left; /* Align left to match background */
}

/* Interactive rating layer (when not yet voted) */
.vote.with-rating .stars .rating {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 24px;
    display: flex;
    z-index: 2;
}

.vote.with-rating .stars .rating span {
    width: 20%; /* 5 stars = 20% each (100% / 5) */
    height: 100%;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

/* Votes count */
.vote.with-rating em {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
}

/* Thank you message after voting */
.vote.with-rating .thank {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #10b981;
    padding: var(--spacing-xs) 0;
    text-align: center;
}

/* Hover state */
.vote.with-rating .stars .rating span:hover ~ .star_n,
.vote.with-rating .stars .rating span:hover {
    opacity: 1;
}

/* Dark theme adjustments */
[data-theme="dark"] .vote.with-rating {
    background: var(--bg-secondary);
}

[data-theme="dark"] .vote.with-rating .stars::before {
    color: #374151;
}

[data-theme="dark"] .vote.with-rating .stars .star_n::before {
    color: #fbbf24;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .vote.with-rating {
        min-width: 140px;
        padding: 10px 12px;
    }
    
    .vote.with-rating .stars {
        width: 100px; /* 5 stars smaller on mobile */
    }
    
    .vote.with-rating .stars::before,
    .vote.with-rating .stars .star_n::before {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

/* ===== COMMENTS SYSTEM (ENHANCED) ===== */
.emComments {
    margin: 10px auto;
    text-align: left;
    border-radius: var(--radius-md);
    overflow: visible;
    margin-top: 20px;
}

.emComments .user {
    font: .95rem fontawesome;
}

.emAddComment {
    clear: left;
    float: none;
    overflow: hidden;
    display: block;
    padding-top: 10px;
    margin-top: 20px;
}

.emComment,
.emInfoMessage {
    font-size: .9rem;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(249, 250, 252, 0.95) 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-md);
    clear: left;
    float: none;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 15px;
    display: block;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 15px rgba(139, 92, 246, 0.03);
    transition: all 0.2s ease;
}

.emComment:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(203, 213, 225, 0.8);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 25px rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
}

[data-theme="dark"] .emComment {
    background: linear-gradient(145deg,
            var(--bg-secondary) 0%,
            rgba(35, 41, 55, 0.95) 100%);
    border-color: var(--border-default);
    color: #cbd5e1;
}

[data-theme="dark"] .emComment:hover {
    background: var(--bg-tertiary);
    border-color: #4a5568;
}

.emInfoMessage {
    text-align: center;
    font-weight: 600;
}

.emCommentImage {
    color: #35ab35;
    float: left;
    padding-left: .7rem;
    padding-top: 3px;
}

.emCommentText {
    padding-left: 2rem;
}

.emCommentInto .reply::before,
.emCommentInto .dislike::before,
.emCommentInto .like::before {
    font-size: .9rem;
    margin-right: 4px;
}

.emCommentInto .like {
    color: #35ab35;
}

.emCommentInto em {
    font-weight: 600;
}

.emCommentInto a:hover {
    color: var(--link-hover);
}

.emCommentInto {
    padding: 10px 0 0 .7rem;
    font-size: .83rem;
    border-top: 1px solid rgba(226, 232, 240, 0.4);
    margin-top: 10px;
    padding-top: 10px;
}

[data-theme="dark"] .emCommentInto {
    border-top-color: var(--border-default);
}

.emdate {
    display: block;
    padding-bottom: 7px;
    font-size: .75rem;
    color: #64748b;
    opacity: 0.8;
}

[data-theme="dark"] .emdate {
    color: #94a3b8;
}

.reply {
    padding-top: 5px;
}

.emShowAllComments,
.emHideAllComments {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(249, 250, 252, 0.95) 100%);
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: var(--radius-sm);
    clear: left;
    float: none;
    margin-bottom: 15px;
    padding: 12px 20px;
    display: block;
    font-size: .95rem;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.emShowAllComments:hover,
.emHideAllComments:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--link);
    transform: translateX(5px);
}

[data-theme="dark"] .emShowAllComments,
[data-theme="dark"] .emHideAllComments {
    background: linear-gradient(145deg,
            var(--bg-secondary) 0%,
            rgba(35, 41, 55, 0.95) 100%);
    border-color: var(--border-default);
    color: var(--text-primary);
}

[data-theme="dark"] .emShowAllComments:hover,
[data-theme="dark"] .emHideAllComments:hover {
    background: var(--bg-tertiary);
    border-color: var(--link);
}

#emContent,
.emContent {
    font-size: .9rem;
}

.emSenderName {
    font-weight: 700;
    font-size: 1rem;
    color: #35ab35;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .emSenderName {
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emAddComment input.button {
    margin-bottom: 10px;
}

/* Comments rules link - simple text */
.emAddComment a.next-button[href*="comments-rules"] {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 20px;
    color: #64748b;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: normal;
    display: inline;
    transition: color 0.2s ease;
}

.emAddComment a.next-button[href*="comments-rules"]:hover {
    color: var(--link);
    text-decoration: underline;
    transform: none;
}

[data-theme="dark"] .emAddComment a.next-button[href*="comments-rules"] {
    color: #94a3b8;
}

[data-theme="dark"] .emAddComment a.next-button[href*="comments-rules"]:hover {
    color: var(--link);
}

/* ===== EMOJI MODAL (FIXED) ===== */
.em-emoji-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 16px;
    display: none; /* Hidden by default - opens only on button click */
    align-items: center;
    justify-content: center;
}

.em-emoji-modal.active {
    display: flex;
}

.em-emoji-modal-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-default);
    max-width: 420px;
    width: 100%;
    border-radius: var(--radius-lg);
    position: relative;
    max-height: 480px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.em-emoji-header {
    padding: var(--spacing-md) 20px;
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.em-emoji-close {
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    padding: var(--spacing-2xs) var(--spacing-xs);
    line-height: 1;
    transition: color 0.2s ease;
}

.em-emoji-close:hover {
    color: var(--text-primary);
}

.emoji-category {
    border-bottom: 1px solid var(--border-default);
    padding: var(--spacing-md);
}

.emoji-category:last-child {
    border-bottom: none;
}

.emoji-categories-wrapper {
    max-height: 360px;
    overflow-y: auto;
}

.emoji-category h5 {
    padding-left: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.emoji-group {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--spacing-xs);
}

.em-emoji-btn {
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-emoji-btn:hover {
    transform: scale(1.2);
    background: var(--bg-secondary);
}

.em-emoji-trigger {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    color: var(--text-secondary);
    padding: var(--spacing-xs) 10px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    line-height: 1;
}

.em-emoji-trigger:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Textarea wrapper for positioning emoji trigger */
.textarea-wrapper {
    position: relative;
    margin-bottom: 16px;
    display: block;
}

.emAddComment .textarea-wrapper {
    margin-bottom: 0;
}

/* ===== MODERN COMMENT FORM DESIGN ===== */
.emAddComment {
    /* NO background/border - inherits from parent section */
    margin-top: 24px;
    clear: both;
}

.emAddComment h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.emAddComment .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: 16px;
}

.emAddComment .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.emAddComment label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}

/* Input groups with icons */
.emAddComment .input-group {
    position: relative;
    margin-bottom: 16px;
}

.emAddComment .input-group-icon {
    position: relative;
}

.emAddComment .input-group-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.emAddComment .input-group-icon input[type="text"],
.emAddComment .input-group-icon input[type="email"] {
    width: 100%;
    padding: 10px 14px 10px 44px; /* Left padding for icon */
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.emAddComment .input-group-icon input[type="text"]:focus,
.emAddComment .input-group-icon input[type="email"]:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Textarea (no icon) */
.emAddComment textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.emAddComment textarea:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.emAddComment textarea {
    min-height: 120px;
    resize: vertical;
    padding-right: 50px; /* Space for emoji button */
}

.emAddComment .textarea-wrapper textarea {
    padding-right: 50px; /* Ensure space for emoji button */
}

.emAddComment .button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-top: 16px;
}

.emAddComment input.button,
.emAddComment button[type="submit"] {
    background: var(--link);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.emAddComment input.button:hover,
.emAddComment button[type="submit"]:hover {
    background: var(--link-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.emAddComment input.button:active,
.emAddComment button[type="submit"]:active {
    transform: translateY(0);
}

/* Comments rules link - modern style */
.emAddComment a[href*="comments-rules"] {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.emAddComment a[href*="comments-rules"]:hover {
    color: var(--link);
}

.emAddComment a[href*="comments-rules"]::before {
    content: "📋";
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .emAddComment .form-row {
        grid-template-columns: 1fr;
    }
    
    .emoji-group {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .emAddComment .button-group {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .emAddComment input.button,
    .emAddComment button[type="submit"] {
        width: 100%;
    }
}

/* ===== COLLAPSIBLE REVIEW FORM ===== */
.em-review-container {
    margin-top: var(--spacing-lg);
}

/* Write a Review Button - Primary CTA */
.em-write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--inset-button), var(--shadow-card);
}

.em-write-review-btn:hover {
    background: var(--accent-secondary);
    box-shadow: var(--inset-button-hover), var(--shadow-card-hover);
    transform: translateY(-1px);
}

.em-write-review-btn:active {
    transform: translateY(0);
    box-shadow: var(--inset-button-active);
}

.em-write-review-btn[aria-expanded="true"] {
    background: var(--text-tertiary);
}

.em-write-review-btn i {
    font-size: 1rem;
}

/* Collapsible Form Container */
.emAddComment.em-form-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    padding: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.emAddComment.em-form-expanded {
    max-height: 600px;
    overflow: visible;
    opacity: 1;
    margin-top: var(--spacing-lg);
    transition: max-height 0.4s ease, opacity 0.3s ease 0.1s, margin-top 0.25s ease;
}

/* Inner form wrapper for padding */
.em-form-inner {
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
}

/* Form Actions Row */
.em-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* Submit Button Styling */
.em-submit-btn {
    flex-shrink: 0;
}

/* Rules Link */
.em-rules-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.em-rules-link:hover {
    color: var(--accent-primary);
}

.em-rules-link i {
    font-size: 0.9rem;
}

/* Override old comment rules link styling */
.em-form-inner a.next-button[href*="comments-rules"] {
    display: none !important; /* Hide old style link, we have new one */
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .em-write-review-btn {
        width: 100%;
        justify-content: center;
    }
    
    .em-form-inner {
        padding: var(--spacing-md);
    }
    
    .em-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .em-submit-btn {
        width: 100%;
    }
    
    .em-rules-link {
        justify-content: center;
        margin-top: var(--spacing-xs);
    }
}



/* === Inlined from: ../../../03-components/model-schedule.css === */
/* ============================================================
   MODEL SCHEDULE WIDGET
   Fits inside .model-section box like Reviews section
   
   @version 2.3.0
   @date 2025-12-02
   ============================================================ */

/* Section title - match Reviews size */
.model-section--schedule .model-section__title {
    font-size: clamp(1.1rem, 2.1vw, 1.4rem);
    margin: 0;
    display: inline;
}

/* Demo badge - inline after title */
.schedule-widget__demo {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 15%, transparent);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

/* Widget container */
.schedule-widget {
    width: 100%;
    font-family: var(--font-family-sans);
}

/* Grid Container */
.schedule-widget__grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 4px;
    overflow: hidden;
}

/* Rows */
.schedule-widget__row {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.schedule-widget__row:last-child {
    border-bottom: none;
}

.schedule-widget__row--hours {
    border-bottom: 1px solid rgba(128, 128, 128, 0.35);
}

/* Day labels (left column) */
.schedule-widget__day-label {
    width: 36px;
    min-width: 36px;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    border-right: 1px solid rgba(128, 128, 128, 0.35);
}

/* Hour labels (top row) */
.schedule-widget__hour-label {
    flex: 1;
    min-width: 0;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding: 4px 0;
    border-right: 1px solid rgba(128, 128, 128, 0.2);
}

.schedule-widget__hour-label:last-child {
    border-right: none;
}

/* Cells */
.schedule-widget__cell {
    flex: 1;
    min-width: 0;
    height: 16px;
    background: transparent;
    transition: background 0.15s ease;
    cursor: default;
    border-right: 1px solid rgba(128, 128, 128, 0.2);
    position: relative;
}

.schedule-widget__cell:last-child {
    border-right: none;
}

/* Cell states */
.schedule-widget__cell--none {
    background: transparent;
}

.schedule-widget__cell--low {
    background: color-mix(in srgb, var(--index-accent) 30%, transparent);
}

.schedule-widget__cell--medium {
    background: color-mix(in srgb, var(--index-accent) 60%, transparent);
}

.schedule-widget__cell--high {
    background: var(--index-accent);
}

.schedule-widget__cell--peak {
    box-shadow: inset 0 0 0 2px var(--success);
    z-index: 1;
}

.schedule-widget__cell:hover:not(.schedule-widget__cell--none) {
    filter: brightness(1.15);
    z-index: 2;
}

/* Footer */
.schedule-widget__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.schedule-widget__timezone {
    font-size: 10px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Legend */
.schedule-widget__legend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.schedule-widget__legend-item {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.schedule-widget__legend-item[data-level="low"] {
    background: color-mix(in srgb, var(--index-accent) 30%, transparent);
}

.schedule-widget__legend-item[data-level="med"] {
    background: color-mix(in srgb, var(--index-accent) 60%, transparent);
}

.schedule-widget__legend-item[data-level="high"] {
    background: var(--index-accent);
}

.schedule-widget__legend-label {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* ============================================================
   DARK MODE
   ============================================================ */

[data-mode="dark"] .schedule-widget__grid {
    border-color: rgba(255, 255, 255, 0.18);
}

[data-mode="dark"] .schedule-widget__row {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-mode="dark"] .schedule-widget__row--hours {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

[data-mode="dark"] .schedule-widget__day-label {
    border-right-color: rgba(255, 255, 255, 0.18);
}

[data-mode="dark"] .schedule-widget__hour-label,
[data-mode="dark"] .schedule-widget__cell {
    border-right-color: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 768px) {
    .schedule-widget__day-label {
        width: 28px;
        min-width: 28px;
        font-size: 9px;
        padding-right: 6px;
    }
    
    .schedule-widget__hour-label {
        font-size: 8px;
        padding: 3px 0;
    }
    
    .schedule-widget__cell {
        height: 14px;
    }
    
    .schedule-widget__footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .schedule-widget__day-label {
        width: 24px;
        min-width: 24px;
        font-size: 8px;
        padding-right: 4px;
    }
    
    .schedule-widget__hour-label {
        font-size: 7px;
        padding: 2px 0;
    }
    
    .schedule-widget__cell {
        height: 12px;
    }
    
    /* Hide odd hour labels on small screens */
    .schedule-widget__hour-label:nth-child(odd):not(:first-child) {
        font-size: 0;
    }
    
    .schedule-widget__legend-item {
        width: 10px;
        height: 10px;
    }
    
    .schedule-widget__legend-label,
    .schedule-widget__timezone {
        font-size: 9px;
    }
}

@media (max-width: 400px) {
    .schedule-widget__day-label {
        width: 20px;
        min-width: 20px;
        font-size: 7px;
    }
    
    .schedule-widget__cell {
        height: 10px;
    }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .model-section--schedule {
        break-inside: avoid;
    }
    
    .schedule-widget__grid {
        border: 1px solid #ccc;
    }
    
    .schedule-widget__cell {
        border-right-color: #ddd;
    }
    
    .schedule-widget__row {
        border-bottom-color: #ddd;
    }
    
    .schedule-widget__cell--high {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .schedule-widget__cell--medium {
        background: #666 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .schedule-widget__cell--low {
        background: #999 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}



/* Hybrid-only overrides */
body.model-page--hybrid .content-layout {
    display: block !important;
    max-width: var(--max-width-content, 1200px);
    margin: 0 auto;
}

body.model-page--hybrid .sidebar,
body.model-page--hybrid .model-page__sidebar-wrapper > .sidebar {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Exception: Show sidebar inside bottom sheet (mobile filters) */
body.model-page--hybrid .bottom-sheet .sidebar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: none !important;
}

body.model-page--hybrid .model-hero-card {
    display: block !important;
}

body.model-page--hybrid .model-mobile-bar.is-visible {
    display: flex !important;
}

body.model-page--hybrid .model-navbar--classic {
    display: none !important;
}

body.model-page--hybrid .model-section--expandable {
    background: transparent;
    border: 1px solid var(--border-default);
}

body.model-page--hybrid .model-video-section {
    width: 100%;
    max-width: var(--max-width-content, 1200px);
    margin: 0 auto;
}

body.model-page--hybrid .model-video-section .model-media-container {
    border-radius: var(--radius-lg);
}

body.model-page--hybrid .model-similar-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Mobile reorder (H1 → Video → CTA → Content) */
@media (max-width: 767px) {
    body.model-page--hybrid .model-page__main {
        display: flex !important;
        flex-direction: column !important;
    }
    
    body.model-page--hybrid .model-page__header { order: 1 !important; }
    body.model-page--hybrid .model-video-section { order: 2 !important; margin: 0 !important; }
    body.model-page--hybrid .model-video-section .model-media-container { border-radius: 0; }
    body.model-page--hybrid .model-hero-card { order: 3 !important; margin: var(--spacing-sm) var(--spacing-md) !important; }
    body.model-page--hybrid .model-hero-card__avatar,
    body.model-page--hybrid .model-hero-card__info,
    body.model-page--hybrid .model-hero-card__stats {
        display: none !important;
    }
    body.model-page--hybrid .model-page__content { order: 4 !important; }
    body.model-page--hybrid .model-similar-section { order: 5 !important; }
    body.model-page--hybrid .model-mobile-bar { display: none !important; }
}

/* Tablet: show mobile bar when visible */
@media (min-width: 768px) and (max-width: 1023px) {
    body.model-page--hybrid .model-mobile-bar {
        display: none;
    }
    
    body.model-page--hybrid .model-mobile-bar.is-visible {
        display: flex !important;
    }
}
