@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

:root {
    color-scheme: dark;
    --bg-0: #080808;
    --surface-0: rgba(22, 22, 23, 0.94);
    --surface-1: rgba(24, 24, 25, 0.98);
    --surface-2: rgba(255, 255, 255, 0.03);
    --border-soft: rgba(255, 255, 255, 0.11);
    --border-warm: rgba(212, 163, 115, 0.34);
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-dim: rgba(255, 255, 255, 0.46);
    --md-primary: #d4a373;
    --md-primary-container: rgba(212, 163, 115, 0.16);
    --md-on-primary-container: #f7dec2;
    --md-surface: #0b0b0b;
    --md-surface-container: #181818;
    --md-surface-container-high: #202020;
    --md-outline: rgba(255, 255, 255, 0.14);
    --md-outline-variant: rgba(212, 163, 115, 0.2);
    --md-elevation-1: 0 1px 2px rgba(0,0,0,0.28), 0 1px 3px rgba(0,0,0,0.18);
    --md-elevation-2: 0 3px 8px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.18);
    --md-elevation-3: 0 8px 18px rgba(0,0,0,0.3), 0 16px 36px rgba(0,0,0,0.22);
    --apple-surface: rgba(23, 23, 24, 0.98);
    --apple-surface-high: rgba(30, 30, 31, 0.98);
    --apple-border: rgba(255, 255, 255, 0.13);
    --apple-shadow: 0 18px 44px rgba(0,0,0,0.34);
    --archive-grid-max: 90rem;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

body.archive-page,
body.archive-detail-page {
    font-family: 'Rubik', sans-serif;
    background: #050505;
    position: relative;
    isolation: isolate;
}

body.archive-page {
    font-family: 'Rubik', sans-serif;
    background: #050505;
}

body.archive-page::before,
body.archive-detail-page::before,
body.archive-page::after,
body.archive-detail-page::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body.archive-page::before,
body.archive-detail-page::before {
    background: #050505;
    opacity: 1;
}

body.archive-page::after,
body.archive-detail-page::after {
    display: none;
}

body.archive-page::before {
    background: #050505;
    opacity: 1;
}

body.archive-page::after {
    display: none;
}

.archive-header {
    position: relative;
    padding-top: 3.35rem;
    padding-bottom: 2.65rem;
}

.archive-header::after {
    content: '';
    display: block;
    width: 4.5rem;
    height: 1px;
    margin: 1.5rem auto 0;
    background: rgba(212,163,115,0.48);
}

.archive-brand {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 0.25rem 1rem 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.archive-brand::after {
    display: none;
}

.archive-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.archive-subline {
    max-width: 40rem;
}

.archive-controls {
    max-width: var(--archive-grid-max);
    margin-left: auto;
    margin-right: auto;
}

.archive-summary {
    color: rgba(255,255,255,0.56);
    font-weight: 500;
}

.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

.hero-title,
.detail-title,
.hero-stat-value,
.detail-score-value {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.hero-panel,
.filter-panel,
.detail-card {
    position: relative;
    overflow: hidden;
    border-color: var(--border-soft);
    background: var(--surface-0);
    box-shadow:
        0 18px 46px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
}

.hero-panel::before,
.detail-card::before,
.review-card::before {
    display: none;
}

.hero-kicker {
    border: 1px solid rgba(212,163,115,0.18);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.74);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-kicker-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: #d4a373;
    box-shadow: 0 0 0 6px rgba(212,163,115,0.14);
}

.site-mark {
    width: 76px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.36));
}

.hero-title {
    line-height: 0.92;
}

.hero-copy {
    color: var(--text-soft);
    line-height: 1.75;
}

