@charset "UTF-8";
@keyframes runeGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(201, 168, 76, 0.5), 0 0 20px rgba(201, 168, 76, 0.25);
  }
  50% {
    text-shadow: 0 0 16px rgba(201, 168, 76, 0.8), 0 0 40px rgba(201, 168, 76, 0.5), 0 0 60px rgba(201, 168, 76, 0.2);
  }
}
@keyframes stoneFlicker {
  0%, 100% {
    opacity: 0.08;
  }
  33% {
    opacity: 0.12;
  }
  66% {
    opacity: 0.06;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes drift {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-12px) rotate(2deg);
  }
  66% {
    transform: translateY(6px) rotate(-1deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(201, 168, 76, 0.2);
  }
  50% {
    border-color: rgba(201, 168, 76, 0.5);
  }
}
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .site-header,
  .site-footer,
  .rune-bg,
  .scroll-top,
  .btn,
  .nav-links,
  .mobile-toggle,
  .timeline-filters {
    display: none !important;
  }
  .container,
  .page-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  a {
    color: black !important;
    text-decoration: underline;
  }
  .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
  }
}
@font-face {
  font-family: "Cubic";
  src: url("/fonts/cubic.ttf") format("truetype");
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cubic.ttf") format("truetype");
  unicode-range: U+0030-0039;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/cubic.ttf") format("truetype");
  unicode-range: U+0030-0039;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/cubic.ttf") format("truetype");
  unicode-range: U+0030-0039;
  font-weight: 300 700;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 155, 207, 0.55) rgba(17, 18, 21, 0.85);
}

body {
  font-family: "EB Garamond", serif;
  background: #0b0b0d;
  color: #e6e6ea;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #b19bcf;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #d1c2e8;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(177, 155, 207, 0.3);
  color: #e6e6ea;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 18, 21, 0.85);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(209, 194, 232, 0.7), rgba(177, 155, 207, 0.8));
  border: 1px solid rgba(37, 40, 51, 0.9);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(209, 194, 232, 0.9), rgba(177, 155, 207, 0.95));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  line-height: 1.3;
  color: #e6e6ea;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

code {
  font-family: "JetBrains Mono", monospace;
  background: #17191f;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 2rem 0;
}

.rune-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: hidden;
}
.rune-bg .rune-char {
  position: absolute;
  font-size: 10rem;
  font-family: "Cinzel", serif;
  color: #b19bcf;
  opacity: 0.06;
  animation: stoneFlicker 8s ease-in-out infinite, drift 20s ease-in-out infinite;
}
.rune-bg .rune-img {
  position: absolute;
  object-fit: contain;
  opacity: 0.07;
  mask-image: radial-gradient(ellipse at center, rgb(0, 0, 0) 25%, rgba(0, 0, 0, 0.4) 55%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgb(0, 0, 0) 25%, rgba(0, 0, 0, 0.4) 55%, transparent 75%);
  filter: drop-shadow(0 0 12px rgba(177, 155, 207, 0.5)) drop-shadow(0 0 30px rgba(177, 155, 207, 0.25));
  animation: stoneFlicker 8s ease-in-out infinite, drift 20s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #252833;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e6e6ea;
}

@keyframes navRuneFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(2px) scale(1);
  }
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #a4a8b3;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding-bottom: 0.35rem;
}
.nav-links a::before {
  content: attr(data-rune);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  bottom: -0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #b19bcf;
  text-shadow: 0 0 16px rgba(177, 155, 207, 0.9), 0 0 28px rgba(177, 155, 207, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.nav-links a:hover, .nav-links a.active {
  color: #b19bcf;
}
.nav-links a.active {
  text-shadow: 0 0 10px rgba(177, 155, 207, 0.55), 0 0 20px rgba(177, 155, 207, 0.25);
}
.nav-links a.active::before {
  opacity: 1;
  animation: navRuneFadeIn 0.35s ease-out;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #e6e6ea;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
}

.nav-more-wrap {
  position: relative;
}

.nav-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #a4a8b3;
  padding: 0;
  padding-bottom: 0.35rem;
  transition: color 0.2s;
}
.nav-more-btn:hover {
  color: #b19bcf;
}

.nav-more-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 160px;
  background: rgba(17, 18, 21, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid #252833;
  border-radius: 8px;
  padding: 0.4rem 0;
  list-style: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.nav-more-dropdown li {
  padding: 0;
}
.nav-more-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #a4a8b3;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-more-dropdown a::before {
  display: none;
}
.nav-more-dropdown a:hover {
  background: rgba(177, 155, 207, 0.1);
  color: #b19bcf;
}
.nav-more-dropdown a.active {
  color: #b19bcf;
}

.nav-more-wrap.open .nav-more-dropdown {
  display: block;
}

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}
.hero .hero-badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #b19bcf;
  background: rgba(177, 155, 207, 0.1);
  border: 1px solid rgba(177, 155, 207, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero .hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .hero .hero-title {
    font-size: 2.4rem;
  }
}
.hero .hero-gradient {
  text-shadow: 0 0 10px rgba(177, 155, 207, 0.5), 0 0 30px rgba(177, 155, 207, 0.25);
}
.hero .hero-subtitle {
  font-size: 1.2rem;
  color: #a4a8b3;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .entries-grid {
    grid-template-columns: 1fr;
  }
}

