/* ── Design tokens (Notion-style light / dark) ── */
:root,
[data-theme="light"] {
    color-scheme: light;

    --bg: #ffffff;
    --bg-elevated: #ffffff;
    --surface-primary: #ffffff;
    --surface-secondary: #f7f6f3;
    --surface-tertiary: #eeeae4;

    --text: #37352f;
    --text-secondary: #787774;
    --text-muted: #9b9a97;

    --border: rgba(55, 53, 47, 0.09);
    --border-light: rgba(55, 53, 47, 0.06);
    --separator: rgba(55, 53, 47, 0.09);
    --separator-opaque: #e9e9e7;

    --accent: #2383e2;
    --accent-hover: #1a6fc0;
    --accent-soft: rgba(35, 131, 226, 0.12);

    --rail: #d9730d;
    --rail-soft: rgba(217, 115, 13, 0.12);
    --aviation: #337ea9;
    --aviation-soft: rgba(51, 126, 169, 0.12);
    --hot: #e03e3e;
    --hot-soft: rgba(224, 62, 62, 0.12);
    --featured: #9065b0;
    --featured-soft: rgba(144, 101, 176, 0.12);

    --color-emerald: #0f7b6c;
    --color-rose: #e03e3e;
    --color-amber: #cb912f;

    --success-bg: rgba(15, 123, 108, 0.1);
    --success-border: rgba(15, 123, 108, 0.22);
    --success-text: #0f7b6c;
    --error-bg: rgba(224, 62, 62, 0.1);
    --error-border: rgba(224, 62, 62, 0.22);
    --error-text: #c73838;

    --nav-bg: rgba(255, 255, 255, 0.9);

    --hero-bg: #ffffff;
    --hero-text: #37352f;
    --hero-text-muted: #787774;
    --hero-text-subtle: #9b9a97;
    --hero-surface: #f7f6f3;
    --hero-border: rgba(55, 53, 47, 0.12);
    --hero-accent-glow: transparent;
    --hero-rail-glow: transparent;

    --footer-bg: #f7f6f3;
    --footer-text: #787774;
    --footer-text-bright: #37352f;
    --footer-border: rgba(55, 53, 47, 0.09);

    --overlay: rgba(15, 15, 15, 0.4);

    --fill-primary: #37352f;
    --fill-primary-hover: #2f2e2a;
    --fill-secondary: rgba(55, 53, 47, 0.06);

    --shadow-sm: none;
    --shadow-md: 0 1px 2px rgba(55, 53, 47, 0.04);
    --shadow-lg: 0 4px 12px rgba(55, 53, 47, 0.06);

    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

    --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.25, 0.1, 0.25, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.25s;
    --transition: var(--duration-fast) var(--ease-default);
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #191919;
    --bg-elevated: #202020;
    --surface-primary: #202020;
    --surface-secondary: #252525;
    --surface-tertiary: #2f2f2f;

    --text: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.35);

    --border: rgba(255, 255, 255, 0.09);
    --border-light: rgba(255, 255, 255, 0.055);
    --separator: rgba(255, 255, 255, 0.09);
    --separator-opaque: #3f3f3f;

    --accent: #529cca;
    --accent-hover: #67abdb;
    --accent-soft: rgba(82, 156, 202, 0.18);

    --rail: #ffa344;
    --rail-soft: rgba(255, 163, 68, 0.15);
    --aviation: #5e9bc5;
    --aviation-soft: rgba(94, 155, 197, 0.15);
    --hot: #ff7369;
    --hot-soft: rgba(255, 115, 105, 0.15);
    --featured: #a87fc0;
    --featured-soft: rgba(168, 127, 192, 0.15);

    --color-emerald: #4dab9a;
    --color-rose: #ff7369;
    --color-amber: #ffb454;

    --success-bg: rgba(77, 171, 154, 0.15);
    --success-border: rgba(77, 171, 154, 0.28);
    --success-text: #4dab9a;
    --error-bg: rgba(255, 115, 105, 0.15);
    --error-border: rgba(255, 115, 105, 0.28);
    --error-text: #ff7369;

    --nav-bg: rgba(25, 25, 25, 0.9);

    --hero-bg: #191919;
    --hero-text: rgba(255, 255, 255, 0.9);
    --hero-text-muted: rgba(255, 255, 255, 0.55);
    --hero-text-subtle: rgba(255, 255, 255, 0.35);
    --hero-surface: #252525;
    --hero-border: rgba(255, 255, 255, 0.1);
    --hero-accent-glow: transparent;
    --hero-rail-glow: transparent;

    --footer-bg: #202020;
    --footer-text: rgba(255, 255, 255, 0.45);
    --footer-text-bright: rgba(255, 255, 255, 0.9);
    --footer-border: rgba(255, 255, 255, 0.09);

    --overlay: rgba(0, 0, 0, 0.55);

    --fill-primary: rgba(255, 255, 255, 0.9);
    --fill-primary-hover: #ffffff;
    --fill-secondary: rgba(255, 255, 255, 0.055);

    --shadow-sm: none;
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.003em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        background-color var(--duration-normal) var(--ease-default),
        color var(--duration-normal) var(--ease-default);
}

body,
.jx-nav,
.jx-card,
.jx-panel,
.jx-photo-card,
.jx-page-head,
.jx-auth__card,
.jx-input,
.jx-footer,
.jx-btn--ghost {
    transition:
        background-color var(--duration-normal) var(--ease-default),
        color var(--duration-normal) var(--ease-default),
        border-color var(--duration-normal) var(--ease-default),
        box-shadow var(--duration-normal) var(--ease-default);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

input, textarea, select, button { font: inherit; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ── Layout ── */
.jx-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.jx-section {
    padding: 3rem 0;
}

.jx-section--sm {
    padding: 2rem 0;
}

/* ── Navigation (Mac-style frosted bar + sliding pill) ── */
.jx-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--separator);
    transition:
        background-color var(--duration-normal) var(--ease-default),
        border-color var(--duration-normal) var(--ease-default),
        box-shadow var(--duration-normal) var(--ease-default);
}

.jx-nav.is-scrolled {
    box-shadow: 0 1px 0 var(--separator), 0 8px 24px rgba(55, 53, 47, 0.04);
}

[data-theme="dark"] .jx-nav.is-scrolled {
    box-shadow: 0 1px 0 var(--separator), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.jx-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.25rem;
    gap: 1rem;
}

.jx-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-logo:hover { opacity: 0.72; }

.jx-logo:active {
    transform: scale(0.96);
    opacity: 0.85;
}

