/*
Theme Name: OtonaFolio
Theme URI: https://otonafolio.com/
Author: OtonaFolio
Description: 成人向け作品カタログのための軽量なオリジナルテーマ。
Version: 0.4.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: otonafolio
*/

:root {
    --of-bg: #0d1018;
    --of-surface: #151a25;
    --of-surface-soft: #1b2130;
    --of-border: rgba(255, 255, 255, 0.1);
    --of-text: #f6f3ef;
    --of-muted: #aaaeba;
    --of-accent: #ee6d76;
    --of-accent-2: #e5b56b;
    --of-ink: #17131a;
    --of-max: 1180px;
    --of-radius: 22px;
    --of-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] {
    color-scheme: light;
    --of-bg: #f7f4ef;
    --of-surface: #ffffff;
    --of-surface-soft: #eeeae3;
    --of-border: rgba(32, 36, 45, 0.13);
    --of-text: #20242d;
    --of-muted: #686d78;
    --of-accent: #cf4f5c;
    --of-accent-2: #9a6b25;
    --of-shadow: 0 18px 52px rgba(42, 35, 31, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--of-bg);
    color: var(--of-text);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 9% 5%, rgba(238, 109, 118, 0.12), transparent 34%),
        radial-gradient(circle at 91% 12%, rgba(229, 181, 107, 0.1), transparent 30%);
    content: "";
    pointer-events: none;
}

html[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 9% 5%, rgba(207, 79, 92, 0.09), transparent 34%),
        radial-gradient(circle at 91% 12%, rgba(154, 107, 37, 0.08), transparent 30%);
}

a {
    color: inherit;
    text-decoration-color: rgba(238, 109, 118, 0.65);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--of-accent);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.of-wrap {
    width: min(calc(100% - 40px), var(--of-max));
    margin-inline: auto;
}

.of-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--of-border);
    background: rgba(13, 16, 24, 0.88);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .of-site-header {
    background: rgba(247, 244, 239, 0.9);
}

.of-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.of-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.of-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--of-accent), var(--of-accent-2));
    color: var(--of-ink);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.of-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.of-brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.of-brand-copy small {
    margin-top: 4px;
    color: var(--of-muted);
    font-size: 10px;
    letter-spacing: 0.15em;
}

.of-main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.of-main-nav a {
    color: var(--of-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.of-main-nav a:hover {
    color: var(--of-accent);
}

.of-age-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(238, 109, 118, 0.45);
    border-radius: 999px;
    color: #ffc1c5;
    font-size: 12px;
    font-weight: 800;
}

.of-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.of-theme-toggle,
.of-menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--of-border);
    border-radius: 12px;
    background: transparent;
    color: var(--of-text);
    cursor: pointer;
}

.of-theme-toggle {
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
}

.of-theme-toggle:hover {
    border-color: rgba(238, 109, 118, 0.48);
    background: rgba(238, 109, 118, 0.08);
}

.of-menu-toggle {
    display: none;
}

.of-main {
    min-height: 60vh;
}

.of-hero {
    position: relative;
    overflow: hidden;
    padding: 108px 0 90px;
}

.of-hero::after {
    position: absolute;
    top: 60px;
    right: max(3vw, calc((100vw - var(--of-max)) / 2));
    width: min(42vw, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(238, 109, 118, 0.45), transparent 18%),
        radial-gradient(circle at 62% 62%, rgba(229, 181, 107, 0.24), transparent 32%),
        rgba(255, 255, 255, 0.015);
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.03);
    content: "";
}