.hero-stat-card {
    border: 1px solid rgba(212,163,115,0.16);
    border-radius: 1.4rem;
    background: rgba(12,12,13,0.72);
    padding: 1.1rem 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-stat-label {
    color: rgba(255,255,255,0.42);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.hero-stat-value {
    color: #f2dfcb;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
}

.hero-stat-copy {
    color: rgba(255,255,255,0.56);
    font-size: 0.78rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.filter-shell,
.filter-toolbar {
    position: relative;
    z-index: 1;
}

.filter-toggle,
.search-shell,
.detail-back-link,
.detail-cta,
.detail-neutral-chip {
    border: 1px solid var(--apple-border);
    background: rgba(24,24,25,0.95);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 7px 18px rgba(0,0,0,0.14);
}

.filter-toggle,
.search-shell {
    color: #d4a373;
    font-weight: 600;
}

.filter-toggle:hover,
.search-shell:focus-within,
.detail-back-link:hover,
.detail-cta:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.055),
        0 14px 34px rgba(0,0,0,0.25);
}

.search-shell {
    border-radius: 9999px;
    padding: 0 1.05rem;
}

.search-input {
    font-weight: 400;
    letter-spacing: 0.01em;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.32);
}

.section-hint {
    color: rgba(255,255,255,0.3);
}

body.archive-page .filter-toggle,
body.archive-page .search-shell {
    background: rgba(24,24,25,0.98);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 20px rgba(0,0,0,0.15);
}

body.archive-page .filter-panel {
    border-color: var(--apple-border);
    background: rgba(24,24,25,0.98);
    border-radius: 1.35rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        var(--apple-shadow);
    backdrop-filter: blur(18px);
}

.pill {
    padding: 0.58rem 1.05rem;
    border: 1px solid var(--md-outline);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.66);
    background: rgba(255,255,255,0.045);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
}

.pill:hover {
    border-color: rgba(212,163,115,0.24);
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.044);
}

.pill.active {
    border-color: var(--md-primary);
    color: #140f0b;
    background: var(--md-primary);
    box-shadow: 0 7px 18px rgba(0,0,0,0.18);
}

.sort-grid {
    align-items: stretch;
}

.sort-option {
    border: 1px solid var(--md-outline);
    background: rgba(28,28,29,0.86);
    color: rgba(255,255,255,0.78);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 0 0 1px rgba(255,255,255,0.01);
}

.sort-option:hover {
    border-color: rgba(212,163,115,0.24);
    background: rgba(34,34,35,0.9);
    transform: translateY(-1px);
}

.sort-option-active {
    border-color: rgba(212,163,115,0.44);
    background: rgba(212,163,115,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 8px 22px rgba(0,0,0,0.2);
}

.sort-option-head {
    min-width: 0;
}

.sort-option-icon {
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(212,163,115,0.12);
    color: #e2b78a;
    font-size: 0.92rem;
    flex: 0 0 auto;
}

.sort-option-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f3ede7;
}

.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

@keyframes backdropIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdropOut { from { opacity: 1; } to { opacity: 0; } }

@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.88) translateY(16px); filter: blur(4px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes popOut {
    0%   { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0; transform: scale(0.94) translateY(8px); filter: blur(2px); }
}

@keyframes swipeLeft {
    0%   { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-60px); }
}

@keyframes swipeRight {
    0%   { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(60px); }
}

