* {
  margin: 0;
  /* padding: 0; */
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 150%;
  margin: 0;
  padding: 0;
  background-color: #f8f6f4; /* 设置背景颜色 */
  color: #333; /* 设置默认文本颜色 */
  line-height: 2;
}

.column_title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  height: 100%;
}

.logo {
  height: 50px;
  width: 50px;
  margin-right: 10px;
}

.title {
  font-size: 1.2em;
  margin-bottom: 0;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-size: 1em;
}

.nav-links a:hover {
  color: #007bff;
  text-decoration: none;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #007bff;
  text-decoration: none;
}

a.h1 {
  color: #333;
  padding: 0px;
  margin: 0px;
}

h2 {
  margin: auto;
  text-align: center;
}

div.column_title {
  font-size: 20px;
}

div.hot-introduce {
  text-align: center;
  margin: 20px auto;
}

div.watch-more {
  text-align: center;
  margin: 20px auto;
}

.content {
  margin-top: 60px; /* 确保内容不被标题栏遮挡 */
  padding: 20px;
}

a {
  color: rgba(0, 0, 255, 0.8);
  text-decoration: none;
  padding: 10px;
  /* margin: 10px; */
  border-radius: 5px;
}

a.link:hover {
  color: #fff;
  background-color: rgba(255, 0, 0, 0.6);
}

section {
  /* max-width: 90%; */
  /* margin: 20px auto; */
  /* padding: 30px; */
  /* border: 2px dashed orange; */
  /* border-radius: 20px; */
}

section.category {
  border: none;
}

section.search {
  border: none;
}

section.intro {
  /* margin-top: 150px; */
  max-width: 900px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

a.card {
  background-color: #f8f6f4;
  padding: 10px;
  margin: 10px;
}

a.card:hover {
  background-color: #f8f6f4;
}

div.card {
  width: 270px;
  padding: 5px;
  border: 2px dashed orange;
  border-radius: 15px;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  height: 200px;
}

/* 设置卡片在鼠标悬停时的样式 */
.card:hover {
  transform: scale(1.03); /* 缩放效果 */
}

.card img {
  width: 100px;
  height: 100px;
  margin: 10px;
  border: 2px dotted #555;
  border-radius: 8px;
}

.col-data {
  width: 160px;
  font-size: 120%;
  color: rgba(255, 0, 0, 0.8);
  margin: 30px;
}

div.column-title {
  font-size: 25px;
  padding: 10px;
  margin: 10px;
  height: 30px;
  width: 100px;
  line-height: 120%;
}

div.column-author {
  padding: 10px;
  margin: 10px;
  width: 500px;
  line-height: 120%;
}

.intro {
  display: block;
}

.red {
  color: red;
}

.bold {
  font-weight: bold;
}

section#hot {
  /* margin-top: 100px; */
  max-width: 2200px;
  border: none;
}

section#about {
  margin-top: 50px;
  margin-bottom: 200px;
  max-width: 900px;
}

button {
  border: none;
  background-color: rgb(255, 165, 0, 0.8);
  /* color: white; */
  padding: 10px 20px;
  font-weight: bold;
  font-size: large;
  border-radius: 10px;
}

.friend-links {
  font-size: 80%;
}

/* 设置友情链接样式 */
.friend-links {
  margin-top: 10px; /* 上外边距 */
}

.friend-links h4 {
  margin-bottom: 10px; /* 下外边距 */
}

.friend-links ul {
  list-style-type: none; /* 列表样式为无 */
  padding: 0; /* 内边距为0 */
}

.friend-links li {
  display: inline; /* 行内展示 */
  margin: 0 10px; /* 外边距 */
}

.friend-links a {
  text-decoration: none; /* 移除下划线 */
  color: #000; /* 字体颜色 */
}

.friend-links a:hover {
  text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* 将精选虾仁沙雕动画导航站原站友链设置为和背景同一颜色 */
li.original a {
  color: #f8f6f4;
}

section#privacy {
  margin-top: 100px;
  margin-bottom: 50px;
}

/* 小屏幕模式 */
@media (max-width: 800px) {
  .title {
    display: none;
  }
  .navbar {
    padding: 10px;
  }
  .filter-sort {
    flex-direction: column;
    align-items: center;
  }
  .filter-sort select {
    width: 80%;
    margin-bottom: 10px;
  }
  .friend-links {
    font-size: smaller;
  }
  a.about {
    display: none;
  }
  
}

