:root {
  color-scheme: dark;
  --bg: #07131c;
  --panel: rgba(8, 22, 34, 0.9);
  --panel-strong: rgba(11, 28, 43, 0.98);
  --line: rgba(146, 188, 214, 0.18);
  --text: #edf5f7;
  --muted: #97b0bc;
  --accent: #f15b42;
  --accent-soft: rgba(241, 91, 66, 0.14);
  --chip: rgba(116, 154, 173, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --surface-overlay-top: rgba(4, 10, 16, 0.16);
  --surface-overlay-mid: rgba(4, 10, 16, 0.28);
  --surface-overlay-bottom: rgba(4, 10, 16, 0.72);
  --surface-glow-color: rgba(7, 19, 28, 0.12);
  --surface-title-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.54);
  --surface-copy-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(241, 91, 66, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(52, 140, 168, 0.22), transparent 24%),
    linear-gradient(180deg, #08131d 0%, #091822 100%);
  color: var(--text);
}

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

img {
  display: block;
  width: 100%;
}

.page-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(4, 13, 20, 0.82);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f8ae79;
}

.brand-mark,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sidebar h1,
.hero h2,
.section-heading h3,
.media-card h4 {
  margin: 0;
}

.sidebar h1 {
  font-size: clamp(28px, 2vw, 34px);
  line-height: 1.05;
}

.sidebar-copy,
.hero-copy p,
.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-copy {
  margin-top: 14px;
  font-size: 15px;
}

.category-nav {
  display: grid;
  gap: 10px;
  margin: 32px 0 auto;
}

.category-nav a,
.section-heading a,
.profile-entry,
.search-pill {
  border: 1px solid var(--line);
}

.category-nav a {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #d7e6ec;
  transition: 180ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  transform: translateX(3px);
  background: var(--accent-soft);
  border-color: rgba(241, 91, 66, 0.36);
}

.sidebar-note {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(241, 91, 66, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(241, 91, 66, 0.18);
}

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

.content {
  padding: 24px 28px 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.search-pill {
  min-height: 56px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.profile-entry {
  min-width: 188px;
  padding: 10px 12px;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-entry strong,
.hero-metrics strong,
.card-meta {
  font-weight: 700;
}

.profile-entry small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f15b42, #f7a35f);
  color: #09121a;
  font-weight: 800;
}

.avatar-image {
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.avatar-image-small {
  width: 40px;
  height: 40px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr);
  gap: 18px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    url("https://images.unsplash.com/photo-1518998053901-5348d3961a04?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
}

.hero::before,
.category-hero::before,
.item-hero::before,
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, var(--surface-glow-color), transparent 36%),
    linear-gradient(180deg, var(--surface-overlay-top) 0%, var(--surface-overlay-mid) 42%, var(--surface-overlay-bottom) 100%);
  transition: background 260ms ease;
}

.hero > *,
.category-hero > *,
.item-hero > *,
.profile-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 680px;
  display: grid;
  gap: 14px;
}

.hero h2 {
  font-size: clamp(32px, 3vw, 52px);
  line-height: 1.02;
  text-shadow: var(--surface-title-shadow);
}

.hero-metrics {
  display: grid;
  gap: 12px;
  align-self: end;
}

.hero-metrics div {
  padding: 18px;
  border-radius: 8px;
  background: rgba(7, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-metrics strong {
  display: block;
  font-size: 28px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 14px;
}

.media-section {
  margin-bottom: 30px;
}

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

.section-heading h3 {
  font-size: 24px;
}

.section-heading a {
  padding: 10px 14px;
  border-radius: 8px;
  color: #d7e6ec;
  background: rgba(255, 255, 255, 0.03);
}

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

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-card {
  cursor: pointer;
}

.media-card img {
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: #ffd8b5;
  font-size: 13px;
}

.media-card h4 {
  margin-bottom: 8px;
  font-size: 20px;
}

.media-card h4 a {
  color: inherit;
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    gap: 20px;
  }

  .category-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
  }

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

@media (max-width: 760px) {
  .content {
    padding: 18px 16px 40px;
  }

  .topbar,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-entry,
  .search-pill {
    width: 100%;
  }

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

  .sidebar {
    padding: 24px 16px;
  }

  .hero {
    padding: 22px 18px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .section-heading h3 {
    font-size: 22px;
  }
}

.category-page {
  background: #07131c;
}

.category-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 24px 28px 0;
  display: flex;
  flex-direction: column;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.category-movies {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.28) 0%, rgba(5, 12, 18, 0.18) 35%, rgba(7, 19, 28, 0.96) 72%, #07131c 100%),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1600&q=80");
}

.category-tv {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.24) 0%, rgba(5, 12, 18, 0.12) 35%, rgba(7, 19, 28, 0.96) 72%, #07131c 100%),
    url("https://images.unsplash.com/photo-1499364615650-ec38552f4f34?auto=format&fit=crop&w=1600&q=80");
}

.category-music {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.24) 0%, rgba(5, 12, 18, 0.12) 35%, rgba(7, 19, 28, 0.96) 72%, #07131c 100%),
    url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1600&q=80");
}