.entry-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.entry-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.entry-card {
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.entry-card .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: #6f7584;
}
.entry-card .entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.entry-card .entry-meta span + span::before {
  content: "•";
  color: rgba(111, 117, 132, 0.75);
  margin-right: 0.2rem;
}
.entry-card .entry-cover-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, rgba(177, 155, 207, 0.08), rgba(23, 25, 31, 0.9));
}
.entry-card .entry-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) sepia(0.1);
  transition: filter 0.3s;
}
.entry-card .entry-cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(177, 155, 207, 0.6);
  font-family: "Cinzel", serif;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(37, 40, 51, 0.8);
}
.entry-card:hover .entry-cover {
  filter: brightness(0.8) sepia(0);
}
.entry-card .entry-body {
  padding: 1.5rem;
}
.entry-card .entry-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.entry-card .entry-excerpt {
  color: #a4a8b3;
  font-size: 0.95rem;
  line-height: 1.6;
}
.entry-card .entry-date {
  font-family: "Cinzel", serif;
  letter-spacing: 0.03em;
}
.entry-card .entry-rune {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #b19bcf;
  opacity: 0.2;
  font-family: "Cinzel", serif;
}

.tag-chip {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #b19bcf;
  background: rgba(177, 155, 207, 0.08);
  border: 1px solid rgba(177, 155, 207, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  transition: background 0.2s;
}
.tag-chip:hover {
  background: rgba(177, 155, 207, 0.15);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
  gap: 1.5rem;
  padding: 2rem 0;
}

.now-block {
  border: 1px solid rgba(177, 155, 207, 0.3);
  box-shadow: 0 0 15px rgba(177, 155, 207, 0.1), inset 0 0 15px rgba(177, 155, 207, 0.05);
  background: #111215;
  border-radius: 8px;
  padding: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.now-block.latest {
  grid-column: 1/-1;
  border-color: rgba(177, 155, 207, 0.4);
  background: linear-gradient(145deg, #111215 0%, rgba(177, 155, 207, 0.05) 100%);
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.1);
}
@media (min-width: 768px) {
  .now-block.latest {
    grid-column: span 2;
  }
}
.now-block .now-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}
.now-block .now-title {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #b19bcf;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.now-block .latest-badge {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(177, 155, 207, 0.15);
  color: #b19bcf;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(177, 155, 207, 0.3);
  text-shadow: 0 0 10px rgba(177, 155, 207, 0.5), 0 0 30px rgba(177, 155, 207, 0.25);
  box-shadow: 0 0 14px rgba(177, 155, 207, 0.2), inset 0 0 10px rgba(177, 155, 207, 0.08);
  animation: pulse 2.2s ease-in-out infinite;
}
.now-block .now-content {
  color: #a4a8b3;
  font-size: 0.95rem;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #252833;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .timeline::before {
    left: 24px;
  }
}

.timeline-event {
  position: relative;
  display: flex;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease both;
}
.timeline-event:nth-child(odd) {
  flex-direction: row-reverse;
}
@media (max-width: 768px) {
  .timeline-event {
    flex-direction: row !important;
    padding-left: 56px;
  }
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 1rem;
  width: 40px;
  height: 40px;
  background: #111215;
  border: 2px solid #b19bcf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  font-size: 1rem;
  z-index: 2;
}
@media (max-width: 768px) {
  .timeline-node {
    left: 24px;
  }
}

