/* ============================================================
   BAD MOVIE BIN — Video Store Theme
   Late-80s video rental store aesthetic
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --color-bg:          #0a0a14;
    --color-surface:     #12121f;
    --color-surface-alt: #181828;
    --color-border:      #1e1e3c;
    --color-border-bright: #2a2a4a;
    --color-gold:        #f5c518;
    --color-gold-dim:    #c9a210;
    --color-red:         #e63946;
    --color-red-dim:     #b02830;
    --color-cyan:        #00d4ff;
    --color-cyan-dim:    #009bb8;
    --color-text:        #e8e8e8;
    --color-muted:       #6b7280;
    --color-muted-light: #9ca3af;

    --font-display: 'VT323', monospace;
    --font-body:    'IBM Plex Mono', monospace;

    --card-aspect: 2 / 3;
    --glow-gold:   0 0 8px rgba(245, 197, 24, 0.6), 0 0 20px rgba(245, 197, 24, 0.25);
    --glow-red:    0 0 8px rgba(230, 57, 70, 0.7),  0 0 20px rgba(230, 57, 70, 0.3);
    --glow-cyan:   0 0 8px rgba(0, 212, 255, 0.7),  0 0 20px rgba(0, 212, 255, 0.3);
}

/* ── Base Reset & Defaults ──────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

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

/* ── Scrollbar Styling ──────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-bright);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dim);
}

/* ── Neon Title Flicker Animation ───────────────────────────── */
@keyframes neon-flicker {
    0%,  19%,  21%,  23%,  25%,  54%,  56%,  100% {
        text-shadow:
            0 0 4px  rgba(245, 197, 24, 0.9),
            0 0 10px rgba(245, 197, 24, 0.7),
            0 0 25px rgba(245, 197, 24, 0.5),
            0 0 50px rgba(245, 197, 24, 0.3);
        opacity: 1;
    }
    20%,  24%,  55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

@keyframes neon-flicker-red {
    0%,  19%,  21%,  23%,  25%,  54%,  56%,  100% {
        text-shadow:
            0 0 4px  rgba(230, 57, 70, 0.9),
            0 0 10px rgba(230, 57, 70, 0.7),
            0 0 25px rgba(230, 57, 70, 0.5),
            0 0 50px rgba(230, 57, 70, 0.3);
        opacity: 1;
    }
    20%,  24%,  55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

@keyframes neon-pulse-cyan {
    0%, 100% {
        text-shadow:
            0 0 4px  rgba(0, 212, 255, 0.9),
            0 0 12px rgba(0, 212, 255, 0.6),
            0 0 28px rgba(0, 212, 255, 0.35);
    }
    50% {
        text-shadow:
            0 0 2px  rgba(0, 212, 255, 0.7),
            0 0 8px  rgba(0, 212, 255, 0.4),
            0 0 18px rgba(0, 212, 255, 0.2);
    }
}

@keyframes scanlines-scroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes static-noise {
    0%   { opacity: 0.03; }
    50%  { opacity: 0.06; }
    100% { opacity: 0.03; }
}

/* ── Site Title Neon ─────────────────────────────────────────── */
.site-title {
    font-family: var(--font-display);
    color: var(--color-gold);
    animation: neon-flicker 6s infinite;
    letter-spacing: 0.05em;
}

.site-title span.accent {
    color: var(--color-red);
    animation: neon-flicker-red 7s 0.3s infinite;
}

/* ── Section Dividers / Shelf Bands ──────────────────────────── */
.shelf-band {
    position: relative;
    background: var(--color-surface);
    border-top: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    padding: 0.35rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.shelf-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 6px,
        rgba(245, 197, 24, 0.04) 6px,
        rgba(245, 197, 24, 0.04) 7px
    );
    pointer-events: none;
}

.shelf-band-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: var(--glow-gold);
}

.shelf-band-title.danger {
    color: var(--color-red);
    text-shadow: var(--glow-red);
}

.shelf-band-title.cool {
    color: var(--color-cyan);
    text-shadow: var(--glow-cyan);
    animation: neon-pulse-cyan 3s ease-in-out infinite;
}

/* ── Scan-line Header Overlay ────────────────────────────────── */
.scanline-header {
    position: relative;
    overflow: hidden;
}