.jx-logo__img {
    display: block;
    height: 2.25rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
}

.jx-logo__sub {
    display: none;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .jx-logo__sub { display: block; }
}

.jx-nav__links {
    display: none;
    position: relative;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 1024px) {
    .jx-nav__links { display: flex; }
}

.jx-nav__indicator {
    position: absolute;
    top: 50%;
    left: 0;
    height: 1.875rem;
    width: var(--jx-ind-w, 0px);
    border-radius: 9999px;
    background: var(--fill-secondary);
    pointer-events: none;
    opacity: var(--jx-ind-o, 0);
    transform: translate3d(var(--jx-ind-x, 0px), -50%, 0) scale(var(--jx-ind-s, 0.92));
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
    z-index: 0;
    will-change: transform, width, opacity;
}

.jx-nav__links.is-ready {
    --jx-ind-o: 1;
    --jx-ind-s: 1;
}

.jx-nav__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 9999px;
    background: transparent;
    transition:
        color 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-nav__link .jx-icon {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.65;
    transition: opacity 0.22s ease;
}

.jx-nav__link:hover,
.jx-nav__link.active {
    color: var(--text);
    background: transparent;
}

.jx-nav__link:hover .jx-icon,
.jx-nav__link.active .jx-icon { opacity: 1; }

.jx-nav__link.active { font-weight: 600; }

.jx-nav__link:active { transform: scale(0.94); }

.jx-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.jx-nav__actions .jx-btn,
.jx-nav__actions .jx-theme-toggle {
    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-nav__actions .jx-btn:active,
.jx-nav__actions .jx-theme-toggle:active,
.jx-nav__toggle:active {
    transform: scale(0.92);
}

.jx-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-nav__toggle:hover { background: var(--fill-secondary); }

.jx-nav__toggle.is-open {
    background: var(--fill-secondary);
    color: var(--text);
}

.jx-nav__mobile {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid transparent;
    transition:
        max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease;
}

.jx-nav__mobile.is-open {
    max-height: 20rem;
    opacity: 1;
    padding: 0.75rem 0 1rem;
    border-top-color: var(--separator);
}

.jx-nav__mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
}

.jx-nav__mobile-grid--more {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--separator);
}

@media (min-width: 1024px) {
    .jx-nav__mobile-grid--main { display: none; }

    .jx-nav__mobile-grid--more {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .jx-nav__mobile.is-open { max-height: 4.5rem; }
}

.jx-nav__mobile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-secondary);
    border-radius: var(--radius);
    transition:
        color 0.22s ease,
        background 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-nav__mobile-link:hover,
.jx-nav__mobile-link.active {
    color: var(--text);
    background: var(--fill-secondary);
}

.jx-nav__mobile-link:active { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
    .jx-nav__indicator,
    .jx-nav__link,
    .jx-logo,
    .jx-nav__mobile,
    .jx-nav__mobile-link,
    .jx-nav__actions .jx-btn,
    .jx-nav__actions .jx-theme-toggle,
    .jx-nav__toggle {
        transition-duration: 0.01ms !important;
    }
}


/* ── Buttons ── */
.jx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.jx-btn:active {
    opacity: 0.85;
}

.jx-btn--primary {
    background: var(--fill-primary);
    color: var(--bg);
}

.jx-btn--primary:hover {
    background: var(--fill-primary-hover);
}

.jx-btn--accent {
    background: var(--fill-primary);
    color: var(--bg);
}

.jx-btn--accent:hover {
    background: var(--fill-primary-hover);
}

.jx-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.jx-btn--ghost:hover {
    color: var(--text);
    background: var(--fill-secondary);
}

.jx-btn--sm { padding: 0.25rem 0.5rem; font-size: 0.8125rem; }
.jx-btn--lg { padding: 0.5rem 1rem; font-size: 0.9375rem; }
.jx-btn--full { width: 100%; }

/* ── Hero ── */
.jx-hero {
    position: relative;
    background: var(--hero-bg);
    color: var(--hero-text);
    overflow: hidden;
    border-bottom: 1px solid var(--separator);
}

.jx-hero__bg {
    display: none;
}

.jx-hero__content {
    position: relative;
    padding: 3rem 0 2.5rem;
}

.jx-hero__content--intro {
    padding-bottom: 1rem;
}

.jx-hero > .jx-carousel + .jx-hero__content--intro {
    padding-top: 0;
}

.jx-hero > .jx-hero__content--intro:first-child {
    padding-top: 3rem;
}

.jx-hero__content--tools {
    padding-top: 0;
    padding-bottom: 2.5rem;
}

.jx-hero__content--intro .jx-hero__desc {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .jx-hero__content { padding: 3.5rem 0 3rem; }
    .jx-hero > .jx-carousel + .jx-hero__content--intro { padding-top: 0; }
    .jx-hero > .jx-hero__content--intro:first-child { padding-top: 3.5rem; }
    .jx-hero__content--intro { padding-bottom: 1.25rem; }
    .jx-hero__content--tools { padding-bottom: 3rem; }
}

.jx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hero-text-subtle);
    margin-bottom: 0.75rem;
}

.jx-hero__eyebrow::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: var(--hero-border);
}

.jx-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    max-width: 18ch;
}

.jx-hero__title em {
    font-style: normal;
    color: var(--hero-text-muted);
}

.jx-hero__desc {
    font-size: 1rem;
    color: var(--hero-text-muted);
    max-width: 32rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.jx-hero__search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 28rem;
    padding: 0.25rem;
    background: var(--surface-primary);
    border: 1px solid var(--hero-border);
    border-radius: var(--radius-lg);
}

@media (min-width: 480px) {
    .jx-hero__search { flex-direction: row; align-items: center; }
}

.jx-hero__search input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-size: 0.9375rem;
}

.jx-hero__search input:focus {
    outline: none;
}

.jx-hero__search input::placeholder { color: var(--text-muted); }

.jx-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 1rem;
}

.jx-hero__tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.jx-hero__tag:hover {
    background: var(--fill-secondary);
    color: var(--text);
    border-color: var(--separator-opaque);
}

.jx-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1.75rem;
    padding: 0.875rem 0 0;
    border-top: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

@media (min-width: 640px) {
    .jx-hero__stats {
        grid-template-columns: none;
    }
}

