:root {
    --bg: #050505;
    --panel: #181818;
    --panel-soft: #222222;
    --panel-elevated: #202020;
    --text: #f5f5f5;
    --muted: #b6b6b6;
    --muted-soft: #d0d0d0;
    --border: #2e2e2e;
    --accent: #c96d1a;
    --accent-hover: #de7b21;
    --danger: #b84c4c;
    --success: #2f7d57;
    --info: #456d9b;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top, rgba(201, 109, 26, 0.18), transparent 28%),
        linear-gradient(180deg, #101010 0%, var(--bg) 38%, #080808 100%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 20px 16px 96px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0 24px;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.site-nav a {
    padding: 8px 10px;
    border-radius: 999px;
}

.site-nav a.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.inline-form {
    margin: 0;
}

.nav-user {
    color: var(--text);
    font-size: 0.95rem;
}

.nav-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 44px;
    padding: 10px 18px;
    transition: 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.button.primary,
.nav-button {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(201, 109, 26, 0.18);
}

.button.primary:hover,
.nav-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
}

.button.secondary:hover {
    border-color: var(--accent);
    color: #fff;
    background: rgba(201, 109, 26, 0.08);
}

.nav-button-submit,
.button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.full-width {
    width: 100%;
}

.page-content {
    display: grid;
    gap: 20px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 30;
    width: min(calc(100% - 24px), 720px);
    transform: translateX(-50%);
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.bottom-nav-item {
    display: grid;
    place-items: center;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.bottom-nav-item.is-active {
    background: rgba(201, 109, 26, 0.16);
    color: var(--text);
}

.hero-card,
.form-card,
.filter-card,
.detail-card,
.detail-cover-card,
.empty-card {
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.95), rgba(18, 18, 18, 0.96));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 30px 24px;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 45%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(201, 109, 26, 0.18), transparent 70%);
    pointer-events: none;
}

.form-card {
    width: min(100%, 520px);
    padding: 24px 20px;
    margin: 0 auto;
}

.filter-card,
.detail-card,
.detail-cover-card,
.empty-card {
    padding: 22px 20px;
}

.hero-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
}

.hero-grid-compact {
    min-height: auto;
}

.hero-copy,
.hero-side-note,
.search-shell,
.listing-section,
.detail-card,
.admin-card {
    position: relative;
    z-index: 1;
}

.hero-side-note {
    display: flex;
    align-items: flex-end;
}

.hero-side-stack {
    display: grid;
    gap: 14px;
}

.profile-stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
}

.stat-card {
    width: 100%;
    padding: 18px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.stat-card-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.profile-stat-card {
    display: block;
    color: inherit;
    padding: 14px 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 109, 26, 0.38);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.profile-stat-card.is-active {
    background: linear-gradient(180deg, rgba(201, 109, 26, 0.2), rgba(201, 109, 26, 0.08));
    border-color: rgba(201, 109, 26, 0.55);
    box-shadow: 0 18px 32px rgba(201, 109, 26, 0.16);
}

.profile-stat-card.is-active .stat-label,
.profile-stat-card.is-active .stat-value {
    color: #ffd4ab;
}

.profile-stat-card .stat-label {
    font-size: 0.84rem;
}

.profile-stat-card .stat-value {
    margin-top: 6px;
    font-size: 1.45rem;
    line-height: 1.15;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.stat-value {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
}

.stat-value-small {
    font-size: 1.35rem;
    line-height: 1.3;
}

.auth-layout {
    display: grid;
    gap: 18px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #111;
    color: var(--muted);
    transition: 0.2s ease;
}

.auth-tab.is-active {
    border-color: rgba(201, 109, 26, 0.65);
    background: rgba(201, 109, 26, 0.12);
    color: var(--text);
}

.eyebrow {
    margin: 0 0 10px;
    color: #f0a45f;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.15;
}

.section-heading h1 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3.4vw, 1.8rem);
}

