:root {
  --bg: #0f1115;
  --text: #eef1f7;
  --muted: #aab3c5;
  --card: #151923;
  --card-elev: #1b2130;
  --border: #212737;
  --accent-1: #7c5cff;
  --accent-2: #00e3a2;
  --brand: linear-gradient(90deg, #7c5cff 0%, #00e3a2 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --container-w: 1200px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #4b5563;
  --card: #ffffff;
  --card-elev: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124, 92, 255, 0.12), transparent 40%),
    radial-gradient(1000px 600px at -10% 10%, rgba(0, 227, 162, 0.10), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.container {
  width: min(var(--container-w), 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(130%) blur(10px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.brand .gem {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.35), 0 -2px 10px rgba(0, 227, 162, 0.25);
}

.brand .name {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: var(--border);
  background: color-mix(in oklab, var(--card) 90%, transparent);
}

/* Dropdown menu styles */
.nav .dropdown {
  position: relative;
}

.nav .dropdown>a::after {
  content: "▼";
  font-size: 0.8em;
  margin-left: 4px;
}

.nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 200px;
  display: none;
  /* Hidden by default */
  z-index: 1000;
  box-shadow: var(--shadow);
  opacity: 0;
  /* Hidden state for animation */
  visibility: hidden;
  /* Hidden state for animation */
  transform: translateY(-10px);
  /* Initial position for animation */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  /* Animation transition */
}

.nav .dropdown:hover>.dropdown-menu,
.nav .dropdown.open>.dropdown-menu {
  display: block;
  /* Show element */
  opacity: 1;
  /* Visible state for animation */
  visibility: visible;
  /* Visible state for animation */
  transform: translateY(0);
  /* Final position for animation */
}

/* Mobile dropdown toggle */
@media (max-width: 980px) {
  .nav .dropdown>a {
    cursor: pointer;
  }

  .nav .dropdown-menu {
    position: static;
    transform: none;
    display: none;
    /* Hidden by default on mobile */
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: auto;
    opacity: 0;
    /* Ensure hidden state for animation */
    visibility: hidden;
    /* Ensure hidden state for animation */
    transition: none;
    /* No transition on mobile */
  }

  .nav .dropdown.open>.dropdown-menu {
    display: block;
    /* Show on mobile when parent is open */
    opacity: 1;
    /* Always visible on mobile when parent is open */
    visibility: visible;
    /* Always visible on mobile when parent is open */
  }

  .nav .dropdown-menu .dropdown {
    position: static;
    transform: none;
    display: none;
    /* Hidden by default on mobile */
    opacity: 1;
    /* Always visible on mobile when parent is open */
    visibility: visible;
    /* Always visible on mobile when parent is open */
    transition: none;
    /* No transition on mobile */
  }

  .nav .dropdown-menu .dropdown.open>.dropdown-menu {
    display: block;
    /* Show on open */
    opacity: 1;
    /* Always visible on mobile when parent is open */
    visibility: visible;
    /* Always visible on mobile when parent is open */
  }
}

.nav .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.nav .dropdown-menu a:last-child {
  border-bottom: none;
}

.nav .dropdown-menu a:hover {
  background: color-mix(in oklab, var(--accent-1) 10%, transparent);
}

/* Sub-submenu styles */
.nav .dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown>a::after {
  content: "▶";
  float: right;
}

.dropdown-menu .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  display: none;
  /* Hidden by default */
  opacity: 0;
  /* Hidden state for animation */
  visibility: hidden;
  /* Hidden state for animation */
  transform: translateX(-10px);
  /* Initial position for animation */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  /* Animation transition */
}

.dropdown-menu .dropdown:hover>.dropdown-menu {
  display: block;
  /* Show element */
  opacity: 1;
  /* Visible state for animation */
  visibility: visible;
  /* Visible state for animation */
  transform: translateX(0);
  /* Final position for animation */
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

.btn.ghost {
  background: transparent;
}

.btn.accent {
  border: none;
  background: var(--brand);
  color: #0b0f14;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.hamburger {
  display: none;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  min-width: 44px;
  min-height: 44px;
}

/* Search */
.searchbar {
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--border);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 0.98rem;
}

.search .count {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  margin: 26px 0 10px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
}

.hero .media {
  position: relative;
  min-height: 320px;
}

.hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.0) 30%, rgba(10, 12, 16, 0.65) 75%);
}