@keyframes swipeInLeft {
    0%   { opacity: 0; transform: translateX(60px) scale(0.96); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes swipeInRight {
    0%   { opacity: 0; transform: translateX(-60px) scale(0.96); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes filterSlideDown {
    0%   { opacity: 0; transform: translateY(-22px) scaleY(0.92); filter: blur(3px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

@keyframes filterSlideUp {
    0%   { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
    100% { opacity: 0; transform: translateY(-16px) scaleY(0.94); filter: blur(2px); }
}

@keyframes cardIn {
    0%   { opacity: 0; transform: translateY(50px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-backdrop {
    display: none;
    pointer-events: none;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(18px) saturate(0.9);
}

.modal-backdrop.modal-open {
    display: flex;
    pointer-events: auto;
    animation: backdropIn 0.22s ease forwards;
}

.modal-backdrop.modal-closing {
    display: flex;
    pointer-events: auto;
    animation: backdropOut 0.25s ease forwards;
}

.modal-box {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
    border-color: rgba(212,163,115,0.3);
    background: rgba(23,23,24,0.99);
    box-shadow:
        0 34px 86px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.035),
        inset 0 1px 0 rgba(255,255,255,0.075);
    backdrop-filter: blur(28px) saturate(1.02);
}

.modal-box::before {
    display: none;
}

.modal-box > * {
    position: relative;
    z-index: 1;
}

.modal-open .modal-box { animation: popIn 0.35s cubic-bezier(0.22,1,0.36,1) forwards; }
.modal-closing .modal-box { animation: popOut 0.2s ease forwards; }

.modal-panels {
    background: rgba(23,23,24,0.99);
}

#modalImgWrap {
    border-right: 1px solid rgba(255,255,255,0.1);
    background: #090909;
}

.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 30;
    color: rgba(255,255,255,0.58);
    background: rgba(24,24,25,0.62);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.modal-close-btn:hover {
    color: #fff;
    background: rgba(34,34,35,0.82);
    border-color: rgba(255,255,255,0.2);
}

.card {
    contain: layout style;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.card.card-will-animate { opacity: 1; }
.card.card-visible {
    animation: cardIn 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-fill-mode: forwards;
}
.card.card-shown {
    opacity: 1;
    animation: none;
}

.archive-grid {
    position: relative;
}

.review-card {
    position: relative;
    background: rgba(24,24,25,0.97);
    border-color: rgba(255,255,255,0.125);
    box-shadow:
        0 16px 36px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transform: translateY(0);
}

.review-card::after {
    display: none;
}

.review-card:hover {
    border-color: rgba(212,163,115,0.26);
    transform: translateY(-3px);
    box-shadow:
        0 22px 48px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.review-card:hover::after { opacity: 1; }

body.archive-page .card {
    background: rgba(24,24,25,0.98);
    border-color: rgba(255,255,255,0.13);
    border-radius: 1.35rem;
    box-shadow:
        0 14px 30px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.035);
    backdrop-filter: blur(16px);
}

body.archive-page .card:hover {
    transform: translateY(-3px);
    border-color: rgba(212,163,115,0.28);
    box-shadow:
        0 22px 46px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

body.archive-page .card-img {
    background: #141415;
    border-bottom: 1px solid rgba(255,255,255,0.105);
}

body.archive-page .card-comment {
    color: rgba(255,255,255,0.5);
}

.card-community {
    border-top: 1px solid rgba(255,255,255,0.085);
    color: rgba(255,255,255,0.48);
    min-height: 2.1rem;
}

.card-community-score {
    border: 1px solid rgba(212,163,115,0.24);
    border-radius: 9999px;
    padding: 0.28rem 0.5rem;
    background: rgba(212,163,115,0.1);
    color: var(--md-on-primary-container);
}

.card-img {
    background: #141415;
}

.card-img img {
    transition: transform 0.7s ease;
}

.card:hover .card-img img {
    transform: scale(1.04);
}

.card-copy {
    position: relative;
    z-index: 1;
}

body.archive-page .card h2,
.modal-heading-row h2,
.modal-mobile-image-caption h2 {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.card-chip {
    background: rgba(190,24,93,0.92);
    box-shadow: 0 10px 22px rgba(190,24,93,0.22);
}

.card-comment {
    color: rgba(255,255,255,0.54);
}

.star-row { position: relative; }

.star-text {
    display: inline-block;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.card:hover .star-text {
    transform: scale(1.08);
    letter-spacing: 0.04em;
}

.star-line {
    opacity: 0.9;
    transition:
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.58s ease,
        background-color 0.58s ease;
    will-change: transform, opacity;
}

.star-line:first-child { transform-origin: left center; }
.star-line:last-child  { transform-origin: right center; }
.card:hover .star-line {
    opacity: 0.7;
    transform: scaleX(0.82);
}

.filter-panel {
    display: none;
    flex-direction: column;
    transform-origin: top center;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(24,24,25,0.92);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 18px 40px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
}

.filter-panel.filter-open {
    display: flex;
    animation: filterSlideDown 0.38s cubic-bezier(0.22,1,0.36,1) forwards;
}

.filter-panel.filter-closing {
    display: flex;
    animation: filterSlideUp 0.24s cubic-bezier(0.4,0,1,1) forwards;
}

.brand-hidden { display: none; }

.grid,
.grid-shifting {
    transition: margin-top 0.3s cubic-bezier(0.22,1,0.36,1);
}

.vote-star {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    background: rgba(255,255,255,0.022);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.25s ease;
}

.vote-star-icon {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.vote-star::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(212,163,115,0.18);
    transform: scale(0.35);
    opacity: 0;
    pointer-events: none;
}

.vote-star::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(212,163,115,0);
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255,230,178,0);
    opacity: 0;
    pointer-events: none;
}

.vote-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.48rem;
    height: 0.48rem;
    margin: -0.24rem 0 0 -0.24rem;
    border-radius: 9999px;
    opacity: 0;
    pointer-events: none;
    background: rgba(255,224,158,0.95);
    box-shadow: 0 0 20px rgba(255,214,136,0.82);
    z-index: 1;
}

.vote-spark-1 { --spark-x: -2.6rem; --spark-y: -1.7rem; --spark-delay: 0ms; }
.vote-spark-2 { --spark-x: -1.2rem; --spark-y: -2.35rem; --spark-delay: 35ms; }
.vote-spark-3 { --spark-x: 0.15rem; --spark-y: -2.65rem; --spark-delay: 70ms; }
.vote-spark-4 { --spark-x: 1.65rem; --spark-y: -1.9rem; --spark-delay: 110ms; }
.vote-spark-5 { --spark-x: 2.45rem; --spark-y: -0.7rem; --spark-delay: 150ms; }

@keyframes voteRipple {
    0%   { transform: scale(0.35); opacity: 0; }
    22%  { opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes voteBounce {
    0%   { transform: scale(1); }
    24%  { transform: scale(1.1) translateY(-2px); }
    58%  { transform: scale(0.96) translateY(1px); }
    82%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes voteIconShine {
    0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,222,160,0)); }
    24%  { transform: scale(1.12); filter: drop-shadow(0 0 18px rgba(255,222,160,1)); }
    68%  { transform: scale(1.04); filter: drop-shadow(0 0 12px rgba(255,222,160,0.76)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,222,160,0)); }
}

@keyframes voteGlow {
    0% {
        opacity: 0;
        border-color: rgba(212,163,115,0.18);
        box-shadow: inset 0 0 0 1px rgba(255,230,178,0);
        filter: drop-shadow(0 0 0 rgba(255,222,160,0));
    }
    18% {
        opacity: 1;
        border-color: rgba(212,163,115,0.34);
        box-shadow: inset 0 0 0 1px rgba(255,230,178,0.46);
        filter: drop-shadow(0 0 12px rgba(255,222,160,0.86));
    }
    58% {
        opacity: 1;
        border-color: rgba(212,163,115,0.5);
        box-shadow: inset 0 0 0 1px rgba(255,230,178,0.34);
        filter: drop-shadow(0 0 18px rgba(255,222,160,0.78));
    }
    100% {
        opacity: 0;
        border-color: rgba(212,163,115,0);
        box-shadow: inset 0 0 0 1px rgba(255,230,178,0);
        filter: drop-shadow(0 0 0 rgba(255,222,160,0));
    }
}

@keyframes voteSparkle {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.2); }
    18%  { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(1.45); }
}

.vote-star.star-pop::before {
    animation: voteRipple 0.92s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vote-star.star-pop::after {
    animation: voteGlow 1.28s ease-out forwards;
}

.vote-star.star-pop .vote-star-icon {
    animation:
        voteBounce 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        voteIconShine 1.18s ease-out forwards;
}

.vote-star.star-pop .vote-spark {
    animation: voteSparkle 1.16s cubic-bezier(0.18, 0.9, 0.32, 1) forwards;
    animation-delay: var(--spark-delay);
}

.vote-star.star-selected {
    border-color: rgba(212,163,115,0.62);
    background: rgba(212,163,115,0.08);
    color: #d4a373;
    box-shadow: inset 0 0 0 1px rgba(212,163,115,0.12), 0 0 18px rgba(212,163,115,0.06);
}

.vote-star.star-hover:not(.star-selected) {
    border-color: rgba(212,163,115,0.32);
    color: rgba(212,163,115,0.56);
    background: rgba(212,163,115,0.04);
}

.modal-tab {
    color: rgba(255,255,255,0.5);
    border-color: transparent;
    min-width: 6.75rem;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.modal-tab:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.055);
}

.modal-tab.tab-active {
    color: rgba(255,255,255,0.94);
    background: rgba(255,255,255,0.082);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 1px 2px rgba(0,0,0,0.2);
}

.modal-tab-group {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 6px 16px rgba(0,0,0,0.12);
    width: fit-content;
}

.modal-tabs-bar {
    background: transparent;
    border: 0 !important;
    padding-top: 1.15rem;
    padding-bottom: 0.25rem;
}

.modal-review-pane,
.modal-community-pane {
    background: transparent;
}

.modal-heading-row {
    border-bottom: 1px solid rgba(255,255,255,0.075);
    padding-bottom: 1.2rem;
}

.modal-review-card,
.modal-community-card,
.modal-panel-card {
    border: 1px solid rgba(255,255,255,0.105);
    background: rgba(30,30,31,0.82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 14px 34px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
}

.modal-review-card {
    border-color: rgba(255,255,255,0.095);
}

.modal-community-card {
    border-color: transparent;
    background: rgba(255,255,255,0.035);
    box-shadow: none;
    backdrop-filter: none;
}

.community-score-row {
    border-bottom: 0;
}

.community-average-pill {
    min-width: 6.4rem;
    justify-content: center;
    padding: 0.55rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#voteSection {
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.065);
}

.comment-section {
    border-top: 1px solid rgba(255,255,255,0.065);
}

.comment-empty {
    border: 1px dashed rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.16);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
}

.comment-item {
    border: 1px solid rgba(255,255,255,0.085);
    background: rgba(0,0,0,0.18);
}

.comment-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment-input {
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.105);
    background: rgba(0,0,0,0.2);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.comment-input::placeholder {
    color: rgba(255,255,255,0.28);
}

.comment-input:focus {
    border-color: rgba(212,163,115,0.42);
    background: rgba(0,0,0,0.28);
    box-shadow: 0 0 0 3px rgba(212,163,115,0.08);
}

.comment-submit {
    color: #141414;
    background: #d4a373;
}

.comment-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.comment-submit:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.comment-error {
    color: rgba(248,113,113,0.9) !important;
}

.comment-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: drop-shadow(0 18px 36px rgba(0,0,0,0.3));
    opacity: 1;
    transition: opacity 0.12s ease;
}

.modal-product-image.modal-image-loading {
    opacity: 0;
}

.modal-mobile-image-fade {
    background: linear-gradient(to top, rgba(5,5,5,0.62) 0%, rgba(5,5,5,0.26) 38%, rgba(5,5,5,0) 72%);
}

.modal-mobile-image-caption {
    background: transparent;
    backdrop-filter: none;
}

.modal-share-btn {
    right: 1rem;
    bottom: 1rem;
    z-index: 12;
}

.modal-rating-band {
    min-height: 2.4rem;
}

.modal-stars-inline {
    color: #d4a373;
    font-size: 1.18rem;
    letter-spacing: 0.18em;
    text-shadow: 0 0 18px rgba(212,163,115,0.14);
}

.modal-star-filled {
    color: #d4a373;
}

.modal-star-empty {
    color: rgba(255,255,255,0.18);
    text-shadow: none;
}

.modal-share-btn {
    color: rgba(255,255,255,0.76);
    font-weight: 600;
    border-color: rgba(255,255,255,0.12);
    background: rgba(22,22,23,0.82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 8px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(16px);
}

.modal-share-btn:hover {
    color: #fff;
    border-color: rgba(212,163,115,0.32);
    background: rgba(28,28,29,0.9);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 10px 24px rgba(0,0,0,0.24);
}

#modalComment {
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
}

#communityAverage {
    min-width: 2.6ch;
}

#communityCountLabel,
#votePrompt {
    display: block;
}

#communityCountLabel {
    min-height: 1rem;
}

#votePrompt {
    min-height: 0.85rem;
}

#voteSection {
    min-height: 7.6rem;
}

