:root {
  color-scheme: dark;
  --bg: #101010;
  --bg-soft: #161616;
  --surface: rgba(32, 32, 32, 0.92);
  --surface-strong: rgba(42, 42, 42, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.34);
  --accent: #ff6000;
  --accent-hot: #ff3d0a;
  --accent-soft: rgba(255, 96, 0, 0.15);
  --cream: #fff3d6;
  --green: #34d399;
  --blue: #75b8ff;
  --danger: #ff6b6b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, #181818 0%, #101010 44%, #0b0b0b 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
  overflow-x: hidden;
}

body.sheet-open,
body.lightbox-open {
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

img,
video,
svg {
  display: block;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: 0;
  min-height: 42px;
  padding: 0 0.8rem;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.65) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 1px solid rgba(255, 243, 214, 0.65);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: calc(5.6rem + var(--safe-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.7rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 96, 0, 0.24);
}

.brand-kicker,
.section-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-block h1,
.section-head h2 {
  margin: 0;
  line-height: 1.08;
}

.brand-block h1 {
  margin-top: 0.15rem;
  font-size: 1.22rem;
  font-weight: 850;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  border-color: rgba(255, 96, 0, 0.45);
  background: rgba(255, 96, 0, 0.13);
}

.icon-button:active {
  transform: scale(0.96);
}

.main-content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0.85rem 0.75rem 1.2rem;
}

.search-panel {
  position: relative;
  z-index: 10;
}

.search-form {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(28, 28, 28, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 46px;
  padding: 0 0.55rem 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.32);
}

.search-box > svg {
  color: var(--faint);
}

.search-box input {
  min-height: 44px;
  border: 0;
  background: transparent;
}

.clear-search {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
}

.clear-search:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.quick-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.05rem;
  scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 34px;
  padding: 0 0.9rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-chip.is-active {
  border-color: rgba(255, 96, 0, 0.65);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 96, 0, 0.2);
}

.compact-controls,
.more-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
}

.compact-controls label,
.more-filter-grid label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.compact-controls span,
.more-filter-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.more-filters {
  border-top: 1px solid var(--line);
  padding-top: 0.25rem;
}

.more-filters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 750;
}

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

.more-filters[open] summary svg {
  transform: rotate(180deg);
}

.more-filter-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-top: 0.55rem;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 1rem;
  font-weight: 820;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button {
  background: var(--accent-hot);
  color: #fff;
  box-shadow: 0 12px 24px rgba(240, 58, 6, 0.22);
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.05);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
}

.ghost-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.085);
}

.primary-button:active:not(:disabled),
.ghost-button:active:not(:disabled) {
  transform: translateY(1px);
}

.feed-section {
  padding-top: 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 0.75rem;
}

.section-head h2 {
  margin-top: 0.18rem;
  font-size: 1.28rem;
  font-weight: 860;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  border: 1px solid rgba(255, 96, 0, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 850;
}

.notice {
  margin: 0 0.25rem 0.8rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(117, 184, 255, 0.24);
  border-radius: 8px;
  background: rgba(117, 184, 255, 0.08);
  color: rgba(219, 237, 255, 0.94);
  font-size: 0.84rem;
}

.notice.error {
  border-color: rgba(255, 107, 107, 0.36);
  background: rgba(255, 107, 107, 0.1);
  color: #ffd1d1;
}

.notice.success {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.09);
  color: #d7ffef;
}

.gallery-grid,
.loading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.product-card {
  position: relative;
  min-width: 0;
}

.product-button {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  color: inherit;
}

.product-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #242424;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.watermarked-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.watermarked-media > img,
.watermarked-image {
  display: block;
  width: 100%;
  height: 100%;
}

.watermarked-media .watermark-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 240px 120px;
}

.watermarked-media .image-shield,
.has-watermark > .image-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background: transparent;
}

.has-watermark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.has-watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--watermark-bg);
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 240px 120px;
}

.has-watermark > img {
  position: relative;
  z-index: 0;
}

.product-media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  transition: transform 300ms ease;
}

.product-button:hover .product-media img {
  transform: scale(1.035);
}

.product-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #222;
}

.product-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: 2.8rem 0.65rem 0.65rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.9) 100%);
}

.product-title {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 830;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.product-subtitle {
  overflow: hidden;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-tag {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 0.9rem);
  min-height: 28px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.flag-row {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  max-width: calc(100% - 4.6rem);
}

.mini-flag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0.48rem;
  border-radius: 999px;
  background: rgba(255, 96, 0, 0.94);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 850;
  white-space: nowrap;
}

.mini-flag.video {
  background: rgba(117, 184, 255, 0.9);
  color: #07111b;
}

.product-meta {
  display: grid;
  gap: 0.42rem;
  padding: 0.48rem 0.1rem 0;
}

.product-facts {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
  font-weight: 650;
}

.product-facts span {
  min-width: 0;
}

.product-facts .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-tags {
  display: flex;
  gap: 0.32rem;
  overflow: hidden;
}

.tag-pill {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  padding: 0 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: #ffd08a;
  font-weight: 780;
}

.skeleton-card {
  aspect-ratio: 4 / 6.05;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  background-size: 220% 100%;
  animation: shimmer 1.15s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  padding: 2.8rem 1rem;
  text-align: center;
  color: var(--muted);
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--text);
  font-size: 1rem;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.36);
}