.timeline-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.timeline-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.timeline-card {
  padding: 1.5rem;
  width: calc(50% - 40px);
}
@media (max-width: 768px) {
  .timeline-card {
    width: 100%;
  }
}
.timeline-card .timeline-date {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  color: #b19bcf;
}
.timeline-card .timeline-title {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
.timeline-card .timeline-desc {
  color: #a4a8b3;
  font-size: 0.9rem;
}

.timeline-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.timeline-filters .filter-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  background: #111215;
  border: 1px solid #252833;
  color: #a4a8b3;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.timeline-filters .filter-btn:hover, .timeline-filters .filter-btn.active {
  border-color: #b19bcf;
  color: #b19bcf;
  background: rgba(177, 155, 207, 0.1);
}

.entry-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 2.75rem 2rem 3rem;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
}
.entry-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #0b0b0d);
}
.entry-hero .entry-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.entry-hero .entry-hero-title {
  font-size: 2.8rem;
}
@media (max-width: 768px) {
  .entry-hero .entry-hero-title {
    font-size: 2rem;
  }
}

.entry-page {
  margin-top: -2rem;
}

.entry-hero .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #a4a8b3;
}
.entry-hero .entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.entry-hero .entry-meta span + span::before {
  content: "•";
  color: rgba(111, 117, 132, 0.75);
  margin-right: 0.25rem;
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  font-size: 1.1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.entry-content h2 {
  margin: 2rem 0 1rem;
}
.entry-content h3 {
  margin: 1.5rem 0 0.8rem;
}
.entry-content blockquote {
  border-left: 3px solid #b19bcf;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(177, 155, 207, 0.05);
  color: #a4a8b3;
  font-style: italic;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.entry-content p,
.entry-content li,
.entry-content h2,
.entry-content h3,
.entry-content td,
.entry-content th {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.entry-content img {
  border-radius: 8px;
  display: inline-block;
  vertical-align: top;
  max-width: min(100%, 520px);
  margin: 0.3rem 0.6rem 0.85rem 0;
  border: 1px solid rgba(37, 40, 51, 0.9);
}
.entry-content img[data-display=block] {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
}
.entry-content img[data-display=wrap-left] {
  float: left;
  max-width: min(48%, 320px);
  margin: 0.25rem 1rem 0.9rem 0;
}
.entry-content img[data-display=wrap-right] {
  float: right;
  max-width: min(48%, 320px);
  margin: 0.25rem 0 0.9rem 1rem;
}
.entry-content img[data-align=left] {
  display: block;
  margin-left: 0;
  margin-right: auto;
}
.entry-content img[data-align=center] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.entry-content img[data-align=right] {
  display: block;
  margin-left: auto;
  margin-right: 0;
}
.entry-content .journal-image-node {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: fit-content;
  max-width: min(100%, 520px);
  margin: 0.3rem 0.6rem 0.85rem 0;
}
.entry-content .journal-image-node[data-display=block] {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
}
.entry-content .journal-image-node[data-display=wrap-left] {
  float: left;
  max-width: min(48%, 420px);
  margin: 0.25rem 1rem 0.9rem 0;
}
.entry-content .journal-image-node[data-display=wrap-right] {
  float: right;
  max-width: min(48%, 420px);
  margin: 0.25rem 0 0.9rem 1rem;
}
.entry-content .journal-image-node[data-align=left] {
  display: block;
  margin-left: 0;
  margin-right: auto;
}
.entry-content .journal-image-node[data-align=center] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.entry-content .journal-image-node[data-align=right] {
  display: block;
  margin-left: auto;
  margin-right: 0;
}
.entry-content .journal-image-node img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.entry-content .journal-image-caption {
  margin-top: 0.45rem;
  color: #6f7584;
  font-size: 0.82rem;
  line-height: 1.45;
}
.entry-content .sidecar-layout {
  --sidecar-media-width: 260px;
  display: grid;
  grid-template-columns: minmax(180px, var(--sidecar-media-width)) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  margin: 1.5rem 0;
  clear: both;
}
.entry-content .sidecar-layout-media img {
  display: block;
  width: 100%;
  margin: 0;
}
.entry-content .sidecar-layout-caption {
  margin-top: 0.45rem;
  color: #6f7584;
  font-size: 0.82rem;
  line-height: 1.45;
}
.entry-content .sidecar-layout-copy {
  min-width: 0;
}
.entry-content .sidecar-layout-copy > :first-child {
  margin-top: 0;
}
.entry-content .sidecar-layout-copy > :last-child {
  margin-bottom: 0;
}
@media (max-width: 860px) {
  .entry-content .sidecar-layout {
    grid-template-columns: 1fr;
  }
}
.entry-content pre {
  background: #050505;
  padding: 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.entry-content pre code {
  background: none;
  padding: 0;
}
.entry-content::after {
  content: "";
  display: block;
  clear: both;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, #b19bcf, #d1c2e8);
  transition: width 0.1s linear;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  border: 1px solid rgba(177, 155, 207, 0.3);
  box-shadow: 0 0 15px rgba(177, 155, 207, 0.1), inset 0 0 15px rgba(177, 155, 207, 0.05);
  background: #111215;
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.6s ease;
}
.login-card .login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-card .login-title {
  font-family: "Cinzel", serif;
  text-align: center;
  margin-bottom: 0.5rem;
}
.login-card .login-subtitle {
  text-align: center;
  color: #a4a8b3;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #a4a8b3;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #0b0b0d;
  border: 1px solid #252833;
  border-radius: 4px;
  color: #e6e6ea;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(177, 155, 207, 0.4);
  border-color: #b19bcf;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #b19bcf, #d1c2e8);
  color: #050505;
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(177, 155, 207, 0.4);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.form-error {
  color: #8b3a3a;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}
.form-error.visible {
  display: block;
}

.site-footer {
  border-top: 1px solid #252833;
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
  color: #6f7584;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
}
.site-footer .footer-rune {
  animation: runeGlow 4s ease-in-out infinite;
  color: #b19bcf;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}
.pagination .page-btn {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.pagination .page-btn:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.pagination .page-btn {
  padding: 0.6rem 1.2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #a4a8b3;
  cursor: pointer;
  background: #111215;
  border-radius: 4px;
}
.pagination .page-btn:hover {
  color: #b19bcf;
}
.pagination .page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: #111215;
  border: 1px solid #252833;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, border-color 0.3s;
  color: #b19bcf;
  font-size: 1.2rem;
}
.scroll-top.visible {
  opacity: 1;
}
.scroll-top:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
}

.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page .error-code {
  font-family: "Cinzel", serif;
  font-size: 8rem;
  text-shadow: 0 0 10px rgba(177, 155, 207, 0.5), 0 0 30px rgba(177, 155, 207, 0.25);
}
.error-page .error-message {
  color: #a4a8b3;
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
}

.section-heading {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  text-align: center;
  margin: 3rem 0 1.5rem;
  position: relative;
}
.section-heading::after {
  content: "᛫";
  display: block;
  color: #b19bcf;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  opacity: 0.6;
}

.health-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.health-heading {
  margin-bottom: 2rem;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .health-grid {
    grid-template-columns: 1fr;
  }
}

.health-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.health-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.health-card {
  padding: 1.4rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.health-card p:last-child {
  margin-bottom: 0;
}

.health-muted {
  color: #6f7584;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
}

.health-subtitle {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  color: #b19bcf;
  line-height: 1.35;
}

.health-content {
  color: #a4a8b3;
  line-height: 1.8;
  flex: 1;
}
.health-content p,
.health-content ul,
.health-content ol {
  margin-bottom: 0.8rem;
}
.health-content p:last-child,
.health-content ul:last-child,
.health-content ol:last-child {
  margin-bottom: 0;
}

.health-meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(177, 155, 207, 0.15);
}

.future-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.future-intro {
  margin-bottom: 2rem;
}

.future-section {
  margin-bottom: 2.25rem;
}

.future-section-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #b19bcf;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.future-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.future-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.future-card {
  padding: 1.25rem;
}
.future-card.pinned {
  border-color: rgba(177, 155, 207, 0.45);
  box-shadow: 0 0 18px rgba(177, 155, 207, 0.12);
}
.future-card.locked {
  border-style: dashed;
}
.future-card.empty {
  text-align: center;
  color: #a4a8b3;
}

.future-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.future-title {
  font-size: 1.05rem;
}

.future-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.future-badge {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(177, 155, 207, 0.3);
  color: #b19bcf;
  background: rgba(177, 155, 207, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  white-space: nowrap;
}
.future-badge.muted {
  color: #a4a8b3;
  border-color: #252833;
  background: rgba(37, 40, 51, 0.45);
}

.future-message {
  color: #a4a8b3;
  white-space: pre-line;
  line-height: 1.7;
}
.future-message.masked {
  font-style: italic;
  color: #6f7584;
}

.future-meta {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(37, 40, 51, 0.7);
  font-size: 0.82rem;
  font-family: "Inter", sans-serif;
  color: #6f7584;
}

.music-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .music-layout {
    grid-template-columns: 1fr;
  }
}

.music-player-card,
.music-side-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.music-player-card:hover,
.music-side-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.music-player-card,
.music-side-card {
  padding: 1.2rem;
}

.music-layout.playlist-mode .music-now {
  margin-bottom: 0.8rem;
}

.music-playlist-embed {
  width: 100%;
  min-height: 560px;
  border: 1px solid rgba(177, 155, 207, 0.2);
  border-radius: 8px;
  background: #050505;
}

.music-now {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.music-cover {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(177, 155, 207, 0.35);
}

.music-title {
  margin-bottom: 0.2rem;
}

.music-artist {
  color: #b19bcf;
  margin-bottom: 0.1rem;
}

.music-album {
  color: #6f7584;
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  margin-bottom: 0;
}

.music-eq {
  width: 100%;
  height: 120px;
  margin: 1rem 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.7), rgba(11, 11, 13, 0.9));
  border: 1px solid rgba(177, 155, 207, 0.2);
  border-radius: 8px;
}

.music-seek-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 0.6rem;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: #6f7584;
}

.music-seek-row input,
.music-volume input {
  accent-color: #b19bcf;
}

.music-controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.music-volume {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: #a4a8b3;
}

.music-side-title {
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
}

.music-notes {
  color: #a4a8b3;
  white-space: pre-line;
  line-height: 1.75;
  font-size: 0.96rem;
}

.music-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.music-track-item {
  width: 100%;
  text-align: left;
  background: #0b0b0d;
  border: 1px solid #252833;
  border-radius: 4px;
  color: #a4a8b3;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.music-track-item strong {
  color: #e6e6ea;
  font-size: 0.9rem;
}
.music-track-item span {
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  color: #6f7584;
}
.music-track-item:hover, .music-track-item.active {
  border-color: rgba(177, 155, 207, 0.45);
  background: rgba(177, 155, 207, 0.06);
  color: #b19bcf;
}

.habits-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.habits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.habit-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.habit-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.habit-card {
  padding: 1rem;
  border-left: 4px solid var(--habit-color, #c9a84c);
}

.habit-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.habit-title {
  font-size: 1.1rem;
}

.habit-target {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #6f7584;
}

.habit-desc {
  color: #a4a8b3;
  margin-bottom: 0.8rem;
}

.habit-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.habit-stats div {
  background: rgba(5, 5, 5, 0.45);
  border: 1px solid #252833;
  border-radius: 4px;
  padding: 0.4rem;
  text-align: center;
}
.habit-stats span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  color: #6f7584;
  margin-bottom: 0.08rem;
}
.habit-stats strong {
  font-size: 0.9rem;
}

.habit-heatmap {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.25rem;
}
.habit-heatmap .dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(37, 40, 51, 0.7);
}
.habit-heatmap .dot.complete {
  background: rgba(58, 107, 74, 0.9);
}
.habit-heatmap .dot.skip {
  background: rgba(177, 155, 207, 0.55);
}
.habit-heatmap .dot.miss {
  background: rgba(139, 58, 58, 0.9);
}

.livecam-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.livecam-desc {
  text-align: center;
  color: #a4a8b3;
  margin-bottom: 1rem;
}

.livecam-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.livecam-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.livecam-card {
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.livecam-frame {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 8px;
  background: #050505;
}

img.livecam-frame,
video.livecam-frame {
  object-fit: cover;
}

.livecam-note {
  margin-top: 1rem;
}

.thought-flash-page {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.thought-flash-sub {
  text-align: center;
  color: #a4a8b3;
  margin-bottom: 1.2rem;
}

.thought-grid {
  position: relative;
  width: 100%;
  transition: height 0.2s;
}

.thought-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.thought-card:hover {
  border-color: #b19bcf;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  transform: translateY(-3px);
}
.thought-card {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.thought-card:hover {
  transform: none;
}
.thought-card .thought-media {
  width: 100%;
  display: block;
  background: #050505;
  object-fit: cover;
}
.thought-card .thought-preview {
  padding: 0.8rem 0.9rem;
  color: #a4a8b3;
  font-size: 0.9rem;
  line-height: 1.45;
}

.thought-loader {
  margin: 1rem auto 0;
  text-align: center;
  color: #6f7584;
  opacity: 0;
  transition: opacity 0.2s;
}
.thought-loader.show {
  opacity: 1;
}

.thought-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.thought-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.thought-modal.open .thought-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.thought-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.thought-modal-content {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-width: 0;
  max-width: min(92vw, 1100px);
  margin: 5vh auto;
  max-height: 90vh;
  overflow: hidden;
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 155, 207, 0.65) rgba(17, 18, 21, 0.85);
}

.entertainment-page {
  padding: 3rem 0;
}

.entertainment-sub {
  text-align: center;
  color: #a4a8b3;
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.entertainment-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.entertainment-filters .filter-chip {
  padding: 0.4rem 1rem;
  border: 1px solid #252833;
  border-radius: 999px;
  background: #111215;
  color: #a4a8b3;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
}

.entertainment-filters .filter-chip:hover {
  border-color: #b19bcf;
  color: #e6e6ea;
}

.entertainment-filters .filter-chip.active {
  background: #b19bcf;
  color: #050505;
  border-color: #b19bcf;
  font-weight: 600;
}

.entertainment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.entertainment-card {
  background: #111215;
  border: 1px solid #252833;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.entertainment-card:hover {
  border-color: #6f5a8e;
  box-shadow: 0 0 20px rgba(177, 155, 207, 0.2);
}

.entertainment-card.featured {
  border-color: #7a6530;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.entertainment-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.entertainment-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spoiler-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(139, 58, 58, 0.9);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.yt-cover {
  position: relative;
}

.yt-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
}

a.entertainment-card:hover .yt-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(139, 58, 58, 0.8);
}

.entertainment-card-body {
  padding: 1rem 1.25rem;
}

.entertainment-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.entertainment-type-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(177, 155, 207, 0.12);
  color: #b19bcf;
  border: 1px solid rgba(177, 155, 207, 0.2);
}

.entertainment-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.entertainment-rating .star {
  color: #252833;
  font-size: 0.7rem;
}

.entertainment-rating .star.filled {
  color: #c9a84c;
}

.entertainment-rating .rating-num {
  margin-left: 0.4rem;
  color: #6f7584;
  font-size: 0.78rem;
}

.entertainment-card-title {
  font-family: "Cinzel", serif;
  color: #e6e6ea;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.entertainment-creator {
  color: #a4a8b3;
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.entertainment-genre {
  color: #6f7584;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.entertainment-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.watch-status-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid #252833;
}

.ws-completed {
  background: rgba(58, 107, 74, 0.2);
  color: #5ea87a;
  border-color: #3a6b4a;
}

.ws-watching {
  background: rgba(58, 90, 107, 0.2);
  color: #5e8a9f;
  border-color: #3a5a6b;
}

.ws-dropped {
  background: rgba(139, 58, 58, 0.2);
  color: #bf5e5e;
  border-color: #8b3a3a;
}

.ws-plan-to-watch {
  background: rgba(177, 155, 207, 0.2);
  color: #b19bcf;
  border-color: #6f5a8e;
}

.ws-on-hold {
  background: rgba(201, 168, 76, 0.2);
  color: #c9a84c;
  border-color: #7a6530;
}

.entertainment-year {
  color: #6f7584;
  font-size: 0.8rem;
}

.recommendation-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid #252833;
  margin-bottom: 0.75rem;
}

.rec-must-watch {
  background: rgba(58, 107, 74, 0.2);
  color: #5ea87a;
  border-color: #3a6b4a;
}

.rec-highly-recommended {
  background: rgba(177, 155, 207, 0.2);
  color: #b19bcf;
  border-color: #6f5a8e;
}

.rec-recommended {
  background: rgba(58, 90, 107, 0.2);
  color: #5e8a9f;
  border-color: #3a5a6b;
}

.rec-mixed-feelings {
  background: rgba(201, 168, 76, 0.2);
  color: #c9a84c;
  border-color: #7a6530;
}

.rec-not-recommended {
  background: rgba(139, 58, 58, 0.2);
  color: #bf5e5e;
  border-color: #8b3a3a;
}

.entertainment-review-text {
  color: #a4a8b3;
  font-family: "EB Garamond", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.entertainment-review-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #111215);
}

.entertainment-audio {
  margin: 0.5rem 0;
}
.entertainment-audio audio {
  width: 100%;
  height: 36px;
}

.entertainment-ext-link {
  display: inline-block;
  color: #b19bcf;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 0.25rem;
}
.entertainment-ext-link:hover {
  text-decoration: underline;
}

.empty-notice {
  text-align: center;
  color: #6f7584;
  padding: 3rem 1rem;
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
}

a.entertainment-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.entertainment-card:hover {
  color: inherit;
}
a.entertainment-card .entertainment-type-badge,
a.entertainment-card .watch-status-badge,
a.entertainment-card .recommendation-badge,
a.entertainment-card .entertainment-card-title,
a.entertainment-card .entertainment-creator,
a.entertainment-card .entertainment-genre,
a.entertainment-card .entertainment-year,
a.entertainment-card .entertainment-rating .rating-num {
  color: inherit;
}
a.entertainment-card .entertainment-type-badge {
  color: #b19bcf;
}
a.entertainment-card .entertainment-card-title {
  color: #e6e6ea;
}
a.entertainment-card .entertainment-creator {
  color: #a4a8b3;
}
a.entertainment-card .entertainment-genre,
a.entertainment-card .entertainment-year {
  color: #6f7584;
}
a.entertainment-card .entertainment-rating .rating-num {
  color: #6f7584;
}
a.entertainment-card .ws-completed {
  color: #5ea87a;
}
a.entertainment-card .ws-watching {
  color: #5e8a9f;
}
a.entertainment-card .ws-dropped {
  color: #bf5e5e;
}
a.entertainment-card .ws-plan-to-watch {
  color: #b19bcf;
}
a.entertainment-card .ws-on-hold {
  color: #c9a84c;
}
a.entertainment-card .rec-must-watch {
  color: #5ea87a;
}
a.entertainment-card .rec-highly-recommended {
  color: #b19bcf;
}
a.entertainment-card .rec-recommended {
  color: #5e8a9f;
}
a.entertainment-card .rec-mixed-feelings {
  color: #c9a84c;
}
a.entertainment-card .rec-not-recommended {
  color: #bf5e5e;
}

.entertainment-detail-page {
  padding: 3rem 0;
}

.back-link {
  display: inline-block;
  color: #b19bcf;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-family: "Inter", sans-serif;
}
.back-link:hover {
  text-decoration: underline;
}

.entertainment-detail {
  max-width: 800px;
  margin: 0 auto;
}

.entertainment-detail-cover {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #252833;
  margin-bottom: 1.5rem;
}
.entertainment-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entertainment-detail-cover .spoiler-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.entertainment-detail-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #252833;
}
.entertainment-detail-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.entertainment-detail-header {
  margin-bottom: 2rem;
}

.entertainment-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.entertainment-detail-title {
  font-family: "Cinzel", serif;
  color: #e6e6ea;
  font-size: 2rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.entertainment-detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #a4a8b3;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.detail-creator {
  font-style: italic;
}

.detail-year {
  color: #6f7584;
}

.detail-genre {
  color: #6f7584;
}
.detail-genre::before {
  content: "· ";
}

.entertainment-detail-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.rating-stars-lg {
  display: flex;
  gap: 3px;
}
.rating-stars-lg .star {
  font-size: 1.4rem;
  color: #252833;
}
.rating-stars-lg .star.filled {
  color: #c9a84c;
}

.rating-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  color: #a4a8b3;
}