.vote-header {
    min-height: 0.85rem;
}

.detail-card {
    border-color: rgba(255,255,255,0.08);
}

.detail-back-link,
.detail-cta {
    color: rgba(255,255,255,0.76);
}

.detail-media {
    background: rgba(10,10,10,0.58);
}

.detail-image {
    filter: drop-shadow(0 26px 46px rgba(0,0,0,0.34));
}

.detail-copy {
    position: relative;
    background: transparent;
}

.detail-score {
    border: 1px solid rgba(212,163,115,0.22);
    border-radius: 1.3rem;
    padding: 0.9rem 1.1rem;
    background: rgba(212,163,115,0.08);
}

.detail-score-value {
    color: #f2dfcb;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    line-height: 0.92;
}

.detail-stars {
    text-shadow: 0 0 22px rgba(212,163,115,0.15);
}

.detail-quote {
    color: rgba(255,255,255,0.76);
    max-width: 34rem;
}

.detail-link {
    text-decoration: none;
}

.detail-neutral-chip {
    color: #f1d8bc;
}

.footer-clean {
    position: relative;
}

.footer-clean::before {
    display: none;
}

@media (min-width: 640px) {
    .card-img {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 3/4 !important;
    }

    .archive-grid {
        max-width: var(--archive-grid-max);
        margin-left: auto;
        margin-right: auto;
    }

    .archive-summary {
        max-width: var(--archive-grid-max);
        margin-left: auto;
        margin-right: auto;
    }

    .card-copy {
        min-height: 15.25rem;
    }

    #modalBox {
        width: min(840px, calc(100vw - 2rem)) !important;
        height: min(680px, calc(100svh - 2rem)) !important;
        max-height: min(92svh, 860px) !important;
        align-items: stretch;
    }

    #modalImgWrap {
        width: 48% !important;
        min-width: 0;
        align-self: stretch;
        aspect-ratio: auto !important;
    }
}