.jx-hero__stat {
    padding: 0;
    text-align: left;
    background: transparent;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.jx-hero__stat-num {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.jx-hero__stat-label {
    font-size: 0.8125rem;
    color: var(--hero-text-subtle);
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0;
}

.jx-hero__stat-num--live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.jx-hero__live-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.jx-hero__live-dot.is-on {
    background: var(--color-emerald);
    box-shadow: none;
    animation: none;
}

.jx-hero__stat-hint {
    font-size: 0.75rem;
    color: var(--hero-text-subtle);
    margin-top: 0.25rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Homepage carousel ── */
.jx-hero .jx-carousel {
    position: relative;
    z-index: 1;
    padding: 1.25rem 0 1.5rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .jx-hero .jx-carousel { padding-top: 1.5rem; }
}

.jx-carousel__wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    box-shadow: none;
}

.jx-carousel__track {
    position: relative;
    aspect-ratio: 21 / 7;
    min-height: 180px;
}

@media (min-width: 768px) {
    .jx-carousel__track { aspect-ratio: 21 / 6; min-height: 240px; }
}

.jx-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-default), visibility 0.45s var(--ease-default);
    will-change: opacity;
}

.jx-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.jx-carousel__link {
    display: block;
    width: 100%;
    height: 100%;
}

.jx-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jx-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.55) 0%, transparent 100%);
    pointer-events: none;
}

.jx-carousel__title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .jx-carousel__title { font-size: 1.25rem; }
}

.jx-carousel__subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.jx-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(15, 15, 15, 0.45);
    color: white;
    cursor: pointer;
    transition: background var(--transition);
}

.jx-carousel__arrow:hover {
    background: rgba(15, 15, 15, 0.7);
}

.jx-carousel__arrow svg {
    width: 1.125rem;
    height: 1.125rem;
}

.jx-carousel__arrow--prev { left: 0.75rem; }
.jx-carousel__arrow--next { right: 0.75rem; }

.jx-carousel__dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.375rem;
}

.jx-carousel__dot {
    width: 0.375rem;
    height: 0.375rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition);
}

.jx-carousel__dot.is-active {
    width: 1.25rem;
    background: white;
}

/* ── Page header ── */
.jx-page-head {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.jx-page-head__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.jx-page-head__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.jx-page-head__icon .jx-icon { width: 1.125rem; height: 1.125rem; }

.jx-page-head__icon--aviation { background: var(--aviation-soft); color: var(--aviation); }
.jx-page-head__icon--railway { background: var(--rail-soft); color: var(--rail); }
.jx-page-head__icon--featured { background: var(--featured-soft); color: var(--featured); }
.jx-page-head__icon--hot { background: var(--hot-soft); color: var(--hot); }
.jx-page-head__icon--default { background: var(--fill-secondary); color: var(--text-secondary); }

.jx-page-head__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.jx-page-head__subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ── Section header ── */
.jx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.jx-section-head__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.jx-section-head__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.jx-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.15rem 0.375rem;
    border-radius: 3px;
    margin-bottom: 0.375rem;
}

.jx-badge--aviation { background: var(--aviation-soft); color: var(--aviation); }
.jx-badge--rail { background: var(--rail-soft); color: var(--rail); }
.jx-badge--hot { background: var(--hot-soft); color: var(--hot); }
.jx-badge--featured { background: var(--featured-soft); color: var(--featured); }

/* ── Cards & panels ── */
.jx-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: background var(--transition), border-color var(--transition);
}

.jx-card:hover {
    background: var(--surface-secondary);
    border-color: var(--separator-opaque);
}

.jx-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

/* ── Category cards (macOS Dock-style magnification) ── */
.jx-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem 1rem;
    overflow: visible;
}

@media (min-width: 640px) {
    .jx-cat-grid { grid-template-columns: 1fr 1fr; }
}

.jx-cat-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    position: relative;
    z-index: 1;
    overflow: visible;
    transform: translate3d(0, var(--jx-dock-y, 0px), 0) scale(var(--jx-dock-scale, 1));
    transform-origin: center bottom;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.jx-cat-grid.is-docking .jx-cat-card {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-cat-card:hover,
.jx-cat-card.is-dock-hot {
    background: var(--surface-secondary);
    border-color: var(--separator-opaque);
    z-index: 8;
    box-shadow:
        0 12px 28px rgba(55, 53, 47, 0.14),
        0 2px 6px rgba(55, 53, 47, 0.08);
}

[data-theme="dark"] .jx-cat-card:hover,
[data-theme="dark"] .jx-cat-card.is-dock-hot {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .jx-cat-grid:not(.is-docking) .jx-cat-card:hover {
        --jx-dock-scale: 1.08;
        --jx-dock-y: -8px;
    }
}

.jx-cat-card__tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%) translateY(4px);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    background: rgba(15, 15, 15, 0.82);
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 9;
    transition:
        opacity 0.16s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-cat-card.is-dock-hot .jx-cat-card__tip,
.jx-cat-card:hover .jx-cat-card__tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.jx-cat-card--aviation { border-color: var(--border); }
.jx-cat-card--aviation:hover,
.jx-cat-card--aviation.is-dock-hot {
    border-color: color-mix(in srgb, var(--aviation) 35%, transparent);
}

.jx-cat-card--railway { border-color: var(--border); }
.jx-cat-card--railway:hover,
.jx-cat-card--railway.is-dock-hot {
    border-color: color-mix(in srgb, var(--rail) 35%, transparent);
}

.jx-cat-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 0.625rem;
}

.jx-cat-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    flex: 1;
}