.hero-text,
.section-heading p,
.form-footer {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.welcome-text {
    display: inline-flex;
    align-items: center;
    padding-right: 8px;
    color: var(--text);
}

.flash-list {
    display: grid;
    gap: 10px;
}

.flash {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    display: grid;
    gap: 4px;
    border-left-width: 4px;
}

.flash-title {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.flash-message {
    line-height: 1.6;
}

.flash-success {
    background: rgba(47, 125, 87, 0.16);
    border-color: rgba(47, 125, 87, 0.45);
    border-left-color: rgba(47, 125, 87, 0.95);
}

.flash-error {
    background: rgba(184, 76, 76, 0.16);
    border-color: rgba(184, 76, 76, 0.45);
    border-left-color: rgba(184, 76, 76, 0.95);
}

.flash-info {
    background: rgba(69, 109, 155, 0.16);
    border-color: rgba(69, 109, 155, 0.45);
    border-left-color: rgba(69, 109, 155, 0.95);
}

.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.auth-form label {
    font-size: 0.95rem;
    color: var(--text);
}

.auth-form input {
    width: 100%;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
}

.auth-form select,
.auth-form textarea {
    width: 100%;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
    font: inherit;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.field-group select,
.field-group input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 109, 26, 0.18);
}

.auth-form select:focus,
.auth-form textarea:focus,
.field-group select:focus,
.field-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 109, 26, 0.18);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-footer {
    margin: 18px 0 0;
    text-align: center;
}

.form-footer a {
    color: #f0a45f;
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: block;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.filter-form-compact {
    align-items: end;
}

.search-shell {
    display: grid;
    gap: 12px;
}

.discover-panel {
    padding: 18px;
}

.discover-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-heading,
.section-heading-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.search-heading-compact {
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.search-heading-compact .eyebrow {
    margin-bottom: 0;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.active-filter-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(201, 109, 26, 0.12);
    border: 1px solid rgba(201, 109, 26, 0.22);
    color: var(--muted-soft);
}

.section-summary {
    display: grid;
    justify-items: end;
}

.section-summary-value {
    font-size: 1.8rem;
}

.field-group {
    display: grid;
    gap: 6px;
}

.field-group label {
    font-size: 0.88rem;
    color: var(--muted);
}

.field-group-full {
    grid-column: 1 / -1;
}

.field-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.field-group select {
    width: 100%;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.95rem;
}

.field-group input {
    width: 100%;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.95rem;
    font: inherit;
}

.discover-submit,
.discover-reset {
    width: 100%;
}

.listing-section {
    display: grid;
    gap: 18px;
}

.listing-header {
    padding-bottom: 4px;
}

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

.model-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(14, 14, 14, 0.96));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.model-cover-wrap {
    position: relative;
}

.model-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 109, 26, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.model-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
}

.model-cover img,
.detail-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favorite-form {
    margin: 0;
}

.favorite-form-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.74);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    transition: 0.2s ease;
    backdrop-filter: blur(10px);
}

.favorite-button:hover {
    border-color: rgba(201, 109, 26, 0.5);
    transform: translateY(-1px);
}

.favorite-button.is-active {
    background: rgba(201, 109, 26, 0.18);
    border-color: rgba(201, 109, 26, 0.55);
    color: #ffd4ab;
}

.favorite-button-inline {
    min-height: 44px;
    padding: 10px 16px;
}

.favorite-button-icon {
    font-size: 1rem;
    line-height: 1;
}

.favorite-button-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-cover-video {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    background: #000;
}

.is-hidden {
    display: none;
}

.model-cover-placeholder,
.detail-cover-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background:
        linear-gradient(135deg, rgba(201, 109, 26, 0.18), transparent),
        linear-gradient(180deg, #262626, #121212);
}