@media (max-width: 640px) {
    .archive-header {
        padding-top: 2.25rem;
        padding-bottom: 1.75rem;
    }

    .archive-summary {
        margin-left: auto;
        margin-right: auto;
    }

    #modalBox {
        display: flex;
        flex-direction: column;
        height: 96svh !important;
        max-height: 96svh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .modal-close-btn {
        position: sticky !important;
        top: calc(env(safe-area-inset-top) + 0.75rem) !important;
        right: auto !important;
        align-self: flex-end;
        margin: 0 0.75rem -2.5rem 0;
        transform: translateY(0.75rem);
        z-index: 40 !important;
        color: rgba(255,255,255,0.88);
        background: rgba(10,10,10,0.62);
        flex: 0 0 auto;
    }

    #modalImgWrap {
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        height: min(calc(100vw * 4 / 3), 70svh) !important;
        max-height: none !important;
        min-height: 0;
        background-color: #000;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    #modalImg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        padding: 0;
        filter: drop-shadow(0 22px 42px rgba(0,0,0,0.38));
    }

    #modalBackdrop {
        align-items: flex-end;
    }

    #modalBox > .flex-1 {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
        background: rgba(15,15,15,0.98);
    }

    .modal-mobile-image-caption {
        padding-right: 7.4rem;
        padding-top: 2rem;
    }

    .modal-tabs-bar {
        flex: 0 0 auto;
        flex-wrap: wrap;
        align-items: center;
    }

    .modal-share-btn {
        color: #f1d8bc;
        border-color: rgba(212,163,115,0.42);
        background: rgba(15,15,15,0.82);
        backdrop-filter: blur(12px);
        box-shadow:
            inset 0 1px 0 rgba(255,245,232,0.12),
            0 12px 28px rgba(0,0,0,0.28);
    }

    .modal-review-pane,
    .modal-community-pane {
        min-height: 15rem;
        overflow: visible;
    }

    .modal-tab-group {
        width: 100%;
    }

    .modal-tab {
        min-width: 0;
    }

    .vote-header {
        min-height: 4.3rem;
    }

    .card-star-text {
        letter-spacing: 0.08em;
    }
}