.jx-cat-card__arrow {
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.jx-cat-card:hover .jx-cat-card__arrow,
.jx-cat-card.is-dock-hot .jx-cat-card__arrow {
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    .jx-cat-card {
        --jx-dock-scale: 1 !important;
        --jx-dock-y: 0px !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Photo grid (macOS Dock-style magnification) ── */
.jx-photo-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 0.75rem 0.25rem 1.25rem;
    overflow: visible;
}

@media (min-width: 640px) { .jx-photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jx-photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .jx-photo-grid { grid-template-columns: repeat(4, 1fr); } }

.jx-photo-card {
    display: block;
    position: relative;
    z-index: 1;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: visible;
    border: 1px solid var(--border);
    transform: translate3d(0, var(--jx-dock-y, 0px), 0) scale(var(--jx-dock-scale, 1));
    transform-origin: center bottom;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.jx-photo-grid.is-docking .jx-photo-card {
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-photo-card.is-dock-hot {
    z-index: 8;
    border-color: transparent;
    box-shadow:
        0 12px 28px rgba(55, 53, 47, 0.14),
        0 2px 6px rgba(55, 53, 47, 0.08);
}

[data-theme="dark"] .jx-photo-card.is-dock-hot {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .jx-photo-grid:not(.is-docking) .jx-photo-card:hover {
        z-index: 8;
        --jx-dock-scale: 1.14;
        --jx-dock-y: -10px;
        border-color: transparent;
        box-shadow:
            0 12px 28px rgba(55, 53, 47, 0.14),
            0 2px 6px rgba(55, 53, 47, 0.08);
    }

    [data-theme="dark"] .jx-photo-grid:not(.is-docking) .jx-photo-card:hover {
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.45),
            0 2px 6px rgba(0, 0, 0, 0.3);
    }
}

.jx-photo-card__tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%) translateY(4px);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    background: rgba(15, 15, 15, 0.82);
    border-radius: 6px;
    white-space: nowrap;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0;
    z-index: 9;
    transition:
        opacity 0.16s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-photo-card__tip:empty {
    display: none;
}

.jx-photo-card.is-dock-hot .jx-photo-card__tip,
.jx-photo-card:hover .jx-photo-card__tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.jx-photo-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-secondary);
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.jx-photo-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--duration-normal) var(--ease-default);
}

.jx-photo-card:hover .jx-photo-card__thumb img,
.jx-photo-card.is-dock-hot .jx-photo-card__thumb img {
    opacity: 1;
}

.jx-photo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.5) 0%, transparent 45%);
    opacity: 0;
    transition: opacity var(--transition);
}

.jx-photo-card:hover .jx-photo-card__overlay,
.jx-photo-card.is-dock-hot .jx-photo-card__overlay {
    opacity: 1;
}

.jx-photo-card__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.875rem;
    color: white;
    transform: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.jx-photo-card:hover .jx-photo-card__meta,
.jx-photo-card.is-dock-hot .jx-photo-card__meta {
    opacity: 1;
}

.jx-photo-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

.jx-tag {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.125rem 0.35rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.jx-tag--hot { background: var(--hot); }
.jx-tag--featured { background: var(--featured); }
.jx-tag--rail { background: var(--rail); }
.jx-tag--aviation { background: var(--aviation); }
.jx-tag--pending { background: var(--color-amber); }
.jx-tag--rejected { background: var(--color-rose); }

.jx-photo-card__body {
    padding: 0.75rem 0.875rem 0.875rem;
    border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}

.jx-photo-card__title {
    font-size: 0.875rem;
    font-weight: 550;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-photo-card__sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-photo-card__stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .jx-photo-card,
    .jx-photo-grid.is-docking .jx-photo-card,
    .jx-photo-card__tip {
        transition-duration: 0.01ms !important;
    }

    .jx-photo-card {
        --jx-dock-scale: 1 !important;
        --jx-dock-y: 0px !important;
    }
}

/* ── Rank list ── */
.jx-rank-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

@media (min-width: 640px) { .jx-rank-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jx-rank-list { grid-template-columns: repeat(4, 1fr); } }

.jx-rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.jx-rank-item:hover {
    background: var(--fill-secondary);
}

.jx-rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: var(--fill-secondary);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.jx-rank-num--1 { background: color-mix(in srgb, var(--color-amber) 18%, transparent); color: var(--color-amber); }
.jx-rank-num--2 { background: var(--fill-secondary); color: var(--text-secondary); }
.jx-rank-num--3 { background: color-mix(in srgb, var(--rail) 15%, transparent); color: var(--rail); }

.jx-rank-item img {
    width: 3.25rem;
    height: 2.45rem;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.jx-rank-item__title {
    font-size: 0.8125rem;
    font-weight: 550;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-rank-item__sub {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* ── Announcement ── */
.jx-announce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.jx-announce__item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.jx-announce__item:last-child { border-bottom: none; }

.jx-pin {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.1rem 0.35rem;
    background: var(--rail-soft);
    color: var(--rail);
    border-radius: 3px;
    margin-right: 0.375rem;
}

/* ── Forms ── */
.jx-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.jx-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.jx-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.jx-label__required {
    color: var(--color-rose);
    font-weight: 600;
}

.jx-form-group { margin-bottom: 1rem; }

/* ── Alerts ── */
.jx-alert {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.jx-alert--success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.jx-alert--error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

/* ── Footer ── */
.jx-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

.jx-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .jx-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.jx-footer__brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--footer-text-bright);
    margin-bottom: 0.5rem;
}

.jx-footer__desc {
    font-size: 0.8125rem;
    line-height: 1.7;
    max-width: 20rem;
}

.jx-footer__friend-links {
    margin-top: 1.5rem;
}

.jx-footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--footer-text-bright);
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}

.jx-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jx-footer__links li { margin-bottom: 0.375rem; }

.jx-footer__links a {
    font-size: 0.8125rem;
    transition: color var(--transition);
}

.jx-footer__links a:hover { color: var(--footer-text-bright); }

.jx-footer__bottom {
    padding: 1rem 0;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    font-size: 0.75rem;
}

.jx-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.jx-site-timer {
    margin: 0;
    color: var(--footer-text);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.jx-site-timer__unit {
    display: inline-block;
    margin: 0 0.125rem;
}

.jx-site-timer__unit strong {
    font-weight: 600;
    color: var(--footer-text-bright);
    font-variant-numeric: tabular-nums;
    min-width: 1.25em;
    display: inline-block;
}

.jx-footer__copyright {
    margin: 0;
    color: var(--footer-text);
}

.jx-footer__wechat {
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--fill-primary);
    color: var(--bg);
    border-radius: var(--radius);
    transition: background var(--transition);
}

.jx-footer__wechat:hover {
    background: var(--fill-primary-hover);
}

/* ── Auth ── */
.jx-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 16rem);
    padding: 3rem 1rem;
}

.jx-auth__card {
    width: 100%;
    max-width: 24rem;
    padding: 1.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: none;
}

.jx-auth__title {
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.jx-auth__subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    margin-bottom: 1.5rem;
}

.jx-input-row {
    display: flex;
    gap: 0.5rem;
}

.jx-input-row .jx-input {
    flex: 1;
    min-width: 0;
}

.jx-input-row .jx-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.jx-form-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.jx-form-hint.is-error {
    color: var(--color-rose);
}

/* ── Photo detail ── */
.jx-photo-detail {
    padding: 1.5rem 0 4rem;
}

.jx-photo-detail__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}

.jx-photo-detail__nav-link {
    color: var(--text-muted);
    transition: color var(--transition);
}

.jx-photo-detail__nav-link:hover { color: var(--accent); }

