@font-face {
    font-family: "Bruno Ace";
    src: url("../fonts/BrunoAce-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #07172e;
    --bg-deep: #04101f;
    --navy: #0a1e3c;
    --panel: #0c2040;
    --accent: #e30347;
    --accent-hover: #ff1a5c;
    --text: #ffffff;
    --muted: #9aa6bd;
    --ok: #3dd68c;
    --line: #1c3a63;
    --radius: 4px;
    --font-display: "Bruno Ace", "Segoe UI", sans-serif;
    --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --header-h: 64px;
    --thumb: 200px;
    --pad: 16px;
    --touch: 44px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: clip;
    color-scheme: dark;
    -webkit-tap-highlight-color: rgba(227, 3, 71, 0.25);
}

body {
    display: flex;
    flex-direction: column;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

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

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

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

button,
input,
select,
summary {
    font: inherit;
    color: inherit;
}

button,
select,
summary,
.star-btn,
.btn {
    min-height: var(--touch);
}

input,
select {
    font-size: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    min-height: var(--header-h);
    padding: 10px var(--pad);
    padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(4, 16, 31, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.brand img {
    height: 21px;
    width: auto;
    max-width: min(315px, 54vw);
}

.brand-full {
    display: block;
}

.brand-mark {
    display: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    align-items: center;
}

.site-nav a {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 12px;
    border: 1px solid transparent;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    padding-left: 8px;
    border-left: 1px solid var(--line);
}

.lang-switch a {
    letter-spacing: 0.08em;
    padding: 10px 8px;
    font-size: 11px;
}

.site-main {
    flex: 1;
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 20px var(--pad) 48px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom));
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner {
    position: fixed;
    z-index: 50;
    left: var(--pad);
    right: var(--pad);
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 40rem;
    margin: 0 auto;
    background: #ffffff;
    color: #121820;
    border: 1px solid #c8ced8;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 14rem;
    font-size: 14px;
    color: #1c2430;
    line-height: 1.4;
}

.cookie-banner a {
    color: #0b1220;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner-actions .btn {
    width: auto;
}

.cookie-banner .btn-ghost {
    background: #fff;
    border-color: #121820;
    color: #121820;
}

.cookie-banner .btn-ghost:hover {
    background: #eef1f5;
    color: #121820;
}

body.has-cookie-banner {
    padding-bottom: 8rem;
}

.account-panel h2 {
    margin: 18px 0 8px;
    font-size: 16px;
}

.kicker,
.hub-head .kicker {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 8px;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4vw, 2.1rem);
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 8px;
}

h2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    margin: 28px 0 10px;
}

.lede {
    color: var(--muted);
    margin: 0 0 20px;
    max-width: 52rem;
    line-height: 1.5;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.crumbs a {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 0 16px;
    min-height: var(--touch);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
}

.alert {
    background: rgba(227, 3, 71, 0.15);
    border: 1px solid var(--accent);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.alert-ok {
    background: rgba(61, 214, 140, 0.12);
    border-color: #3dd68c;
}

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

.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 4px;
}

.home-browse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.browse-by {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0 0 18px;
    font-size: 14px;
}

.browse-by-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.browse-by a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.browse-by a.is-active {
    color: #fff;
}

.browse-count {
    color: var(--muted);
    font-weight: 400;
    text-decoration: none;
}

.browse-hub {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.browse-hub a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: var(--touch);
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.browse-hub a:hover {
    border-color: var(--accent);
    color: #fff;
}

.browse-hub span {
    color: var(--muted);
}

.browse-letters {
    position: sticky;
    top: var(--header-h);
    z-index: 15;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 0 10px;
    margin: 0 0 18px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
}

.browse-letters a,
.browse-letters span {
    min-width: 28px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.browse-letters a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.browse-letters .is-empty {
    color: var(--muted);
    opacity: 0.4;
}

.browse-section h2,
.browse-brand h2 {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 22px 0 6px;
    scroll-margin-top: calc(var(--header-h) + 52px);
}

.browse-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.browse-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    min-height: var(--touch);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.browse-list a:hover {
    color: #fff;
}

.browse-list a:hover .browse-count,
.browse-brand h2 .browse-count {
    color: var(--muted);
}

.browse-cars {
    margin-top: 8px;
}

.browse-brand .browse-list {
    padding-left: 14px;
}

.home-columns {
    display: grid;
    gap: 16px;
    margin-top: 0;
    text-align: left;
    align-items: stretch;
}

.home-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 0;
}

.home-event-title {
    display: block;
    padding: 16px 18px 12px;
    color: inherit;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.35;
}

.home-event-title strong {
    font-weight: 400;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-family: inherit;
}

.home-event-title:hover,
.home-event-title:focus-visible {
    color: inherit;
}

.home-event-title:hover strong,
.home-event-title:focus-visible strong {
    color: var(--accent-hover);
}

.home-spotlight {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #050b16;
    overflow: hidden;
    color: inherit;
}

.home-spotlight:hover,
.home-spotlight:focus-visible {
    color: inherit;
}

.home-spotlight img {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
}

.home-spotlight iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-spotlight-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px 22px;
    color: inherit;
}

.home-spotlight-text strong {
    font-size: 1.25rem;
    line-height: 1.35;
}

.home-spotlight-text span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.home-col-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 18px;
    flex: 1;
}

.home-col-body h3 {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 8px 0 0;
    scroll-margin-top: calc(var(--header-h) + 8px);
}

.home-band {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.home-search {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.home-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-shortcuts .btn {
    padding: 0 12px;
}

.home-feature-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
}

.home-feature-title em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-feature-title strong {
    font-size: 1.1rem;
    line-height: 1.35;
}

.home-feature-title span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
}

.home-feature-title:hover strong {
    color: var(--accent-hover);
}

.home-article-list {
    margin-top: 4px;
}

.home-article-list .article-card {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
}

.home-article-list .article-card-meta strong {
    font-size: 1rem;
}

.home-col h2 {
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 1.35rem;
}

.home-col h3 {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 22px 0 6px;
}

.home-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.home-thumbs a {
    display: block;
    background: #050b16;
    overflow: hidden;
    border: 1px solid var(--line);
}

.home-thumbs a:hover,
.home-thumbs a:focus-visible {
    border-color: var(--accent);
}

.home-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.yt-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.yt-card {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.home-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: var(--touch);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.home-links em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.yt-thumb {
    display: block;
    background: #000;
    overflow: hidden;
}

.yt-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.yt-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.yt-meta strong {
    font-size: 16px;
    line-height: 1.35;
}

.yt-meta em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
}

.yt-card:hover {
    color: #fff;
}

.yt-card:hover strong {
    color: var(--accent-hover);
}

.search-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 14px;
    margin: 8px 0 18px;
    scroll-margin-top: calc(var(--header-h) + 8px);
}