@media (min-width: 641px) and (max-width: 899px) {
    #modalCenterWrap {
        align-items: center;
        padding: 0.75rem;
    }

    #modalBox {
        display: flex;
        flex-direction: column !important;
        width: min(560px, calc(100vw - 2rem)) !important;
        height: 96svh !important;
        max-height: 96svh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    #modalImgWrap {
        width: 100% !important;
        flex: 0 0 auto;
        height: min(calc((100vw - 2rem) * 4 / 3), 720px) !important;
        min-height: 0;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        aspect-ratio: 3 / 4 !important;
    }

    #modalImg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        padding: 0;
    }

    .modal-panels {
        width: 100%;
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    #modalImgWrap .modal-mobile-image-fade,
    #modalImgWrap .modal-mobile-image-caption {
        display: block !important;
    }

    .modal-mobile-image-caption {
        padding-right: 7.4rem;
        padding-top: 2.25rem;
        background: linear-gradient(to top, rgba(5,5,5,0.74) 0%, rgba(5,5,5,0.42) 58%, rgba(5,5,5,0) 100%);
    }

    .modal-mobile-image-caption h2 {
        font-size: 1.55rem;
        line-height: 1.12;
    }

    .modal-desktop-heading,
    .modal-share-mobile {
        display: none !important;
    }

    .modal-tabs-bar {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.55rem;
        padding: 0.75rem 1.25rem 0.6rem;
    }

    .modal-tab-group {
        width: fit-content;
        flex: 0 0 auto;
        min-width: 0;
    }

    .modal-tab {
        min-width: 0;
        flex: 0 0 auto;
        padding: 0.55rem 0.85rem;
    }

    .modal-share-desktop {
        display: inline-flex !important;
        flex: 0 0 auto;
    }

    .modal-close-btn {
        position: sticky !important;
        top: calc(env(safe-area-inset-top) + 1rem) !important;
        right: auto !important;
        align-self: flex-end;
        margin: 0 1rem -2.5rem 0;
        transform: translateY(1rem);
        z-index: 40 !important;
        flex: 0 0 auto;
    }
}

@media (min-width: 900px) {
    #modalBox {
        width: min(1080px, calc(100vw - 2rem)) !important;
        height: min(760px, calc(100svh - 2rem)) !important;
        max-height: min(94svh, 860px) !important;
        align-items: stretch;
    }

    #modalImgWrap {
        width: 43% !important;
        min-width: 390px;
        align-self: stretch;
        aspect-ratio: auto !important;
    }

    .modal-panels {
        overflow-y: auto;
    }

    .modal-review-pane,
    .modal-community-pane {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .modal-review-card,
    .modal-community-card {
        border-radius: 1.35rem;
    }
}

@media (min-width: 960px) {
    .filter-panel.filter-open,
    .filter-panel.filter-closing {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }
}
