/* World Editor — conversion & performance components */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* Featured highlights */
.highlights-section { scroll-margin-top: 88px; }

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    background: rgba(10, 12, 18, 0.82);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, transform 0.2s;
}

.highlight-card:hover {
    border-color: rgba(76, 201, 160, 0.35);
    transform: translateY(-2px);
}

.highlight-poster {
    aspect-ratio: 16 / 9;
    background: rgba(6, 6, 8, 0.92);
    position: relative;
    display: block;
    overflow: hidden;
}

.highlight-poster-img,
.vthumb-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
}

.highlight-poster-img {
    position: absolute;
    inset: 0;
}

.highlight-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    opacity: 0.85;
}

.highlight-copy {
    padding: 12px 14px 14px;
}

.highlight-copy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-bright);
    font-size: 0.78rem;
}

.highlight-copy small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.highlights-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.highlights-link:hover { text-decoration: underline; }

.highlight-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(6, 6, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Poster thumbs */
.vthumb-poster {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: rgba(6, 6, 8, 0.92);
}

.vthumb .vthumb-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
}

/* CTA bands */
.cta-band {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(76, 201, 160, 0.2);
    background: linear-gradient(135deg, rgba(76, 201, 160, 0.08), rgba(255, 255, 255, 0.02));
    text-align: center;
}

.cta-band h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: var(--text-bright);
    text-transform: uppercase;
}

.cta-band p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.cta-band-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.cta-band-actions .btn {
    flex: 0 1 auto;
}

.cta-band--final {
    padding: 32px 24px;
    border-color: rgba(76, 201, 160, 0.32);
}

/* Compact page close */
.page-close {
    scroll-margin-top: 80px;
}

.page-close-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 20px;
    padding: 24px 26px;
    border: 1px solid rgba(76, 201, 160, 0.24);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(76, 201, 160, 0.07), rgba(255, 255, 255, 0.02));
}

.page-close-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.page-close-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.page-close-cta h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.35;
    letter-spacing: 0.05em;
    color: var(--text-bright);
    text-transform: uppercase;
}

.page-close-cta p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 34rem;
}

.page-close-cta .cta-band-actions {
    justify-content: center;
}

@media (max-width: 860px) {
    .page-close-card {
        grid-template-columns: 1fr;
        padding: 22px 20px;
    }

    .page-close-cta {
        padding-left: 0;
        padding-top: 18px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 60;
    transform: translate(-50%, 120%);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 11px 14px 11px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(76, 201, 160, 0.28);
    background: rgba(6, 6, 8, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
    max-width: calc(100vw - 24px);
    line-height: 1.35;
}

.sticky-cta.show { transform: translate(-50%, 0); }

.sticky-cta-text {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    padding-bottom: 1px;
}

.sticky-cta-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sticky-cta .btn-sm {
    padding: 9px 13px;
    font-size: 0.68rem;
    line-height: 1.25;
    min-height: 34px;
}

.mobile-cta-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--stroke);
    background: rgba(6, 6, 8, 0.96);
    backdrop-filter: blur(12px);
    gap: 8px;
}

.mobile-cta-bar .btn { flex: 1; justify-content: center; }

/* Gallery pagination */
.vthumb.is-hidden { display: none; }

.vgrid-more-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

.btn-show-more {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.btn-show-more:hover {
    border-color: rgba(76, 201, 160, 0.35);
    background: rgba(76, 201, 160, 0.06);
}

/* Modal progress */
.modal-progress {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.78rem;
}

.modal-progress strong { color: var(--accent); }

.lang-gate-btn[data-lang] { cursor: pointer; }

@media (max-width: 960px) {
    .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .highlights-grid { grid-template-columns: 1fr; }
    .sticky-cta { display: none; }
    .mobile-cta-bar { display: flex; }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