.of-hero-content {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.of-eyebrow {
    margin: 0 0 16px;
    color: var(--of-accent-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.of-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
    font-size: clamp(46px, 7vw, 88px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.of-hero h1 span {
    color: var(--of-accent);
}

.of-hero-lead {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--of-muted);
    font-size: 18px;
}

.of-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.of-primary-button,
.of-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.of-primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--of-accent), #f29a77);
    color: #17131a;
    box-shadow: 0 12px 30px rgba(238, 109, 118, 0.2);
}

.of-primary-button:hover {
    color: #17131a;
    transform: translateY(-1px);
}

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

html[data-theme="light"] .of-secondary-button,
html[data-theme="light"] .of-section.alt {
    background: rgba(32, 36, 45, 0.025);
}

.of-section {
    padding: 86px 0;
}

.of-section.alt {
    border-block: 1px solid var(--of-border);
    background: rgba(255, 255, 255, 0.018);
}

.of-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.of-section-heading h2,
.of-catalog-heading h1,
.of-page-content h1,
.of-performer-heading h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.14;
}

.of-section-heading p,
.of-catalog-heading > p:last-child {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--of-muted);
}

.of-text-link {
    color: var(--of-accent);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.of-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.of-work-card {
    overflow: hidden;
    border: 1px solid var(--of-border);
    border-radius: var(--of-radius);
    background: var(--of-surface);
    box-shadow: var(--of-shadow);
}

.of-card-art {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(238, 109, 118, 0.22), rgba(229, 181, 107, 0.08)),
        repeating-linear-gradient(135deg, transparent 0 24px, rgba(255, 255, 255, 0.025) 24px 25px);
    text-decoration: none;
}

html[data-theme="light"] .of-card-art {
    background:
        linear-gradient(145deg, rgba(207, 79, 92, 0.14), rgba(154, 107, 37, 0.07)),
        repeating-linear-gradient(135deg, transparent 0 24px, rgba(32, 36, 45, 0.035) 24px 25px);
}

.of-card-art span {
    font-family: Georgia, serif;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -0.09em;
}

.of-card-art small {
    color: var(--of-muted);
    font-size: 9px;
    letter-spacing: 0.25em;
}

.of-card-body {
    padding: 24px;
}

.of-card-kicker {
    margin: 0 0 10px;
    color: var(--of-accent-2);
    font-size: 12px;
    font-weight: 800;
}

.of-card-body h2 {
    margin: 0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
    font-size: 20px;
    line-height: 1.55;
}

.of-card-body h2 a {
    text-decoration: none;
}

.of-card-body > p:not(.of-card-kicker) {
    margin: 14px 0 18px;
    color: var(--of-muted);
    font-size: 14px;
}

.of-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--of-border);
    border-radius: var(--of-radius);
    background: var(--of-border);
}

.of-stat {
    padding: 34px;
    background: var(--of-surface);
}

.of-stat strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 500;
}

.of-stat span {
    color: var(--of-muted);
    font-size: 13px;
}

.of-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.of-feature {
    padding: 30px;
    border: 1px solid var(--of-border);
    border-radius: var(--of-radius);
    background: var(--of-surface);
}

.of-feature-number {
    color: var(--of-accent);
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 0.16em;
}

.of-feature h3 {
    margin: 16px 0 8px;
    font-family: "Yu Mincho", Georgia, serif;
    font-size: 22px;
}

.of-feature p {
    margin: 0;
    color: var(--of-muted);
    font-size: 14px;
}

.of-page-shell,
.of-catalog-shell {
    padding: 72px 0 100px;
}

.of-page-content {
    max-width: 850px;
}

.of-page-content h2 {
    margin-top: 48px;
    font-family: "Yu Mincho", Georgia, serif;
    font-size: 28px;
}

.of-page-content p,
.of-page-content li {
    color: var(--of-muted);
}

.of-page-content a {
    color: var(--of-accent);
}

.of-catalog-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.of-empty-state {
    padding: 50px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: var(--of-radius);
    color: var(--of-muted);
    text-align: center;
}

.of-empty-state h1,
.of-empty-state h2 {
    color: var(--of-text);
}

.of-performer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.of-performer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--of-border);
    border-radius: 18px;
    background: var(--of-surface);
    text-decoration: none;
}

.of-performer-card strong,
.of-performer-card small {
    display: block;
}

.of-performer-card small {
    margin-top: 3px;
    color: var(--of-muted);
}