.entertainment-detail-audio {
  margin-bottom: 2rem;
}
.entertainment-detail-audio h3 {
  font-family: "Cinzel", serif;
  color: #e6e6ea;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.entertainment-detail-audio audio {
  width: 100%;
  height: 42px;
}

.entertainment-detail-review {
  margin-bottom: 2rem;
}
.entertainment-detail-review h3 {
  font-family: "Cinzel", serif;
  color: #e6e6ea;
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.review-body {
  color: #a4a8b3;
  font-family: "EB Garamond", serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

.entertainment-detail-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #252833;
}

.btn-external {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #111215;
  border: 1px solid #6f5a8e;
  border-radius: 8px;
  color: #b19bcf;
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-external:hover {
  border-color: #b19bcf;
  background: rgba(177, 155, 207, 0.08);
}

.featured-tag {
  color: #c9a84c;
  font-size: 0.85rem;
  font-weight: 600;
}

.thought-modal-content::-webkit-scrollbar {
  width: 10px;
}

.thought-modal-content::-webkit-scrollbar-track {
  background: rgba(17, 18, 21, 0.85);
  border-radius: 999px;
}

.thought-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(209, 194, 232, 0.75), rgba(177, 155, 207, 0.85));
  border: 1px solid rgba(37, 40, 51, 0.95);
  border-radius: 999px;
}