/* 2026 home-only redesign: neon fresh candy carnival */
body.home-page {
  --home-ink: #24303f;
  --home-pink: #ff5c9a;
  --home-coral: #ff8a66;
  --home-mint: #43dfbc;
  --home-cyan: #54c7ff;
  --home-lemon: #ffe36e;
  --home-violet: #9b7cff;
  --home-paper: rgba(255, 255, 255, 0.76);
  color: var(--home-ink);
  background:
    linear-gradient(90deg, rgba(255, 92, 154, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(84, 199, 255, 0.12) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 227, 110, 0.16) 0 14px, transparent 14px 31px),
    linear-gradient(120deg, #fff8dc 0%, #e7fff8 28%, #fff0fa 60%, #eaf7ff 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

body.home-page main {
  width: min(1240px, calc(100% - 28px));
}

body.home-page .library-hero {
  min-height: 360px;
  align-items: end;
  margin-top: 14px;
  padding: 28px;
  border: 4px solid rgba(36, 48, 63, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.9) 0 48%, rgba(255, 255, 255, 0.56) 48%),
    repeating-linear-gradient(-28deg, rgba(255, 92, 154, 0.18) 0 16px, rgba(255, 227, 110, 0.2) 16px 32px, rgba(67, 223, 188, 0.16) 32px 48px),
    #fff;
  box-shadow:
    0 26px 0 rgba(36, 48, 63, 0.06),
    0 34px 78px rgba(255, 92, 154, 0.2);
}

body.home-page .library-hero::before {
  width: 168px;
  height: 46px;
  top: 24px;
  right: 188px;
  border: 3px solid rgba(36, 48, 63, 0.1);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.72) 0 18px, rgba(255, 227, 110, 0.76) 18px 36px),
    var(--home-lemon);
  box-shadow: 0 12px 20px rgba(255, 138, 102, 0.16);
}

body.home-page .library-hero::after {
  right: 26px;
  bottom: 24px;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(84, 199, 255, 0.28), rgba(67, 223, 188, 0.34)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.72) 0 8px, transparent 8px 16px);
  transform: rotate(10deg);
}

body.home-page .hero-nav a,
body.home-page .library-action {
  border: 2px solid rgba(36, 48, 63, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 8px 0 rgba(36, 48, 63, 0.08),
    inset 0 -10px 0 rgba(84, 199, 255, 0.14);
}

body.home-page .hero-nav a:nth-child(2) {
  inset: auto;
  box-shadow:
    0 8px 0 rgba(36, 48, 63, 0.08),
    inset 0 -10px 0 rgba(255, 227, 110, 0.42);
}

body.home-page .hero-nav a:hover,
body.home-page .library-action:hover {
  color: var(--home-ink);
  background: #fff;
  transform: translateY(-3px) rotate(-1deg);
}

body.home-page .library-action--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--home-pink), var(--home-coral), var(--home-lemon));
  box-shadow:
    0 10px 0 rgba(180, 45, 94, 0.18),
    0 18px 34px rgba(255, 92, 154, 0.22);
}

body.home-page .library-eyebrow {
  border: 2px solid rgba(36, 48, 63, 0.08);
  color: #fff;
  background:
    linear-gradient(90deg, var(--home-pink), var(--home-violet), var(--home-cyan));
  box-shadow: 0 8px 0 rgba(36, 48, 63, 0.06);
}

body.home-page .library-hero h1 {
  max-width: 840px;
  color: var(--home-ink);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  text-shadow:
    4px 4px 0 rgba(255, 227, 110, 0.74),
    8px 8px 0 rgba(67, 223, 188, 0.38);
}

body.home-page .library-subtitle {
  max-width: 680px;
  color: rgba(36, 48, 63, 0.74);
  font-size: 18px;
  font-weight: 900;
}

.home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid rgba(36, 48, 63, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 900;
}

.home-hero-tags span:nth-child(1) { box-shadow: inset 0 -12px 0 rgba(255, 92, 154, 0.2); }
.home-hero-tags span:nth-child(2) { box-shadow: inset 0 -12px 0 rgba(255, 227, 110, 0.38); }
.home-hero-tags span:nth-child(3) { box-shadow: inset 0 -12px 0 rgba(67, 223, 188, 0.24); }

.home-ticker {
  position: relative;
  margin: -4px 0 18px;
  border: 3px solid rgba(36, 48, 63, 0.08);
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 12px 0 rgba(36, 48, 63, 0.06),
    0 18px 40px rgba(84, 199, 255, 0.14);
  overflow: hidden;
}

.home-ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 11px 12px;
  animation: homeTickerRun 18s linear infinite;
}

.home-ticker-track span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--home-pink), var(--home-violet));
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.home-ticker-track span:nth-child(3n + 2) {
  background: linear-gradient(135deg, var(--home-cyan), var(--home-mint));
}

.home-ticker-track span:nth-child(3n) {
  color: var(--home-ink);
  background: linear-gradient(135deg, var(--home-lemon), #fff7b0);
}

@keyframes homeTickerRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body.home-page .home-marquee-panel {
  padding: 24px;
  border: 4px solid rgba(36, 48, 63, 0.08);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 255, 251, 0.88));
  box-shadow:
    0 26px 0 rgba(36, 48, 63, 0.06),
    0 32px 80px rgba(67, 223, 188, 0.18);
}

body.home-page .home-marquee-panel::before {
  display: none;
}

body.home-page .home-marquee-heading {
  color: var(--home-ink);
}

body.home-page .home-marquee-heading h2 {
  color: var(--home-ink);
  font-size: clamp(28px, 4vw, 48px);
  text-shadow: none;
}

body.home-page .home-marquee-heading > p {
  color: rgba(36, 48, 63, 0.72);
}

body.home-page .home-marquee-track {
  border: 3px solid rgba(36, 48, 63, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.3),
    0 20px 44px rgba(36, 48, 63, 0.12);
}

