.comparison-table {
  max-width: 1240px;
  margin: 0 auto 64px;
  background: var(--color-surface-1);
  border: 2px solid var(--color-surface-3);
  border-radius: 42px;
  padding: 34px 26px 36px;
  font-family: var(--type-body-font-family, var(--font-family-sst-roman));
  color: var(--color-white);
}

.comparison-table [hidden] {
  display: none !important;
}

.comparison-table__top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 64px;
}

.comparison-table__sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comparison-table__product-column {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.comparison-table__product-select-wrapper {
  position: relative;
  margin-bottom: 32px;
}

.comparison-table__product-select-button {
  width: 100%;
  height: 64px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-white);
  font-family: var(--type-h4-font-family, var(--font-family-sst-medium));
  font-size: 24px;
  font-weight: 500;
  line-height: 1.33;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 12px;
  text-align: left;
}

.comparison-table__product-select-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comparison-table__product-select-button::before,
.comparison-table__product-select-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.comparison-table__product-select-button::before {
  z-index: 0;
  background-color: rgba(42, 42, 74, 0.95);
}

.comparison-table__product-select-button::after {
  z-index: 0;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(42, 42, 74, 0.95), rgba(42, 42, 74, 0.95)) padding-box,
    linear-gradient(90deg, var(--color-neon-blue) 0%, var(--color-gradient-end) 100%) border-box;
  opacity: 0;
  transform: scale(0.985);
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.34));
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.comparison-table__product-select-button > * {
  position: relative;
  z-index: 1;
}

.comparison-table__product-select-button[aria-expanded="true"]::after {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.45));
}

.comparison-table__product-select-button[aria-expanded="true"] {
  transform: translateY(-1px);
}

.comparison-table [data-dropdown-menu] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  padding: 24px 32px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--color-surface-3), var(--color-surface-3)) padding-box,
    linear-gradient(90deg, var(--color-neon-blue) 0%, var(--color-gradient-end) 100%) border-box;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s linear;
  will-change: opacity, transform;
}

.comparison-table [data-dropdown-menu][hidden] {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.985);
  pointer-events: none;
}

.comparison-table__product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.comparison-table__product-list li {
  display: block;
}

.comparison-table__product-option {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-family: var(--type-h4-font-family);
  font-size: var(--type-h4-font-size);
  font-weight: 500;
  line-height: var(--type-h4-line-height);
  letter-spacing: var(--type-h4-letter-spacing);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.comparison-table__product-option:hover {
  color: rgba(254, 254, 254, 0.8);
}

.comparison-table__product-option--selected {
  color: #969696;
}

.comparison-table__product-option--passive,
.comparison-table__product-option:disabled {
  color: #969696;
  cursor: default;
  opacity: 0.7;
}

.comparison-table__product-select-icon {
  width: 16px;
  height: 8px;
  flex-shrink: 0;
  transform-origin: 50% 50%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.comparison-table__product-select-button[aria-expanded="true"] .comparison-table__product-select-icon {
  transform: rotate(180deg) translateY(1px);
}

.comparison-table__product-card {
  width: 100%;
  border: 1.5px solid var(--color-surface-3);
  border-radius: 30px;
  background: radial-gradient(
    circle at 50% 50%,
    #6c6c8e 0%,
    #51516f 25%,
    #363650 50%,
    #1c1c32 75%,
    #0e0e22 87.5%,
    var(--color-base-bg) 100%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 0 23px;
  gap: 0;
  margin-bottom: 64px;
}

.comparison-table__tv-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(364px, calc(100% + 8px));
  gap: 0;
  flex-shrink: 0;
}

.comparison-table__tv-frame,
.comparison-table__sound-frame {
  width: 100%;
  height: 197px;
  border-radius: 2px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-table__sound-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
  flex-shrink: 0;
}

.comparison-table__product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comparison-table__sizes {
  margin-top: 12px;
  font-family: var(--type-h4-font-family);
  font-size: var(--type-h4-font-size);
  font-weight: var(--type-h4-font-weight);
  line-height: var(--type-h4-line-height);
  letter-spacing: var(--type-h4-letter-spacing);
  color: var(--color-white);
  text-align: center;
}

.comparison-table__product-panel-type {
  margin-top: 20px;
  min-width: 129px;
  height: 36px;
  padding: 12px;
  border: 1px solid var(--color-button-blue);
  border-radius: 999px;
  background: var(--color-base-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--type-button-text-font-family);
  font-size: var(--type-button-text-font-size);
  font-weight: var(--type-button-text-font-weight);
  line-height: var(--type-button-text-line-height);
  letter-spacing: var(--type-button-text-letter-spacing);
  color: var(--color-white);
  text-align: center;
  white-space: nowrap;
}

.comparison-table__product-panel-type-label {
  position: relative;
  display: inline-block;
}

.comparison-table__product-panel-type--true-rgb .comparison-table__product-panel-type-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff5e5e 0%,
    #ffa13a 20%,
    #ffe047 40%,
    #4be37d 60%,
    #3ab8ff 80%,
    #c06bff 100%
  );
  filter: blur(1px);
}