.hero .content {
  padding: clamp(16px, 3.3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 86%, transparent), transparent 35%), var(--card);
  border-left: 1px solid var(--border);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #00e3a2);
}

/* Featured row */
.featured {
  margin: 24px 0 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0d1117;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in oklab, var(--card) 86%, transparent);
  border: 1px solid var(--border);
}

.title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.title.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.excerpt {
  color: var(--muted);
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sections */
.section-title {
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Newsletter */
.newsletter {
  margin: 32px 0;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 90%, transparent), var(--card-elev));
  border: 1px solid var(--border);
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 180deg at 50% 50%, #7c5cff, #00e3a2, #7c5cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .2;
}

.newsletter .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: center;
}

.newsletter h3 {
  margin: 0;
  font-size: 1.4rem;
}

.newsletter p {
  margin: 6px 0 0;
  color: var(--muted);
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.newsletter input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 26px 0 50px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 18px;
}

.foot-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.foot-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* Focus indicators */
.btn:focus,
.hamburger:focus,
input:focus,
button:focus {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter .wrap {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 20px;
    background: var(--card);
    border-radius: var(--radius-lg);
    margin-top: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open a {
    padding: 12px 16px;
    margin: 0 8px;
    border-radius: var(--radius-md);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: inline-flex;
  }
}

@media (max-width: 640px) {

  .featured,
  .grid {
    grid-template-columns: 1fr;
  }

  .actions .btn.accent {
    display: none;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.breadcrumbs a {
  color: var(--accent-1);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  background-color: color-mix(in oklab, var(--accent-1) 10%, transparent);
  text-decoration: underline;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-1);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
  transition: all 0.3s ease;
  opacity: 0;
}

#back-to-top.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.4);
}

/* Post Detail Styles */
.post-detail-view {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.post-nav-buttons {
  display: flex;
  gap: 10px;
}

.post-content {
  margin-bottom: 40px;
}

.post-header {
  margin-bottom: 30px;
}

.post-meta {
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 20px 0;
  font-style: italic;
}

.post-author {
  margin: 20px 0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #00e3a2);
}

.author-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.post-stats {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-featured-image {
  margin: 30px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 30px 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text);
}

.post-body p {
  margin-bottom: 20px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.post-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.post-tags {
  margin-bottom: 20px;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  background: var(--card);
  border: 1px solid var(--border);
}

.share-btn:hover {
  transform: scale(1.1);
}

.related-posts {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 17, 21, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  color: white;
}

#loading-indicator div {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-top: 3px solid #7c5cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

#loading-indicator p {
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

#offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ff6b35;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
}

#error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ff4757;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 300px;
}

#error-message p {
  margin: 0 0 12px 0;
}

#error-message button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

#refresh-content {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-1);
  border: none;
  color: white;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 30px 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text);
}

.post-body p {
  margin-bottom: 20px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.post-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.post-tags {
  margin-bottom: 20px;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  background: var(--card);
  border: 1px solid var(--border);
}

.share-btn:hover {
  transform: scale(1.1);
}

.related-posts {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 17, 21, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  color: white;
}

#loading-indicator div {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-top: 3px solid #7c5cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

#loading-indicator p {
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

#offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ff6b35;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
}

#error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ff4757;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 300px;
}

#error-message p {
  margin: 0 0 12px 0;
}

#error-message button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

#refresh-content {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-1);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s;
}

/* Skeleton Loader Styles */
.skeleton {
  background: linear-gradient(90deg,
      var(--card-elev) 25%,
      color-mix(in oklab, var(--card-elev) 90%, var(--muted)) 50%,
      var(--card-elev) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skeleton-thumb {
  aspect-ratio: 16/9;
  width: 100%;
}

.skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-text {
  height: 14px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-title {
  height: 24px;
  width: 90%;
  margin-bottom: 4px;
}