body.home-page .home-marquee-glow {
  background: conic-gradient(from 0deg, rgba(255, 92, 154, 0.2), rgba(255, 227, 110, 0.32), rgba(67, 223, 188, 0.24), rgba(84, 199, 255, 0.28), rgba(255, 92, 154, 0.2));
  filter: blur(14px) saturate(1.3);
}

body.home-page .home-marquee-link {
  border: 2px solid rgba(36, 48, 63, 0.08);
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 0 rgba(36, 48, 63, 0.06),
    0 16px 24px rgba(84, 199, 255, 0.12);
}

body.home-page .home-marquee-link:hover {
  color: var(--home-ink);
  border-color: rgba(255, 92, 154, 0.34);
  background: #fff;
  transform: translateY(-6px) rotate(-1deg);
}

body.home-page .home-marquee-card.is-active .home-marquee-link {
  border-color: rgba(255, 92, 154, 0.5);
  box-shadow:
    0 10px 0 rgba(255, 92, 154, 0.14),
    0 18px 34px rgba(255, 92, 154, 0.22);
}

body.home-page .home-marquee-name {
  color: var(--home-ink);
}

body.home-page .home-marquee-mini-tag {
  color: #f04785;
}

body.home-page .home-marquee-image,
body.home-page .home-marquee-center-image {
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(36, 48, 63, 0.12);
}

body.home-page .home-marquee-center {
  border: 3px solid rgba(36, 48, 63, 0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.48)),
    linear-gradient(135deg, rgba(255, 92, 154, 0.18), rgba(84, 199, 255, 0.18));
  box-shadow:
    0 14px 0 rgba(36, 48, 63, 0.06),
    0 26px 42px rgba(255, 92, 154, 0.14);
}

body.home-page .home-marquee-center::after {
  right: -42px;
  bottom: -40px;
  width: 150px;
  height: 90px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.7) 0 12px, rgba(255, 227, 110, 0.7) 12px 24px);
  transform: rotate(-12deg);
}

body.home-page .home-marquee-center-tag,
body.home-page .home-marquee-center-meta {
  color: #d83d78;
}

body.home-page .home-marquee-center-tag {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 -10px 0 rgba(255, 227, 110, 0.34);
}

body.home-page .home-marquee-center-title {
  color: var(--home-ink);
}

body.home-page .home-marquee-center-description {
  color: rgba(36, 48, 63, 0.74);
}

body.home-page .home-marquee-center-link,
body.home-page .home-marquee-control {
  color: var(--home-ink);
  border: 2px solid rgba(36, 48, 63, 0.08);
  background: linear-gradient(135deg, #fff, var(--home-lemon), #ffd4e5);
  box-shadow:
    0 9px 0 rgba(36, 48, 63, 0.08),
    0 16px 28px rgba(255, 92, 154, 0.14);
}

body.home-page .home-marquee-control:hover,
body.home-page .home-marquee-center-link:hover {
  color: var(--home-ink);
  background: linear-gradient(135deg, var(--home-mint), #fff, var(--home-pink));
}

body.home-page #friend-links {
  padding: 20px;
  border: 3px solid rgba(36, 48, 63, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 42px rgba(84, 199, 255, 0.12);
}

@media (max-width: 800px) {
  body.home-page .library-hero {
    min-height: 0;
    padding: 20px 16px 22px;
  }

  body.home-page .library-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
    line-height: 1.02;
  }

  body.home-page .library-subtitle {
    font-size: 15px;
  }

  .home-ticker {
    border-radius: 20px;
  }

  body.home-page .home-marquee-panel {
    padding: 12px;
    border-radius: 24px;
  }

  body.home-page .home-marquee-heading h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  body.home-page .home-marquee-center {
    min-height: 360px;
  }
}

/* 2026 refresh: clean directory style */
:root {
  --page-bg: #f6f3ee;
  --surface: #fffdf9;
  --surface-soft: #fbf7f1;
  --ink: #201b18;
  --muted: #756c64;
  --line: #e8ddd3;
  --accent: #b54848;
  --accent-strong: #8f2f36;
  --accent-soft: #fff0ee;
  --shadow: 0 18px 45px rgba(64, 41, 31, 0.08);
  --radius: 8px;
}

html {
  background: var(--page-bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "PingFang SC", serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(246, 243, 238, 0.98) 380px),
    var(--page-bg);
  color: var(--ink);
}

a {
  color: var(--accent-strong);
  padding: 0;
  border-radius: 0;
}

a:hover {
  color: var(--accent);
}

.navbar {
  width: min(1180px, calc(100% - 32px)) !important;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(232, 221, 211, 0.9);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(64, 41, 31, 0.08);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  margin-left: 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
a.link:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 94px;
}

.library-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  padding: 30px 0 24px;
  text-align: left;
}

.library-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.library-hero h2 {
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 800;
}

.library-subtitle {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.library-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.library-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(64, 41, 31, 0.06);
}

.library-action--primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fffdf9;
}

.library-action:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.library-action--primary:hover {
  color: #fffdf9;
  background: var(--accent);
}

.ranking-tabs {
  position: sticky;
  top: 78px;
  z-index: 50;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid rgba(232, 221, 211, 0.88);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(64, 41, 31, 0.06);
}

.ranking-tabs .nav-tabs {
  gap: 6px;
  border-bottom: 0;
}