.model-card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.model-card-meta-row,
.model-card-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.model-card-region,
.model-rating {
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.model-card-region {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-card-title {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 500;
}

.model-card-title a {
    display: block;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.model-card-title a:hover {
    color: var(--text);
}

.model-price {
    color: #ffd4ab;
    font-size: 1.08rem;
    font-weight: 700;
    white-space: nowrap;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.badge-verified {
    background: rgba(47, 125, 87, 0.18);
    color: #96e0b8;
    border: 1px solid rgba(47, 125, 87, 0.35);
    flex: 0 0 auto;
    padding: 3px 7px;
    font-size: 0.72rem;
    line-height: 1;
}

.badge-pinned {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(201, 109, 26, 0.88);
    color: #fff;
    padding: 5px 8px;
    font-size: 0.74rem;
}

.badge-active {
    background: rgba(69, 109, 155, 0.18);
    color: #aaccf1;
    border: 1px solid rgba(69, 109, 155, 0.35);
}

.empty-card h3 {
    margin-top: 0;
}

.empty-card p:last-child {
    margin-bottom: 0;
}

.error-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.error-code {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 92px;
    height: 92px;
    margin: 2px auto 14px;
    border-radius: 50%;
    border: 1px solid rgba(201, 109, 26, 0.32);
    background: rgba(201, 109, 26, 0.1);
    color: #ffd4ab;
    font-size: 2rem;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    gap: 18px;
}

.detail-layout-enhanced {
    grid-template-columns: 1fr;
    align-items: start;
}

.detail-media-card,
.detail-thumbnails-card,
.detail-info-card,
.detail-reviews-card {
    min-width: 0;
}

.detail-media-card {
    overflow: hidden;
    position: relative;
}

.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.detail-thumbnails-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.detail-thumbnail-button {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    min-height: 90px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-thumbnail-button:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 109, 26, 0.45);
}

.detail-thumbnail-button.is-active {
    border-color: rgba(201, 109, 26, 0.75);
    box-shadow: 0 0 0 2px rgba(201, 109, 26, 0.18);
}

.detail-thumbnail-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-video-entry {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(201, 109, 26, 0.14), rgba(24, 24, 24, 0.98));
    color: var(--text);
}

.detail-video-entry-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
}

.detail-video-entry-text {
    font-size: 0.92rem;
}

.detail-cover-card {
    overflow: hidden;
    padding: 0;
    min-height: 100%;
}

.detail-cover-image,
.detail-cover-placeholder {
    aspect-ratio: 4 / 5;
}

.detail-favorite-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.detail-favorite-button {
    min-height: 42px;
    padding: 9px 14px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(8, 8, 8, 0.74);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.detail-favorite-button .favorite-button-text {
    display: inline;
    font-size: 0.88rem;
}

.detail-heading {
    display: grid;
    gap: 14px;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 2px;
}

.detail-price {
    display: grid;
    gap: 4px;
    flex: 0 0 auto;
}

.detail-price-label {
    color: var(--muted);
}

.detail-price strong {
    font-size: 2rem;
    color: #ffd4ab;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-item span {
    color: var(--muted);
    font-size: 0.92rem;
}

.detail-intro {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-intro h2 {
    margin-top: 0;
}

.detail-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    flex: 0 0 auto;
}

.detail-reviews-preview {
    display: grid;
    gap: 14px;
}

.detail-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-section-card,
.profile-guide-card {
    display: grid;
    gap: 16px;
}

.profile-section-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.section-title-link {
    color: inherit;
    transition: color 0.2s ease;
}

.section-title-link:hover {
    color: #ffd4ab;
}

.profile-activity-list {
    display: grid;
    gap: 12px;
}

.profile-activity-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-activity-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-activity-main {
    display: grid;
    gap: 6px;
}

.profile-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.detail-section-head,
.review-card-top,
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-section-head h2 {
    margin: 0;
}

.reviews-layout {
    display: grid;
    gap: 18px;
}

.reviews-summary-card,
.review-form-card,
.review-card {
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.95), rgba(18, 18, 18, 0.96));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.reviews-summary-card,
.review-form-card,
.review-card {
    padding: 22px 20px;
}

.reviews-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.review-actions {
    margin-top: 18px;
}

.review-list {
    display: grid;
    gap: 14px;
}

.review-card {
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.95), rgba(18, 18, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-list {
    display: grid;
    gap: 14px;
}

.forum-stream-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-stream-head-compact {
    margin-bottom: 2px;
}

.forum-card,
.forum-form-card {
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.95), rgba(18, 18, 18, 0.96));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.forum-card,
.forum-form-card {
    padding: 22px 20px;
}

.forum-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.forum-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 109, 26, 0.24);
}

.forum-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.forum-card-link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}