.category-books {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.18) 0%, rgba(5, 12, 18, 0.08) 35%, rgba(7, 19, 28, 0.96) 72%, #07131c 100%),
    url("https://images.unsplash.com/photo-1512820790803-83ca734da794?auto=format&fit=crop&w=1600&q=80");
}

.category-events {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.24) 0%, rgba(5, 12, 18, 0.12) 35%, rgba(7, 19, 28, 0.96) 72%, #07131c 100%),
    url("https://images.unsplash.com/photo-1503095396549-807759245b35?auto=format&fit=crop&w=1600&q=80");
}

.category-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.brand-link {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 15, 23, 0.48);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.brand-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
  border-radius: 5px;
  background: linear-gradient(135deg, #f15b42, #f7a35f);
  box-shadow: 0 8px 20px rgba(241, 91, 66, 0.28);
}

.brand-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 10px;
  height: 12px;
  border: 2px solid rgba(9, 18, 26, 0.9);
  border-top-width: 3px;
  border-bottom-width: 3px;
  border-radius: 2px;
  box-sizing: border-box;
}

.brand-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 6px;
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 244, 237, 0.9);
}

.category-splash {
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: start;
  align-content: space-between;
  gap: 28px;
  padding-top: 28px;
}

.category-title-block {
  max-width: 620px;
}

.category-title-block h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 66px);
  line-height: 1;
  text-shadow: var(--surface-title-shadow);
}

.category-title-block p:last-child {
  max-width: 560px;
  margin-top: 14px;
  color: #d6e3e8;
  line-height: 1.65;
  font-size: 16px;
  text-shadow: var(--surface-copy-shadow);
}

.featured-poster-card {
  min-height: 52vh;
  display: flex;
  align-items: end;
  padding: 28px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(7, 19, 28, 0.04) 0%, rgba(7, 19, 28, 0.28) 50%, rgba(7, 19, 28, 0.9) 100%);
}

.featured-poster-copy {
  max-width: 640px;
  display: grid;
  gap: 12px;
}

.featured-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(241, 91, 66, 0.18);
  border: 1px solid rgba(241, 91, 66, 0.22);
  color: #ffd3c7;
  font-size: 12px;
  font-weight: 700;
}

.featured-poster-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 48px);
  text-shadow: var(--surface-title-shadow);
}

.featured-poster-copy p {
  margin: 0;
  color: #d6e3e8;
  line-height: 1.65;
  text-shadow: var(--surface-copy-shadow);
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-meta span,
.filter-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 19, 28, 0.42);
  color: #e8f1f4;
  font-size: 13px;
}

.category-content {
  padding: 8px 28px 56px;
}

.filter-strip {
  margin-top: -32px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 22, 34, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.filter-tabs,
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-tabs {
  margin-bottom: 14px;
}

.filter-tabs a {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #edf5f7;
  font-weight: 600;
}

.shelf-section {
  margin-bottom: 34px;
}

@media (max-width: 900px) {
  .category-hero,
  .category-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-splash {
    min-height: auto;
  }

  .featured-poster-card {
    min-height: 42vh;
    padding: 18px 0 24px;
  }

  .filter-strip {
    margin-top: -16px;
  }
}

@media (max-width: 760px) {
  .category-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-link,
  .category-topbar .profile-entry {
    width: 100%;
  }

  .category-title-block h1 {
    font-size: 38px;
  }

  .featured-poster-copy h2 {
    font-size: 32px;
  }
}

/* React islands and transition overrides */
.content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(320px, 1fr) auto;
  align-items: center;
}

