:root {
  --bg: #07060c;
  --ink: #f4f0ea;
  --muted: #a39b92;
  --red: #ff2d55;
  --panel: rgba(8, 7, 14, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --mast: 7.5rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--ink); }
body { overflow: hidden; }

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 45, 85, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(7, 6, 12, 0.35), rgba(7, 6, 12, 0.75) 40%, rgba(7, 6, 12, 0.88));
}

.app {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1rem 1rem;
}

.mast {
  flex: 0 0 auto;
  text-align: center;
  padding: 0.4rem 0 0.75rem;
}

.wordmark {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(90deg, #fff 10%, var(--red) 45%, #ffb347 75%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(255, 45, 85, 0.25);
  filter: drop-shadow(0 2px 12px rgba(255, 45, 85, 0.35));
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.edition {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-flag {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  color: rgba(255, 180, 80, 0.85);
}

.panes {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pane-h {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.pane-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.65rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 45, 85, 0.45) transparent;
}

.pane-scroll::-webkit-scrollbar { width: 6px; }
.pane-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 45, 85, 0.4);
  border-radius: 99px;
}

.t-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.45rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.t-row:hover {
  background: rgba(255, 45, 85, 0.1);
  border-color: rgba(255, 45, 85, 0.25);
  transform: translateX(2px);
}

.t-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.t-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-title {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
}

.t-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
}















@media (max-width: 820px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100dvh; }
  .panes {
    grid-template-columns: 1fr;
    flex: none;
  }
  .pane {
    height: min(70vh, 560px);
  }
  .t-row { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
}


.day-break {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0.35rem 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.day-break::before,
.day-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,45,85,0.45), transparent);
}
.day-break:first-child { margin-top: 0.25rem; }

.empty-pane {
  padding: 1.25rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-content: start;
  padding: 0 !important;
}

.a-tile {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: #0a0a10;
  aspect-ratio: 1 / 1;
  transition: filter 0.15s, transform 0.15s;
}

.a-tile:hover {
  transform: none;
  filter: brightness(1.08);
  z-index: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 45, 85, 0.85);
}

.a-plate {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  position: absolute;
  inset: 0;
}

.a-plate.has-img {
  background-size: cover !important;
  background-position: center !important;
}

.a-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.4rem 0.35rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.a-tile:hover .a-meta { opacity: 1; }

.a-title {
  display: block;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  color: #fff;
}

.a-credit {
  display: block;
  padding: 0.15rem 0 0;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.7);
}

.a-badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.3rem;
  border-radius: 3px;
  background: rgba(0,0,0,0.55);
  color: #ffd59a;
}

.sample {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd59a;
}

@media (max-width: 820px) {
  .art-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}

.pane-art .pane-scroll { padding: 0; }
.pane-art .day-break { margin: 0.65rem 0.5rem 0.45rem; }