.of-performer-monogram {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(238, 109, 118, 0.32), rgba(229, 181, 107, 0.18));
    color: #fff;
    font-family: "Yu Mincho", Georgia, serif;
    font-size: 22px;
}

.of-performer-monogram.large {
    width: 88px;
    height: 88px;
    font-size: 34px;
}

.of-performer-hero {
    margin-bottom: 44px;
}

.of-performer-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.of-performer-heading p:last-child {
    margin: 8px 0 0;
    color: var(--of-muted);
}

.of-back-link {
    color: var(--of-muted);
    font-size: 14px;
    text-decoration: none;
}

.of-detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 54px;
    margin-top: 34px;
}

.of-artwork-placeholder {
    display: flex;
    min-height: 480px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--of-border);
    border-radius: var(--of-radius);
    background:
        radial-gradient(circle at 50% 35%, rgba(238, 109, 118, 0.28), transparent 30%),
        linear-gradient(145deg, #191e2b, #11141d);
}

html[data-theme="light"] .of-artwork-placeholder {
    background:
        radial-gradient(circle at 50% 35%, rgba(207, 79, 92, 0.18), transparent 30%),
        linear-gradient(145deg, #f1ece5, #fbfaf8);
}

.of-artwork-placeholder span {
    font-family: Georgia, serif;
    font-size: 84px;
    font-weight: 700;
    letter-spacing: -0.1em;
}

.of-artwork-placeholder small {
    color: var(--of-muted);
    letter-spacing: 0.22em;
}

.of-detail-copy h1 {
    margin: 0;
    font-family: "Yu Mincho", Georgia, serif;
    font-size: clamp(30px, 4.5vw, 50px);
    line-height: 1.35;
}

.of-performer-links {
    margin: 16px 0 0;
}

.of-performer-links a {
    color: var(--of-accent);
}

.of-meta-line {
    color: var(--of-muted);
    font-size: 13px;
}

.of-description {
    margin-top: 28px;
    color: var(--of-muted);
}

.of-offer-box {
    padding: 28px;
    margin-top: 34px;
    border: 1px solid rgba(238, 109, 118, 0.3);
    border-radius: 18px;
    background: rgba(238, 109, 118, 0.06);
}

.of-offer-box h2 {
    margin: 0;
    font-family: "Yu Mincho", Georgia, serif;
    font-size: 22px;
}

.of-offer-box p {
    color: var(--of-muted);
    font-size: 14px;
}

.of-offer-box .of-primary-button {
    width: 100%;
    margin: 10px 0;
}

.of-offer-box small {
    display: block;
    color: var(--of-muted);
    font-size: 11px;
}

.of-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 42px 0 0;
    list-style: none;
}

.of-pagination a,
.of-pagination span {
    display: grid;
    min-width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--of-border);
    border-radius: 10px;
    text-decoration: none;
}

.of-pagination .current {
    border-color: var(--of-accent);
    background: var(--of-accent);
    color: var(--of-ink);
}

.of-site-footer {
    padding: 62px 0 30px;
    border-top: 1px solid var(--of-border);
}

.of-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 44px;
}

.of-footer-grid h2,
.of-footer-grid h3 {
    margin-top: 0;
    font-family: Georgia, "Yu Mincho", serif;
}

.of-footer-grid p,
.of-footer-grid li {
    color: var(--of-muted);
    font-size: 13px;
}

.of-footer-grid ul {
    padding: 0;
    list-style: none;
}

.of-footer-grid li + li {
    margin-top: 8px;
}

.of-footer-grid a {
    text-decoration: none;
}

.of-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    margin-top: 38px;
    border-top: 1px solid var(--of-border);
    color: var(--of-muted);
    font-size: 11px;
}

.of-api-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: 0.2em;
}