.topbar-label {
  color: var(--muted);
  font-size: 14px;
}

.category-hero {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-topbar {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(320px, 1fr) auto;
  align-items: start;
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 36%, rgba(52, 140, 168, 0.16), rgba(3, 9, 14, 0.78) 58%, rgba(3, 9, 14, 0.94) 100%);
  backdrop-filter: blur(0) saturate(1);
  transform: scale(1.03);
  transition: opacity 280ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), backdrop-filter 320ms ease;
}

.page-transition-overlay::before,
.page-transition-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-transition-overlay::before {
  background: linear-gradient(180deg, rgba(241, 91, 66, 0.1), transparent 28%, rgba(3, 9, 14, 0.36) 100%);
  transform: translateY(18px);
}

.page-transition-overlay::after {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 46%);
  transform: scale(0.96);
}

.page-transition-overlay.is-visible {
  opacity: 1;
  transform: scale(1);
  backdrop-filter: blur(18px) saturate(1.08);
}

.page-transition-overlay.is-visible::before,
.page-transition-overlay.is-visible::after {
  opacity: 1;
  transform: none;
}

body.page-ready .content,
body.page-ready .category-hero,
body.page-ready .item-hero {
  opacity: 1;
  transform: translateY(0);
}

body.motion-primed .media-section,
body.motion-primed .filter-strip,
body.motion-primed .item-panel,
body.motion-primed .media-card,
body.motion-primed .collection-card,
body.motion-primed .review-card,
body.motion-primed .long-review-card {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(8px);
}

body.page-ready .media-section,
body.page-ready .filter-strip,
body.page-ready .item-panel,
body.page-ready .media-card,
body.page-ready .collection-card,
body.page-ready .review-card,
body.page-ready .long-review-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--stagger-index, 0) * 36ms);
}

body.is-transitioning .page-shell,
body.is-transitioning .category-hero,
body.is-transitioning .item-hero,
body.is-transitioning .category-content,
body.is-transitioning .item-content {
  opacity: 0.22;
  transform: scale(0.985) translateY(10px);
  filter: blur(10px) saturate(0.92);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 320ms ease;
}

.global-search-slot {
  width: 100%;
}

.global-search-wrap {
  position: relative;
}

.global-search {
  min-height: 56px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 28, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.global-search-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe9ee;
  font-size: 18px;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

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

.global-search-button,
.ghost-button,
.accent-button,
.advanced-option {
  font: inherit;
  cursor: pointer;
}

.global-search-button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f15b42, #f7a35f);
  color: #09121a;
  font-weight: 700;
}

.global-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 28, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.global-search-panel-head,
.global-search-result {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.global-search-panel-head {
  align-items: center;
  margin-bottom: 12px;
}

.panel-close-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #d7e6ec;
  font: inherit;
  cursor: pointer;
}

.search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.search-chip,
.result-type,
.results-count {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe9ee;
  font-size: 13px;
}

.global-search-results {
  display: grid;
  gap: 10px;
}

.global-search-result {
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.global-search-result strong,
.results-count strong {
  display: block;
}

.global-search-result p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.global-search-empty {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.advanced-search-panel {
  display: grid;
  gap: 18px;
}

.advanced-search-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.advanced-search-header strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.advanced-search-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.advanced-search-actions {
  display: flex;
  gap: 10px;
  align-items: start;
}

.results-count {
  display: grid;
  gap: 2px;
  min-width: 88px;
}

.advanced-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advanced-group {
  display: grid;
  gap: 10px;
}

.advanced-group-label {
  color: #dbe9ee;
  font-size: 14px;
  font-weight: 600;
}

.advanced-options,
.advanced-summary,
.advanced-search-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.advanced-option,
.ghost-button,
.accent-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
}

.advanced-option {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e6ec;
}

.advanced-option.is-active {
  background: var(--accent-soft);
  border-color: rgba(241, 91, 66, 0.42);
  color: #fff3ee;
}

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

.accent-button {
  border: 0;
  background: linear-gradient(135deg, #f15b42, #f7a35f);
  color: #09121a;
  font-weight: 700;
}

.advanced-summary {
  align-items: center;
}

.advanced-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 19, 28, 0.42);
  color: #e8f1f4;
  font-size: 13px;
}

.media-card.is-filter-hidden {
  display: none;
}

.item-page {
  background: #07131c;
}

