@font-face {
  font-family: Chill;
  src: url("/assets/fonts/ChillRoundM.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #000;
}
body {
  margin: 0;
  background: #000;
  color: #f3f1f6;
  font-family: Chill, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
:focus-visible {
  outline: 2px solid #c1b0e6;
  outline-offset: 5px;
}
button,
input,
select {
  border: 1px solid #343039;
  background: #151318;
  border-radius: 9px;
}
button {
  padding: 9px 15px;
}
button:hover:not(:disabled) {
  background: #27222f;
}
button[aria-pressed="true"] {
  background: #e1d7f1;
  border-color: #e1d7f1;
  color: #211a2b;
}
input {
  color: inherit;
  padding: 11px 14px;
  width: 100%;
}
select {
  padding: 9px;
  color: inherit;
  max-width: 100%;
}
.sidebar {
  width: 222px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 23px;
  border-right: 1px solid #252228;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: bold;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand svg {
  width: 27px;
  color: #d6c7ef;
}
.brand small {
  font-size: 11px;
  color: #96909f;
  font-weight: normal;
  letter-spacing: 1px;
}
.side-label {
  color: #88828e;
  margin: 48px 14px 12px;
  font-size: 12px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  background: none;
  border-color: transparent;
  text-align: left;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav button[aria-pressed="true"] {
  background: #211c29;
  color: #e5d6fb;
}
.nav-contribute-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border-radius: 6px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.18s ease;
  margin-top: 6px;
}
.nav-contribute-link:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.6);
  color: #e9d5ff;
}
.topbar-contribute-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.topbar-contribute-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.empty-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.empty-contribute-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: #251e33;
  border: 1px solid #7c3aed66;
  color: #c084fc;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.empty-contribute-link:hover {
  background: #322547;
  color: #e9d5ff;
}
.nav svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.side-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #a49ba9;
  padding-top: 35px;
}
.side-bottom a {
  display: block;
  margin-top: 12px;
}
.side-bottom .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #baa9d3;
  margin-right: 7px;
}
.shell {
  margin-left: 222px;
  max-width: 1680px;
  padding: 0 48px;
}
.topbar {
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #252228;
}
.crumb {
  color: #aaa2b2;
  font-size: 13px;
}
.crumb strong {
  color: #eee8f4;
  font-weight: normal;
}
.toplinks {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: #b8aebe;
}
.toplinks .owner {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #211c29;
  color: #ddcdef;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding: 48px 0 38px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 3.2vw, 49px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.25;
  margin: 13px 0 20px;
}
.hero p {
  font-size: 14px;
  color: #aaa1b3;
  max-width: 560px;
}
.hero .status {
  font-size: 12px;
  color: #c0acd6;
  display: flex;
  gap: 8px;
  align-items: center;
}
.status i {
  width: 6px;
  height: 6px;
  background: #baa7d2;
  border-radius: 50%;
}
.artist {
  border: 1px solid #332a3e;
  background: #100c16;
  border-radius: 16px;
  padding: 25px 23px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.portrait {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid #4d3f60;
  object-fit: cover;
  background: #211c29;
}
.artist strong {
  font-size: 17px;
  font-weight: 500;
}
.artist p {
  margin: 4px 0;
  font-size: 11px;
  color: #a79ab4;
}
.artist a {
  font-size: 12px;
  color: #d6c3eb;
}
.scope {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #252228;
  border-bottom: 1px solid #252228;
  padding: 15px 0;
  margin-bottom: 32px;
  font-size: 12px;
  color: #a79fad;
}
.scope strong {
  color: #e2d5ed;
  font-weight: normal;
  font-size: 17px;
  margin-right: 5px;
}
.scope p {
  margin: 0;
}
.scope .notice {
  font-size: 11px;
  max-width: 400px;
  color: #a49aaf;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 23px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.7px;
}
.section-heading .sub {
  font-size: 12px;
  color: #9f95a8;
  margin-left: 12px;
}
.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  position: relative;
  width: 260px;
}
.search input {
  font-size: 12px;
  padding-left: 35px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 15px;
  height: 15px;
  color: #a59aaf;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 25px;
  align-items: center;
}
.filters button {
  font-size: 12px;
  border-color: transparent;
  background: none;
  color: #b4a9bc;
  padding: 7px 13px;
}
.filters button[aria-pressed="true"] {
  background: #e1d7f1;
  color: #211a2b;
}
.filters .view-switch {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.view-switch button {
  border: 1px solid #302936;
  padding: 6px 11px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 29px 23px;
}
.work {
  min-width: 0;
  position: relative;
}
.work-open {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
}
.work-open:hover:not(:disabled) {
  background: none;
}
.cover {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid #352a43;
  background: #191222;
  isolation: isolate;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 15% 100%, #4c345b66, transparent 70%);
}
.cover[data-kind="直播回放"] {
  background: #101c26;
  border-color: #263c4a;
}
.cover[data-kind="短片"] {
  background: #20141a;
  border-color: #49303e;
}
.cover[data-kind="音乐"] {
  background: #1c2019;
  border-color: #37432d;
}
.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-title {
  position: absolute;
  left: 20px;
  top: 24%;
  right: 20px;
  font-size: clamp(19px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 1px;
  color: #e7ddee;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cover-category {
  position: absolute;
  left: 20px;
  top: 13px;
  font-size: 10px;
  color: #c1b2cd;
}
.wave {
  position: absolute;
  bottom: 23px;
  left: 20px;
  right: 70px;
  height: 23px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
}
.wave i {
  width: 2px;
  background: #c5b2dc;
  border-radius: 4px;
}
.cover-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border: 1px solid #ffffff25;
  padding: 2px 7px;
  border-radius: 4px;
  background: #0009;
  color: #e2d9ed;
  font-size: 10px;
}
.play-glyph {
  position: absolute;
  right: 20px;
  top: 42%;
  font-size: 21px;
  color: #e5d7f5;
  opacity: 0.7;
}
.work-title {
  font-size: 14px;
  line-height: 1.6;
  font-weight: normal;
  margin: 13px 0 7px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 44px;
  padding-right: 26px;
}
.work-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: #a599ae;
}
.meta-state {
  color: #c3add8;
}
.save {
  position: absolute;
  right: 0;
  bottom: 29px;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 19px;
  color: #c3b5cf;
}
.grid.list {
  grid-template-columns: 1fr;
  gap: 18px;
}
.grid.list .work-open {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
}
.grid.list .work-title {
  min-height: 0;
  font-size: 17px;
}
.grid.list .save {
  bottom: 20px;
  right: 12px;
}
.empty {
  border: 1px dashed #3b3145;
  border-radius: 14px;
  padding: 58px 25px;
  text-align: center;
  color: #b6aabd;
}
.empty strong {
  display: block;
  font-size: 22px;
  color: #e4daed;
  font-weight: 500;
  margin-bottom: 12px;
}
.empty p {
  max-width: 460px;
  margin: 10px auto;
  font-size: 13px;
}
.empty button {
  margin-top: 15px;
}
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 35px 0;
  color: #b4a9bd;
  font-size: 12px;
}
.pagination button {
  font-size: 12px;
}
footer {
  border-top: 1px solid #252228;
  margin-top: 28px;
  padding: 24px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8e8399;
  font-size: 11px;
}
footer p {
  margin: 0;
}
dialog {
  width: min(1180px, calc(100% - 40px));
  max-height: 93dvh;
  border: 1px solid #493957;
  border-radius: 17px;
  background: #0c0a0f;
  color: #f3edf9;
  padding: 0;
}
dialog::backdrop {
  background: #000d;
  backdrop-filter: blur(7px);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 23px;
  border-bottom: 1px solid #302636;
  color: #c2b4cf;
  font-size: 12px;
}
.detail-top button {
  padding: 4px 12px;
  font-size: 20px;
  background: none;
  border: none;
}
.detail-body {
  padding: 25px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 25px;
}
.player {
  aspect-ratio: 16/9;
  border: 1px solid #342a3c;
  border-radius: 10px;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}