.of-age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 8, 12, 0.96);
    backdrop-filter: blur(20px);
    color: #f6f3ef;
    --of-surface: #151a25;
    --of-border: rgba(255, 255, 255, 0.1);
    --of-text: #f6f3ef;
    --of-muted: #aaaeba;
    --of-accent: #ee6d76;
    --of-accent-2: #e5b56b;
}

.of-age-gate.is-verified {
    display: none;
}

.of-age-dialog {
    width: min(100%, 570px);
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    background: var(--of-surface);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.of-age-dialog .of-brand-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 24px;
}

.of-age-dialog h2 {
    margin: 0;
    font-family: "Yu Mincho", Georgia, serif;
    font-size: clamp(28px, 6vw, 42px);
}

.of-age-dialog p {
    color: var(--of-muted);
}

.of-age-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.of-age-actions button,
.of-age-actions a {
    min-height: 52px;
    border-radius: 999px;
    font-weight: 800;
}

.of-age-actions button {
    border: 0;
    background: var(--of-accent);
    color: var(--of-ink);
    cursor: pointer;
}

.of-age-actions a {
    display: grid;
    place-items: center;
    border: 1px solid var(--of-border);
    text-decoration: none;
}

@media (max-width: 1100px) {
    .of-header-inner {
        gap: 16px;
    }

    .of-main-nav ul {
        gap: 18px;
    }

    .of-age-chip {
        display: none;
    }
}

@media (max-width: 900px) {
    .of-main-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 20px;
        border: 1px solid var(--of-border);
        border-radius: 18px;
        background: var(--of-surface);
        box-shadow: var(--of-shadow);
    }

    .of-main-nav.is-open {
        display: block;
    }

    .of-main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .of-menu-toggle {
        display: block;
    }

    .of-age-chip {
        display: none;
    }

    .of-card-grid,
    .of-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .of-detail-layout {
        grid-template-columns: 1fr;
    }

    .of-artwork-placeholder {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .of-wrap {
        width: min(calc(100% - 28px), var(--of-max));
    }

    .of-brand-copy small {
        display: none;
    }

    .of-hero {
        padding: 78px 0 66px;
    }

    .of-hero::after {
        top: 100px;
        right: -140px;
        width: 340px;
        opacity: 0.6;
    }

    .of-hero-lead {
        font-size: 16px;
    }

    .of-section {
        padding: 62px 0;
    }

    .of-section-heading {
        align-items: start;
        flex-direction: column;
    }

    .of-card-grid,
    .of-feature-grid,
    .of-performer-grid,
    .of-stat-grid,
    .of-footer-grid {
        grid-template-columns: 1fr;
    }

    .of-card-art {
        min-height: 180px;
    }

    .of-page-shell,
    .of-catalog-shell {
        padding: 52px 0 72px;
    }

    .of-footer-bottom {
        flex-direction: column;
    }

    .of-age-actions {
        grid-template-columns: 1fr;
    }
}

/* Catalog-focused home and work index */
.home .of-wrap,
.of-catalog-shell .of-wrap {
    width: min(calc(100% - 36px), 1360px);
}

.of-catalog-hero {
    padding: 52px 0 34px;
    border-bottom: 1px solid var(--of-border);
    background: linear-gradient(110deg, rgba(238, 109, 118, 0.1), transparent 45%), var(--of-bg);
}

.of-catalog-hero .of-wrap {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    align-items: end;
    gap: 34px 58px;
}

.of-catalog-hero-copy h1 {
    margin: 5px 0 14px;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.13;
}

.of-catalog-hero-copy h1 span {
    color: var(--of-accent);
}

.of-catalog-hero-copy > p:last-child {
    max-width: 650px;
    margin: 0;
    color: var(--of-muted);
}

.of-catalog-search {
    align-self: center;
}

.of-catalog-search label {
    display: block;
    margin-bottom: 9px;
    color: var(--of-text);
    font-size: 13px;
    font-weight: 800;
}

.of-catalog-search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 2px solid var(--of-text);
    border-radius: 10px;
    background: var(--of-surface);
    box-shadow: var(--of-shadow);
}