.item-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 76vh;
  padding: 24px 28px 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.item-movie-bg {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.16) 0%, rgba(5, 12, 18, 0.1) 34%, rgba(7, 19, 28, 0.92) 70%, #07131c 100%),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1800&q=80");
}

.item-tv-bg {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.16) 0%, rgba(5, 12, 18, 0.1) 34%, rgba(7, 19, 28, 0.92) 70%, #07131c 100%),
    url("https://images.unsplash.com/photo-1499364615650-ec38552f4f34?auto=format&fit=crop&w=1800&q=80");
}

.item-music-bg {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.16) 0%, rgba(5, 12, 18, 0.1) 34%, rgba(7, 19, 28, 0.92) 70%, #07131c 100%),
    url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1800&q=80");
}

.item-book-bg {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.16) 0%, rgba(5, 12, 18, 0.1) 34%, rgba(7, 19, 28, 0.92) 70%, #07131c 100%),
    url("https://images.unsplash.com/photo-1512820790803-83ca734da794?auto=format&fit=crop&w=1800&q=80");
}

.item-event-bg {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.16) 0%, rgba(5, 12, 18, 0.1) 34%, rgba(7, 19, 28, 0.92) 70%, #07131c 100%),
    url("https://images.unsplash.com/photo-1503095396549-807759245b35?auto=format&fit=crop&w=1800&q=80");
}

.profile-hero {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 18, 0.18) 0%, rgba(5, 12, 18, 0.1) 34%, rgba(7, 19, 28, 0.92) 70%, #07131c 100%),
    url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1800&q=80");
}

.item-main-info h1,
.profile-main-info h1 {
  text-shadow: var(--surface-title-shadow);
}

.item-logline,
.profile-intro,
.hero .eyebrow,
.category-hero .eyebrow,
.item-hero .eyebrow,
.profile-hero .eyebrow,
.hero-copy p,
.featured-poster-copy p {
  text-shadow: var(--surface-copy-shadow);
}

.item-hero-layout {
  min-height: calc(76vh - 84px);
  padding: 34px 0 40px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.profile-hero-layout {
  min-height: calc(76vh - 84px);
  padding: 34px 0 40px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.profile-avatar-panel {
  display: grid;
  place-items: center;
}

.profile-avatar-large {
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f15b42, #f7a35f);
  color: #09121a;
  font-size: 72px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.profile-main-info {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.profile-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.profile-main-info h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 70px);
  line-height: 1;
}

.profile-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-identity span,
.collection-card-body span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 19, 28, 0.42);
  color: #e8f1f4;
  font-size: 13px;
}

.profile-intro,
.collection-note {
  margin: 0;
  color: #d7e6ec;
  line-height: 1.7;
}

.profile-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-keyword-row span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(241, 91, 66, 0.2);
  background: rgba(241, 91, 66, 0.1);
  color: #ffe2d7;
  font-size: 13px;
}

.profile-keyword-row-compact span {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8f1f4;
}

.profile-avatar-image {
  object-fit: cover;
  color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-edit-button {
  min-height: 42px;
  padding: 0 16px;
}

.item-cover-wrap {
  align-self: center;
}

.item-cover {
  aspect-ratio: 0.72;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.item-main-info {
  max-width: 820px;
  display: grid;
  gap: 16px;
}

.item-main-info h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 70px);
  line-height: 1;
}

.item-logline {
  margin: 0;
  max-width: 760px;
  color: #d7e6ec;
  font-size: 17px;
  line-height: 1.7;
}

.item-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.item-meta-grid div,
.rating-score-card,
.review-card,
.long-review-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 19, 28, 0.58);
  backdrop-filter: blur(10px);
}

.item-meta-grid span,
.rating-score-card span,
.rating-score-card small {
  display: block;
  color: var(--muted);
}

.item-meta-grid strong {
  display: block;
  margin-top: 6px;
}

.item-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.item-tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 19, 28, 0.42);
}

.item-content {
  padding: 10px 28px 56px;
}

.item-panel {
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 22, 34, 0.82);
  box-shadow: var(--shadow);
}

.rating-overview {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.rating-score-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.rating-score-card strong {
  font-size: 52px;
  line-height: 1;
}

.rating-bars {
  display: grid;
  gap: 12px;
}

.rating-bars div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}

