* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding: 40px 20px 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.entry {
  margin-bottom: 60px;
}

.date {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.text {
  font-size: 16px;
  white-space: pre-wrap;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.variant-word {
  color: #ff0000;
}

.footnote {
  font-family: "Courier New", monospace;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 30px;
  line-height: 1.4;
}

.addendum-separator {
  font-family: "Courier New", monospace;
  font-size: 11px;
  margin: 40px 0 20px 0;
  opacity: 0;
  letter-spacing: 1px;
}

.addendum-separator.fade-in {
  animation: fadeIn 2s ease-in forwards;
}

.addendum {
  opacity: 0;
}

.addendum.fade-in {
  animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.entry.rotated-diagonal {
  transform: rotate(3deg);
}

.entry.rotated-upside {
  transform: rotate(180deg);
}

.entry.rotated-flipped {
  transform: scaleX(-1);
}

.time-tracker {
  position: fixed;
  bottom: 60px;
  left: 20px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  opacity: 0.4;
  z-index: 100;
}

.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.enter-overlay.hidden {
  display: none;
}

.enter-button {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 15px 40px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  cursor: pointer;
}

.enter-button:hover {
  background-color: #111;
}

.entry img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border: 1px solid #fff;
}

.navigator {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  border-top: 1px solid #fff;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.navigator input {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 5px 10px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  width: 80px;
  text-align: center;
}

.navigator input:focus {
  outline: none;
  background-color: #111;
}

.navigator button {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 5px 15px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  cursor: pointer;
}

.navigator button:hover {
  background-color: #111;
}

.navigator span {
  font-size: 14px;
}

.admin-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 5px 10px;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.3;
}

.admin-toggle:hover {
  opacity: 1;
}

.admin-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000;
  border: 1px solid #fff;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
}

.admin-panel::-webkit-scrollbar {
  width: 4px;
}

.admin-panel::-webkit-scrollbar-track {
  background: #000;
}

.admin-panel::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 0;
}

/* for firefops */
.admin-panel {
  scrollbar-width: thin;
  scrollbar-color: #fff #000;
}

/* why the hell not */
.admin-panel {
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.admin-panel.active {
  display: block;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.overlay.active {
  display: block;
}

.admin-panel h2 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: normal;
}

.admin-panel label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.admin-panel input[type="text"],
.admin-panel input[type="number"],
.admin-panel input[type="password"],
.admin-panel textarea {
  width: 100%;
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  margin-bottom: 15px;
}

.admin-panel textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-panel input:focus,
.admin-panel textarea:focus {
  outline: none;
  background-color: #111;
}

.admin-panel button {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 20px;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  cursor: pointer;
  margin-right: 10px;
}

.admin-panel button:hover {
  background-color: #111;
}

.image-preview {
  max-width: 100%;
  margin: 10px 0;
  border: 1px solid #fff;
}

.error {
  color: #fff;
  background-color: #300;
  border: 1px solid #fff;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

@keyframes blur-breathe {
  0%, 100% { backdrop-filter: blur(4px); }
  50% { backdrop-filter: blur(7px); }
}

#blur-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: blur-breathe 12s ease-in-out infinite;

  mask-image: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    black 0%,
    black 5%,
    transparent 30%
  );

  -webkit-mask-image: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    black 0%,
    black 5%,
    transparent 30%
  );
}

.song-interrupt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px;
  animation: songAppear 0.1s ease-out;
}

@keyframes songAppear {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.album-cover {
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.song-info {
  text-align: left;
}

.song-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.song-artist {
  font-size: 32px;
  opacity: 0.8;
  margin-bottom: 5px;
  font-family: 'Courier New', monospace;
}

.song-album {
  font-size: 24px;
  opacity: 0.6;
  font-style: italic;
  font-family: 'Courier New', monospace;
}

.lyrics-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(80px, 15vw, 250px);
  font-weight: bold;
  text-align: center;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
  padding: 40px;
}

.lyric-word {
  display: block;
  opacity: 1;
  transform: scale(1.2);
  max-width: 90vw;
  word-wrap: break-word;
}

.lyric-word.appear {
  opacity: 1;
  transform: scale(1.2);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lyric-word.red {
  color: #ff0000;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.lyrics-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}