.of-catalog-search input {
    min-width: 0;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--of-text);
}

.of-catalog-search button {
    min-width: 116px;
    border: 0;
    background: var(--of-accent);
    color: #17131a;
    font-weight: 900;
    cursor: pointer;
}

.of-catalog-search button:hover {
    filter: brightness(1.06);
}

.of-catalog-search.compact {
    width: min(100%, 630px);
}

.of-catalog-search.compact input {
    min-height: 52px;
}

.of-catalog-stats {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 9px;
}

.of-catalog-stats span {
    padding: 5px 12px;
    border: 1px solid var(--of-border);
    border-radius: 5px;
    background: var(--of-surface);
    color: var(--of-muted);
    font-size: 12px;
}

.of-catalog-stats strong {
    color: var(--of-text);
    font-size: 15px;
}

.of-category-rail {
    border-bottom: 1px solid var(--of-border);
    background: var(--of-surface);
}

.of-category-rail > .of-wrap,
.of-category-rail.inline {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
}

.of-category-rail.inline {
    min-height: auto;
    padding: 14px 16px;
    margin: 0 0 28px;
    border: 1px solid var(--of-border);
    border-radius: 8px;
}

.of-category-rail strong {
    flex: 0 0 auto;
    color: var(--of-text);
    font-size: 13px;
}

.of-category-rail-links {
    display: flex;
    flex: 1;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.of-category-rail-links a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--of-border);
    border-radius: 5px;
    background: var(--of-bg);
    color: var(--of-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.of-category-rail-links a:hover {
    border-color: var(--of-accent);
    background: rgba(238, 109, 118, 0.08);
}

.of-category-rail-links small {
    color: var(--of-muted);
    font-size: 10px;
}

.of-home-catalog {
    padding: 34px 0 74px;
}

.of-catalog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.of-catalog-sidebar {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border: 1px solid var(--of-border);
    border-radius: 8px;
    background: var(--of-surface);
}

.of-catalog-sidebar section {
    padding: 16px;
    border-bottom: 1px solid var(--of-border);
}

.of-catalog-sidebar section:last-child {
    border-bottom: 0;
}

.of-catalog-sidebar h2 {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
}

.of-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.of-sidebar-title h2 {
    margin: 0;
}

.of-catalog-sidebar > section > a,
.of-sidebar-list a,
.of-sidebar-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 35px;
    gap: 8px;
    border-bottom: 1px solid var(--of-border);
    color: var(--of-muted);
    font-size: 12px;
    text-decoration: none;
}

.of-catalog-sidebar > section > a:last-child,
.of-sidebar-list a:last-child {
    border-bottom: 0;
}

.of-catalog-sidebar a:hover,
.of-catalog-sidebar a.is-active {
    color: var(--of-accent);
}

.of-catalog-sidebar a.is-active,
.of-catalog-sidebar .of-sidebar-primary {
    color: var(--of-text);
    font-weight: 900;
}

.of-sidebar-list small {
    min-width: 24px;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--of-surface-soft);
    color: var(--of-muted);
    text-align: center;
}

.of-catalog-sidebar .of-sidebar-more {
    padding-top: 10px;
    border-top: 1px solid var(--of-border);
    border-bottom: 0;
    color: var(--of-accent);
    font-weight: 800;
}

.of-catalog-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--of-text);
}

.of-catalog-toolbar h2 {
    margin: 2px 0 0;
    font-family: inherit;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.of-catalog-toolbar p:last-child {
    margin: 4px 0 0;
    color: var(--of-muted);
    font-size: 13px;
}

.of-catalog-toolbar > a {
    color: var(--of-accent);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.of-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 14px;
}

.of-catalog-card {
    min-width: 0;
}

.of-catalog-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--of-border);
    border-radius: 7px;
    background:
        radial-gradient(circle at 22% 24%, hsla(var(--of-card-hue), 82%, 68%, 0.48), transparent 30%),
        linear-gradient(135deg, hsl(var(--of-card-hue), 35%, 20%), #11151e 75%);
    color: #fff;
    text-decoration: none;
}