.ranking-tabs .nav-link {
  min-height: 38px;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.ranking-tabs .nav-link:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.ranking-tabs .nav-link.active {
  color: #fffdf9 !important;
  background: var(--accent-strong) !important;
  box-shadow: 0 10px 22px rgba(143, 47, 54, 0.18);
}

button {
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

#friend-links {
  margin: 42px 0 24px;
}

#friend-links h3 {
  color: var(--ink);
  font-size: 18px;
}

li.original a {
  color: var(--page-bg);
}

@media (max-width: 800px) {
  body {
    font-size: 15px;
  }

  .navbar {
    width: calc(100% - 18px) !important;
    top: 8px;
  }

  .nav-links a {
    padding: 6px 9px;
    font-size: 13px;
  }

  main {
    width: calc(100% - 20px);
    padding-top: 76px;
  }

  .library-hero {
    display: block;
    padding: 22px 0 16px;
  }

  .library-subtitle {
    font-size: 14px;
  }

  .library-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .ranking-tabs {
    top: 66px;
    overflow-x: auto;
  }

  .ranking-tabs .nav-tabs {
    flex-wrap: nowrap;
  }
}

/* 2026 candy board refresh */
:root {
  --page-bg: #fff7ec;
  --paper: #fffefa;
  --paper-2: #fff3f4;
  --ink: #2c2427;
  --muted: #796e72;
  --line: #f0d9cf;
  --accent: #ff6f8d;
  --accent-strong: #de3f67;
  --mint: #7cdcc4;
  --lemon: #ffd86d;
  --sky: #8ec8ff;
  --lavender: #c8a7ff;
  --peach: #ffad7d;
  --shadow: 0 24px 60px rgba(183, 91, 91, 0.16);
  --radius: 18px;
}

html {
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 111, 141, 0.12) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(124, 220, 196, 0.18), transparent 26%),
    linear-gradient(225deg, rgba(255, 216, 109, 0.24), transparent 30%),
    var(--page-bg);
  background-size: 32px 32px, auto, auto, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.24) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

a {
  color: var(--accent-strong);
}

.navbar {
  width: min(1200px, calc(100% - 28px)) !important;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-0.2deg);
  padding: 10px 14px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 18px 45px rgba(183, 91, 91, 0.14);
  backdrop-filter: blur(18px) saturate(1.2);
}

.logo {
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(222, 63, 103, 0.18);
}

.title {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.nav-links a {
  margin-left: 0;
  padding: 8px 13px;
  border: 1px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:nth-child(1) {
  box-shadow: inset 0 -10px 0 rgba(124, 220, 196, 0.28);
}

.nav-links a:nth-child(2) {
  box-shadow: inset 0 -10px 0 rgba(255, 216, 109, 0.35);
}

.nav-links a:nth-child(3) {
  box-shadow: inset 0 -10px 0 rgba(255, 111, 141, 0.22);
}

.nav-links a:hover,
a.link:hover {
  color: var(--accent-strong);
  background: #fff;
  transform: translateY(-1px);
}

main {
  position: relative;
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: 22px;
}

.library-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 8px 0 22px;
  padding: 34px 28px 30px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 244, 0.88)),
    repeating-linear-gradient(-35deg, rgba(124, 220, 196, 0.16) 0 12px, rgba(255, 216, 109, 0.18) 12px 24px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-nav {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.hero-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(44, 36, 39, 0.04);
}

.hero-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  transform: translateY(-2px) rotate(-1deg);
}

.library-hero::before,
.library-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(44, 36, 39, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.library-hero::before {
  width: 120px;
  height: 36px;
  top: 18px;
  right: 190px;
  transform: rotate(8deg);
  border-radius: 999px;
}

.library-hero::after {
  width: 92px;
  height: 92px;
  right: 28px;
  bottom: -28px;
  transform: rotate(15deg);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 216, 109, 0.7), rgba(142, 200, 255, 0.55));
}

.library-eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.library-hero h2 {
  max-width: 760px;
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
}

.library-subtitle {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.library-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.library-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 0 rgba(44, 36, 39, 0.06);
}

.library-action--primary {
  border-color: rgba(222, 63, 103, 0.18);
  background: linear-gradient(135deg, var(--accent), var(--peach));
  color: #fff;
}

.library-action:hover {
  color: var(--ink);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 14px 0 rgba(44, 36, 39, 0.06);
}

.ranking-tabs {
  position: sticky;
  top: 76px;
  z-index: 50;
  margin-bottom: 20px;
  padding: 9px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: 0 16px 38px rgba(183, 91, 91, 0.12);
  backdrop-filter: blur(16px);
}

.ranking-tabs .nav-tabs {
  gap: 8px;
  border-bottom: 0;
}

.ranking-tabs .nav-link {
  min-height: 40px;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.ranking-tabs .nav-link:nth-child(1):hover {
  background: rgba(124, 220, 196, 0.22);
}

.ranking-tabs .nav-link:nth-child(2):hover {
  background: rgba(255, 216, 109, 0.28);
}

.ranking-tabs .nav-link:nth-child(3):hover {
  background: rgba(255, 111, 141, 0.18);
}

.ranking-tabs .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)) !important;
  box-shadow: 0 10px 22px rgba(222, 63, 103, 0.22);
}