.thought-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(209, 194, 232, 0.95), #b19bcf);
}

.thought-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: 1px solid #252833;
  background: #111215;
  color: #e6e6ea;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.thought-modal-media {
  width: auto;
  max-height: 70vh;
  max-width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  margin-bottom: 0.9rem;
  background: #050505;
}

.thought-modal-text {
  width: 100%;
  max-height: 16vh;
  overflow: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 155, 207, 0.65) rgba(17, 18, 21, 0.7);
}
.thought-modal-text::-webkit-scrollbar {
  width: 8px;
}
.thought-modal-text::-webkit-scrollbar-track {
  background: rgba(17, 18, 21, 0.7);
  border-radius: 999px;
}
.thought-modal-text::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(209, 194, 232, 0.75), rgba(177, 155, 207, 0.85));
  border-radius: 999px;
}
.thought-modal-text h3 {
  margin-bottom: 0.45rem;
}
.thought-modal-text #thought-modal-body {
  color: #a4a8b3;
  line-height: 1.6;
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.ai-chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.ai-chat-toggle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(177, 155, 207, 0.45);
  background: linear-gradient(165deg, rgba(17, 18, 21, 0.98), rgba(23, 25, 31, 0.99));
  color: #e6e6ea;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(5, 5, 5, 0.65), 0 0 0 1px rgba(177, 155, 207, 0.18), 0 0 20px rgba(177, 155, 207, 0.25);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ai-chat-toggle::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 70%;
  height: 320%;
  transform: rotate(25deg);
  background: linear-gradient(180deg, rgba(209, 194, 232, 0), rgba(209, 194, 232, 0.22), rgba(209, 194, 232, 0));
  pointer-events: none;
  transition: left 0.45s ease;
  z-index: -1;
}
.ai-chat-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 155, 207, 0.62);
  box-shadow: 0 10px 30px rgba(5, 5, 5, 0.72), 0 0 0 1px rgba(177, 155, 207, 0.25), 0 0 28px rgba(177, 155, 207, 0.36);
}
.ai-chat-toggle:hover::before {
  left: 95%;
}
.ai-chat-toggle:active {
  transform: translateY(1px) scale(0.975);
  box-shadow: 0 4px 14px rgba(5, 5, 5, 0.72), 0 0 0 1px rgba(177, 155, 207, 0.18), 0 0 12px rgba(177, 155, 207, 0.22);
}