.player .player-message {
  padding: 20px;
  max-width: 450px;
}
.player strong {
  font-size: 23px;
  font-weight: 500;
  display: block;
}
.player p {
  color: #ad9cb9;
  font-size: 12px;
}
.player iframe,
.player video {
  height: 100%;
  width: 100%;
  border: 0;
}
.parts {
  max-height: 400px;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}
.parts button {
  text-align: left;
  display: block;
  font-size: 12px;
  padding: 13px;
}
.parts button span {
  display: block;
  font-size: 10px;
  color: #a99ab9;
  margin-top: 4px;
}
.detail-body h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 24px 0 10px;
  line-height: 1.6;
}
.detail-info {
  font-size: 12px;
  color: #ac9cba;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.detail-links {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.detail-links a {
  border: 1px solid #41314e;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12px;
}
.article-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.95;
  max-width: 75ch;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.image-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.comment-area {
  border-top: 1px solid #352a40;
  margin-top: 28px;
  padding-top: 20px;
}
.comment-area h3 {
  font-weight: 500;
  margin: 0;
  font-size: 18px;
}
.comment-note {
  font-size: 12px;
  color: #a99ab5;
}
.comment {
  padding: 17px 0;
  border-bottom: 1px solid #2a222f;
}
.comment strong {
  font-size: 13px;
  font-weight: 500;
  color: #d9bfe9;
}
.comment time {
  font-size: 11px;
  color: #9b8aa9;
  margin-left: 14px;
}
.comment p {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment .children {
  padding-left: 22px;
  border-left: 2px solid #35273e;
}
.comment-empty {
  font-size: 13px;
  color: #a99ab5;
  background: #17111d;
  padding: 20px;
  border-radius: 8px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #e2d5ed;
  color: #22192c;
  padding: 10px 20px;
  border-radius: 9px;
  z-index: 10;
  font-size: 13px;
  max-width: 90vw;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 185px;
    padding: 30px 16px;
  }
  .shell {
    margin-left: 185px;
    padding: 0 28px;
  }
  .hero {
    grid-template-columns: 1fr 245px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 170px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 20px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid #28222e;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    font-size: 10px;
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  .nav {
    display: flex;
    margin-top: 17px;
    gap: 4px;
    overflow-x: auto;
  }
  .nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 10px;
    gap: 7px;
  }
  .nav svg {
    width: 15px;
    height: 15px;
  }
  .shell {
    margin: 0;
    padding: 0 20px;
  }
  .topbar {
    height: 60px;
  }
  .toplinks {
    gap: 15px;
  }
  .toplinks .owner {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 29px 0 25px;
    gap: 17px;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
    margin: 10px 0 15px;
  }
  .hero p {
    font-size: 13px;
  }
  .artist {
    padding: 15px;
    max-width: none;
  }
  .portrait {
    width: 46px;
    height: 46px;
  }
  .artist p {
    display: none;
  }
  .artist a {
    display: block;
    margin-top: 3px;
  }
  .scope {
    gap: 12px;
    margin-bottom: 23px;
    flex-wrap: wrap;
  }
  .scope .notice {
    width: 100%;
    max-width: none;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .controls {
    width: 100%;
  }
  .search {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .controls select {
    width: 105px;
    font-size: 12px;
  }
  .filters {
    gap: 2px;
    margin-bottom: 18px;
  }
  .filters button {
    padding: 6px 9px;
    font-size: 11px;
  }
  .grid {
    gap: 24px 12px;
  }
  .cover-title {
    left: 12px;
    right: 12px;
    font-size: 18px;
    top: 30%;
    letter-spacing: 0;
  }
  .cover-category {
    left: 12px;
    top: 8px;
    font-size: 9px;
  }
  .wave {
    bottom: 15px;
    left: 12px;
    height: 15px;
    gap: 3px;
    right: 60px;
  }
  .wave i:nth-child(n + 14) {
    display: none;
  }
  .play-glyph {
    display: none;
  }
  .cover-badge {
    font-size: 9px;
    bottom: 6px;
    right: 6px;
  }
  .work-title {
    font-size: 12px;
    min-height: 39px;
    padding-right: 12px;
  }
  .work-meta {
    font-size: 10px;
    gap: 5px;
  }
  .save {
    right: -4px;
    bottom: 39px;
    font-size: 16px;
  }
  .grid.list .work-open {
    grid-template-columns: 125px 1fr;
    gap: 13px;
  }
  .grid.list .work-title {
    font-size: 13px;
  }
  .grid.list .save {
    right: 0;
    bottom: 0;
  }
  .grid.list .cover-title {
    font-size: 15px;
  }
  .grid.list .wave {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 7px;
  }
  dialog {
    width: calc(100% - 16px);
    max-height: 96dvh;
  }
  .detail-body {
    padding: 15px;
  }
  .detail-body h2 {
    font-size: 18px;
  }
  .parts {
    grid-template-columns: 1fr;
  }
  .player strong {
    font-size: 18px;
  }
  .image-gallery {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.calendar {
  border: 1px solid #332a3d;
  background: #0b080f;
  border-radius: 14px;
  padding: 23px 25px;
  margin: 0 0 34px;
}
.calendar-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-heading h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}
.calendar-heading h2 span {
  font-size: 11px;
  color: #a796b5;
  margin-left: 12px;
}
.calendar-heading select {
  font-size: 12px;
  padding: 5px 10px;
}
.calendar-scroll {
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-color: #4b3b5d #100c15;
}
.calendar-board {
  min-width: 650px;
}
.calendar-months {
  display: grid;
  grid-template-columns: repeat(53, minmax(7px, 1fr));
  gap: 4px;
  padding-left: 33px;
  font-size: 10px;
  color: #aa99b8;
  margin-bottom: 10px;
  pointer-events: none;
}
.calendar-months span {
  white-space: nowrap;
}
.calendar-body {
  display: flex;
  gap: 10px;
}
.weekdays {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  gap: 4px;
  font-size: 9px;
  line-height: 11px;
  width: 23px;
  flex-shrink: 0;
  color: #9a88ab;
}
.heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 11px);
  grid-auto-columns: minmax(7px, 1fr);
  gap: 4px;
  width: 100%;
}
.heatmap .day {
  height: 11px;
  min-width: 0;
  padding: 0;
  border-radius: 2px;
  border: 1px solid #382d43;
  background: #17111f;
  display: block;
}
.heatmap .day[data-level="1"] {
  background: #59406f;
  border-color: #74558f;
}
.heatmap .day[data-level="2"] {
  background: #8963a6;
  border-color: #a381bc;
}
.heatmap .day[data-level="3"] {
  background: #bc98d3;
  border-color: #d0b4e2;
}
.heatmap .day[data-level="4"] {
  background: #e0c6ee;
  border-color: #e8d6f3;
}
.heatmap .day[aria-pressed="true"] {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.heatmap .day[data-today="true"] {
  box-shadow:
    0 0 0 1.5px #d4a5f5,
    0 0 6px rgba(212, 165, 245, 0.4);
  border-color: #d4a5f5;
}
.heatmap .day.blank {
  visibility: hidden;
}
.heatmap .day:disabled {
  opacity: 0.28;
}
.calendar-foot {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #a18dac;
}
.calendar-key {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.calendar-key i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #17111f;
  border: 1px solid #382d43;
}
.calendar-key i:nth-of-type(2) {
  background: #59406f;
}
.calendar-key i:nth-of-type(3) {
  background: #8963a6;
}
.calendar-key i:nth-of-type(4) {
  background: #bc98d3;
}
.calendar-key i:nth-of-type(5) {
  background: #e0c6ee;
}
.date-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #20172a;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 10px 13px;
  font-size: 12px;
}
.date-filter button {
  margin-left: auto;
  background: none;
  padding: 2px 7px;
  border: 0;
}
.calendar-date {
  color: #ceafdf;
  font-size: 11px;
  margin-top: 12px;
  min-height: 18px;
}
@media (max-width: 720px) {
  .calendar {
    padding: 17px 15px;
    margin-bottom: 25px;
  }
  .calendar-heading h2 span {
    display: block;
    margin-left: 0;
    margin-top: 3px;
  }
  .calendar-foot {
    flex-wrap: wrap;
  }
  .calendar-heading {
    margin-bottom: 15px;
  }
  .calendar-scroll {
    margin-right: -5px;
  }
  .calendar-date {
    font-size: 10px;
  }
}
.player:has(video) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.player video {
  min-height: 0;
  flex: 1;
  object-fit: contain;
}
.player:has(video) > div {
  font-size: 12px;
  padding: 0 12px;
}
.player:has(video) p {
  margin: 3px 0;
}
.player .player-message:has(audio) {
  width: 100%;
  max-width: 600px;
  padding: 18px;
}
.player audio {
  display: block;
  min-width: 0;
  margin: 18px 0;
}
.player-message > a {
  display: inline-block;
  border: 1px solid #51415f;
  border-radius: 8px;
  padding: 8px 15px;
  color: #e1d3ef;
}

.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  color: #c5bad5;
  text-align: left;
}
.player-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}
.player-links a {
  color: #d8c5f0;
  text-decoration: underline;
}
.player-error {
  color: #f3a7a7;
}

