.sunday-page {
  --sunday-ink: #17233c;
  --sunday-muted: #64748b;
  --sunday-line: #dce8f6;
  --sunday-blue: #4f8ff7;
  --sunday-blue-dark: #2867d6;
  --sunday-violet: #806de8;
  --sunday-surface: rgba(255, 255, 255, 0.92);
  --sunday-soft: #f3f8ff;
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2rem;
  color: var(--sunday-ink);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

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

.sunday-page a,
.sunday-page button,
.sunday-page input,
.sunday-page select {
  -webkit-tap-highlight-color: transparent;
}

.sunday-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.sunday-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  min-height: 17rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid rgba(191, 216, 247, 0.88);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 86% 18%, rgba(164, 148, 244, 0.28), transparent 27%),
    radial-gradient(circle at 62% 100%, rgba(119, 198, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #f8fcff 0%, #edf6ff 51%, #f4f0ff 100%);
  box-shadow: 0 24px 60px rgba(76, 103, 157, 0.12);
}

.sunday-hero::before,
.sunday-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.sunday-hero::before {
  top: -4.5rem;
  right: 8%;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgba(112, 145, 232, 0.22);
  border-radius: 42% 58% 57% 43%;
  transform: rotate(18deg);
}

.sunday-hero::after {
  right: -3.5rem;
  bottom: -6.5rem;
  width: 17rem;
  height: 17rem;
  border: 2rem solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.sunday-hero__copy {
  max-width: 42rem;
}

.sunday-eyebrow,
.sunday-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #5572ae;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sunday-hero h1 {
  margin: 0.8rem 0 0;
  color: #18253d;
  font-size: clamp(2rem, 5vw, 3.65rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.sunday-hero h1 span {
  background: linear-gradient(100deg, var(--sunday-blue-dark), var(--sunday-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sunday-hero__copy > p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: #5f7089;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 650;
  line-height: 1.75;
}

.sunday-hero__status {
  z-index: 1;
  display: grid;
  min-width: min(100%, 17rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 34px rgba(69, 94, 147, 0.1);
  backdrop-filter: blur(16px);
}

.sunday-hero__status > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.85rem 1rem;
}

.sunday-hero__status > div + div {
  border-top: 1px solid rgba(200, 215, 239, 0.7);
}

.sunday-hero__status .sunday-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--sunday-violet);
}

.sunday-hero__status span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.sunday-hero__status small {
  color: #7a8ba1;
  font-size: 0.72rem;
  font-weight: 750;
}

.sunday-hero__status strong {
  overflow: hidden;
  color: #2c3b57;
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sunday-latest,
.sunday-archive {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--sunday-line);
  border-radius: 1.75rem;
  background: var(--sunday-surface);
  box-shadow: 0 18px 48px rgba(70, 93, 137, 0.08);
}

.sunday-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.sunday-section-head h2 {
  margin: 0.35rem 0 0;
  color: #1d2b45;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.sunday-section-head p {
  margin: 0.45rem 0 0;
  color: var(--sunday-muted);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.6;
}

.sunday-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #d6e4f7;
  border-radius: 999px;
  color: #59708f;
  background: #f5f9ff;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.sunday-status > span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #92a3bc;
  box-shadow: 0 0 0 0.22rem rgba(146, 163, 188, 0.14);
}

.sunday-status.is-current {
  border-color: #bdebd7;
  color: #177c5e;
  background: #effcf7;
}

.sunday-status.is-current > span {
  background: #25a67d;
  box-shadow: 0 0 0 0.22rem rgba(37, 166, 125, 0.14);
}

.sunday-feature {
  display: grid;
  grid-template-columns: minmax(15.5rem, 0.33fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.sunday-feature__info {
  position: sticky;
  top: 6.3rem;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid #dce8f7;
  border-radius: 1.4rem;
  background: linear-gradient(155deg, #f7fbff, #f5f2ff);
}

.sunday-feature__date {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 0.65rem;
  color: #355f9c;
  background: #e8f2ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.sunday-feature__info h3 {
  margin: 0;
  color: #182641;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.sunday-meta {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.sunday-meta > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid rgba(208, 222, 242, 0.86);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.sunday-meta dt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #71829a;
  font-size: 0.72rem;
  font-weight: 800;
}

.sunday-meta dd {
  margin: 0;
  color: #34445f;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.55;
}

.sunday-feature__actions {
  display: grid;
  gap: 0.55rem;
}

.sunday-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.sunday-button.is-primary {
  border-color: #5a75df;
  color: #fff;
  background: linear-gradient(110deg, #4286eb, #7968df);
  box-shadow: 0 9px 22px rgba(78, 105, 210, 0.2);
}

.sunday-button.is-secondary {
  border-color: #cdddf1;
  color: #3e587d;
  background: #fff;
}

.sunday-button.is-quiet {
  border-color: transparent;
  color: #60728e;
  background: #eef4fb;
}

.sunday-button:hover {
  transform: translateY(-1px);
}

.sunday-button.is-secondary:hover,
.sunday-button.is-quiet:hover {
  border-color: #aebfe8;
  color: #4c53ac;
  background: #f7f7ff;
}

.sunday-feature__media {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce8f5;
  border-radius: 1.45rem;
  background:
    linear-gradient(45deg, rgba(225, 237, 251, 0.42) 25%, transparent 25%) 0 0 / 1.25rem 1.25rem,
    linear-gradient(45deg, transparent 75%, rgba(225, 237, 251, 0.42) 75%) 0 0 / 1.25rem 1.25rem,
    #f7faff;
  box-shadow: 0 18px 45px rgba(44, 74, 126, 0.1);
}

.sunday-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
}

.sunday-feature__media.is-empty {
  display: grid;
  min-height: 27rem;
  place-items: center;
}

.sunday-empty-visual {
  display: grid;
  justify-items: center;
  max-width: 25rem;
  padding: 2rem;
  color: #6a7d98;
  text-align: center;
}

.sunday-empty-visual > span {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 1.25rem;
  color: #6d75cf;
  background: linear-gradient(140deg, #e8f3ff, #eee9ff);
}

.sunday-empty-visual__icon {
  width: 2rem;
  height: 2rem;
}

.sunday-empty-visual strong {
  color: #33445f;
  font-size: 1rem;
  font-weight: 900;
}

.sunday-empty-visual p {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.65;
}

.sunday-archive {
  scroll-margin-top: 6.5rem;
}

.sunday-result-count {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: #586b86;
  background: #edf4fc;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.sunday-filter {
  display: grid;
  grid-template-columns: minmax(9rem, 0.32fr) minmax(14rem, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #dbe6f4;
  border-radius: 1.25rem;
  background: #f7faff;
}

.sunday-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.sunday-field > span:first-child {
  color: #536680;
  font-size: 0.75rem;
  font-weight: 850;
}

.sunday-field select,
.sunday-search-control {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #cbd9eb;
  border-radius: 0.85rem;
  color: #263750;
  background: #fff;
  box-shadow: 0 3px 10px rgba(67, 88, 128, 0.04);
}

.sunday-field select {
  padding: 0 2.4rem 0 0.85rem;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 750;
  appearance: auto;
}

.sunday-search-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.8rem;
  color: #8190a5;
}

.sunday-search-control input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #263750;
  background: transparent;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 700;
}

.sunday-search-control input::placeholder {
  color: #9aa8ba;
}

.sunday-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sunday-history-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 14rem;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid #dce6f2;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(61, 82, 122, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sunday-history-card:hover {
  transform: translateY(-2px);
  border-color: #b8cbed;
  box-shadow: 0 14px 30px rgba(61, 82, 122, 0.09);
}

.sunday-history-card.is-latest {
  border-color: #b8cafa;
  background: linear-gradient(150deg, #fbfdff, #f8f5ff);
}

.sunday-history-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.5rem;
  margin-bottom: 0.8rem;
}

.sunday-history-card__order {
  color: #b5c1d1;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.sunday-history-card__badge {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #5b55b6;
  background: #eeebff;
  font-size: 0.68rem;
  font-weight: 900;
}

.sunday-history-card time {
  color: #5576ad;
  font-size: 0.78rem;
  font-weight: 850;
}

.sunday-history-card h3 {
  margin: 0.45rem 0 0;
  color: #24344e;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.sunday-history-card p {
  margin: 0.6rem 0 1rem;
  color: #75849a;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.6;
}

.sunday-history-card > a,
.sunday-history-card__unavailable {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: auto;
  color: #5366c7;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.sunday-history-card__unavailable {
  color: #8b99ab;
}

.sunday-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 15rem;
  padding: 2rem;
  border: 1px dashed #c8d7e9;
  border-radius: 1.3rem;
  color: #62758f;
  background: #f8fbff;
}

.sunday-empty-state.is-compact {
  min-height: 9rem;
}

.sunday-empty-state > span {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1rem;
  color: #6877cb;
  background: #ebeefe;
}

.sunday-empty-state__icon {
  width: 1.55rem;
  height: 1.55rem;
}

.sunday-empty-state h3 {
  margin: 0;
  color: #34455f;
  font-size: 1rem;
  font-weight: 900;
}

.sunday-empty-state p {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.6;
}

.sunday-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2eaf4;
}

.sunday-pagination a,
.sunday-pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cfdaea;
  border-radius: 0.8rem;
  color: #50627e;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.sunday-pagination > :last-child {
  justify-self: end;
}

.sunday-pagination .is-disabled {
  color: #a1adbc;
  background: #f5f7fa;
}

.sunday-pagination strong {
  color: #8794a7;
  font-size: 0.8rem;
  font-weight: 850;
}

.sunday-pagination strong span {
  color: #465bc1;
}

.sunday-page a:focus-visible,
.sunday-page button:focus-visible,
.sunday-page input:focus-visible,
.sunday-page select:focus-visible {
  outline: 3px solid rgba(89, 128, 239, 0.38);
  outline-offset: 3px;
}

.sunday-search-control:focus-within {
  border-color: #7893e8;
  box-shadow: 0 0 0 3px rgba(98, 128, 232, 0.13);
}

@media (max-width: 980px) {
  .sunday-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

  .sunday-hero__status > div + div {
    border-top: 0;
    border-left: 1px solid rgba(200, 215, 239, 0.7);
  }

  .sunday-feature {
    grid-template-columns: 1fr;
  }

  .sunday-feature__info {
    position: static;
  }

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

  .sunday-filter {
    grid-template-columns: minmax(8rem, 0.35fr) minmax(12rem, 1fr) auto;
  }

  .sunday-filter .is-quiet {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  .sunday-page {
    gap: 0.85rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .sunday-hero,
  .sunday-latest,
  .sunday-archive {
    border-radius: 1.35rem;
  }

  .sunday-hero {
    min-height: 0;
    gap: 1.3rem;
    padding: 1.35rem 1.1rem;
  }

  .sunday-hero h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .sunday-hero__copy > p {
    font-size: 0.9rem;
  }

  .sunday-hero__status {
    grid-template-columns: 1fr;
  }

  .sunday-hero__status > div {
    min-height: 3.8rem;
  }

  .sunday-hero__status > div + div {
    border-top: 1px solid rgba(200, 215, 239, 0.7);
    border-left: 0;
  }

  .sunday-latest,
  .sunday-archive {
    padding: 1rem;
  }

  .sunday-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sunday-status,
  .sunday-result-count {
    align-self: flex-start;
  }

  .sunday-feature__info,
  .sunday-feature__media {
    border-radius: 1.1rem;
  }

  .sunday-feature__actions {
    grid-template-columns: 1fr;
  }

  .sunday-feature__media.is-empty {
    min-height: 20rem;
  }

  .sunday-filter {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .sunday-filter .sunday-button {
    width: 100%;
  }

  .sunday-history-grid {
    grid-template-columns: 1fr;
  }

  .sunday-history-card {
    min-height: 12.5rem;
  }

  .sunday-empty-state {
    align-items: flex-start;
    min-height: 12rem;
    padding: 1.25rem;
  }

  .sunday-empty-state.is-compact {
    min-height: 8rem;
  }

  .sunday-pagination a,
  .sunday-pagination > span {
    min-width: 2.85rem;
    padding-inline: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sunday-page *,
  .sunday-page *::before,
  .sunday-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .sunday-page {
    --sunday-ink: #08152a;
    --sunday-muted: #35465e;
    --sunday-line: #75869d;
  }

  .sunday-hero,
  .sunday-latest,
  .sunday-archive,
  .sunday-feature__info,
  .sunday-feature__media,
  .sunday-filter,
  .sunday-history-card,
  .sunday-field select,
  .sunday-search-control {
    border-width: 2px;
  }
}

@media print {
  .sunday-hero__status,
  .sunday-filter,
  .sunday-pagination,
  .sunday-feature__actions {
    display: none !important;
  }

  .sunday-feature {
    grid-template-columns: 1fr;
  }

  .sunday-feature__info {
    position: static;
  }
}