.comparison-table__product-panel-type[hidden] {
  display: none;
}

.comparison-table__cta-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.comparison-table__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  align-items: stretch;
}

.comparison-table__row-label-bar {
  grid-column: 1 / -1;
  background: var(--color-surface-2);
  padding: 0 18px;
  height: 40px;
  display: flex;
  align-items: center;
  font-size: var(--type-body-large-font-size);
  font-family: var(--font-family-sst-medium);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.comparison-table__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding-bottom: 36px;
  text-align: center;
  min-width: 0;
}

.comparison-table__text-value {
  font-size: var(--type-body-large-font-size);
  color: var(--color-white);
  font-weight: 400;
}

.comparison-table__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.comparison-table__dash {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.comparison-table__rating {
  display: flex;
  gap: 4px;
  align-items: center;
}

.comparison-table__star-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comparison-table__star-icon {
  width: 16px;
  height: 16px;
}

.comparison-table__icon {
  display: block;
  background: transparent;
  object-fit: contain;
}

.comparison-table__icon--120x50 {
  width: 120px;
  height: 50px;
}

.comparison-table__icon--140x63 {
  width: 140px;
  height: 63px;
}

.comparison-table__icon--102x82 {
  width: 102px;
  height: 82px;
}

.comparison-table__icon--120x46 {
  width: 120px;
  height: 46px;
}

.comparison-table__icon--120x61 {
  width: 120px;
  height: 61px;
}

.comparison-table__icon--120x59 {
  width: 120px;
  height: 59px;
}

.comparison-table__icon--120x53 {
  width: 120px;
  height: 53px;
}

.comparison-table__icon--120x68 {
  width: 120px;
  height: 68px;
}

.comparison-table__icon--120x71 {
  width: 120px;
  height: 71px;
}

.comparison-table__stream-copy {
  font-size: var(--type-body-large-font-size);
  font-family: var(--font-family-sst-medium);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.comparison-table__pill {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 14px 22px;
  font-size: var(--type-body-large-font-size);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
}

.comparison-table__badge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.comparison-table__studio-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.comparison-table__studio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.comparison-table__ota-text {
  font-family: var(--font-family-sony-medium, sans-serif);
  font-size: 12px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.comparison-table__check {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-table__check svg {
  width: 100%;
  height: 100%;
}

.comparison-table__music-icons {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.comparison-table__music-icon {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-table__music-icon svg {
  width: 100%;
  height: auto;
}

/* Section content visibility handled by height animation */

.comparison-table__section-toggle {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px;
  background: #010113;
  border: none;
  border-top: 2px solid var(--color-neon-blue);
  cursor: pointer;
  color: inherit;
  margin-bottom: 24px;
}

.comparison-table__section-title {
  font-family: var(--type-h4-font-family, var(--font-family-sst-medium));
  font-size: var(--type-h4-font-size);
  font-weight: var(--type-h4-font-weight);
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.comparison-table__section-chevron {
  width: 16px;
  height: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  color: var(--color-white);
}

.comparison-table__section-toggle:hover .comparison-table__section-chevron,
.comparison-table__section--open .comparison-table__section-chevron {
  color: var(--color-neon-pink);
}

.comparison-table__section--open .comparison-table__section-chevron {
  transform: rotate(-180deg);
}

.comparison-table__section-toggle,
.comparison-table__row {
  will-change: transform, opacity, box-shadow, border-color;
}

.comparison-table__section-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  height: 0;
  will-change: height;
}

.comparison-table__section--open .comparison-table__section-content {
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .comparison-table__product-select-button,
  .comparison-table__product-select-button::after,
  .comparison-table__product-select-icon,
  .comparison-table [data-dropdown-menu] {
    transition-duration: 0.01ms;
  }

  .comparison-table__product-select-button[aria-expanded="true"] {
    transform: none;
  }

  .comparison-table__product-select-button[aria-expanded="true"] .comparison-table__product-select-icon {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .comparison-table {
    padding: 24px 16px 28px;
    border-radius: 30px;
  }

  .comparison-table__top-grid,
  .comparison-table__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .comparison-table__top-grid {
    margin-bottom: 32px;
  }

  .comparison-table__product-select-wrapper {
    margin-bottom: 16px;
  }

  .comparison-table__product-select-button {
    height: 56px;
    font-size: 18px;
    padding: 0 16px;
  }

  .comparison-table__product-select-icon {
    width: 14px;
    height: 7px;
  }

  .comparison-table [data-dropdown-menu] {
    padding: 18px 20px;
    border-radius: 16px;
  }

  .comparison-table__product-option {
    font-size: 18px;
  }

  .comparison-table__product-card {
    height: 280px;
    border-radius: 20px;
    padding: 32px 0 14px;
    margin-bottom: 32px;
  }

  .comparison-table__tv-frame,
  .comparison-table__sound-frame {
    height: 140px;
  }

  .comparison-table__sizes {
    margin-top: -6px;
    font-size: 18px;
  }

  .comparison-table__product-panel-type {
    margin-top: 14px;
    min-width: 104px;
    height: 30px;
    padding: 0 14px;
    font-size: 13px;
  }

  .btn--primary-large {
    height: 44px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .comparison-table__row-label-bar {
    font-size: 14px;
    height: 36px;
    padding: 0 12px;
  }

  .comparison-table__row {
    gap: 12px;
  }

  .comparison-table__cell {
    padding-bottom: 12px;
  }

  .comparison-table__icon--120x50 {
    width: 80px;
    height: 33px;
  }

  .comparison-table__icon--140x63 {
    width: 93px;
    height: 42px;
  }

  .comparison-table__icon--102x82 {
    width: 68px;
    height: 55px;
  }

  .comparison-table__icon--120x46,
  .comparison-table__icon--120x61,
  .comparison-table__icon--120x59,
  .comparison-table__icon--120x53,
  .comparison-table__icon--120x68 {
    width: 80px;
  }

  .comparison-table__text-value,
  .comparison-table__stream-copy {
    font-size: 14px;
  }

  .comparison-table__pill {
    padding: 10px 16px;
    font-size: 12px;
    border-radius: 12px;
  }

  .comparison-table__section-toggle {
    padding: 16px 12px;
  }

  .comparison-table__section-title {
    font-size: 18px;
  }

  .comparison-table__music-icons {
    gap: 16px;
  }

  .comparison-table__music-icon {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .comparison-table {
    padding: 20px 12px 24px;
    border-radius: 24px;
    margin-left: 8px;
    margin-right: 8px;
  }

  .comparison-table__btn-shop {
    width: 140px;
    height: 40px;
    font-size: 12px;
  }

  .comparison-table__sizes {
    font-size: 16px;
  }

  .comparison-table__product-panel-type {
    min-width: 96px;
    font-size: 12px;
  }
}