#friend-links {
  margin: 46px 0 28px;
}

#friend-links h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto 72px;
}

.legal-hero {
  margin: 22px 0 20px;
  padding: 30px 28px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 244, 0.9)),
    repeating-linear-gradient(-35deg, rgba(124, 220, 196, 0.14) 0 12px, rgba(255, 216, 109, 0.16) 12px 24px);
  box-shadow: var(--shadow);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.legal-nav a,
.footer-legal-links a {
  color: var(--ink);
  font-weight: 900;
}

.legal-nav a {
  padding: 8px 14px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 0 rgba(44, 36, 39, 0.04);
}

.legal-nav a:hover,
.footer-legal-links a:hover {
  color: var(--accent-strong);
}

.legal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  font-weight: 900;
}

.legal-hero p {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.legal-card {
  padding: 26px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 24px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 18px 44px rgba(183, 91, 91, 0.12);
}

.legal-card h2 {
  margin: 24px 0 10px;
  text-align: left;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 900;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}

.legal-card ul {
  padding-left: 1.2em;
}

.legal-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 216, 109, 0.22);
  color: var(--ink);
  font-weight: 800;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin: 8px 0;
  font-size: 13px;
}

.library-hero h1 {
  max-width: 760px;
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.home-marquee-panel {
  position: relative;
  margin: 0 0 24px;
  padding: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 111, 141, 0.2), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(255, 216, 109, 0.16), transparent 28%),
    linear-gradient(145deg, #1e1518 0%, #3a1b25 44%, #120e11 100%);
  box-shadow:
    0 26px 70px rgba(63, 24, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.home-marquee-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.home-marquee-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
  color: #fff8f2;
}

.home-marquee-heading .library-eyebrow {
  color: #ffe2aa;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.home-marquee-heading h2 {
  margin: 8px 0 0;
  text-align: left;
  color: #fffaf6;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.05;
  font-weight: 900;
}

.home-marquee-heading > p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 248, 242, 0.74);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.home-marquee-stage {
  position: relative;
  z-index: 1;
  min-height: 420px;
}

.home-marquee-empty {
  margin: 0;
  padding: 24px;
  border-radius: 18px;
  color: rgba(255, 248, 242, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.home-marquee-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(84px, 1fr));
  gap: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 50%, rgba(222, 63, 103, 0.2), transparent 44%),
    rgba(16, 12, 14, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.home-marquee-glow {
  position: absolute;
  inset: 8px;
  border-radius: 24px;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255, 111, 141, 0.1), rgba(255, 216, 109, 0.2), rgba(124, 220, 196, 0.08), rgba(255, 111, 141, 0.1));
  filter: blur(18px) saturate(1.2);
  opacity: 0.72;
  animation: homeMarqueeGlow 9s linear infinite;
}

@keyframes homeMarqueeGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.home-marquee-card {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
}

.home-marquee-card.slot-0 { grid-area: 1 / 1; }
.home-marquee-card.slot-1 { grid-area: 1 / 2; }
.home-marquee-card.slot-2 { grid-area: 1 / 3; }
.home-marquee-card.slot-3 { grid-area: 1 / 4; }
.home-marquee-card.slot-4 { grid-area: 1 / 5; }
.home-marquee-card.slot-5 { grid-area: 2 / 5; }
.home-marquee-card.slot-6 { grid-area: 3 / 5; }
.home-marquee-card.slot-7 { grid-area: 4 / 5; }
.home-marquee-card.slot-8 { grid-area: 5 / 5; }
.home-marquee-card.slot-9 { grid-area: 5 / 4; }
.home-marquee-card.slot-10 { grid-area: 5 / 3; }
.home-marquee-card.slot-11 { grid-area: 5 / 2; }
.home-marquee-card.slot-12 { grid-area: 5 / 1; }
.home-marquee-card.slot-13 { grid-area: 4 / 1; }
.home-marquee-card.slot-14 { grid-area: 3 / 1; }
.home-marquee-card.slot-15 { grid-area: 2 / 1; }

.home-marquee-link {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  height: 100%;
  min-height: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #fffaf6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.home-marquee-link:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: rgba(255, 216, 109, 0.5);
  background-color: rgba(255, 255, 255, 0.12);
}

.home-marquee-card.is-active .home-marquee-link {
  border-color: rgba(255, 111, 141, 0.64);
  box-shadow: 0 16px 30px rgba(222, 63, 103, 0.22);
}

.home-marquee-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 13px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.home-marquee-name {
  margin: 7px 0 1px;
  color: #fffaf6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-marquee-mini-tag {
  color: rgba(255, 226, 170, 0.86);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.home-marquee-center-wrapper {
  position: relative;
  z-index: 3;
  grid-area: 2 / 2 / 5 / 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-marquee-center {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto auto auto;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.22), rgba(255, 248, 242, 0.1)),
    rgba(48, 25, 32, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 38px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.home-marquee-center::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 141, 0.2), transparent 66%);
  pointer-events: none;
}

.home-marquee-center.is-flipping {
  animation: homeMarqueeFlip 520ms ease;
}