.forum-media-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.forum-media-preview {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 5;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.forum-media-video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(201, 109, 26, 0.9);
    color: #fff;
    font-size: 0.78rem;
}

.forum-media-video-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1rem;
}

.forum-card-link:hover h3,
.forum-card-link:hover .forum-excerpt {
    color: #ffd4ab;
}

.forum-card-top h3 {
    margin: 0;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.forum-meta,
.forum-excerpt {
    color: var(--muted);
}

.forum-meta {
    margin: 8px 0 0;
    font-size: 0.92rem;
}

.forum-excerpt,
.forum-body p {
    margin: 14px 0 0;
    line-height: 1.8;
}

.forum-excerpt {
    transition: color 0.2s ease;
}

.badge-pinned-static {
    position: static;
    background: rgba(201, 109, 26, 0.18);
    color: #ffd4ab;
    border: 1px solid rgba(201, 109, 26, 0.35);
}

.forum-detail-card {
    display: grid;
    gap: 12px;
}

.forum-detail-media-grid {
    display: grid;
    gap: 12px;
}

.forum-detail-media-item {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.forum-detail-media-item img,
.forum-detail-media-item video {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 520px;
    background: #000;
}

.forum-create-shell {
    display: grid;
    gap: 16px;
}

.forum-comment-composer {
    display: grid;
    gap: 16px;
}

.forum-comment-login {
    display: grid;
    gap: 12px;
}

.forum-comment-login label {
    font-size: 0.95rem;
    color: var(--text);
}

.forum-comment-login textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--muted);
    font: inherit;
    resize: vertical;
}

