:root {
  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f7fb;
  --foreground: #16161d;
  --muted: #4d4d5c;
  --muted-soft: #6b6b7b;
  --border: #dcdce6;
  --border-strong: #c4c4d4;
  --primary: #6d28d9;
  --primary-deep: #5b21b6;
  --brand-blue: #1e46d9;
  --star: #d97706;
  --star-dim: #d8d8e2;
  --radius: 0.85rem;
  --shadow-sm: 0 1px 2px rgba(16, 16, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 70, 217, 0.07);
  --focus: 0 0 0 3px rgba(109, 40, 217, 0.35);
  --font-body: Inter, system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, sans-serif;
  --maxw: 1180px;
  --page-pad: clamp(0.85rem, 2.5vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  background: var(--surface-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 0.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--page-pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--foreground);
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 0.45rem;
  display: block;
  flex-shrink: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.35rem var(--page-pad) 0.85rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.1);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--foreground);
}

.hero-sub {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.summary-wrap {
  width: calc(100% - 2 * var(--page-pad));
  max-width: calc(var(--maxw) - 2 * var(--page-pad));
  margin: 1rem auto 0;
}

.summary-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.55rem;
}

.chatgpt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #10a37f, #0d8a6a);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(16, 163, 127, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.chatgpt-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 163, 127, 0.32);
  opacity: 0.95;
}

.summary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  align-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.summary-score {
  text-align: center;
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
  border-right: 1px solid var(--border);
}

.summary-average {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--foreground);
}

.summary-stars {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: var(--star);
  letter-spacing: 0.04em;
}

.summary-stars .dim {
  color: var(--star-dim);
}

.summary-count {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.summary-bars {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.bar-row .bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bar-row .bar-label .star {
  color: var(--star);
  font-size: 0.75rem;
}

.bar-track {
  display: block;
  height: 0.5rem;
  min-width: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--primary));
  transition: width 0.5s ease;
}

.bar-count {
  display: block;
  min-width: 2rem;
  text-align: right;
  color: var(--muted-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
}

.reviews-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.15rem var(--page-pad) 2.75rem;
}

.toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.filter-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.65rem 0.45rem 0.55rem;
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.filter-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.filter-icon img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  display: block;
}

.filter-label {
  line-height: 1.25;
}

.filter-btn:hover {
  border-color: rgba(109, 40, 217, 0.45);
  color: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.filter-btn.is-active {
  color: var(--primary-deep);
  border-color: var(--primary);
  background: rgba(109, 40, 217, 0.06);
  box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.12);
}

.filter-btn.is-active .filter-icon {
  background: #fff;
  border-color: rgba(109, 40, 217, 0.25);
}

.toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.result-count {
  margin: 0;
  color: var(--foreground);
  font-weight: 700;
  font-size: 0.9rem;
}

.sort-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.sort-row select {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234d4d5c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    right 0.65rem center / 10px no-repeat;
  color: var(--foreground);
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.42rem 1.85rem 0.42rem 0.7rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.video-section {
  margin-bottom: 1rem;
}

.video-card {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(30, 70, 217, 0.04), rgba(109, 40, 217, 0.06));
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.video-card:hover {
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--border);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
}

.video-play-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e62117;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.video-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.18rem;
  border-style: solid;
  border-width: 0.42rem 0 0.42rem 0.72rem;
  border-color: transparent transparent transparent #fff;
}

.video-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.video-eyebrow {
  color: var(--primary-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-title {
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.video-sub {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 29, 0.72);
}

.video-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(16, 16, 29, 0.28);
}

.video-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.video-modal-close:hover {
  background: #fff;
}

.video-modal-body {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

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

.review-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-blue), var(--primary));
  opacity: 0;
  transition: opacity 0.15s ease;
}

.review-card:hover {
  border-color: rgba(109, 40, 217, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.review-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.avatar {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue), var(--primary));
  overflow: hidden;
}

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

.review-ident {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.review-author {
  color: var(--foreground);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.review-submeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.76rem;
}

.review-submeta .review-date {
  color: var(--muted-soft);
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 0.06rem;
  margin-top: 0.85rem;
  color: var(--star);
  font-size: 0.92rem;
}

.stars .dim {
  color: var(--star-dim);
}

.review-title {
  margin: 0.4rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--foreground);
}

.review-title a {
  color: inherit;
  text-decoration: none;
}

.review-title a:hover {
  color: var(--primary);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.review-page-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--page-pad) 2.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.75rem 0 1rem;
  color: var(--muted-soft);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.review-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.15rem;
}

.review-page-title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.review-page .review-card {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
  overflow: visible;
  transform: none;
}

.review-page .review-card::before {
  display: none;
}

.review-page .review-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.review-source-link {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.review-source-link a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.review-source-link a:hover {
  text-decoration: underline;
}

.review-page-back {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.review-page-back a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.review-page-back a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-marketplace {
  color: #7a4a00;
  background: #ffe1a6;
  border: 1px solid #f0c36a;
}

.badge-community {
  color: var(--primary-deep);
  background: rgba(109, 40, 217, 0.1);
  border: 1px solid rgba(109, 40, 217, 0.22);
}

.review-body {
  margin: 0;
  color: #3a3a48;
  line-height: 1.62;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-blue);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 70, 217, 0.25);
  background: rgba(30, 70, 217, 0.07);
}

.review-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.review-helpful {
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 1rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.35rem var(--page-pad) 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .brand-logo {
  width: 2rem;
  height: 2rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .reviews-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .summary {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .summary-score {
    padding-right: 0;
    padding-bottom: 0.85rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .toolbar-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
    gap: 0.4rem;
  }

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

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

@media (max-width: 420px) {
  body {
    font-size: 14px;
  }

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

  .filter-btn {
    font-size: 0.74rem;
    padding: 0.55rem 0.35rem 0.45rem;
  }

  .filter-icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .filter-icon img {
    width: 1.45rem;
    height: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