@keyframes homeMarqueeFlip {
  0% { transform: rotateX(0deg); opacity: 1; }
  42% { transform: rotateX(36deg); opacity: 0.78; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

.home-marquee-center-tag,
.home-marquee-center-meta {
  position: relative;
  z-index: 1;
  color: rgba(255, 226, 170, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.home-marquee-center-tag {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.home-marquee-center-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.home-marquee-center-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fffaf6;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.12;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-marquee-center-description {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  color: rgba(255, 248, 242, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-marquee-center-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #2c151b;
  background: linear-gradient(135deg, #ffe2aa, #ff7d9a);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(255, 111, 141, 0.22);
}

.home-marquee-center-link:hover {
  color: #2c151b;
  transform: translateY(-2px);
}

.home-marquee-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.home-marquee-control {
  min-width: 126px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fffaf6;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
}

.home-marquee-control:hover {
  color: #2c151b;
  background: linear-gradient(135deg, #ffe2aa, #ff7d9a);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  body {
    font-size: 15px;
  }

  .navbar {
    width: calc(100% - 16px) !important;
    top: 8px;
    border-radius: 18px;
  }

  .nav-links a {
    padding: 7px 10px;
    font-size: 13px;
  }

  main {
    width: calc(100% - 18px);
    padding-top: 12px;
  }

  .library-hero {
    display: block;
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .hero-nav {
    justify-content: flex-start;
    margin-bottom: 18px;
    overflow-x: auto;
  }

  .library-hero::before {
    display: none;
  }

  .library-hero h2 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .library-hero h1 {
    font-size: clamp(32px, 9.8vw, 38px);
    line-height: 1.04;
  }

  .library-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .library-subtitle {
    white-space: normal;
  }

  .ranking-tabs {
    top: 68px;
    overflow-x: auto;
    border-radius: 18px;
  }

  .ranking-tabs .nav-tabs {
    flex-wrap: nowrap;
  }

  .home-marquee-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .home-marquee-heading {
    display: block;
  }

  .home-marquee-heading > p {
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }

  .home-marquee-stage {
    min-height: 0;
  }

  .home-marquee-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    aspect-ratio: auto;
    min-height: 0;
    gap: 8px;
    padding: 8px;
  }

  .home-marquee-card.slot-0,
  .home-marquee-card.slot-1,
  .home-marquee-card.slot-2,
  .home-marquee-card.slot-3,
  .home-marquee-card.slot-4,
  .home-marquee-card.slot-5,
  .home-marquee-card.slot-6,
  .home-marquee-card.slot-7,
  .home-marquee-card.slot-8,
  .home-marquee-card.slot-9,
  .home-marquee-card.slot-10,
  .home-marquee-card.slot-11,
  .home-marquee-card.slot-12,
  .home-marquee-card.slot-13,
  .home-marquee-card.slot-14,
  .home-marquee-card.slot-15,
  .home-marquee-center-wrapper {
    grid-area: auto;
  }

  .home-marquee-center-wrapper {
    order: -1;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .home-marquee-center {
    min-height: 380px;
    padding: 12px;
  }

  .home-marquee-card:nth-of-type(n + 11) {
    display: none;
  }

  .home-marquee-link {
    min-height: 154px;
  }

  .home-marquee-controls {
    width: 100%;
  }

  .home-marquee-control {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* 2026 home v2: fresh maximal clickboard */
body.home-page {
  --home-ink: #17212b;
  --home-muted: #5f6b76;
  --home-pink: #ff4f8f;
  --home-tangerine: #ff9f43;
  --home-mint: #22c7a9;
  --home-blue: #2d9cff;
  --home-lemon: #ffe66d;
  --home-lilac: #a983ff;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 33, 43, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 79, 143, 0.14) 0 12px, transparent 12px 30px),
    linear-gradient(135deg, #fff8e8 0%, #e9fff9 32%, #fff1f7 68%, #edf8ff 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--home-ink);
}

body.home-page main {
  width: min(1260px, calc(100% - 24px));
  padding: 14px 0 34px;
}

.home-ignite {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 18px;
  min-height: 520px;
  margin: 0 0 18px;
  padding: 18px;
  border: 3px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92) 0 54%, rgba(255, 238, 248, 0.76) 54%),
    repeating-linear-gradient(-32deg, rgba(255, 230, 109, 0.28) 0 18px, rgba(34, 199, 169, 0.17) 18px 36px, rgba(45, 156, 255, 0.14) 36px 54px);
  box-shadow: 0 14px 0 rgba(23, 33, 43, 0.07), 0 30px 74px rgba(255, 79, 143, 0.16);
  overflow: hidden;
}

.home-ignite::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px dashed rgba(23, 33, 43, 0.16);
}

.home-ignite__copy,
.home-lucky {
  position: relative;
  z-index: 1;
}

.home-ignite .hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.home-ignite .hero-nav a {
  min-height: 36px;
  padding: 5px 13px;
  border: 2px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  box-shadow: inset 0 -9px 0 rgba(45, 156, 255, 0.14);
}

.home-ignite .hero-nav a:hover {
  color: var(--home-ink);
  transform: translateY(-2px);
  background: #fff;
}

body.home-page .library-eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--home-pink), var(--home-lilac), var(--home-blue));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 7px 0 rgba(23, 33, 43, 0.06);
}

.home-ignite h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  color: var(--home-ink);
  font-size: clamp(42px, 6.7vw, 84px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(255, 230, 109, 0.82), 8px 8px 0 rgba(34, 199, 169, 0.24);
}

.home-ignite .library-subtitle {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(23, 33, 43, 0.74);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.75;
}

.home-search {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 116px;
  gap: 8px;
  max-width: 760px;
  padding: 8px;
  border: 3px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 0 rgba(23, 33, 43, 0.06), 0 20px 42px rgba(45, 156, 255, 0.12);
}

.home-search select,
.home-search input,
.home-search button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.home-search select,
.home-search input {
  padding: 0 14px;
  color: var(--home-ink);
  background: #fff;
  outline: 2px solid rgba(23, 33, 43, 0.06);
}

.home-search input:focus {
  outline-color: rgba(255, 79, 143, 0.5);
}

.home-search button,
#home-lucky-button,
#home-refresh-grid {
  color: #fff;
  background: linear-gradient(135deg, var(--home-pink), var(--home-tangerine));
  box-shadow: 0 8px 0 rgba(168, 47, 90, 0.2);
  cursor: pointer;
}

.home-search button:hover,
#home-lucky-button:hover,
#home-refresh-grid:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.home-mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 760px;
  margin-top: 16px;
}

.home-mood-tags a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 -10px 0 rgba(255, 230, 109, 0.34);
}

.home-mood-tags a:nth-child(2n) { box-shadow: inset 0 -10px 0 rgba(34, 199, 169, 0.2); }
.home-mood-tags a:nth-child(3n) { box-shadow: inset 0 -10px 0 rgba(255, 79, 143, 0.18); }

.home-quick-picks {
  max-width: 760px;
  margin-top: 18px;
  padding: 12px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 250, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 230, 109, 0.16) 0 12px, transparent 12px 24px);
  box-shadow: 0 12px 0 rgba(23, 33, 43, 0.04), 0 18px 36px rgba(34, 199, 169, 0.1);
}