.rating-bars span,
.rating-bars small {
  color: var(--muted);
  font-size: 13px;
}

.rating-bars b {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f15b42, #f7a35f);
}

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

.review-card strong,
.long-review-head strong {
  display: block;
  margin-bottom: 6px;
}

.review-card span,
.long-review-head span {
  color: #ffd8b5;
  font-size: 13px;
}

.review-card p,
.long-review-card p {
  margin: 10px 0 0;
  color: #d7e6ec;
  line-height: 1.7;
}

.rating-supporting-meta {
  margin-top: 4px;
  color: #ffd8b5;
}

.review-interaction {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.review-toolbar,
.follow-up-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.review-action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #e7f1f4;
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.review-action:hover,
.review-action:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(241, 91, 66, 0.4);
  transform: translateY(-1px);
}

.review-action.is-active {
  background: rgba(241, 91, 66, 0.16);
  border-color: rgba(241, 91, 66, 0.4);
  color: #fff1ea;
}

.follow-up-thread {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.follow-up-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.follow-up-item {
  padding: 12px 12px 10px;
  border-radius: 8px;
  background: rgba(7, 19, 28, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.follow-up-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.follow-up-head strong {
  display: block;
  color: #edf5f7;
}

.follow-up-head span,
.follow-up-hint,
.follow-up-empty {
  color: var(--muted);
  font-size: 13px;
}

.follow-up-item p,
.follow-up-empty {
  margin: 0;
  line-height: 1.6;
}

.follow-up-compose {
  display: grid;
  gap: 10px;
}

.follow-up-input {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 19, 28, 0.66);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.follow-up-input:focus {
  outline: 1px solid rgba(241, 91, 66, 0.42);
  border-color: rgba(241, 91, 66, 0.42);
}

.review-submit {
  min-height: 40px;
  padding: 0 16px;
}

.all-reviews-list {
  display: grid;
  gap: 14px;
}

.long-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.collection-grid,
.engagement-grid,
.social-summary-grid,
.follow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 19, 28, 0.58);
  box-shadow: var(--shadow);
}

.collection-card img {
  aspect-ratio: 4 / 2.8;
  object-fit: cover;
}

.follow-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 19, 28, 0.58);
  box-shadow: var(--shadow);
}

.follow-card-cover {
  aspect-ratio: 4 / 1.7;
  object-fit: cover;
}

.follow-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.follow-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.follow-card-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f15b42, #f7a35f);
  color: #09121a;
  font-weight: 800;
}

.follow-card-head strong {
  display: block;
}

.follow-card-head p,
.follow-card-bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.follow-toggle {
  min-width: 90px;
}

.profile-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 9, 14, 0.76);
  backdrop-filter: blur(16px);
}

.profile-editor-modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 22, 34, 0.96);
  box-shadow: var(--shadow);
}

.profile-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-editor-field {
  display: grid;
  gap: 8px;
}

.profile-editor-field-wide {
  grid-column: 1 / -1;
}

.profile-editor-field span {
  color: #e7f1f4;
  font-size: 14px;
  font-weight: 600;
}

.profile-editor-field input,
.profile-editor-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 19, 28, 0.66);
  color: var(--text);
  font: inherit;
}

.profile-editor-field input:focus,
.profile-editor-field textarea:focus {
  outline: 1px solid rgba(241, 91, 66, 0.42);
  border-color: rgba(241, 91, 66, 0.42);
}

.profile-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.collection-card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.collection-card-body h4 {
  margin: 0;
  font-size: 22px;
}

@media (max-width: 900px) {
  .topbar,
  .category-topbar,
  .advanced-search-grid {
    grid-template-columns: 1fr;
  }

  .topbar-label {
    display: none;
  }

  .global-search-panel {
    position: static;
    margin-top: 10px;
  }

  .item-hero,
  .item-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .item-hero-layout,
  .profile-hero-layout,
  .item-meta-grid,
  .rating-overview,
  .review-grid,
  .collection-grid,
  .engagement-grid,
  .social-summary-grid,
  .follow-grid,
  .profile-editor-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section-heading,
  .advanced-search-header,
  .advanced-search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-entry,
  .global-search-slot,
  .brand-link,
  .category-topbar .profile-entry {
    width: 100%;
  }

  .profile-heading-row,
  .profile-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .follow-card-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .follow-toggle {
    grid-column: 1 / -1;
  }
}