.of-catalog-thumb::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.of-catalog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.of-catalog-card:hover .of-catalog-thumb img {
    transform: scale(1.025);
}

.of-catalog-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding-left: 3px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(10, 12, 18, 0.55);
    font-size: 15px;
    transform: translate(-50%, -50%);
}

.of-catalog-placeholder {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.of-catalog-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    border-radius: 3px;
    background: rgba(10, 12, 18, 0.72);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.of-catalog-card-body {
    padding-top: 10px;
}

.of-catalog-performer {
    overflow: hidden;
    margin: 0 0 4px;
    color: var(--of-accent);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.of-catalog-card h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0;
    overflow: hidden;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.of-catalog-card h3 a {
    color: var(--of-text);
    text-decoration: none;
}

.of-catalog-card h3 a:hover {
    color: var(--of-accent);
}

.of-catalog-card time {
    display: block;
    margin-top: 5px;
    color: var(--of-muted);
    font-size: 10px;
}

.of-performer-strip {
    padding: 58px 0 76px;
    border-top: 1px solid var(--of-border);
    background: var(--of-surface);
}

.of-performer-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.of-performer-chip-grid a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 9px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--of-border);
    border-radius: 6px;
    background: var(--of-bg);
    color: var(--of-text);
    text-decoration: none;
}

.of-performer-chip-grid a > span {
    display: grid;
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--of-surface-soft);
    color: var(--of-accent);
    font-weight: 900;
}

.of-performer-chip-grid strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.of-performer-chip-grid small {
    color: var(--of-muted);
    font-size: 10px;
}

.of-list-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 28px;
}

.of-list-hero h1 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.of-list-hero > div > p:last-child {
    margin: 5px 0 0;
    color: var(--of-muted);
}

.of-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid var(--of-border);
    border-radius: 6px;
    background: var(--of-surface);
}

.of-list-toolbar > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.of-list-toolbar strong {
    font-size: 18px;
}

.of-list-toolbar span {
    color: var(--of-muted);
    font-size: 12px;
}

.of-list-toolbar nav {
    display: flex;
    gap: 4px;
}

.of-list-toolbar nav a {
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--of-muted);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.of-list-toolbar nav a.is-active {
    background: var(--of-accent);
    color: #17131a;
}

@media (max-width: 980px) {
    .of-catalog-hero .of-wrap {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }

    .of-catalog-layout {
        grid-template-columns: 1fr;
    }

    .of-catalog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .of-catalog-sidebar section {
        border-right: 1px solid var(--of-border);
        border-bottom: 0;
    }

    .of-catalog-sidebar section:last-child {
        border-right: 0;
    }

    .of-list-hero {
        display: grid;
    }
}

@media (max-width: 720px) {
    .home .of-wrap,
    .of-catalog-shell .of-wrap {
        width: min(calc(100% - 24px), 1360px);
    }

    .of-catalog-hero {
        padding-top: 34px;
    }

    .of-catalog-hero-copy h1 {
        font-size: 39px;
    }

    .of-catalog-search > div {
        grid-template-columns: 1fr;
    }

    .of-catalog-search button {
        min-height: 48px;
    }

    .of-category-rail > .of-wrap,
    .of-category-rail.inline {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-block: 12px;
    }

    .of-category-rail-links {
        width: 100%;
    }

    .of-catalog-sidebar {
        grid-template-columns: 1fr;
    }

    .of-catalog-sidebar section {
        border-right: 0;
        border-bottom: 1px solid var(--of-border);
    }

    .of-catalog-sidebar .of-sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .of-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 10px;
    }

    .of-catalog-toolbar {
        align-items: flex-start;
    }

    .of-catalog-toolbar p:last-child {
        display: none;
    }

    .of-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .of-list-toolbar nav {
        width: 100%;
    }

    .of-list-toolbar nav a {
        flex: 1;
        text-align: center;
    }
}