@media (max-width: 550px) {
  .pagination {
    gap: 6px;
    flex-wrap: wrap;
  }

  .pagination button {
    padding: 7px 10px;
  }
}

/* Player Stage & Danmaku */
.player-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Danmaku remains on the video surface; its controls never cover native playback controls. */
.player:has(.player-shell) {
  aspect-ratio: auto;
  display: block;
  overflow: visible;
  border: 0;
  background: transparent;
  text-align: left;
}
.player:has(video) > .player-shell {
  padding: 0;
  font-size: inherit;
}
.player-shell {
  width: 100%;
  background: #08070a;
  border: 1px solid #302737;
  border-radius: 10px;
}
.player-shell .player-stage {
  aspect-ratio: 16/9;
  height: auto;
  display: block;
  border-radius: 9px 9px 0 0;
}
.danmaku-stage {
  position: absolute;
  inset: 0 0 48px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
  contain: layout paint;
}
.danmaku-stage.danmaku-disabled {
  display: none;
}
.danmaku-item {
  position: absolute;
  left: 0;
  white-space: pre;
  line-height: 1.35;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  text-shadow:
    0 1px 2px #000,
    1px 0 2px #000,
    -1px 0 2px #000,
    0 -1px 2px #000;
  user-select: none;
  will-change: transform;
  letter-spacing: 0.4px;
}
.danmaku-top,
.danmaku-bottom {
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.danmaku-controls {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border-top: 1px solid #302737;
  background: #100d14;
  color: #c5bacd;
  font-size: 12px;
  border-radius: 0 0 9px 9px;
}
.btn-danmaku-toggle,
.danmaku-fullscreen,
.danmaku-retry,
.danmaku-settings summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.btn-danmaku-toggle:hover,
.danmaku-fullscreen:hover,
.danmaku-settings summary:hover,
.danmaku-retry:hover {
  color: #fff;
  background: #292130;
}
.danmaku-controls :focus-visible {
  outline: 2px solid #ccb1ed;
  outline-offset: 3px;
}
.danmaku-switch {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 15px;
  border-radius: 9px;
  background: #554c5c;
  transition: background 0.16s;
}
.danmaku-switch::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #eee8f3;
  transition: transform 0.16s;
}
.btn-danmaku-toggle[aria-pressed="true"] .danmaku-switch {
  background: #916bb5;
}
.btn-danmaku-toggle[aria-pressed="true"] .danmaku-switch::after {
  transform: translateX(11px);
}
.danmaku-count {
  font-size: 11px;
  color: #a99cb4;
  margin-right: auto;
}
.danmaku-settings summary {
  list-style: none;
}
.danmaku-settings summary::-webkit-details-marker {
  display: none;
}
.danmaku-settings-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 8px;
  width: min(260px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid #51405e;
  background: #1a1420;
  color: #e7deed;
  box-shadow: 0 8px 30px #0008;
  border-radius: 8px;
  z-index: 45;
}
.danmaku-option {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.danmaku-option:last-child {
  margin-bottom: 0;
}
.danmaku-option > span {
  width: 48px;
  flex-shrink: 0;
}
.danmaku-option input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 20px;
  padding: 0;
  accent-color: #b995db;
  cursor: pointer;
}
.danmaku-option select {
  padding: 3px 8px;
  width: 100%;
  background: #251c2d;
  color: #eee;
  border: 1px solid #574363;
  border-radius: 4px;
  font: inherit;
}
.danmaku-controls [hidden] {
  display: none;
}
.player-shell:fullscreen {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  height: 100%;
}
.player-shell:fullscreen .player-stage {
  flex: 1;
  min-height: 0;
  height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.player-shell:fullscreen .danmaku-controls {
  flex-shrink: 0;
  border-radius: 0;
}
@media (max-width: 540px) {
  .danmaku-controls {
    gap: 5px;
    padding: 7px;
  }
  .danmaku-count {
    flex-basis: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .danmaku-switch,
  .danmaku-switch::after {
    transition: none;
  }
}
.player-error-box {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(140, 20, 20, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 30;
  text-align: center;
}

/* Source Switcher */
.btn-switch-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #251c2f;
  border: 1px solid #4a385c;
  color: #e4d8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-switch-source:hover {
  background: #332742;
  border-color: #795b96;
  color: #fff;
}
.source-switcher-dialog {
  border: 1px solid #433352;
  background: #140f1a;
  border-radius: 12px;
  padding: 24px;
  color: #eee;
  max-width: 520px;
  width: 90vw;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.source-switcher-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.source-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #281d33;
  padding-bottom: 12px;
}
.source-dialog-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #f0e6fa;
}
.source-subtitle {
  font-size: 12px;
  color: #a491b5;
  margin: 0 0 16px;
}
.source-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.source-option {
  border: 1px solid #2f233b;
  background: #1b1424;
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.source-option.active {
  border-color: #8c5fa8;
  background: #231830;
}
.source-option.disabled {
  opacity: 0.6;
}
.source-opt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.source-opt-head strong {
  font-size: 13px;
  color: #f5edfc;
}
.source-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.source-badge.current {
  background: #442a5c;
  color: #dcb8ff;
  border: 1px solid #6b4391;
}
.source-badge.pending {
  background: #241d2d;
  color: #9283a3;
  border: 1px solid #3d304b;
}
.source-desc {
  margin: 0;
  font-size: 11px;
  color: #9e8caa;
  line-height: 1.4;
}
.source-dialog-footer {
  margin-top: 18px;
  border-top: 1px solid #281d33;
  padding-top: 14px;
}
.source-hint {
  margin: 0;
  font-size: 11px;
  color: #847294;
  line-height: 1.5;
}