.scanline-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.25) 3px,
        rgba(0, 0, 0, 0.25) 4px
    );
    pointer-events: none;
    animation: scanlines-scroll 8s linear infinite;
}

/* ── VHS Card ────────────────────────────────────────────────── */
.vhs-card {
    position: relative;
    aspect-ratio: var(--card-aspect);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition:
        transform      0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color   0.22s ease,
        box-shadow     0.22s ease;
    text-decoration: none;
    color: inherit;
}

.vhs-card:hover {
    transform: scale(1.04) translateY(-4px);
    border-color: var(--color-gold);
    box-shadow: var(--glow-gold), 0 12px 32px rgba(0, 0, 0, 0.6);
}

.vhs-card:hover .vhs-card__spine {
    opacity: 1;
}

/* Card cover (image fill) */
.vhs-card__cover {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--color-surface-alt);
}

.vhs-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.vhs-card:hover .vhs-card__cover img {
    transform: scale(1.06);
}

/* No-image placeholder — spine label style */
.vhs-card__placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: linear-gradient(170deg, #1a1a2e 0%, #0f0f1a 60%, #0a0a14 100%);
    position: relative;
    overflow: hidden;
}

.vhs-card__placeholder::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid var(--color-border-bright);
    opacity: 0.5;
}

.vhs-card__placeholder-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--color-gold);
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    word-break: break-word;
    z-index: 1;
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.5);
}

.vhs-card__placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Card bottom strip */
.vhs-card__strip {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--color-border);
    padding: 0.45rem 0.6rem 0.4rem;
    flex-shrink: 0;
}