.home-quick-picks__head {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-quick-picks__head span {
  color: var(--home-pink);
  font-size: 11px;
  font-weight: 950;
}

.home-quick-picks__head h2 {
  margin: 2px 0 0;
  color: var(--home-ink);
  text-align: left;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.home-quick-picks__head a {
  flex: 0 0 auto;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 -8px 0 rgba(45, 156, 255, 0.14);
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-quick-card {
  display: grid;
  grid-template-rows: 104px auto auto auto;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 2px solid rgba(23, 33, 43, 0.07);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 0 rgba(23, 33, 43, 0.04);
  overflow: hidden;
}

.home-quick-card:hover {
  color: var(--home-ink);
  transform: translateY(-4px) rotate(-0.8deg);
  background: #fff;
}

.home-quick-card img {
  width: 100%;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffe9f2;
}

.home-quick-card span {
  color: var(--home-pink);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-quick-card strong {
  color: var(--home-ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-quick-card small {
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-lucky {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 3px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 250, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 79, 143, 0.13) 0 14px, rgba(255, 230, 109, 0.18) 14px 28px);
}

.home-lucky__topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.home-lucky__topline span {
  color: var(--home-pink);
  font-size: 14px;
  font-weight: 950;
}

#home-lucky-button,
#home-refresh-grid {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
}

.home-featured-card,
.home-featured-link {
  min-height: 0;
}

.home-featured-link {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto auto auto auto;
  gap: 8px;
  height: 100%;
  padding: 10px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 13px 0 rgba(23, 33, 43, 0.06);
}

.home-featured-link:hover {
  color: var(--home-ink);
  transform: rotate(-0.8deg) translateY(-3px);
}

.home-featured-link img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffe9f2;
}

.home-featured-kicker,
.home-pick-card__label,
.home-pick-card__rank {
  color: var(--home-pink);
  font-size: 12px;
  font-weight: 950;
}

.home-featured-link strong {
  color: var(--home-ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 950;
}

.home-featured-link em,
.home-featured-link small {
  color: var(--home-muted);
  font-style: normal;
  font-weight: 900;
  line-height: 1.5;
}

.home-featured-link small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-mini-stats a {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 -10px 0 rgba(45, 156, 255, 0.14);
}

.home-ticker {
  margin: 0 0 18px;
  border-radius: 8px;
}

.home-discovery {
  margin: 0 0 18px;
  padding: 18px;
  border: 3px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(242, 255, 250, 0.82)),
    repeating-linear-gradient(90deg, rgba(45, 156, 255, 0.08) 0 10px, transparent 10px 26px);
  box-shadow: 0 14px 0 rgba(23, 33, 43, 0.06), 0 28px 62px rgba(34, 199, 169, 0.14);
}

.home-section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.home-section-heading h2 {
  margin: 10px 0 0;
  color: var(--home-ink);
  text-align: left;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.04;
  font-weight: 950;
}

.home-discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 14px;
}

.home-recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-pick-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 190px auto auto auto;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 0 rgba(23, 33, 43, 0.05);
}

.home-pick-card:hover {
  color: var(--home-ink);
  transform: translateY(-5px) rotate(-0.8deg);
  background: #fff;
}

.home-pick-card img {
  width: 100%;
  height: 190px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffe9f2;
}

.home-pick-card strong {
  color: var(--home-ink);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-pick-card small {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 900;
}

.home-rank-jump {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-rank-jump a {
  display: grid;
  min-height: 94px;
  place-items: center;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: linear-gradient(135deg, #fff, #fff4c7);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 9px 0 rgba(23, 33, 43, 0.05);
}

.home-rank-jump a:nth-child(2) { background: linear-gradient(135deg, #fff, #dffbf5); }
.home-rank-jump a:nth-child(3) { background: linear-gradient(135deg, #fff, #ffe4f0); }

body.home-page .home-marquee-panel,
body.home-page #friend-links {
  border-radius: 8px;
}

/* ApacheCN-style marquee layout: 16 outer slots around two center cards. */
body.home-page .home-marquee-stage {
  min-height: 0;
}

body.home-page .home-marquee-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  max-width: min(1100px, 96vw);
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 0 auto;
  padding: 12px;
  container-type: normal;
}

body.home-page .home-marquee-card {
  position: relative;
  width: auto;
  aspect-ratio: auto;
  min-width: 0;
  height: 100%;
  padding: 4px;
  box-sizing: border-box;
}

body.home-page .home-marquee-card.slot-0 { grid-area: 1 / 1; }
body.home-page .home-marquee-card.slot-1 { grid-area: 1 / 2; }
body.home-page .home-marquee-card.slot-2 { grid-area: 1 / 3; }
body.home-page .home-marquee-card.slot-3 { grid-area: 1 / 4; }
body.home-page .home-marquee-card.slot-4 { grid-area: 1 / 5; }
body.home-page .home-marquee-card.slot-5 { grid-area: 2 / 5; }
body.home-page .home-marquee-card.slot-6 { grid-area: 3 / 5; }
body.home-page .home-marquee-card.slot-7 { grid-area: 4 / 5; }
body.home-page .home-marquee-card.slot-8 { grid-area: 5 / 5; }
body.home-page .home-marquee-card.slot-9 { grid-area: 5 / 4; }
body.home-page .home-marquee-card.slot-10 { grid-area: 5 / 3; }
body.home-page .home-marquee-card.slot-11 { grid-area: 5 / 2; }
body.home-page .home-marquee-card.slot-12 { grid-area: 5 / 1; }
body.home-page .home-marquee-card.slot-13 { grid-area: 4 / 1; }
body.home-page .home-marquee-card.slot-14 { grid-area: 3 / 1; }
body.home-page .home-marquee-card.slot-15 { grid-area: 2 / 1; }

body.home-page .home-marquee-link {
  padding: 6px;
}

body.home-page .home-marquee-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-page .home-marquee-center-wrapper {
  position: relative;
  inset: auto;
  width: auto;
  transform: none;
  grid-area: 2 / 2 / 5 / 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.home-page .home-marquee-center {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "image"
    "title"
    "meta"
    "link";
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 7px;
  align-content: stretch;
  padding: 14px 14px 18px;
}

body.home-page .home-marquee-center-image {
  grid-area: image;
  aspect-ratio: 1 / 1;
  width: min(100%, 224px);
  height: auto;
  place-self: center;
}

body.home-page .home-marquee-center-title {
  grid-area: title;
  min-height: 1.15em;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
}

body.home-page .home-marquee-center-description {
  display: none;
}

body.home-page .home-marquee-center-meta {
  grid-area: meta;
  text-align: center;
}

body.home-page .home-marquee-center-link {
  grid-area: link;
  justify-self: center;
}

body.home-page .home-marquee-center-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  justify-self: auto;
  margin-top: 0;
}

@media (max-width: 980px) {
  .home-ignite,
  .home-discovery-layout {
    grid-template-columns: 1fr;
  }

  .home-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.home-page main {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .home-ignite {
    min-height: 0;
    padding: 12px;
  }

  .home-ignite .hero-nav {
    margin-bottom: 24px;
  }

  .home-ignite h1 {
    font-size: clamp(34px, 13vw, 50px);
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-lucky {
    padding: 10px;
  }

  .home-featured-link {
    grid-template-rows: 280px auto auto auto auto;
  }

  .home-section-heading {
    display: block;
  }

  #home-refresh-grid {
    width: 100%;
    margin-top: 12px;
  }

  .home-recommend-grid {
    grid-template-columns: 1fr;
  }

  .home-pick-card {
    grid-template-rows: auto 240px auto auto auto;
  }

  .home-pick-card img {
    height: 240px;
  }

  .home-mini-stats {
    grid-template-columns: 1fr;
  }

  body.home-page .home-marquee-stage,
  body.home-page .home-marquee-track {
    height: auto;
    min-height: 0;
  }

  body.home-page .home-marquee-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.home-page .home-marquee-center-wrapper {
    position: static;
    inset: auto;
    width: auto;
    transform: none;
    order: -1;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  body.home-page .home-marquee-card {
    position: static;
    width: auto;
  }

  body.home-page .home-marquee-card:nth-of-type(n + 11) {
    display: none;
  }

  body.home-page .home-marquee-center {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "title"
      "meta"
      "link";
  }

  body.home-page .home-marquee-center-image {
    width: 100%;
    min-height: 320px;
    max-height: none;
  }

  body.home-page .home-marquee-image {
    min-height: 170px;
    max-height: none;
  }
}