.search-panel.home-search {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.search-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-main input[type="search"] {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    padding: 12px 14px;
    min-height: var(--touch);
}

.search-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-top: 8px;
}

.format-filter,
.thumb-sizer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 0 1 auto;
    min-width: 0;
}

.format-filter select {
    appearance: none;
    width: auto;
    min-width: 8.5em;
    min-height: 36px;
    padding: 6px 28px 6px 10px;
    background-color: var(--bg-deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa6bd' d='M1.2 1.3L6 6.1l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.search-tools .btn {
    min-height: 36px;
    padding: 0 12px;
}

.thumb-sizer input[type="range"] {
    width: 120px;
    min-height: 0;
    height: 22px;
    margin: 0;
    accent-color: var(--accent);
}

.advanced {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.advanced summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
}

.advanced summary::-webkit-details-marker {
    display: none;
}

.advanced-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px 0;
}

.field label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input:not([type]),
.field select,
.field textarea,
.rel-search {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    padding: 10px 12px;
    min-height: var(--touch);
}

.field textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.45;
}

.contact-form {
    max-width: 36rem;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 20px 18px 18px;
}

.contact-form abbr {
    color: var(--accent);
    text-decoration: none;
}

.contact-form .is-invalid {
    border-color: var(--accent);
}

.contact-required-note {
    margin: 0 0 14px;
    font-size: 13px;
}

.contact-js-error {
    margin-bottom: 14px;
}

.contact-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-form > .field {
    margin-bottom: 12px;
}

.contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rel {
    position: relative;
}

.rel-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    max-height: 240px;
    overflow: auto;
}

.rel-option {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 10px 12px;
    cursor: pointer;
}

.rel-option:hover,
.rel-option:focus {
    background: var(--navy);
}

.result-count,
.empty {
    color: var(--muted);
    margin: 0 0 14px;
}

.mosaic-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 14px;
}

.mosaic-bar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.mosaic-bar .pager,
.mosaic-bar .result-count {
    margin: 0;
}

.per-page {
    margin-left: auto;
}

.per-page label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.per-page select {
    appearance: none;
    min-width: 4.5em;
    min-height: 36px;
    padding: 6px 28px 6px 10px;
    background-color: var(--bg-deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa6bd' d='M1.2 1.3L6 6.1l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.ph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--thumb)), 1fr));
    gap: 12px;
    align-items: start;
}

.ph-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    min-width: 0;
    color: inherit;
}

.ph-card:hover,
.ph-card:focus-visible {
    border-color: var(--accent);
    color: inherit;
}