.vhs-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.1;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.vhs-card__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Format badge */
.format-badge {
    font-family: var(--font-display);
    font-size: 0.8rem;
    padding: 0 0.35rem;
    border-radius: 2px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.format-badge--vhs      { background: #1a2a4a; color: var(--color-cyan);   border: 1px solid var(--color-cyan-dim); }
.format-badge--betamax  { background: #2a1a1a; color: #ff9a3c;              border: 1px solid #c06020; }
.format-badge--laserdisc{ background: #1a2a1a; color: #7aff7a;              border: 1px solid #3a6a3a; }
.format-badge--dvd      { background: #2a2a1a; color: var(--color-gold);    border: 1px solid var(--color-gold-dim); }
.format-badge--bluray   { background: #0d1a2a; color: #60b0ff;              border: 1px solid #2040aa; }
.format-badge--4k       { background: #1a0a2a; color: #d080ff;              border: 1px solid #6020a0; }
.format-badge--digital  { background: #1a1a1a; color: #c0c0c0;              border: 1px solid #505050; }
.format-badge--unknown  { background: #1a1a1a; color: var(--color-muted);   border: 1px solid #333; }

/* Genre stickers */
.genre-tag {
    font-family: var(--font-display);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    border-radius: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(230, 57, 70, 0.2);
    color: var(--color-red);
    border: 1px solid rgba(230, 57, 70, 0.4);
    white-space: nowrap;
}

.genre-tag:nth-child(2n)   { background: rgba(0, 212, 255, 0.15); color: var(--color-cyan); border-color: rgba(0, 212, 255, 0.3); }
.genre-tag:nth-child(3n)   { background: rgba(245, 197, 24, 0.15); color: var(--color-gold); border-color: rgba(245, 197, 24, 0.3); }

/* Spine label (visible on hover) */
.vhs-card__spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 100%;
    background: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 10;
}

.vhs-card__spine-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-bg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 80%;
}

/* Sold stamp */
.sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border: 3px solid var(--color-red);
    color: var(--color-red);
    font-family: var(--font-display);
    font-size: 2.5rem;
    padding: 0.25rem 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
    pointer-events: none;
    text-shadow: var(--glow-red);
    box-shadow: var(--glow-red);
    z-index: 20;
    background: rgba(0, 0, 0, 0.4);
}

/* ── Shelf Label ─────────────────────────────────────────────── */
.shelf-label {
    display: inline-block;
    background: var(--color-surface);
    border: 1px solid var(--color-border-bright);
    border-top: 3px solid var(--color-gold);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    line-height: 1;
}

.shelf-label.danger {
    border-top-color: var(--color-red);
    color: var(--color-red);
}

.shelf-label.cool {
    border-top-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* ── Rating Stars ────────────────────────────────────────────── */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.rating-star {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1;
}

.rating-star.filled {
    color: var(--color-gold);
    text-shadow: 0 0 6px rgba(245, 197, 24, 0.7);
}

.rating-star.half {
    color: var(--color-gold-dim);
    opacity: 0.6;
}

/* ── Horizontal Scroll Shelf ─────────────────────────────────── */
.vhs-shelf {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.vhs-shelf::-webkit-scrollbar {
    height: 4px;
}

.vhs-shelf::-webkit-scrollbar-track {
    background: var(--color-surface);
}

.vhs-shelf::-webkit-scrollbar-thumb {
    background: var(--color-gold-dim);
    border-radius: 2px;
}

.vhs-shelf > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 140px;
}

@media (min-width: 640px) {
    .vhs-shelf > * { width: 155px; }
}

@media (min-width: 1024px) {
    .vhs-shelf > * { width: 170px; }
}

/* ── Entry Row (list view) ───────────────────────────────────── */
.entry-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.entry-row:hover {
    background: rgba(245, 197, 24, 0.03);
}

.entry-row:hover .entry-row__title {
    color: var(--color-gold);
}

@media (min-width: 640px) {
    .entry-row {
        grid-template-columns: 80px 1fr;
    }
}

.entry-row__thumb {
    aspect-ratio: 2 / 3;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    overflow: hidden;
    flex-shrink: 0;
}

.entry-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-row__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.2;
    transition: color 0.15s ease;
    margin-bottom: 0.2rem;
}

.entry-row__meta {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.entry-row__excerpt {
    font-size: 0.83rem;
    color: var(--color-muted-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Detail Table (movie review) ─────────────────────────────── */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.detail-table th {
    text-align: left;
    padding: 0.5rem 1rem 0.5rem 0;
    color: var(--color-muted);
    font-weight: 500;
    white-space: nowrap;
    width: 1%;
    vertical-align: top;
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-table td {
    padding: 0.5rem 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.detail-table tr:first-child td {
    border-top: 1px solid var(--color-border);
}

/* ── Prose Content ───────────────────────────────────────────── */
.prose {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-text);
    max-width: 72ch;
}

.prose p { margin-bottom: 1.25em; }

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--color-gold);
    letter-spacing: 0.06em;
    margin: 1.75em 0 0.6em;
    text-transform: uppercase;
}

.prose h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--color-cyan);
    letter-spacing: 0.04em;
    margin: 1.5em 0 0.5em;
    text-transform: uppercase;
}

.prose h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold-dim);
    margin: 1.25em 0 0.4em;
}

.prose a { color: var(--color-gold); border-bottom: 1px solid rgba(245, 197, 24, 0.3); }
.prose a:hover { color: var(--color-cyan); border-bottom-color: rgba(0, 212, 255, 0.4); }

.prose strong { color: var(--color-gold); font-weight: 500; }

.prose em { color: var(--color-cyan); font-style: italic; }

.prose blockquote {
    border-left: 3px solid var(--color-gold);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.5em 0;
    color: var(--color-muted-light);
    font-style: italic;
}

.prose code {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.1em 0.4em;
    border-radius: 2px;
    font-size: 0.875em;
    color: var(--color-cyan);
}

.prose pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 3px;
    margin: 1.5em 0;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
}

.prose ul, .prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25em;
}

.prose li { margin-bottom: 0.4em; }

.prose hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

.prose img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    margin: 1.5em 0;
}

/* ── Featured Image ──────────────────────────────────────────── */
.featured-image-wrap {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-bottom: 2px solid var(--color-border);
}

.featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.featured-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
}

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0;
    height: 52px;
}

.site-nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 2rem;
    flex-shrink: 0;
    text-decoration: none;
    animation: neon-flicker 6s infinite;
    text-shadow:
        0 0 4px  rgba(245, 197, 24, 0.9),
        0 0 12px rgba(245, 197, 24, 0.5);
}