.ai-chat-toggle-rune {
  color: #b19bcf;
  text-shadow: 0 0 12px rgba(177, 155, 207, 0.6);
}

.ai-chat-panel {
  width: min(94vw, 360px);
  height: min(76vh, 520px);
  border-radius: 8px;
  border: 1px solid #252833;
  background: rgba(17, 18, 21, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}
.ai-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(37, 40, 51, 0.85);
}

.ai-chat-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ai-chat-brand-rune {
  color: #b19bcf;
  font-size: 1.05rem;
  text-shadow: 0 0 12px rgba(177, 155, 207, 0.7);
}

.ai-chat-brand-text {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: #e6e6ea;
}

.ai-chat-title {
  font-family: "Cinzel", serif;
  font-size: 1rem;
}

.ai-chat-sub {
  font-size: 0.78rem;
  color: #6f7584;
}

.ai-chat-close {
  width: 28px;
  height: 28px;
  border: 1px solid #252833;
  border-radius: 4px;
  background: transparent;
  color: #e6e6ea;
  cursor: pointer;
}

.ai-chat-messages {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-chat-bubble {
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.ai-chat-bubble.assistant {
  background: rgba(23, 25, 31, 0.95);
  border: 1px solid rgba(37, 40, 51, 0.7);
  color: #a4a8b3;
}
.ai-chat-bubble.user {
  align-self: flex-end;
  background: rgba(177, 155, 207, 0.15);
  border: 1px solid rgba(177, 155, 207, 0.35);
  color: #e6e6ea;
}

.ai-chat-form {
  border-top: 1px solid rgba(37, 40, 51, 0.85);
  padding: 0.65rem;
  display: flex;
  gap: 0.5rem;
}

.ai-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #252833;
  border-radius: 4px;
  background: rgba(23, 25, 31, 0.95);
  color: #e6e6ea;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
}
.ai-chat-input:focus {
  outline: none;
  border-color: rgba(177, 155, 207, 0.55);
  box-shadow: 0 0 0 2px rgba(177, 155, 207, 0.18);
}

.ai-chat-send {
  border: 1px solid rgba(177, 155, 207, 0.45);
  border-radius: 4px;
  background: rgba(177, 155, 207, 0.14);
  color: #e6e6ea;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
}