.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 0.2rem 0;
}

.pager span {
  min-width: 72px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 0.75rem;
  bottom: calc(0.75rem + var(--safe-bottom));
  left: 0.75rem;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 430px;
  height: 62px;
  margin: 0 auto;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  min-width: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 750;
}

.bottom-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bottom-nav a.is-active {
  background: rgba(255, 96, 0, 0.15);
  color: var(--accent);
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.56);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.detail-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  max-height: min(92dvh, 820px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #141414;
  box-shadow: 0 -20px 54px rgba(0, 0, 0, 0.48);
  transform: translateY(102%);
  transition: transform 240ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.detail-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0.55rem auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.detail-content {
  max-height: calc(min(92dvh, 820px) - 1rem);
  overflow-y: auto;
  padding: 0 0.85rem calc(1rem + var(--safe-bottom));
}

.detail-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0 0.65rem;
  background: linear-gradient(180deg, #141414 78%, rgba(20, 20, 20, 0));
}

.detail-topbar h2 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-topbar p {
  overflow: hidden;
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.close-sheet {
  flex: none;
}

.media-carousel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070707;
}

.hero-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #090909;
}

.hero-stage img,
.hero-stage video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stage video {
  object-fit: contain;
  background: #000;
}

.media-counter {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.42);
}

.hero-nav.prev {
  left: 0.55rem;
}

.hero-nav.next {
  right: 0.55rem;
}

.thumb-strip {
  display: flex;
  gap: 0.48rem;
  overflow-x: auto;
  padding: 0.55rem;
  scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar {
  display: none;
}

.thumb-button {
  position: relative;
  width: 52px;
  height: 64px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #222;
}

.thumb-button .watermarked-media {
  width: 100%;
  height: 100%;
}

.thumb-button img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-button.is-active {
  border-color: var(--cream);
  box-shadow: 0 0 0 1px rgba(255, 243, 214, 0.38);
}

.video-thumb {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: rgba(255, 96, 0, 0.18);
  color: #fff;
}

.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0 0.2rem;
}

.detail-price {
  color: var(--cream);
  font-size: 1.45rem;
  font-weight: 920;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 760;
}

.detail-badge.hot {
  border-color: rgba(255, 96, 0, 0.38);
  background: rgba(255, 96, 0, 0.13);
  color: var(--cream);
}

.detail-description {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.68;
  white-space: pre-wrap;
}

.detail-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 830;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.spec-card {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.spec-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.spec-card strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.tag-cloud,
.city-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.schedule-list,
.review-list {
  display: grid;
  gap: 0.65rem;
}

.schedule-item,
.review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.schedule-item strong,
.review-head strong {
  color: #fff;
  font-size: 0.88rem;
}

.schedule-item span,
.review-meta {
  color: var(--muted);
  font-size: 0.74rem;
}

.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.review-stars {
  color: #ffd08a;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.review-content {
  margin: 0.48rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.6;
}

.review-images {
  display: flex;
  gap: 0.42rem;
  overflow-x: auto;
  padding-top: 0.6rem;
}

.review-images button {
  width: 62px;
  height: 62px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  padding: 0;
  background: #222;
}

.review-images button .watermarked-media {
  width: 100%;
  height: 100%;
}

.review-images img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.review-toolbar .ghost-button {
  min-height: 34px;
  padding: 0 0.72rem;
  font-size: 0.76rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 4.8rem 0.7rem 4rem;
}

.lightbox-stage img,
.lightbox-stage video {
  position: relative;
  z-index: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: 0.75rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.lightbox-counter {
  position: absolute;
  right: 0;
  bottom: calc(1rem + var(--safe-bottom));
  left: 0;
  z-index: 3;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 760;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (min-width: 680px) {
  .app-header {
    padding-right: 1.35rem;
    padding-left: 1.35rem;
  }

  .main-content {
    padding: 1.2rem 1.1rem 2rem;
  }

  .gallery-grid,
  .loading-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .search-form {
    grid-template-columns: minmax(260px, 1.25fr) minmax(260px, 1fr);
    align-items: start;
  }

  .search-box,
  .quick-filters {
    grid-column: 1 / -1;
  }

  .more-filters {
    border-top: 0;
    padding-top: 0;
  }

  .form-actions {
    align-self: end;
  }

  .detail-sheet {
    right: 1rem;
    bottom: 1rem;
    left: auto;
    width: min(460px, calc(100vw - 2rem));
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    padding-bottom: 1.5rem;
  }

  .main-content {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
  }

  .search-panel {
    position: sticky;
    top: 86px;
  }

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

  .search-box,
  .quick-filters {
    grid-column: auto;
  }

  .compact-controls,
  .more-filter-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    display: none;
  }

  .gallery-grid,
  .loading-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