.jx-photo-detail__nav-sep {
    color: var(--border);
    user-select: none;
}

.jx-photo-detail__nav-current {
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 16rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-photo-detail__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .jx-photo-detail__layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
        gap: 2.5rem;
    }

    .jx-photo-detail__aside {
        position: sticky;
        top: 4rem;
    }
}

/* Image loader */
.jx-img-loader__frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: none;
    min-height: 16rem;
}

@media (min-width: 768px) {
    .jx-img-loader__frame { min-height: 22rem; }
}

.jx-img-loader.is-loaded .jx-img-loader__frame {
    min-height: 0;
}

.jx-img-loader__skeleton {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #ececea 0%, #f8f7f4 50%, #ececea 100%);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.jx-img-loader__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.65) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: jx-shimmer 1.6s ease-in-out infinite;
}

@keyframes jx-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.jx-img-loader__pulse {
    position: relative;
    z-index: 1;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    animation: jx-pulse 1.8s ease-in-out infinite;
}

.jx-img-loader__pulse svg {
    width: 1.5rem;
    height: 1.5rem;
    animation: jx-float 2.4s ease-in-out infinite;
}

@keyframes jx-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes jx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.jx-img-loader__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
    z-index: 1;
}

.jx-img-loader__bar-fill {
    display: block;
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    border-radius: 0 2px 2px 0;
    animation: jx-load-bar 1.4s ease-in-out infinite;
}

@keyframes jx-load-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(380%); }
}

.jx-img-loader__img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-in;
}

.jx-img-loader.is-loaded .jx-img-loader__skeleton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.jx-img-loader.is-loaded .jx-img-loader__img {
    opacity: 1;
    transform: scale(1);
}

.jx-img-loader.is-error .jx-img-loader__skeleton {
    opacity: 1;
    visibility: visible;
}

.jx-img-loader.is-error .jx-img-loader__pulse {
    animation: none;
    color: var(--color-rose);
}

.jx-photo-detail__zoom {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: rgba(15, 15, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: all var(--transition);
}

.jx-img-loader.is-loaded .jx-photo-detail__zoom {
    opacity: 1;
    transform: translateY(0);
}

.jx-photo-detail__zoom:hover {
    background: rgba(0, 0, 0, 0.72);
}

.jx-photo-detail__zoom svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Aside panel */
.jx-photo-detail__head {
    margin-bottom: 1.25rem;
}

.jx-photo-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.jx-photo-detail__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--radius);
}

.jx-photo-detail__badge--aviation {
    background: var(--aviation-soft);
    color: var(--aviation);
}

.jx-photo-detail__badge--rail {
    background: var(--rail-soft);
    color: var(--rail);
}

.jx-photo-detail__badge--hot {
    background: var(--hot-soft);
    color: var(--hot);
}

.jx-photo-detail__badge--featured {
    background: var(--featured-soft);
    color: var(--featured);
}

.jx-photo-detail__title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.625rem;
}

.jx-photo-detail__desc {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.jx-photo-detail__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.jx-photo-detail__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.jx-photo-detail__stat svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.jx-photo-detail__people {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.jx-photo-detail__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

a.jx-photo-detail__author:hover {
    background: var(--fill-secondary);
    border-color: var(--border);
}

.jx-photo-detail__author--static {
    cursor: default;
}

.jx-photo-detail__author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    background: var(--fill-secondary);
    border-radius: var(--radius);
    flex-shrink: 0;
    object-fit: cover;
}

.jx-photo-detail__author-avatar--img {
    padding: 0;
}

.jx-photo-detail__author-info {
    flex: 1;
    min-width: 0;
}

.jx-photo-detail__author-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.jx-photo-detail__author-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-photo-detail__author-role {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.jx-photo-detail__author-arrow {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.jx-photo-detail__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.jx-photo-detail__spec {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.jx-photo-detail__spec:hover {
    background: var(--fill-secondary);
    border-color: var(--border);
}

.jx-photo-detail__spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 8px;
}

.jx-photo-detail__spec-icon svg {
    width: 1rem;
    height: 1rem;
}

.jx-photo-detail__spec-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.jx-photo-detail__spec-value {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.jx-photo-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.jx-photo-detail__tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--fill-secondary);
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.jx-photo-detail__tag:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.jx-photo-detail__actions {
    margin-bottom: 1.5rem;
}

.jx-photo-detail__favorite {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.jx-photo-detail__favorite svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.25s ease;
}

.jx-photo-detail__favorite:hover {
    border-color: color-mix(in srgb, var(--hot) 40%, transparent);
    color: var(--hot);
    background: var(--hot-soft);
}

.jx-photo-detail__favorite.is-active {
    color: var(--hot);
    background: var(--hot-soft);
    border-color: color-mix(in srgb, var(--hot) 30%, transparent);
}

.jx-photo-detail__favorite.is-active:hover {
    background: var(--hot-soft);
}

.jx-photo-detail__favorite.is-active svg {
    transform: none;
}

/* Comments (photo detail) */
.jx-photo-detail__comments {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.jx-photo-detail__comments-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.jx-photo-detail__comments-title {
    font-size: 1.0625rem;
    font-weight: 700;
}

.jx-photo-detail__comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--fill-secondary);
    border-radius: var(--radius);
}

.jx-photo-detail__comment-form {
    margin-bottom: 1.25rem;
}

.jx-photo-detail__comment-form .jx-input {
    margin-bottom: 0.625rem;
    resize: vertical;
    min-height: 5rem;
}

.jx-photo-detail__login-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.jx-photo-detail__comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jx-photo-detail__comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
}

.jx-photo-detail__comment:hover {
    background: var(--fill-secondary);
}

.jx-photo-detail__comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--fill-secondary);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.jx-photo-detail__comment-body {
    flex: 1;
    min-width: 0;
}

.jx-photo-detail__comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.jx-photo-detail__comment-user {
    font-weight: 600;
    color: var(--text-secondary);
}

.jx-photo-detail__comment-body p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text);
}

.jx-photo-detail__comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.jx-photo-detail__comment-empty svg {
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0.5;
}

.jx-photo-detail__comment-empty p {
    font-size: 0.875rem;
}

/* Lightbox */
.jx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.jx-lightbox[hidden] {
    display: none;
}

.jx-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.72);
    animation: jx-fade-in 0.2s ease;
}

.jx-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: jx-fade-in 0.2s ease;
}

