* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(1000px 600px at -10% 110%, rgba(13, 148, 136, 0.16), transparent 55%),
    #0c0c16;
  color: #d9d6e6;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  display: flex;
  justify-content: center;
}

.chronicle {
  width: min(820px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(0.9rem, 2.5vh, 1.8rem) clamp(1rem, 4vw, 2.2rem) 0;
}

.chronicle-head {
  text-align: center;
  flex: 0 0 auto;
  padding-bottom: clamp(0.6rem, 1.6vh, 1rem);
  border-bottom: 1px solid rgba(167, 139, 250, 0.16);
}

.paw {
  font-size: clamp(1.3rem, 3.5vh, 1.9rem);
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}

.chronicle-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 5.2vh, 3rem);
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0.15rem 0 0.5rem;
  background: linear-gradient(100deg, #e879f9, #818cf8 45%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: clamp(0.82rem, 1.9vh, 1rem);
  color: #aba6c4;
  max-width: 60ch;
  margin: 0 auto 0.45rem;
  line-height: 1.45;
}

.subtitle em { color: #e879f9; font-style: italic; }

.reading-note {
  font-size: clamp(0.72rem, 1.55vh, 0.86rem);
  color: #7c789a;
  max-width: 64ch;
  margin: 0 auto;
  line-height: 1.4;
}

.reading-note strong { color: #5eead4; font-weight: 600; }

.film-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(0.7rem, 1.8vh, 1.2rem) 0.2rem clamp(0.7rem, 1.8vh, 1.2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.4vh, 0.9rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.5) transparent;
}

.film-list::-webkit-scrollbar { width: 9px; }
.film-list::-webkit-scrollbar-track { background: transparent; }
.film-list::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.4);
  border-radius: 5px;
}
.film-list::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.65); }

.film {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.1rem);
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(30, 27, 54, 0.7), rgba(20, 18, 38, 0.6));
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 14px;
  padding: clamp(0.7rem, 1.8vh, 1.05rem) clamp(0.85rem, 2.2vw, 1.3rem);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.film:hover {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateX(3px);
}

.rank {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4.2vh, 2.4rem);
  font-weight: 600;
  line-height: 1;
  color: #4a4668;
  min-width: 2ch;
  text-align: right;
  flex: 0 0 auto;
  padding-top: 0.1rem;
}

.film-body { flex: 1 1 auto; min-width: 0; }

.film-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.9vh, 1.6rem);
  font-weight: 600;
  color: #ece9f7;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62em;
  font-weight: 400;
  color: #8a86a8;
  letter-spacing: 0.5px;
}

.stars {
  color: #fbbf24;
  font-size: clamp(0.8rem, 1.7vh, 0.95rem);
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.35);
}

.film-body p {
  font-size: clamp(0.78rem, 1.7vh, 0.92rem);
  line-height: 1.5;
  color: #c2bedb;
}

.film-body p em { color: #c4b5fd; font-style: italic; }

/* Tiers building toward the most significant */
.film.high { border-color: rgba(167, 139, 250, 0.3); }
.film.high .rank { color: #a78bfa; }

.film.top {
  border-color: rgba(232, 121, 249, 0.5);
  background: linear-gradient(180deg, rgba(50, 30, 70, 0.75), rgba(28, 20, 48, 0.7));
  box-shadow: 0 0 26px rgba(232, 121, 249, 0.14);
}
.film.top .rank {
  color: #e879f9;
  text-shadow: 0 0 14px rgba(232, 121, 249, 0.5);
}
.film.top .film-body h2 { color: #fbe9ff; }

.crown-note {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic;
  color: #f0abfc !important;
  font-size: clamp(0.85rem, 1.9vh, 1.02rem) !important;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.chronicle-foot {
  flex: 0 0 auto;
  text-align: center;
  padding: clamp(0.55rem, 1.4vh, 0.9rem) 0;
  border-top: 1px solid rgba(167, 139, 250, 0.16);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.76rem, 1.6vh, 0.92rem);
  color: #837fa3;
}
