.coast-page {
  overflow: hidden;
}

.coast-hero {
  width: min(1420px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.3rem) 0 clamp(2rem, 5vw, 4rem);
}

.coast-heading {
  width: min(1160px, 100%);
  margin: 0 auto clamp(1rem, 2.5vw, 1.8rem);
}

.coast-heading .page-title {
  max-width: 980px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.coast-heading .lede {
  max-width: 760px;
}

.coast-live-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(26px, 4vw, 48px);
  background: var(--paper-soft);
  box-shadow: 0 34px 100px rgba(73, 56, 47, 0.19);
}

.coast-live-link {
  position: relative;
  display: block;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 20%, rgba(220, 158, 127, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(245, 234, 223, 0.74));
}

.coast-live-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.coast-live-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(24, 18, 14, 0.12) 15%,
    rgba(24, 18, 14, 0.76) 100%
  );
  pointer-events: none;
}

.coast-live-copy {
  max-width: 700px;
}

.coast-live-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.coast-live-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 500;
}

.coast-live-copy p {
  margin: 0.55rem 0 0;
  line-height: 1.5;
}

.coast-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 15, 12, 0.36);
  backdrop-filter: blur(12px);
  font-size: 0.83rem;
  font-weight: 750;
}

.coast-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #e7bb82;
  box-shadow: 0 0 0 4px rgba(231, 187, 130, 0.16);
}

.coast-status.is-current::before {
  background: #a9d7b4;
  box-shadow: 0 0 0 4px rgba(169, 215, 180, 0.16);
}

.coast-live-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem 1rem;
  padding: 0.85rem 1.1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.coast-live-actions a {
  color: var(--copper-deep);
  font-weight: 800;
  text-decoration: none;
}

.coast-archive-section {
  width: min(1260px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.coast-archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
}

.coast-archive-head .section-title {
  max-width: 780px;
}

.coast-archive-total {
  color: var(--muted);
  text-align: right;
}

.coast-browser {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 24px 70px rgba(122, 78, 45, 0.1);
  overflow: hidden;
}

.coast-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 234, 223, 0.62);
}

.coast-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--taupe);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.coast-tab[aria-selected="true"] {
  color: #fffaf4;
  border-color: transparent;
  background: linear-gradient(135deg, var(--copper), var(--copper-deep));
}

.coast-controls {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.coast-control-row {
  display: none;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
}

.coast-control-row.is-active {
  display: flex;
}

.coast-control-row label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.coast-control-row input,
.coast-control-row select {
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
}

.coast-control-button {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--copper-deep);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.coast-result-summary {
  padding: 1rem 1rem 0;
  color: var(--muted);
}

.coast-result-summary strong {
  color: var(--ink);
}

.coast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
}

.coast-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(122, 78, 45, 0.08);
  cursor: zoom-in;
}

.coast-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-soft);
}

.coast-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.coast-card:hover .coast-card-image img,
.coast-card:focus-visible .coast-card-image img {
  transform: scale(1.025);
}

.coast-card-copy {
  padding: 0.75rem 0.8rem 0.85rem;
}

.coast-card-copy strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.coast-card-copy span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.coast-empty {
  margin: 1rem;
  padding: 2.2rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.coast-editorial {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.coast-editorial .grid {
  margin-top: 1.4rem;
}

.coast-lightbox[hidden] {
  display: none !important;
}

.coast-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 15, 12, 0.9);
  backdrop-filter: blur(12px);
}

.coast-lightbox-card {
  position: relative;
  width: min(1500px, 100%);
  max-height: calc(100vh - 2rem);
  display: grid;
  gap: 0.8rem;
}

.coast-lightbox img {
  width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: 22px;
  background: #111;
}

.coast-lightbox-copy {
  color: #fff;
  text-align: center;
}

.coast-lightbox-copy strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.coast-lightbox-copy span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
}

.coast-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  right: 0.7rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 15, 12, 0.62);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .coast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .coast-live-overlay {
    align-items: start;
    flex-direction: column;
  }

  .coast-status {
    order: -1;
  }

  .coast-archive-head {
    grid-template-columns: 1fr;
  }

  .coast-archive-total {
    text-align: left;
  }

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

@media (max-width: 520px) {
  .coast-hero,
  .coast-archive-section,
  .coast-editorial {
    width: min(100% - 1rem, 100%);
  }

  .coast-live-card {
    border-radius: 24px;
  }

  .coast-live-link {
    min-height: 240px;
  }

  .coast-live-overlay {
    position: absolute;
    padding: 0.9rem;
  }

  .coast-live-copy p {
    display: none;
  }

  .coast-grid {
    grid-template-columns: 1fr;
  }

  .coast-control-row {
    align-items: stretch;
  }

  .coast-control-row label,
  .coast-control-row input,
  .coast-control-row select,
  .coast-control-button {
    width: 100%;
  }
}