.site-nav__logo:hover {
    color: var(--color-gold);
    animation: none;
    text-shadow: var(--glow-gold);
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.site-nav__search {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.site-nav__search-btn {
    background: none;
    border: 1px solid var(--color-border-bright);
    color: var(--color-muted);
    padding: 0.3rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-nav__search-btn:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* ── Hero / Page Header ──────────────────────────────────────── */
.page-hero {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.15) 3px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: var(--glow-gold);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--color-border-bright);
    color: var(--color-muted-light);
    background: var(--color-surface);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pagination__btn:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(245, 197, 24, 0.06);
}

.pagination__btn.disabled,
.pagination__btn[aria-disabled="true"] {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination__info {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-muted);
    letter-spacing: 0.05em;
    padding: 0 0.5rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-surface);
    border-top: 2px solid var(--color-border);
    margin-top: 4rem;
    padding: 2.5rem 1.5rem;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.site-footer__tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

.site-footer__rewind {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-red);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: neon-flicker-red 8s 1s infinite;
    text-shadow: var(--glow-red);
}

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

.site-footer__nav li {
    margin-bottom: 0.35rem;
}

.site-footer__nav a {
    font-size: 0.83rem;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s;
}

.site-footer__nav a:hover {
    color: var(--color-gold);
}

.site-footer__copy {
    font-size: 0.75rem;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    text-transform: uppercase;
}

/* ── Listing / For Sale Cards ────────────────────────────────── */
.listing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
    border-color: var(--color-gold-dim);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.listing-card.sold {
    opacity: 0.55;
}

.listing-card.sold::after {
    content: 'SOLD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-red);
    border: 3px solid var(--color-red);
    padding: 0.2rem 1rem;
    text-shadow: var(--glow-red);
    box-shadow: var(--glow-red);
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

.price-tag {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-gold);
    text-shadow: var(--glow-gold);
    letter-spacing: 0.05em;
}

.condition-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 2px;
    font-family: var(--font-body);
}

.condition-badge--sealed    { background: rgba(122, 255, 122, 0.15); color: #7aff7a; border: 1px solid rgba(122, 255, 122, 0.3); }
.condition-badge--excellent { background: rgba(245, 197, 24, 0.15);  color: var(--color-gold); border: 1px solid rgba(245, 197, 24, 0.3); }
.condition-badge--good      { background: rgba(0, 212, 255, 0.12);  color: var(--color-cyan); border: 1px solid rgba(0, 212, 255, 0.25); }
.condition-badge--fair      { background: rgba(255, 154, 60, 0.15); color: #ff9a3c; border: 1px solid rgba(255, 154, 60, 0.3); }
.condition-badge--poor      { background: rgba(230, 57, 70, 0.15);  color: var(--color-red); border: 1px solid rgba(230, 57, 70, 0.3); }

/* ── Search UI ───────────────────────────────────────────────── */
.search-input-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-bright);
    border-radius: 0;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    outline: none;
    transition: border-color 0.15s;
}

.search-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.15);
}

.search-input::placeholder {
    color: var(--color-muted);
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
    font-size: 1rem;
}

/* ── Genre Grid ──────────────────────────────────────────────── */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
}

.genre-grid-item {
    background: var(--color-surface);
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.genre-grid-item:hover {
    background: rgba(245, 197, 24, 0.07);
}

.genre-grid-item__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold);
    line-height: 1.1;
}

.genre-grid-item__count {
    font-size: 0.75rem;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Media Embed ─────────────────────────────────────────────── */
.media-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--color-border);
    margin: 1.5rem 0;
}

.media-embed-wrap iframe,
.media-embed-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-gold   { color: var(--color-gold); }
.text-red    { color: var(--color-red); }
.text-cyan   { color: var(--color-cyan); }
.text-muted  { color: var(--color-muted); }

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.glow-gold { text-shadow: var(--glow-gold); }
.glow-red  { text-shadow: var(--glow-red);  }
.glow-cyan { text-shadow: var(--glow-cyan); }

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

/* ── Filter Controls ─────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0;
}

.filter-btn {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-bright);
    color: var(--color-muted-light);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(245, 197, 24, 0.07);
}

/* ── Mobile adjustments ──────────────────────────────────────── */
@media (max-width: 640px) {
    .site-nav__links {
        gap: 0;
    }

    .site-nav__link {
        padding: 0 0.6rem;
        font-size: 0.72rem;
    }

    .page-hero {
        padding: 1.25rem 1rem;
    }

    .vhs-shelf > * {
        width: 130px;
    }
}
