.catv {
  padding-top: 0;
}

.catv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.catv-head h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 30px);
  margin: 0;
  letter-spacing: -0.02em;
}

.catv-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.catv-tools {
  position: sticky;
  top: 78px;
  z-index: 20;
  margin: 0 -16px clamp(26px, 4vw, 42px);
  padding: 14px 16px;
  background: rgba(255, 248, 239, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.catv-tools.stuck {
  border-bottom-color: var(--line);
}

.catv-tools-in {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.catv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catv-chips a {
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: all 0.18s var(--ease);
}

.catv-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.catv-chips a.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff8ef;
}

.catv-search {
  position: relative;
  flex: 0 1 280px;
}

.catv-search input {
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  padding: 11px 16px 11px 38px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.catv-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.catv-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
}

.catv-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(22px, 3vw, 46px);
  align-items: start;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.catv-intro .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.catv-intro h3 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.catv-intro > div > p {
  max-width: 54ch;
  color: var(--muted);
  margin: 0 0 24px;
}

.catv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.catv-stats div {
  background: var(--surface);
  padding: 14px 18px;
  flex: 1 1 130px;
}

.catv-stats small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.catv-stats strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}

.catv-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
}

.catv-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catv-block {
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.catv-block:last-child {
  border-bottom: 0;
}

.catv-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catv-block-head h4 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  margin: 0;
  letter-spacing: -0.01em;
}

.catv-block-head span {
  font-size: 13px;
  color: var(--muted);
}

.catv-bahan {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.catv-bahan article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 9px;
  align-content: start;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
}

.catv-bahan article:hover,
.catv-bahan article:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  outline: none;
}

.catv-bahan .b-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catv-bahan h5 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.25;
  margin: 0;
}

.catv-bahan .swatch {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--cream);
}

.catv-bahan .swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catv-bahan p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.catv-bahan .spec {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink);
  opacity: 0.62;
}

.catv-bahan .more {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.catv-bahan article:hover .more,
.catv-bahan article:focus-visible .more {
  opacity: 1;
}

.catv-karya {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.catv-karya article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.catv-karya article:hover,
.catv-karya article:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.catv-karya .k-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  background: var(--cream);
}

.catv-karya .k-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catv-karya .k-body {
  display: grid;
  gap: 4px;
  padding: 0 6px 8px;
}

.catv-karya .k-body strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.catv-karya .k-body span {
  font-size: 12.5px;
  color: var(--muted);
}

.catv-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 68ch;
}

.catv-empty {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
}

.catv-overlay[hidden],
.catv-drawer[hidden],
.catv-lightbox[hidden] {
  display: none !important;
}

.catv-overlay:not(.open),
.catv-drawer:not(.open),
.catv-lightbox:not(.open) {
  pointer-events: none;
}

.catv-overlay.open,
.catv-drawer.open,
.catv-lightbox.open {
  pointer-events: auto;
}

.catv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 12, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  z-index: 80;
}

.catv-overlay.open {
  opacity: 1;
}

.catv-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(430px, 100%);
  background: var(--surface);
  z-index: 81;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(7, 5, 12, 0.18);
}

.catv-drawer.open {
  transform: none;
}

.catv-drawer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.catv-drawer header h4 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}

.catv-drawer header small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.catv-drawer .x {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
}

.catv-drawer .body {
  padding: 22px 24px;
  overflow: auto;
  display: grid;
  gap: 18px;
  align-content: start;
  flex: 1;
}

.catv-drawer .big {
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
}

.catv-drawer .row {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.catv-drawer .row small {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 5px;
}

.catv-drawer .row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.catv-drawer footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.catv-drawer footer .btn {
  width: 100%;
  justify-content: center;
}

.catv-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 12, 0.9);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.catv-lightbox.open {
  opacity: 1;
}

.catv-lightbox figure {
  margin: 0;
  max-width: 820px;
  width: 100%;
}

.catv-lightbox .frame {
  aspect-ratio: 4/3;
  border-radius: 18px;
  background-color: #07050c;
  background-size: cover;
  background-position: center;
}

.catv-lightbox figcaption {
  color: #fff8ef;
  margin-top: 14px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.catv-lightbox figcaption strong {
  font-family: var(--font-head);
  font-size: 18px;
}

.catv-lightbox figcaption span {
  font-size: 13px;
  opacity: 0.7;
}

.catv-lightbox figcaption .btn {
  margin-top: 6px;
  border-color: rgba(255, 248, 239, 0.35);
  color: #fff8ef;
}

.catv-lightbox .x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 239, 0.3);
  background: transparent;
  color: #fff8ef;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .catv-tools {
    margin-left: -14px;
    margin-right: -14px;
    padding: 12px 14px;
  }

  .catv-tools-in {
    gap: 10px;
  }

  .catv-search {
    flex: 1 1 100%;
    order: -1;
  }

  .catv-chips {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    padding-right: 14px;
    margin-right: -14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .catv-chips::-webkit-scrollbar {
    display: none;
  }

  .catv-chips a {
    flex: none;
    padding: 9px 16px;
    font-size: 12.5px;
  }

  .catv-intro {
    gap: 20px;
  }

  .catv-stats div {
    padding: 12px 14px;
    flex: 1 1 calc(50% - 1px);
  }

  .catv-karya {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .catv-karya article {
    padding: 8px;
    gap: 8px;
  }

  .catv-karya .k-body {
    padding: 0 4px 6px;
  }

  .catv-karya .k-body strong {
    font-size: 13.5px;
  }

  .catv-karya .k-body span {
    font-size: 11.5px;
  }

  .catv-block-head {
    gap: 6px;
  }

  .catv-block-head span {
    flex: 1 1 100%;
  }

  .catv-drawer {
    width: 100%;
  }

  .catv-lightbox {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catv-drawer,
  .catv-overlay,
  .catv-lightbox,
  .catv-bahan article,
  .catv-karya article {
    transition: none;
  }
}
