* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #1a1a1a;
  color: #f5f5f0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", SimSun, serif;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.poster-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #1a1a1a;
}

.poster-image,
.poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster-image {
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.12);
}

.poster-image.missing {
  display: none;
}

.poster-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 240, 0.45);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.poster-fallback.visible {
  display: flex;
}

.date-corner,
.clock-corner,
.movie-corner,
.quote-corner {
  position: absolute;
  z-index: 2;
  color: #f5f5f0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.date-corner {
  left: 26px;
  top: 24px;
  width: 270px;
}

.year {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  color: rgba(245, 245, 240, 0.92);
}

.date-line {
  margin-top: 6px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 900;
}

.month-day {
  display: block;
  font-size: 72px;
  line-height: 0.86;
  color: #f5f5f0;
}

.weekday {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  line-height: 1;
  color: rgba(245, 245, 240, 0.92);
}

.lunar {
  margin-top: 9px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: rgba(245, 245, 240, 0.82);
}

.clock-corner {
  right: 26px;
  top: 24px;
}

.clock {
  position: relative;
  width: 132px;
  height: 132px;
  border: 3px solid rgba(245, 245, 240, 0.88);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

.tick {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: rgba(245, 245, 240, 0.88);
  transform-origin: 1px 62px;
}

.tick.major {
  width: 5px;
  height: 14px;
  margin-left: -2.5px;
  transform-origin: 2.5px 62px;
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  background: rgba(245, 245, 240, 0.95);
  transform-origin: 50% 100%;
}

.hour-hand {
  width: 7px;
  height: 38px;
  margin-left: -3.5px;
  border-radius: 6px;
}

.minute-hand {
  width: 4px;
  height: 52px;
  margin-left: -2px;
  border-radius: 4px;
}

.clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(245, 245, 240, 0.95);
}

.movie-corner {
  left: 12px;
  right: auto;
  bottom: 10px;
  max-width: 82%;
  padding-top: 0;
}

.source-label {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 240, 0.5);
}

h1 {
  margin: 4px 0 0;
  max-width: 100%;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
  color: #f5f5f0;
}

.meta,
.director {
  max-width: 100%;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(245, 245, 240, 0.72);
  font-weight: 700;
}

.quote-corner {
  left: 12px;
  right: 12px;
  bottom: 72px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top: none;
  text-align: center;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 700;
  color: rgba(245, 245, 240, 0.88);
}

@media (max-width: 620px) {
  .date-corner {
    left: 18px;
    top: 18px;
    width: 195px;
  }

  .year {
    font-size: 18px;
  }

  .month-day {
    font-size: 52px;
  }

  .weekday {
    font-size: 16px;
  }

  .lunar {
    font-size: 15px;
  }

  .clock-corner {
    right: 18px;
    top: 18px;
  }

  .clock {
    width: 104px;
    height: 104px;
  }

  .tick {
    top: 3px;
    transform-origin: 1px 49px;
  }

  .tick.major {
    transform-origin: 2.5px 49px;
  }

  .hour-hand {
    height: 30px;
  }

  .minute-hand {
    height: 41px;
  }

  .movie-corner {
    left: 10px;
    bottom: 8px;
    max-width: 88%;
  }

  h1 {
    font-size: 24px;
  }

  .meta,
  .director {
    font-size: 12px;
  }

  .quote-corner {
    left: 10px;
    right: 10px;
    bottom: 62px;
    font-size: 15px;
  }
}