.forum-comment-hint {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.compact-review-list .review-card {
    border-radius: 18px;
}

.review-meta,
.review-content,
.pagination-info {
    color: var(--muted);
}

.pagination {
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-group {
    display: flex;
    flex: 1 1 120px;
}

.pagination-group-end {
    justify-content: flex-end;
}

.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-page,
.pagination-ellipsis {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.pagination-page {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    transition: 0.2s ease;
}

.pagination-page:hover {
    border-color: rgba(201, 109, 26, 0.55);
    color: var(--text);
}

.pagination-page.is-active {
    border-color: rgba(201, 109, 26, 0.8);
    background: rgba(201, 109, 26, 0.16);
    color: var(--text);
}

.pagination-ellipsis {
    color: var(--muted);
}

.review-meta {
    margin: 6px 0 0;
    font-size: 0.92rem;
}

.review-content {
    margin: 14px 0 0;
    line-height: 1.7;
}

.badge-rating {
    background: rgba(201, 109, 26, 0.16);
    color: #ffd4ab;
    border: 1px solid rgba(201, 109, 26, 0.35);
}

.compact-card {
    padding: 18px;
}

.button-danger {
    border-color: rgba(184, 76, 76, 0.45);
    color: #f0b7b7;
    background: rgba(184, 76, 76, 0.07);
}

.button-danger:hover {
    border-color: rgba(184, 76, 76, 0.9);
    color: #fff;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-sidebar,
.admin-card {
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.98), rgba(16, 16, 16, 0.98));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.admin-sidebar {
    position: sticky;
    top: 20px;
    padding: 22px 18px;
}

.admin-main {
    display: grid;
    gap: 18px;
}

.admin-card {
    padding: 24px 22px;
}

.admin-section-heading {
    align-items: start;
    padding-bottom: 2px;
}

.admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    border: 1px solid transparent;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    background: rgba(201, 109, 26, 0.12);
    border-color: rgba(201, 109, 26, 0.35);
    color: var(--text);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.admin-stat-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 8px;
}

.admin-stat-card span {
    color: var(--muted);
}

.admin-stat-card strong {
    font-size: 2rem;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-toolbar {
    margin-top: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-actions form {
    margin: 0;
}

.admin-primary-cell {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.admin-primary-cell strong {
    line-height: 1.45;
}

.admin-primary-cell span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.admin-settings-form {
    max-width: 720px;
}

.admin-model-form {
    max-width: 920px;
}

.admin-image-preview {
    display: grid;
    gap: 10px;
}

.admin-image-preview-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-image-preview-img {
    width: min(100%, 280px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.admin-video-preview {
    width: min(100%, 420px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
}

.admin-gallery-manager {
    display: grid;
    gap: 14px;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-gallery-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.admin-gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
}

.admin-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-checkbox-card {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 640px) {
    .site-shell {
        padding: 16px 14px 104px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 8px 0 18px;
    }

    .site-nav {
        display: none;
    }

    .hero-card,
    .form-card,
    .filter-card,
    .detail-card,
    .detail-cover-card,
    .empty-card,
    .model-card {
        border-radius: 20px;
    }

    .filter-form,
    .reviews-summary-stats {
        grid-template-columns: 1fr;
    }

    .model-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hero-grid,
    .detail-layout-enhanced {
        grid-template-columns: 1fr;
    }

    .detail-media-card {
        order: -2;
    }

    .detail-thumbnails-card {
        order: -1;
    }

    .detail-favorite-overlay {
        top: 10px;
        right: 10px;
    }

    .detail-favorite-button {
        min-height: 38px;
        padding: 8px 12px;
    }

    .detail-favorite-button .favorite-button-text {
        display: inline;
        font-size: 0.8rem;
    }

    .detail-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .detail-price {
        width: 100%;
    }

    .detail-action-row {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .detail-action-row .button,
    .detail-action-row .favorite-form {
        width: 100%;
    }

    .detail-action-row .favorite-form .favorite-button {
        width: 100%;
        justify-content: center;
    }

    .hero-card {
        padding: 24px 18px;
    }

    .discover-panel,
    .reviews-summary-card,
    .review-form-card,
    .forum-card,
    .forum-form-card,
    .admin-card {
        padding: 16px 14px;
    }

    .detail-thumbnails,
    .admin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-thumbnails-card {
        grid-column: auto;
    }

    .search-heading,
    .section-heading-inline {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-form-compact .button {
        width: 100%;
    }

    .filter-form {
        gap: 10px;
        margin-top: 8px;
    }

    .discover-form {
        grid-template-columns: 1fr;
    }

    .field-group label {
        font-size: 0.82rem;
    }

    .field-group select {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .section-summary {
        justify-items: start;
    }

    .model-card-body {
        gap: 8px;
        padding: 12px;
    }

    .model-card-meta-row,
    .model-card-stats {
        gap: 4px;
    }

    .model-card-region,
    .model-rating {
        font-size: 0.74rem;
    }

    .model-card-title {
        font-size: 0.76rem;
    }

    .model-price {
        font-size: 0.9rem;
    }

    .favorite-form-overlay {
        top: 8px;
        right: 8px;
    }

    .favorite-button {
        min-width: 34px;
        min-height: 34px;
        padding: 6px 8px;
    }

    .favorite-button-text {
        display: none;
    }

    .badge-verified {
        padding: 3px 6px;
        font-size: 0.68rem;
    }

    .profile-columns {
        grid-template-columns: 1fr;
    }

    .profile-stat-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .profile-stat-card {
        padding: 12px 10px;
        border-radius: 18px;
    }

    .profile-stat-card .stat-label {
        font-size: 0.76rem;
    }

    .profile-stat-card .stat-value {
        font-size: 1.2rem;
    }

    .profile-section-toolbar {
        justify-content: stretch;
    }

    .profile-section-toolbar .button {
        width: 100%;
    }

    .bottom-nav {
        display: grid;
    }

    .detail-section-head,
    .review-card-top,
    .pagination,
    .forum-stream-head,
    .forum-card-top,
    .profile-activity-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .forum-media-preview-grid {
        gap: 8px;
    }

    .detail-section-actions {
        width: 100%;
        justify-content: stretch;
    }

    .detail-section-actions .button {
        width: 100%;
    }

    .pagination-group,
    .pagination-group-end {
        width: 100%;
        justify-content: stretch;
    }

    .pagination-group .button,
    .pagination-group-end .button {
        width: 100%;
    }

    .button,
    .auth-tab,
    .bottom-nav-item {
        min-height: 46px;
    }
}

@media (max-width: 980px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-grid,
    .admin-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }
}