@keyframes jx-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jx-scale-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jx-lightbox__close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.jx-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.jx-lightbox__close svg {
    width: 1rem;
    height: 1rem;
}

.jx-lightbox__img {
    max-width: 100%;
    max-height: calc(92vh - 3rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: none;
}

.jx-lightbox__caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    max-width: 40rem;
}

body.jx-lightbox-open {
    overflow: hidden;
}

/* Legacy comment classes (other pages) */
.jx-comments { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }

.jx-comments__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.jx-comment {
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 0.625rem;
}

.jx-comment__head {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.jx-comment__user { font-weight: 600; color: var(--text-secondary); }

.jx-comment__body {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ── Pagination ── */
.jx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.jx-pagination__info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Empty state ── */
.jx-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.jx-empty__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--text-muted);
}

.jx-empty__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.jx-empty__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Prose ── */
.jx-prose h1, .jx-prose h2, .jx-prose h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.jx-prose p, .jx-prose li {
    color: var(--text-secondary);
    line-height: 1.75;
}

.jx-prose h4 {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.jx-prose ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.jx-prose ol li {
    margin-bottom: 0.375rem;
}

.jx-standards-intro {
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.jx-standards-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* ── Icons ── */
.jx-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* ── Utilities (minimal, complement Tailwind) ── */
.text-link {
    color: var(--accent);
    font-weight: 500;
    transition: color var(--transition);
}

.text-link:hover { color: var(--accent-hover); }

/* ── Tabs ── */
.jx-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.jx-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.jx-tab.active {
    color: var(--text);
    background: var(--fill-secondary);
    font-weight: 600;
}

.jx-tab:hover { color: var(--text); background: var(--fill-secondary); }

/* ── List cards ── */
.jx-list-card {
    display: block;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.jx-list-card:hover {
    background: var(--fill-secondary);
}

.jx-list-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.jx-list-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.jx-list-card__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.jx-list-card--with-cover {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.jx-list-card--with-cover:hover {
    background: var(--surface-secondary);
    border-color: var(--separator-opaque);
}

.jx-list-card__cover {
    width: 7rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.jx-list-card__body {
    flex: 1;
    min-width: 0;
}

.jx-article-cover {
    width: 100%;
    max-height: 20rem;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.jx-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.jx-contact-icon .jx-icon { width: 1.125rem; height: 1.125rem; }

/* ── Staff cards ── */
.jx-staff-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.jx-staff-card__avatar {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.jx-staff-card__avatar--photo {
    overflow: hidden;
    background: var(--bg);
}

.jx-staff-card__avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jx-staff-card__role {
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.jx-staff-card__bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.jx-member-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* ── Announcement modal ── */
body.jx-ann-open { overflow: hidden; }

.jx-ann-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.jx-ann-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.jx-ann-backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    animation: jx-fade-in var(--duration-normal) var(--ease-default);
}

.jx-ann-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--surface-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: jx-ann-in var(--duration-normal) var(--ease-default);
}

@keyframes jx-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jx-ann-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.jx-ann-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem;
    background: var(--surface-primary);
}

.jx-ann-header__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jx-ann-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: var(--rail-soft);
    color: var(--rail);
    flex-shrink: 0;
}

.jx-ann-header__icon svg { width: 1.125rem; height: 1.125rem; }

.jx-ann-header__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.jx-ann-header__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rail);
    background: var(--rail-soft);
    border-radius: 999px;
}

.jx-ann-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.jx-ann-close:hover {
    color: var(--text);
    background: var(--fill-secondary);
}

.jx-ann-close svg { width: 1.125rem; height: 1.125rem; }

.jx-ann-body {
    background: var(--surface-secondary);
    padding: 1.25rem 1.5rem;
    max-height: 320px;
    overflow-y: auto;
}

.jx-ann-body--list {
    max-height: 420px;
    padding: 0;
}

.jx-ann-body::-webkit-scrollbar { width: 4px; }
.jx-ann-body::-webkit-scrollbar-thumb {
    background: var(--separator-opaque);
    border-radius: 4px;
}

.jx-ann-item {
    padding: 1.25rem 1.5rem;
}

.jx-ann-body--list .jx-ann-item + .jx-ann-item {
    border-top: 1px solid var(--border);
}

.jx-ann-item__meta {
    min-width: 0;
    flex: 1;
}

.jx-ann-item__time {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.jx-ann-body__head {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.jx-ann-body__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.jx-ann-body__icon .jx-icon { width: 1rem; height: 1rem; }

.jx-ann-body__subtitle {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.jx-ann-body__content {
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.jx-ann-body:not(.jx-ann-body--list) .jx-ann-body__content {
    text-align: center;
}

.jx-ann-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--surface-primary);
}

.jx-ann-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.jx-ann-link:hover {
    color: var(--accent);
}

.jx-ann-confirm {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    padding: 0.4375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bg);
    background: var(--fill-primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.jx-ann-confirm:hover {
    background: var(--fill-primary-hover);
}

.jx-ann-confirm:active {
    opacity: 0.85;
}

.jx-ann-confirm svg { width: 1rem; height: 1rem; }

/* ── Upload page ── */
.jx-upload {
    padding: 2rem 0 3rem;
}

.jx-upload__header {
    margin-bottom: 1.5rem;
}

.jx-upload__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.jx-upload__desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 42rem;
}

.jx-upload__desc a {
    color: var(--accent);
    font-weight: 500;
}

.jx-upload__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 960px) {
    .jx-upload__layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

.jx-upload__preview-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.jx-upload__preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.jx-upload-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.jx-upload-tool-btn:hover {
    color: var(--text);
    background: var(--fill-secondary);
}

.jx-upload-tool-btn.is-active {
    color: var(--text);
    background: var(--fill-secondary);
    border-color: var(--separator-opaque);
    font-weight: 600;
}

.jx-upload__dropzone {
    position: relative;
    border: 1px dashed var(--separator-opaque);
    border-radius: var(--radius-lg);
    background: var(--surface-secondary);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    overflow: hidden;
}

.jx-upload__dropzone:hover,
.jx-upload__dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.jx-upload__dropzone.has-file {
    border-style: solid;
    border-color: var(--border);
    background: var(--surface-secondary);
    min-height: auto;
}

.jx-upload__dropzone input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.jx-upload__placeholder {
    text-align: center;
    padding: 2rem 1.5rem;
}

.jx-upload__placeholder-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    color: var(--text-muted);
}

.jx-upload__placeholder-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.jx-upload__placeholder-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.jx-upload__preview-wrap {
    width: 100%;
    line-height: 0;
}

.jx-upload-viewport {
    position: relative;
    line-height: 0;
}

.jx-upload-viewport img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.jx-upload-watermark {
    position: absolute;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 5;
    line-height: 1.2;
    white-space: nowrap;
    color: #000;
    font-family: 'JXWatermark', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 4px;
    background: transparent;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.85),
        1px -1px 0 rgba(255, 255, 255, 0.85),
        -1px 1px 0 rgba(255, 255, 255, 0.85),
        1px 1px 0 rgba(255, 255, 255, 0.85),
        0 0 4px rgba(255, 255, 255, 0.6);
    pointer-events: auto;
}

.jx-upload-watermark.is-dragging {
    cursor: grabbing;
}

.jx-upload-copyright-bar {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #000;
    color: #fff;
    font-family: 'JXWatermark', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    z-index: 4;
    pointer-events: none;
    padding: 0 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.jx-upload-copyright-bar__left,
.jx-upload-copyright-bar__right {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-upload-copyright-bar__left {
    flex-shrink: 0;
}

.jx-upload-copyright-bar__right {
    text-align: right;
    min-width: 0;
}

.jx-upload-watermark span {
    display: block;
    font-family: inherit;
}

.jx-upload__watermark-label {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--jx-text, #0f172a);
}

.jx-upload__watermark-label strong {
    color: var(--jx-primary, #0ea5e9);
}

.jx-upload__watermark-hint {
    margin: -0.25rem 0 1rem;
    font-size: 0.8125rem;
    color: var(--jx-muted, #64748b);
    line-height: 1.5;
}

.jx-upload-range {
    width: 100%;
    height: 6px;
    accent-color: var(--jx-primary, #0ea5e9);
    cursor: pointer;
}

.jx-upload__range-value {
    font-weight: 500;
    color: var(--jx-primary, #0ea5e9);
}

.jx-upload-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.jx-upload-grid__line {
    position: absolute;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
}

.jx-upload-grid__line--v1,
.jx-upload-grid__line--v2 {
    width: 1px;
    top: 0;
    bottom: 0;
}

.jx-upload-grid__line--v1 { left: 33.333%; }
.jx-upload-grid__line--v2 { left: 66.666%; }

.jx-upload-grid__line--h1,
.jx-upload-grid__line--h2 {
    height: 1px;
    left: 0;
    right: 0;
}

.jx-upload-grid__line--h1 { top: 33.333%; }
.jx-upload-grid__line--h2 { top: 66.666%; }

.jx-upload__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.jx-upload__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: var(--fill-secondary);
    border-radius: var(--radius);
    font-weight: 500;
}

.jx-upload__histogram {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.jx-upload__histogram-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.jx-upload__histogram-title h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.jx-upload__histogram-legend {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.jx-upload__histogram-legend span::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.jx-upload__legend-r::before { background: var(--color-rose); }
.jx-upload__legend-g::before { background: var(--color-emerald); }
.jx-upload__legend-b::before { background: var(--accent); }

.jx-upload__histogram-canvas-wrap {
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.jx-upload__histogram canvas {
    display: block;
    width: 100%;
    height: auto;
}

.jx-upload__form-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.jx-upload__section {
    margin-bottom: 1.25rem;
}

.jx-upload__section:last-child {
    margin-bottom: 0;
}

.jx-upload__section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.jx-upload__cats {
    display: flex;
    gap: 0.625rem;
}

.jx-upload-cat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.jx-upload-cat:hover {
    border-color: var(--separator-opaque);
    background: var(--fill-secondary);
    color: var(--text);
}

.jx-upload-cat.is-active {
    border-color: var(--aviation);
    background: var(--aviation-soft);
    color: var(--aviation);
}

.jx-upload-cat[data-category="railway"].is-active {
    border-color: var(--rail);
    background: var(--rail-soft);
    color: var(--rail);
}

.jx-upload__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .jx-upload__grid { grid-template-columns: 1fr; }
}

.jx-upload__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jx-upload-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.jx-upload-tag input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jx-upload-tag:hover {
    border-color: var(--separator-opaque);
}

.jx-upload-tag.is-checked {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.jx-upload__options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jx-upload-hot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--hot-soft);
}

.jx-upload-hot__info {
    flex: 1;
    min-width: 0;
}

.jx-upload-hot__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hot);
    margin: 0 0 0.25rem;
}

.jx-upload-hot__badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--hot);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--hot) 35%, transparent);
    border-radius: var(--radius);
    letter-spacing: 0;
}

.jx-upload-hot__hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.jx-upload-switch {
    position: relative;
    width: 3rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.jx-upload-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.jx-upload-switch__track {
    position: absolute;
    inset: 0;
    background: var(--surface-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition);
}

.jx-upload-switch__track::after {
    content: '';
    position: absolute;
    width: 1.375rem;
    height: 1.375rem;
    left: 0.1875rem;
    top: 0.1875rem;
    background: var(--surface-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.jx-upload-switch input:checked + .jx-upload-switch__track {
    background: var(--hot);
}

.jx-upload-switch input:checked + .jx-upload-switch__track::after {
    transform: translateX(1.25rem);
}

.jx-upload__submit {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.jx-upload__submit .jx-btn {
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.jx-upload__submit .jx-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Profile page ── */
.jx-profile {
    padding: 0 0 3rem;
}

.jx-profile__hero {
    padding: 1.5rem 0 0;
}

.jx-profile__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.jx-profile__card::before {
    display: none;
}

.jx-profile__main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.jx-profile__avatar {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--fill-secondary);
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jx-profile__info {
    min-width: 0;
}

.jx-profile__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.jx-profile__name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.jx-profile__role {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--fill-secondary);
    border-radius: var(--radius);
    letter-spacing: 0;
}

.jx-profile__email {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.jx-profile__joined {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.jx-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.jx-profile__actions .jx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.jx-profile__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .jx-profile__stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .jx-profile__stats {
        grid-template-columns: repeat(6, 1fr);
    }
}

.jx-profile-stat {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    text-align: center;
    transition: background var(--transition);
}

.jx-profile-stat:hover {
    background: var(--surface-secondary);
}

.jx-profile-stat__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.jx-profile-stat__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

.jx-profile-stat--emerald .jx-profile-stat__value { color: var(--color-emerald); }
.jx-profile-stat--amber .jx-profile-stat__value { color: var(--color-amber); }
.jx-profile-stat--rose .jx-profile-stat__value { color: var(--color-rose); }
.jx-profile-stat--violet .jx-profile-stat__value { color: var(--featured); }
.jx-profile-stat--sky .jx-profile-stat__value { color: var(--aviation); }

.jx-profile-stat__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.jx-photographer__stats {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .jx-photographer__stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.jx-photographer__heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.jx-profile__content {
    margin-top: 2rem;
}

.jx-profile__tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

.jx-profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.jx-profile-tab:hover {
    color: var(--text);
    background: var(--fill-secondary);
}

.jx-profile-tab.is-active {
    color: var(--text);
    background: var(--fill-secondary);
    font-weight: 600;
}

.jx-profile-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: var(--surface-tertiary);
}

.jx-profile-tab.is-active .jx-profile-tab__count {
    background: var(--surface-tertiary);
}

.jx-profile__notice {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--rail);
    background: var(--rail-soft);
    border: 1px solid color-mix(in srgb, var(--rail) 30%, transparent);
    border-radius: var(--radius);
    line-height: 1.5;
}

.jx-profile__notice strong {
    color: var(--rail);
}

.jx-profile__notice a {
    color: var(--rail);
    font-weight: 600;
    text-decoration: underline;
}

.jx-profile .jx-empty {
    margin-top: 0.5rem;
    padding: 3rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

@media (max-width: 639px) {
    .jx-profile__card {
        padding: 1.25rem;
    }

    .jx-profile__main {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .jx-profile__actions {
        width: 100%;
    }

    .jx-profile__actions .jx-btn {
        flex: 1;
        justify-content: center;
    }

    .jx-profile__tabs {
        flex-direction: column;
    }

    .jx-profile-tab {
        justify-content: center;
    }
}

.jx-upload-contrast-boost,
.admin-review-contrast-boost {
    filter: contrast(1.85) saturate(1.08);
}

.photo-tool-horizon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 4;
    overflow: hidden;
}

.photo-tool-horizon[hidden] {
    display: none;
}

.photo-tool-horizon__mesh {
    position: absolute;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 230, 0, 0.92) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 230, 0, 0.92) 1px, transparent 1px);
    background-size: 20px 20px;
    transform-origin: center center;
}

.photo-tool-horizon__angle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.125rem 0.5rem;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffe600;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.jx-upload__contrast-note {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary, #64748b);
}

.jx-upload__contrast-note--warn {
    color: var(--color-amber);
}

.jx-upload__contrast-note--bad {
    color: var(--color-rose);
}

.jx-location-wrap {
    position: relative;
}

.jx-location-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    max-height: 220px;
    overflow: auto;
    background: var(--surface-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.jx-location-item {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
}

.jx-location-item:hover {
    background: var(--fill-secondary);
}

.jx-aircraft-autofill-hint {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.jx-badge--news {
    background: var(--aviation-soft);
    color: var(--aviation);
}

.jx-news-list {
    display: grid;
    gap: 0.75rem;
}

.jx-news-item {
    display: block;
    padding: 0.75rem 0.875rem;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    transition: background var(--transition);
}

.jx-news-item:hover {
    background: var(--fill-secondary);
}

.jx-news-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.jx-news-item__summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
}

.jx-news-item__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.jx-profile__avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.jx-profile__avatar--img {
    object-fit: cover;
}

.jx-profile__avatar-form {
    margin: 0;
}

.jx-profile__avatar-btn {
    font-size: 0.75rem;
    color: var(--accent);
    cursor: pointer;
}

.jx-profile__avatar-btn:hover {
    text-decoration: underline;
}

.jx-appeal-form {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.jx-appeal-form__input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    resize: vertical;
    background: var(--surface-primary);
    color: var(--text);
}

.jx-photo-card__appeal {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.jx-photo-card__appeal--pending {
    color: var(--color-amber);
}

.jx-photo-card__appeal--rejected {
    color: var(--color-rose);
}

.jx-hero__stat-hint--reviewers {
    font-weight: 500;
    color: var(--aviation);
}

/* ── Theme toggle ── */
.jx-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.jx-theme-toggle:hover {
    color: var(--text);
    background: var(--fill-secondary);
}

.jx-theme-toggle:active {
    background: var(--surface-tertiary);
}

.jx-theme-toggle__icon {
    width: 1rem;
    height: 1rem;
    transition: opacity var(--transition);
}

.jx-theme-toggle.is-switching .jx-theme-toggle__icon:not([hidden]) {
    opacity: 0.6;
}

.jx-theme-toggle__icon[hidden] {
    display: none;
}

/* ── Page enter animation ── */
@keyframes jx-content-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jx-page-enter {
    animation: jx-content-in var(--duration-normal) var(--ease-default);
}

/* ── Pagination buttons ── */
.jx-pagination .jx-btn {
    min-width: 2.25rem;
}

/* ── Image loader (theme-aware) ── */
.jx-img-loader__skeleton {
    background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-primary) 50%, var(--surface-secondary) 100%);
}

.jx-img-loader__pulse {
    background: color-mix(in srgb, var(--surface-primary) 85%, transparent);
}

/* ── Background music player ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jx-bgm {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.jx-bgm__fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface-primary);
    color: var(--text);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.15s ease, color 0.15s ease;
}

.jx-bgm__fab:hover {
    background: var(--surface-secondary);
}

.jx-bgm.is-playing .jx-bgm__fab {
    color: var(--aviation, #0ea5e9);
}

.jx-bgm__fab-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.jx-bgm__panel {
    width: min(20rem, calc(100vw - 2rem));
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: color-mix(in srgb, var(--surface-primary) 92%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.jx-bgm__meta {
    margin-bottom: 0.65rem;
}

.jx-bgm__label {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.jx-bgm__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jx-bgm__artist {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jx-bgm__status {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.jx-bgm__controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.jx-bgm__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: var(--fill-secondary);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease;
}

.jx-bgm__btn:hover {
    background: var(--surface-tertiary);
}

.jx-bgm__btn svg {
    width: 1rem;
    height: 1rem;
}

.jx-bgm__btn--close {
    margin-left: auto;
    color: var(--text-secondary);
}

.jx-bgm__volume {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin: 0 0.15rem;
}

.jx-bgm__volume input[type="range"] {
    width: 100%;
    accent-color: var(--aviation, #0ea5e9);
    cursor: pointer;
}

@media (max-width: 640px) {
    .jx-bgm {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .jx-bgm__panel {
        width: min(18rem, calc(100vw - 1.5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .jx-bgm__fab {
        transition: none;
    }
}

html.jx-navigating {
    cursor: progress;
}