.ph-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--ar, 3 / 2);
    background: #050b16;
}

.ph-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ph-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 10px;
    font-size: 13px;
}

.ph-meta em {
    font-style: normal;
    color: var(--muted);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
}

.pager a {
    min-width: var(--touch);
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    padding: 0 10px;
}

.pager a.is-active {
    border-color: var(--accent);
    background: var(--accent);
}

.photo-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.photo-nav-count {
    margin: 0;
    min-width: 4.5em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.photo-layout {
    display: grid;
    gap: 12px 20px;
    align-items: start;
}

.photo-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.photo-download {
    margin-top: auto;
    padding: 22px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 5.5rem;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    min-height: auto;
    cursor: pointer;
}

.password-toggle[aria-pressed="true"] {
    color: var(--text);
    border-color: var(--accent);
}

.password-hints {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
}

.password-hints li {
    color: var(--muted);
    padding-left: 1.2em;
    position: relative;
}

.password-hints li::before {
    content: "–";
    position: absolute;
    left: 0;
}

.password-hints li.is-ok {
    color: var(--ok, #3dd68c);
}

.password-hints li.is-ok::before {
    content: "✓";
}

.password-hints li.is-bad {
    color: var(--accent);
}

.password-hints li.is-bad::before {
    content: "×";
}

.field-check label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.4;
}

.field-check input {
    margin-top: 4px;
}

.account-panel p + p {
    margin-top: 12px;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.contact-form .btn + .muted,
.contact-form .muted {
    margin-top: 14px;
}

.photo-stage {
    position: relative;
    background: #000;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    touch-action: pan-y;
}

.swipe-hint,
.photo-dock {
    display: none;
}

.btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.photo-stage img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(88vh, 88dvh);
    object-fit: contain;
    display: block;
    margin-inline: auto;
}

.photo-side {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
}

.photo-side h1 {
    font-size: 1.28rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin: 0 0 8px;
}

.photo-side h2 {
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.photo-side a:not(.btn) {
    color: var(--accent);
    text-decoration: none;
}

.photo-side a:not(.btn):hover {
    color: var(--accent-hover);
}

.is-photo .crumbs a {
    color: var(--accent);
    text-decoration: none;
}

.usage {
    font-size: 13px;
    margin: 0 0 12px;
}

.rating-box {
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.rating-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: 6px;
}

.rating-box h2 {
    margin: 0;
    font-size: 11px;
}

.rating-box .muted {
    margin: 0;
    font-size: 12px;
}

.star-form {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.star-btn {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid var(--line);
    background: var(--bg-deep);
    cursor: pointer;
    font-size: 13px;
}

.star-btn.is-on,
.star-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.facts {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px 12px;
    margin: 16px 0 0;
}

.facts dt {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.facts dd {
    margin: 0;
}

.facts a {
    color: var(--accent);
    text-decoration: none;
}

.lineup-team {
    margin-bottom: 16px;
}

.lineup-team h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.lineup-car {
    padding: 8px 0 8px 12px;
    border-left: 2px solid var(--accent);
    margin-bottom: 10px;
}

.race-num {
    display: inline-block;
    margin-right: 8px;
    color: var(--accent);
    font-weight: 700;
}

.lineup-car ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.tag-list a {
    display: inline;
    min-height: 0;
    border: 0;
    padding: 0;
}

@media (max-width: 699px) {
    .search-main .btn {
        width: 100%;
    }

    .photo-nav-prev,
    .photo-nav-next,
    .photo-nav .photo-nav-download {
        display: none;
    }

    .photo-nav .btn {
        flex: 1 1 auto;
    }

    .photo-dock {
        display: flex;
        flex-wrap: wrap;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(4, 16, 31, 0.96);
        border-top: 1px solid var(--line);
    }

    .photo-dock .btn {
        flex: 1;
        min-width: 0;
        padding: 0 8px;
    }

    .photo-dock .photo-nav-download {
        flex: 1 1 100%;
        order: -1;
    }

    body.is-photo .site-footer {
        padding-bottom: calc(148px + env(safe-area-inset-bottom));
    }

    .swipe-hint {
        display: block;
        position: absolute;
        bottom: 8px;
        left: 8px;
        right: 8px;
        margin: 0;
        text-align: center;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.72);
        pointer-events: none;
        text-shadow: 0 1px 8px #000;
    }

    .photo-stage img {
        max-height: min(72vh, 72dvh);
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .facts dt {
        margin-top: 8px;
    }

    .star-btn {
        flex: 1 1 calc(16% - 4px);
        min-width: 36px;
    }

    .yt-card {
        grid-template-columns: 1fr;
    }

    .home-links a {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

@media (min-width: 700px) {
    :root {
        --pad: 24px;
        --header-h: 76px;
    }

    .brand img {
        height: 30px;
        max-width: 360px;
    }

    .search-main {
        flex-direction: row;
        align-items: stretch;
    }

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

    .search-main input[type="search"] {
        flex: 1;
    }

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

    .home-cards {
        grid-template-columns: 1fr 1fr;
    }

    .home-columns {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .home-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .advanced-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.is-photo .site-main {
        width: min(1680px, 100%);
    }

    .photo-layout {
        grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
        align-items: start;
        gap: 12px 16px;
    }

    .photo-main {
        position: sticky;
        top: calc(var(--header-h) + 8px);
        z-index: 1;
    }

    .photo-stage {
        align-self: center;
        align-items: center;
        max-width: 100%;
    }

    .photo-stage img {
        max-height: calc(100dvh - var(--header-h) - 168px);
    }
}

@media (min-width: 1100px) {
    .search-panel {
        padding: 18px 20px;
    }
}

.article-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.article-card {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.article-card:not(:has(.article-card-thumb)) {
    grid-template-columns: minmax(0, 1fr);
}

.article-card-thumb {
    display: block;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.article-card-meta em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card-meta strong {
    font-size: 1.15rem;
    line-height: 1.35;
}

.article-card-meta span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.article-card:hover strong {
    color: var(--accent-hover);
}

.article-page {
    max-width: 48rem;
}

.article-player {
    width: 100%;
    margin: 8px 0 22px;
}

.article-meta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.article-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-yt-link {
    margin: 10px 0 0;
    font-size: 14px;
}

.article-yt-link a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-yt-link span {
    margin: 0 6px;
    color: var(--muted);
}

.article-yt-cta {
    margin: 2rem 0 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
}

.article-yt-cta h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.article-yt-cta p {
    margin: 0 0 16px;
    color: var(--muted);
}

.article-yt-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-figs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 24px;
}

.article-figs.is-after-video {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.article-figs.is-hero .is-lead {
    grid-column: 1 / -1;
}

.article-figs img {
    width: 100%;
    height: auto;
    display: block;
    background: #050b16;
}

.article-zoom {
    display: block;
    position: relative;
    cursor: zoom-in;
    color: inherit;
}

.article-zoom:hover,
.article-zoom:focus-visible {
    color: inherit;
}

.article-zoom::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    background:
        linear-gradient(#fff, #fff) 50% 50% / 12px 2px no-repeat,
        linear-gradient(#fff, #fff) 50% 50% / 2px 12px no-repeat,
        rgba(4, 16, 31, 0.55);
    opacity: 0.85;
    pointer-events: none;
}

.article-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 16, 31, 0.92);
    padding: 16px;
}

.article-lightbox[hidden] {
    display: none;
}

.article-lightbox img {
    max-width: min(96vw, 1400px);
    max-height: 90dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
}

.article-lightbox-close,
.article-lightbox-nav {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 32, 64, 0.8);
    border: 1px solid var(--line);
    color: #fff;
    cursor: pointer;
}

.article-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

.article-lightbox-nav {
    top: 50%;
    width: 44px;
    height: 44px;
    font-size: 32px;
    transform: translateY(-50%);
}

.article-lightbox-nav.is-prev { left: 12px; }
.article-lightbox-nav.is-next { right: 12px; }

.article-lightbox-nav[hidden] {
    display: none;
}

.article-lightbox-close:hover,
.article-lightbox-nav:hover {
    border-color: var(--accent);
    color: #fff;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e8edf5;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
    margin: 0 0 1em;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
    margin: 1.5em 0 0.5em;
}

.article-body h1 {
    font-size: 1.55rem;
}

.article-body h2 {
    font-size: 1.35rem;
}

.article-body h3 {
    font-size: 1.15rem;
}

.article-body a {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body u {
    text-decoration: underline;
}

.article-body img {
    margin: 1em 0;
}

.article-body ul,
.article-body ol {
    padding-left: 1.2em;
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 2px 0 2px 16px;
    color: var(--muted);
}

.article-mosaic {
    margin-top: 48px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.article-mosaic-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-mosaic-head h2 {
    margin: 0;
}

.article-mosaic-more {
    margin-top: 18px;
}

@media (max-width: 699px) {
    .article-card {
        grid-template-columns: 1fr;
    }

    .home-article-list .article-card {
        grid-template-columns: 192px minmax(0, 1fr);
    }
}

@media (min-width: 700px) {
    .article-figs.is-hero {
        grid-template-columns: 1fr 1fr;
    }

    .article-player {
        width: 130%;
        max-width: calc(100vw - 2 * var(--pad));
    }
}
