:root {
  --black: #050507;
  --ink: #0a0910;
  --charcoal: #181522;
  --purple: #42345e;
  --purple-soft: #75619d;
  --white: #f7f5fb;
  --muted: rgba(247, 245, 251, .66);
  --line: rgba(247, 245, 251, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.has-rome-sidebar .topbar {
  display: none;
}

.sidebar-edge {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 218;
  width: 18px;
  display: block;
}

.rome-sidebar {
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  z-index: 220;
  width: min(300px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 16px;
  border: 1px solid rgba(247, 245, 251, .18);
  border-radius: 30px;
  background:
    linear-gradient(155deg, rgba(70, 55, 100, .92), rgba(25, 22, 35, .96) 45%, rgba(12, 11, 17, .96)),
    radial-gradient(circle at 18% 0%, rgba(181, 151, 255, .3), transparent 34%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateX(calc(-100% - 28px));
  transition: transform .24s ease;
  backdrop-filter: blur(22px) saturate(1.1);
}

.sidebar-pinned .rome-sidebar,
.sidebar-open .rome-sidebar,
.rome-sidebar:hover,
.sidebar-edge:hover + .rome-sidebar {
  transform: translateX(0);
}

.sidebar-pinned .sidebar-edge {
  display: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 10px 18px;
  color: var(--white);
}

.sidebar-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(247, 245, 251, .08);
}

.sidebar-logo strong {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 8px 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(247, 245, 251, .78);
  font-weight: 850;
  letter-spacing: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.sidebar-nav a span {
  width: 26px;
  text-align: center;
  color: rgba(247, 245, 251, .86);
  font-size: 24px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(247, 245, 251, .14), rgba(181, 151, 255, .16));
  color: var(--white);
  transform: translateX(2px);
}

.sidebar-nav a.active span {
  color: #ff5d7d;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 4px 0;
  padding: 16px 10px 4px;
  border-top: 1px solid rgba(247, 245, 251, .12);
  color: var(--white);
}

.sidebar-account strong {
  cursor: pointer;
}

.sidebar-panel {
  position: fixed;
  top: 28px;
  left: 340px;
  z-index: 221;
  display: none;
  width: min(420px, calc(100vw - 370px));
  padding: 24px;
  border: 1px solid rgba(247, 245, 251, .16);
  border-radius: 22px;
  background: rgba(22, 18, 32, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  backdrop-filter: blur(22px);
}

.sidebar-panel.is-open {
  display: block;
}

.sidebar-panel-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: var(--white);
  font-size: 26px;
}

.sidebar-panel h2 {
  margin: 0 0 16px;
}

.sidebar-panel p,
.sidebar-panel a,
.sidebar-panel button {
  color: var(--white);
  font-weight: 800;
}

.sidebar-search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(247, 245, 251, .18);
  border-radius: 12px;
  background: rgba(247, 245, 251, .08);
  color: var(--white);
  font: inherit;
}

.sidebar-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5d7d, #b597ff);
  color: #08070c;
  font-weight: 950;
}

.sidebar-pinned main {
  padding-left: min(330px, 28vw);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 7, .74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  border-radius: 50%;
}

.main-nav {
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(247, 245, 251, .1);
  color: var(--white);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 245, 251, .1);
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

section {
  padding: 110px clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: center;
  min-height: 92vh;
  overflow: hidden;
  padding-top: 120px;
  background:
    radial-gradient(circle at 65% 38%, rgba(66, 52, 94, .72), transparent 34%),
    linear-gradient(125deg, #050507 0%, #090810 44%, #1a1624 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--black));
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.hero-media img,
.comic-panel,
.vinyl {
  position: absolute;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .44);
}

.hero-media img {
  width: clamp(150px, 19vw, 260px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.hero-media img:first-of-type {
  left: 20%;
  top: 14%;
  transform: rotate(-8deg);
}

.hero-media img:nth-of-type(2) {
  left: 46%;
  top: 30%;
  transform: rotate(7deg);
}

.vinyl {
  left: 46%;
  top: 8%;
  width: clamp(190px, 23vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--purple) 0 12%, #0b0a0f 13% 28%, #25202e 29% 30%, #08070b 31% 100%);
}

.comic-panel {
  border: 2px solid var(--white);
  background: linear-gradient(145deg, #f7f5fb 0 48%, #0a0910 49% 100%);
}

.panel-one {
  left: 10%;
  bottom: 11%;
  width: 190px;
  height: 135px;
  transform: rotate(3deg);
}

.panel-two {
  right: 8%;
  bottom: 19%;
  width: 160px;
  height: 220px;
  background: linear-gradient(145deg, var(--purple) 0 45%, #f7f5fb 46% 66%, #0a0910 67%);
  transform: rotate(-5deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow,
.label {
  color: var(--purple-soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(56px, 8vw, 118px);
  line-height: .88;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .98;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-lead {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions,
.section-head,
.split {
  display: flex;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.ghost-action,
.featured-book button,
.play-button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-action,
.featured-book button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--black);
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--white);
}

.section-head {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.section-head:not(.split) {
  flex-direction: column;
}

.books-section {
  background: var(--black);
}

.books-layout,
.music-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 24px;
}

.featured-book {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
}

.featured-book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .2);
}

.featured-book p {
  color: rgba(5, 5, 7, .68);
  line-height: 1.65;
}

.book-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.book-shelf article {
  min-height: 330px;
  padding: 16px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.book-shelf img,
.cover-type {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 16px;
  border-radius: 6px;
  object-fit: cover;
}

.cover-type {
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--black);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
}

.cover-dark {
  background: linear-gradient(145deg, #09080c, var(--purple));
  color: var(--white);
  font-size: clamp(22px, 3vw, 38px);
}

.book-shelf p,
.playlist-panel p,
.news-grid p {
  color: var(--muted);
}

.comics-section {
  background: var(--white);
  color: var(--black);
}

.comics-section .eyebrow,
.comics-section .section-head .eyebrow {
  color: var(--purple);
}

.segmented,
.news-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(5, 5, 7, .08);
}

.segmented button,
.news-filters button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.segmented button.active,
.news-filters button.active {
  background: var(--black);
  color: var(--white);
}

.comic-stage {
  display: grid;
  grid-template-columns: 1.15fr .85fr .7fr;
  grid-auto-rows: 220px;
  gap: 14px;
  padding: 14px;
  background: var(--black);
  border-radius: 8px;
}

.manga-frame {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 4px solid var(--white);
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(5, 5, 7, .88) 43% 50%, transparent 51%),
    var(--white);
}

.manga-frame::before,
.manga-frame::after {
  content: "";
  position: absolute;
  background: var(--black);
}

.manga-frame::before {
  width: 80px;
  height: 80px;
  right: 16%;
  top: 18%;
  border-radius: 50%;
}

.manga-frame::after {
  left: 8%;
  right: 10%;
  bottom: 20%;
  height: 10px;
  box-shadow: 0 20px 0 var(--black), 0 40px 0 var(--black);
}

.manga-frame span {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2;
  color: var(--purple);
  font-weight: 900;
}

.manga-frame.tall {
  grid-row: span 2;
}

.manga-frame.wide {
  grid-column: span 2;
}

.manga-frame.dark {
  background: linear-gradient(135deg, var(--purple), var(--black));
}

.music-section {
  background: linear-gradient(180deg, #0a0910, #050507);
}

.playlist-panel {
  min-height: 520px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--purple), #0d0c12 64%);
}

.now-disc {
  width: min(70%, 320px);
  aspect-ratio: 1;
  margin-bottom: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 6%, var(--black) 7% 18%, var(--purple-soft) 19% 20%, #0b0a0f 21% 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  animation: spin 18s linear infinite;
}

.play-button {
  width: 54px;
  height: 54px;
  padding: 0;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--black);
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 60px;
  align-items: center;
  min-height: 78px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
  text-align: left;
}

.track.active {
  background: var(--white);
  color: var(--black);
}

.track em {
  color: currentColor;
  opacity: .64;
  font-style: normal;
}

.player-bar {
  position: sticky;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(120px, 1fr) 54px;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 21, 34, .88);
  backdrop-filter: blur(16px);
}

.progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 245, 251, .16);
}

.progress i {
  display: block;
  width: 36%;
  height: 100%;
  background: var(--white);
  border-radius: inherit;
}

.news-section {
  background: var(--black);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 16px;
}

.news-grid article {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
}

.news-grid article:first-child {
  min-height: 420px;
  background: linear-gradient(145deg, var(--white), #d8d0e7);
  color: var(--black);
}

.news-grid span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--purple-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.news-grid article:first-child p {
  color: rgba(5, 5, 7, .66);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.books-page {
  background: #0f0f13;
}

.books-main section {
  padding-left: clamp(16px, 4vw, 56px);
  padding-right: clamp(16px, 4vw, 56px);
}

.books-hero-page {
  position: relative;
  min-height: 520px;
  padding-top: 120px;
  overflow: hidden;
  background: var(--black);
}

.books-hero-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
}

.books-hero-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, .94), rgba(5, 5, 7, .52) 48%, rgba(5, 5, 7, .18)),
    linear-gradient(0deg, #0f0f13, transparent 34%);
}

.muted-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.book-browser,
.book-lanes {
  background: #0f0f13;
}

.book-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 42px;
}

.book-tabs {
  display: flex;
  gap: clamp(18px, 3vw, 46px);
  overflow-x: auto;
  padding-bottom: 4px;
}

.book-tabs button {
  flex: 0 0 auto;
  background: transparent;
  color: rgba(247, 245, 251, .42);
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 800;
}

.book-tabs button.active {
  color: #20d0aa;
}

.book-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.book-controls label {
  display: grid;
  gap: 8px;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-controls select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171720;
  color: var(--white);
  font: inherit;
  font-weight: 700;
}

.section-title-row,
.lane-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title-row h2,
.lane-head h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.ranking-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.rank-card,
.library-card {
  position: relative;
}

.cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
}

.rank-card img,
.library-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.cover-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(255, 210, 0, .42));
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.badge.fire::before {
  content: "🔥";
  margin-right: 5px;
}

.badge.fire {
  background: #ff4b1f;
}

.badge.new {
  background: #20d0aa;
}

.badge.trending {
  background: var(--purple-soft);
}

.badge.full {
  background: #20d0aa;
}

.badge.coming {
  background: #5c5d66;
}

.rank-number {
  position: absolute;
  left: 18px;
  bottom: -18px;
  z-index: 2;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(104px, 14vw, 190px);
  font-weight: 900;
  line-height: .8;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .92);
}

.rank-card h3,
.library-card h3 {
  margin: 18px 0 6px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.15;
}

.rank-card p,
.library-card p {
  color: var(--muted);
}

.book-grid {
  display: grid;
  gap: 18px;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.library-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171720;
}

.library-card .badge {
  left: 24px;
  top: 24px;
}

.book-item[hidden] {
  display: none;
}

body.books-page {
  background: #0f0f13;
}

.books-page .topbar {
  background: rgba(15, 15, 19, .86);
}

.books-main section {
  padding-left: clamp(16px, 3.6vw, 56px);
  padding-right: clamp(16px, 3.6vw, 56px);
}

.books-main .books-hero-page {
  min-height: clamp(300px, 36vw, 500px);
  padding: 72px 0 0;
}

.books-main .books-hero-page::after {
  background: linear-gradient(0deg, #0f0f13 0%, rgba(15, 15, 19, .08) 28%, transparent 60%);
}

.books-main .books-hero-page img {
  opacity: 1;
}

.books-main .book-browser {
  padding-top: 22px;
  padding-bottom: 34px;
}

.books-main .book-lanes {
  padding-top: 18px;
}

.books-main .book-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 34px;
}

.books-main .book-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.books-main .book-tabs button {
  min-height: 42px;
  padding: 0 clamp(10px, 1.1vw, 16px);
  border-radius: 999px;
  background: rgba(247, 245, 251, .07);
  color: rgba(247, 245, 251, .58);
  font-size: clamp(12px, 1vw, 15px);
  white-space: nowrap;
}

.books-main .book-tabs button.active {
  background: var(--white);
  color: var(--black);
}

.books-main .book-controls {
  display: flex;
  align-items: end;
  gap: 10px;
}

.books-main .book-controls label {
  min-width: 132px;
  gap: 6px;
}

.books-main .book-controls select {
  height: 42px;
  min-width: 132px;
  border-radius: 8px;
}

.books-heading {
  margin: 0 0 22px;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}

.books-main .ranking-row {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: clamp(14px, 2.2vw, 30px);
}

.books-main .cover-link {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.books-main .cover-link::after {
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68));
}

.books-main .rank-card h2,
.books-main .library-card h3 {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.books-main .rank-number {
  left: 12px;
  bottom: -10px;
  font-size: clamp(76px, 9vw, 138px);
}

.books-main .badge {
  left: 10px;
  top: 10px;
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.book-hover {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: grid;
  gap: 7px;
  padding: 18px 14px 14px;
  background: linear-gradient(transparent, rgba(5, 5, 7, .96) 24%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.book-hover strong {
  color: var(--white);
  font-size: 15px;
  line-height: 1.25;
}

.book-hover em {
  color: rgba(247, 245, 251, .72);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.cover-link:hover .book-hover {
  opacity: 1;
  transform: translateY(0);
}

.book-category-section {
  margin-top: 34px;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.category-head h2 {
  margin: 0;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.1;
}

.category-head button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.books-main .compact-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.books-main .library-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.books-main .library-card .badge {
  left: 10px;
  top: 10px;
}

.empty-category {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #171720;
}

.book-category-section:not(.expanded) .library-card:nth-child(n+7) {
  display: none;
}

.book-detail-main {
  background: #0f0f13;
}

.book-overview {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: 640px;
  padding-top: 116px;
  padding-bottom: 52px;
  background:
    radial-gradient(circle at 72% 24%, rgba(66, 52, 94, .34), transparent 34%),
    linear-gradient(115deg, #141218, #251d23 48%, #171217);
}

.detail-cover-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.detail-info h1 {
  margin-bottom: 28px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1;
}

.detail-stats,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.detail-stats {
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
}

.detail-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-stats strong {
  color: #ff7626;
}

.detail-actions {
  margin-bottom: 44px;
}

.detail-actions button,
.book-read-link,
.comment-box button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
}

.heart-button {
  background: #ff7626;
  color: white;
}

.heart-button.liked {
  background: var(--white);
  color: #ff3f61;
}

.share-button {
  border: 1px solid #ff7626;
  background: transparent;
  color: #ff7626;
}

.detail-meta {
  display: grid;
  gap: 18px;
  margin: 0;
  max-width: 920px;
}

.detail-meta div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}

.detail-meta dt {
  color: rgba(247, 245, 251, .62);
  font-size: 20px;
  font-weight: 700;
}

.detail-meta dd {
  margin: 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1.55;
}

.detail-tabs-section {
  padding-top: 0;
  background: #101014;
}

.detail-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 72px);
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  background: #202023;
}

.detail-tabs button {
  position: relative;
  background: transparent;
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 800;
}

.detail-tabs button.active {
  color: #ff7626;
}

.detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #ff7626;
}

.detail-panel {
  display: none;
  padding: clamp(26px, 4vw, 56px) 0;
}

.detail-panel.active {
  display: block;
}

.detail-panel h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 38px);
}

.book-read-link {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--black);
}

.comment-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.comment-auth button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-weight: 800;
}

.comment-auth button.active {
  background: var(--white);
  color: var(--black);
}

.comment-box {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.comment-box input,
.comment-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171720;
  color: var(--white);
  font: inherit;
}

.comment-box input {
  height: 46px;
  padding: 0 14px;
}

.comment-box textarea {
  min-height: 130px;
  resize: vertical;
  padding: 14px;
}

.comment-box button {
  justify-self: start;
  background: #ff7626;
  color: white;
}

.google-note,
.auth-note {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.reader-main {
  min-height: 100vh;
  background: #0f0f13;
}

.reader-shell {
  padding-top: 112px;
  background:
    radial-gradient(circle at 50% 30%, rgba(66, 52, 94, .35), transparent 36%),
    linear-gradient(180deg, #17151d, #0f0f13);
}

.reader-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.reader-head h1 {
  margin-bottom: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.06;
}

.reader-pdf-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
}

.flip-reader {
  display: grid;
  grid-template-columns: 54px minmax(0, 920px) 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.book-viewport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(360px, 48vw, 620px);
  perspective: 1800px;
  filter: drop-shadow(0 34px 90px rgba(0, 0, 0, .42));
}

.book-page {
  position: relative;
  overflow: hidden;
  background: #f3efe7;
  color: #111;
  border: 1px solid rgba(0, 0, 0, .14);
}

.left-page {
  border-radius: 8px 0 0 8px;
  transform-origin: right center;
}

.right-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 54px);
  border-radius: 0 8px 8px 0;
  transform-origin: left center;
}

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

.right-page h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
}

.right-page p {
  margin-bottom: 0;
  color: rgba(17, 17, 17, .66);
  font-size: 18px;
  line-height: 1.65;
}

.book-viewport.flip-next .right-page {
  animation: flipNext .58s ease;
}

.book-viewport.flip-prev .left-page {
  animation: flipPrev .58s ease;
}

.reader-nav {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(247, 245, 251, .1);
  color: var(--white);
  font-size: 42px;
  line-height: 1;
}

.reader-progress {
  display: grid;
  grid-template-columns: 88px minmax(0, 920px);
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
}

.reader-progress div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 245, 251, .14);
}

.reader-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
  transition: width .25s ease;
}

@keyframes flipNext {
  0% { transform: rotateY(0deg); }
  48% { transform: rotateY(-72deg); }
  100% { transform: rotateY(0deg); }
}

@keyframes flipPrev {
  0% { transform: rotateY(0deg); }
  48% { transform: rotateY(72deg); }
  100% { transform: rotateY(0deg); }
}

.comics-page .books-hero-page {
  background: #0f0f13;
}

.comic-ranking-row {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.comic-item.is-coming-soon img {
  filter: grayscale(1) brightness(.58);
}

.comic-item.is-coming-soon .cover-link::before {
  content: "COMING SOON";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(20px, 2.8vw, 42px);
  font-weight: 900;
  background: rgba(5, 5, 7, .22);
  pointer-events: none;
}

.age-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(247, 245, 251, .92);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.age-badge.mature {
  background: #ff7626;
  color: white;
}

.comic-detail-page .detail-cover-wrap img.is-coming-soon {
  filter: grayscale(1) brightness(.62);
}

.chapter-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.chapter-list a,
.chapter-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171720;
  color: var(--white);
}

.chapter-list span {
  color: var(--muted);
}

.chapter-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-list em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.comic-reader-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #101012;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
}

.comic-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 6px;
  background: rgba(66, 52, 94, .32);
}

.comic-read-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #42345e;
  transition: width .12s linear;
}

.comic-reader-toolbar {
  position: fixed;
  top: 6px;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px clamp(14px, 3vw, 34px);
  background: rgba(10, 9, 16, .9);
  border-bottom: 1px solid rgba(247, 245, 251, .12);
  backdrop-filter: blur(18px);
  transform: translateY(0);
  transition: transform .2s ease, opacity .2s ease;
}

.comic-reader-toolbar.is-hidden {
  opacity: 0;
  transform: translateY(-84px);
  pointer-events: none;
}

.comic-reader-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}

.reader-back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comic-reader-toolbar strong {
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.1;
}

.comic-reader-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comic-reader-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.comic-reader-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(247, 245, 251, .16);
  border-radius: 999px;
  background: rgba(247, 245, 251, .08);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.comic-reader-canvas {
  min-height: 100vh;
  padding-top: 6px;
}

.comic-pages {
  width: min(100%, var(--comic-page-width, 1060px));
  margin: 0 auto;
  transition: width .18s ease;
}

.comic-pages img {
  display: block;
  width: 100%;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.comic-toc {
  position: fixed;
  top: 6px;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(420px, 92vw);
  padding: 22px;
  background: rgba(15, 15, 19, .97);
  border-left: 1px solid rgba(247, 245, 251, .12);
  transform: translateX(100%);
  transition: transform .22s ease;
}

.comic-toc.is-open {
  transform: translateX(0);
}

.comic-toc > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.comic-toc h2 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 24px;
}

.comic-toc button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(247, 245, 251, .1);
}

.comic-toc nav {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.comic-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.comic-toc a.active,
.comic-toc a:hover {
  background: var(--purple);
  color: var(--white);
}

.music-page {
  min-height: 100vh;
  padding-bottom: 120px;
  background: #0f0f13;
}

.music-main {
  background: linear-gradient(180deg, #111018, #0f0f13);
}

.music-artist-hero {
  position: relative;
  min-height: clamp(420px, 52vw, 690px);
  overflow: hidden;
  padding: 120px clamp(18px, 4vw, 56px) 48px;
}

.music-artist-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

.music-artist-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #201820 0%, rgba(15, 15, 19, .36) 48%, rgba(15, 15, 19, .1));
}

.music-hero-copy {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  bottom: 42px;
  z-index: 1;
}

.music-hero-copy h1 {
  margin-bottom: 18px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(54px, 10vw, 150px);
  line-height: .86;
}

.music-hero-copy p {
  color: var(--white);
  font-size: clamp(18px, 2.2vw, 34px);
}

.music-actions,
.music-section-page {
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.music-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 36px;
  background: linear-gradient(180deg, #2b2028, #111014);
}

.music-play-main {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 30px;
}

.music-follow,
.music-share {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(247, 245, 251, .38);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-weight: 900;
}

.music-section-page {
  padding-top: 34px;
  padding-bottom: 22px;
}

.music-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.music-section-head h2 {
  margin: 0;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(22px, 2.7vw, 36px);
}

.music-section-head button {
  min-height: 36px;
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 245, 251, .66);
  font-weight: 900;
}

.music-track-list {
  display: grid;
  gap: 8px;
}

.music-track-row {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr) 120px 60px 34px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--white);
  background: transparent;
}

.music-song-title {
  overflow: hidden;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-add-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(247, 245, 251, .08);
  color: var(--white);
  font-size: 16px;
}

.playlist-add-button.is-added {
  background: var(--purple);
}

.music-track-row:hover {
  background: rgba(247, 245, 251, .08);
}

.music-track-row img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.music-track-row strong,
.music-track-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-track-row strong {
  font-size: 15px;
}

.music-track-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.music-release-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 16px;
}

.music-release-card {
  min-width: 0;
}

.music-cover-wrap {
  position: relative;
  border-radius: 8px;
}

.music-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .22);
  opacity: 0;
  transition: opacity .18s ease;
}

.music-cover-wrap:hover::after {
  opacity: 1;
}

.cover-play-button,
.cover-menu-button {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.small-cover-play {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: 22px;
  height: 22px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  border-radius: 0;
  transform: translate(-50%, -50%);
}

.music-cover-wrap:hover .small-cover-play {
  transform: translate(-50%, -50%);
}

.cover-play-button {
  left: 14px;
  bottom: 14px;
}

.cover-menu-button {
  right: 14px;
  bottom: 14px;
}

.music-cover-wrap:hover .cover-play-button,
.music-cover-wrap:hover .cover-menu-button {
  opacity: 1;
  transform: translateY(-2px);
}

.music-cover-menu {
  position: absolute;
  right: 12px;
  bottom: 70px;
  z-index: 5;
  display: none;
  width: 230px;
  overflow: hidden;
  border: 1px solid rgba(247, 245, 251, .18);
  border-radius: 8px;
  background: rgba(42, 42, 42, .96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .38);
}

.music-cover-menu.is-open {
  display: block;
}

.music-cover-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(247, 245, 251, .12);
  background: transparent;
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.music-cover-menu button:hover {
  background: rgba(247, 245, 251, .1);
}

.music-release-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.music-release-card h3 {
  display: -webkit-box;
  margin: 10px 0 4px;
  overflow: hidden;
  color: var(--white);
  font-size: 16px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.music-release-card p {
  color: var(--muted);
  font-size: 13px;
}

.collapsible-row:not(.expanded) .music-release-card:nth-child(n+7),
.music-track-list:not(.expanded) .music-track-row:nth-child(n+11),
.music-chart-grid:not(.expanded) .music-chart-card:nth-child(n+6) {
  display: none;
}

.music-chart-section {
  background: #130d1c;
}

.music-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.music-chart-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  min-height: 188px;
  padding: 22px;
  border-radius: 8px;
  background: #2d2538;
}

.music-chart-card img {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
}

.music-chart-card > button {
  width: 132px;
  height: 132px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

.music-chart-card h3 {
  font-size: clamp(20px, 2vw, 30px);
}

.music-chart-card b {
  display: block;
  margin-top: 24px;
  color: transparent;
  font-size: clamp(46px, 6vw, 76px);
  line-height: .8;
  -webkit-text-stroke: 2px rgba(247, 245, 251, .42);
}

.music-title-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(247, 245, 251, .25);
  text-underline-offset: 4px;
}

.rome-mini-player {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 100;
  display: grid;
  grid-template-columns: 138px minmax(220px, 1fr) 138px;
  align-items: center;
  gap: 12px;
  width: min(88vw, 1040px);
  min-height: 58px;
  padding: 7px 16px;
  border: 1px solid rgba(247, 245, 251, .22);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 42, 38, .46), rgba(66, 52, 94, .48), rgba(55, 24, 22, .46));
  box-shadow: 0 14px 48px rgba(0, 0, 0, .28);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  opacity: .54;
  transition: opacity .2s ease, background .2s ease, box-shadow .2s ease;
}

.rome-mini-player.is-audible {
  background: linear-gradient(90deg, rgba(30, 42, 38, .94), rgba(66, 52, 94, .94), rgba(55, 24, 22, .94));
  box-shadow: 0 18px 70px rgba(0, 0, 0, .44);
  opacity: 1;
}

.hide-mini-player .rome-mini-player,
.hide-mini-player .mini-expanded,
.hide-mini-player .mini-lyrics-panel {
  display: none !important;
}

.mini-controls,
.mini-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-tools {
  justify-content: flex-end;
}

.mini-lyrics-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 225;
  width: min(430px, 92vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px 20px 120px;
  border-left: 1px solid rgba(247, 245, 251, .16);
  background: linear-gradient(155deg, rgba(31, 32, 36, .98), rgba(67, 45, 67, .96), rgba(63, 27, 19, .96));
  box-shadow: -24px 0 70px rgba(0, 0, 0, .42);
  transform: translateX(104%);
  transition: transform .28s ease;
}

.mini-lyrics-panel.is-open {
  transform: translateX(0);
}

.mini-lyrics-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.mini-lyrics-panel header button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 245, 251, .1);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.mini-lyrics-list {
  overflow-y: auto;
  padding: 16px 12px 80px 0;
  scrollbar-color: rgba(247, 245, 251, .55) transparent;
}

.mini-lyrics-list p {
  margin: 0 0 28px;
  color: rgba(247, 245, 251, .46);
  filter: blur(1.4px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  font-weight: 950;
}

.mini-lyrics-list p.near-active {
  color: rgba(247, 245, 251, .68);
  filter: blur(.8px);
}

.mini-lyrics-list p.active {
  color: var(--white);
  filter: none;
}

.rome-mini-player button {
  background: transparent;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.rome-mini-player button.is-active {
  color: #b79cff;
}

.mini-play {
  font-size: 28px !important;
}

.mini-idle {
  display: grid;
  place-items: center;
  justify-self: center;
  min-width: 0;
  color: rgba(247, 245, 251, .7);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  text-align: center;
}

.mini-now {
  display: none;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  justify-self: center;
  width: min(100%, 520px);
  gap: 10px;
  min-width: 0;
}

.rome-mini-player.is-playing .mini-idle {
  display: none;
}

.rome-mini-player.is-playing .mini-now {
  display: grid;
}

.mini-now img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
}

.mini-cover-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.mini-cover-wrap::after {
  content: "↗";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, .42);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
}

.mini-cover-wrap:hover::after {
  opacity: 1;
}

.mini-now strong,
.mini-now span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-now span {
  color: var(--muted);
}

.mini-expanded {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 99;
  display: none;
  width: min(92vw, 520px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171720;
  transform: translateX(-50%);
}

.mini-expanded {
  display: contents;
}

.mini-expanded.is-open {
  display: block;
}

.mini-expanded img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.music-full-player {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  grid-template-columns: minmax(320px, 620px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(22px, 4vw, 64px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, .52), rgba(66, 52, 94, .76)),
    var(--player-bg, #0b4e34);
  color: var(--white);
}

.music-full-player.is-open {
  display: grid;
}

.music-full-player::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -2;
  background-image: var(--player-cover);
  background-size: cover;
  background-position: center;
  filter: blur(54px) saturate(1.35);
  opacity: .76;
  transform: scale(1.06);
}

.music-full-player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .2), transparent 26%),
    linear-gradient(135deg, rgba(10, 8, 14, .68), rgba(66, 52, 94, .76), rgba(10, 8, 14, .82));
}

.music-full-player.has-lyrics {
  grid-template-columns: minmax(300px, 520px) minmax(360px, 1fr);
  justify-content: stretch;
}

.full-close {
  position: fixed;
  top: 22px;
  left: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 245, 251, .1);
  font-size: 34px;
}

.full-left {
  align-self: center;
  justify-self: center;
  width: min(100%, 620px);
  max-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.full-left img {
  width: min(100%, 500px, 46vh);
  max-height: 46vh;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .34);
}

.full-left h2 {
  width: min(100%, 560px);
  margin: 16px 0 4px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.08;
  text-align: left;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.full-left p,
.full-left a {
  color: rgba(247, 245, 251, .72);
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.22;
}

.full-left p {
  width: min(100%, 560px);
  margin: 0;
  overflow-wrap: anywhere;
}

.full-progress {
  margin-top: 14px;
  width: min(100%, 560px);
}

.full-progress input,
.full-volume input {
  width: 100%;
  accent-color: var(--white);
}

.full-time {
  display: flex;
  justify-content: space-between;
  color: rgba(247, 245, 251, .66);
}

.full-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-top: 16px;
  width: min(100%, 560px);
}

.full-controls button {
  background: transparent;
  color: var(--white);
  font-size: 30px;
  opacity: .72;
}

.full-controls #full-play {
  font-size: 44px;
  opacity: 1;
}

.full-controls button.is-active {
  color: #b597ff;
  opacity: 1;
}

.full-volume {
  margin-top: 14px;
  width: min(100%, 560px);
}

.full-lyrics {
  align-self: center;
  max-height: 78vh;
  overflow-y: auto;
  padding: 18px clamp(24px, 3vw, 52px);
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.55;
  font-weight: 900;
}

.full-lyrics.is-synced {
  overflow: hidden;
}

.full-lyrics p {
  margin: 0 0 18px;
  padding: 0 .16em;
  color: rgba(247, 245, 251, .82);
  transition: opacity .25s ease, filter .25s ease, color .25s ease, transform .25s ease;
}

.full-lyrics p.active {
  color: var(--white);
}

.full-lyrics.is-synced p {
  opacity: .18;
  filter: blur(2px);
}

.full-lyrics.is-synced p.near-active {
  opacity: .48;
  filter: blur(.8px);
}

.full-lyrics.is-synced p.active {
  opacity: 1;
  filter: none;
  transform: scale(1.015);
}

.music-link-panel {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.music-link-panel.is-open {
  display: grid;
}

.music-link-card {
  display: grid;
  grid-template-columns: 260px minmax(260px, 420px);
  gap: 28px;
  width: min(92vw, 760px);
  padding: 28px;
  border-radius: 8px;
  background: #1d1d1f;
}

.music-link-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.music-link-card h2 {
  margin: 10px 0 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 34px;
}

.music-link-card p {
  color: var(--muted);
  font-size: 22px;
}

.music-link-card button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-weight: 900;
}

.release-detail-page {
  padding-bottom: 120px;
}

.release-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  overflow-y: auto;
  background: #1d1d1f;
}

.release-overlay.is-open {
  display: block;
}

.release-detail-main {
  min-height: 100vh;
  padding: clamp(22px, 4vw, 56px) clamp(18px, 5vw, 80px) 130px;
  background: #1d1d1f;
}

.release-detail-main > section {
  padding: 0;
}

.release-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--white);
  font-size: 38px;
}

.release-detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  margin-bottom: 26px;
}

.release-detail-hero img {
  width: 100%;
  max-height: 320px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.release-detail-hero h1 {
  margin: 12px 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
}

.release-detail-hero p,
.release-artist-link {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
}

.release-artist-link {
  color: #ff5f7a;
}

.release-detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.release-detail-actions button {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 22px;
  font-weight: 900;
}

.release-detail-actions button.is-added {
  background: var(--purple);
  color: var(--white);
}

.release-detail-page .music-track-list {
  max-width: 100%;
  margin-top: 14px;
}

.release-detail-page .music-track-row {
  min-height: 58px;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .music-release-row,
  .music-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .music-track-row {
    grid-template-columns: 30px 52px minmax(0, 1fr) 56px;
  }

  .music-track-row em:first-of-type {
    display: none;
  }

  .rome-mini-player {
    grid-template-columns: 94px minmax(0, 1fr) 76px;
    width: min(94vw, 720px);
    min-height: 54px;
    padding: 7px 10px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .books-layout,
  .music-layout,
  .news-grid,
  .book-toolbar {
    grid-template-columns: 1fr;
  }

  .book-toolbar {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 430px;
    order: 2;
  }

  .split {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .ranking-row,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-main .book-toolbar {
    grid-template-columns: 1fr;
  }

  .books-main .book-tabs {
    overflow-x: auto;
  }

  .books-main .ranking-row,
  .books-main .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-overview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .detail-cover-wrap {
    max-width: 320px;
  }

  .reader-head,
  .flip-reader,
  .reader-progress {
    grid-template-columns: 1fr;
  }

  .reader-head {
    display: grid;
  }

  .reader-nav {
    justify-self: center;
  }

  .comic-stage {
    grid-template-columns: 1fr 1fr;
  }

  .manga-frame.wide {
    grid-column: span 1;
  }
}

.media-main {
  padding-bottom: 132px;
}

.media-hero {
  position: relative;
  height: clamp(300px, 42vw, 560px);
  min-height: 300px;
  overflow: hidden;
  background: #050506;
}

.media-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .76));
}

.media-sound-toggle {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 54px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(247, 245, 251, .16);
  color: var(--white);
  font-size: 22px;
  backdrop-filter: blur(16px);
}

.media-browser {
  margin-top: 0;
  padding-top: 14px !important;
  padding-bottom: 28px !important;
}

.media-ranking-row {
  gap: clamp(18px, 2.5vw, 34px);
}

.media-main .books-heading {
  margin-top: 28px;
}

.media-item-card .media-cover-button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  text-align: left;
}

.media-item-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}

.media-item-card:hover img {
  transform: scale(1.035);
  filter: brightness(.74);
}

.media-play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  background: rgba(247, 245, 251, .9);
  color: #111;
  font-size: 24px;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .2s ease, transform .2s ease;
}

.media-item-card:hover .media-play-mark {
  opacity: 1;
  transform: scale(1);
}

.media-item-card h2 {
  margin: 10px 0 4px;
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 26px);
}

.media-item-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.media-category-section .book-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.media-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, .86);
}

.media-player-overlay.is-open {
  display: grid;
}

.media-player-close {
  position: fixed;
  top: 22px;
  left: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(247, 245, 251, .12);
  color: var(--white);
  font-size: 34px;
}

.media-player-card {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.media-player-card video,
.media-player-card audio {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.media-player-card video {
  aspect-ratio: 16 / 9;
}

.media-player-info {
  color: var(--white);
}

.media-player-info h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 42px);
}

.media-player-info p {
  color: var(--muted);
  font-weight: 800;
}

.media-episode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 54vh;
  overflow-y: auto;
  margin-top: 18px;
}

.media-episode-list button {
  min-height: 42px;
  border-radius: 8px;
  background: rgba(247, 245, 251, .1);
  color: var(--white);
  font-weight: 900;
}

.media-episode-list button.active {
  background: var(--purple);
}

.media-detail-page {
  background: #050506;
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.media-detail-main {
  position: relative;
  min-height: 100vh;
  padding-bottom: 150px;
  overflow: hidden;
  background: #050506;
}

.media-detail-main::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: 0;
  background-image: linear-gradient(155deg, rgba(5, 5, 6, .18), rgba(5, 5, 6, .8)), var(--media-cover-url), var(--media-detail-bg, linear-gradient(155deg, #243d3b, #1b292c 45%, #050506));
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.25);
  transform: scale(1.08);
}

.media-detail-main > * {
  position: relative;
  z-index: 1;
}

.media-detail-hero {
  position: relative;
  overflow: hidden;
}

.media-detail-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.media-detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0) 0%, rgba(5, 5, 6, .08) 58%, rgba(5, 5, 6, .84) 100%);
  pointer-events: none;
}

.media-detail-hero-copy {
  position: absolute;
  left: clamp(24px, 5vw, 76px);
  bottom: clamp(22px, 4vw, 54px);
  max-width: min(640px, 86vw);
}

.media-detail-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.4vw, 82px);
  line-height: .96;
  font-weight: 950;
  letter-spacing: 0;
}

.media-detail-hero-copy p {
  margin: 0 0 18px;
  color: rgba(247, 245, 251, .9);
  font-size: 18px;
  font-weight: 900;
}

#media-detail-watch {
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  background: rgba(5, 5, 6, .72);
  color: var(--white);
  font-size: 16px;
  font-weight: 950;
  backdrop-filter: blur(14px);
}

.media-detail-info-section {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) 180px;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 76px);
}

.media-detail-cover-block img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

#media-detail-favorite {
  width: calc(100% - 28px);
  min-height: 38px;
  margin: -54px 14px 16px;
  position: relative;
  border-radius: 999px;
  background: rgba(5, 5, 6, .76);
  color: var(--white);
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.media-detail-stars {
  color: #ffd400;
  font-size: 26px;
  letter-spacing: 2px;
}

.media-detail-stars button {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: rgba(255, 212, 0, .36);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.media-detail-stars button.active {
  color: #ffd400;
}

.media-detail-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(247, 245, 251, .6);
  border-radius: 999px;
  font-weight: 900;
}

.media-detail-copy dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0 0 18px;
}

.media-detail-copy dt {
  font-weight: 950;
}

.media-detail-copy dd {
  margin: 0;
  color: rgba(247, 245, 251, .9);
  font-weight: 750;
}

.media-detail-copy p {
  max-width: 780px;
  color: rgba(247, 245, 251, .82);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 650;
}

.media-detail-rate {
  justify-self: center;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 12px solid #ffd400;
  border-radius: 50%;
  color: var(--white);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .32);
}

.media-detail-rate span,
.media-detail-rate em {
  color: rgba(247, 245, 251, .82);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.media-detail-rate b {
  color: var(--white);
  line-height: 1;
}

.media-detail-rate strong {
  font-size: 46px;
  line-height: .9;
  font-weight: 950;
}

.media-detail-episodes {
  padding: 10px clamp(24px, 5vw, 76px) 0;
}

.media-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 22px;
}

.media-detail-tabs button {
  padding: 0 0 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(247, 245, 251, .5);
  font-size: clamp(28px, 3.8vw, 56px);
  font-weight: 950;
  letter-spacing: 0;
}

.media-detail-tabs button.active {
  color: var(--white);
  border-bottom-color: var(--purple);
}

.media-detail-tab-panel {
  display: none;
}

.media-detail-tab-panel.active {
  display: block;
}

#media-detail-episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

#media-detail-episode-list button {
  display: grid;
  gap: 10px;
  padding: 0 0 12px;
  border: 1px solid rgba(247, 245, 251, .1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(247, 245, 251, .08);
  color: var(--white);
  text-align: left;
}

#media-detail-episode-list img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(.82);
}

#media-detail-episode-list span,
#media-detail-episode-list em {
  padding: 0 12px;
}

#media-detail-episode-list span {
  font-size: 18px;
  font-weight: 950;
}

#media-detail-episode-list em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.media-comment-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.media-comment-auth button,
#media-comment-submit {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(247, 245, 251, .1);
  color: var(--white);
  font-weight: 900;
}

.media-comment-auth button.active,
#media-comment-submit {
  background: var(--white);
  color: var(--black);
}

#media-comment-input {
  width: min(820px, 100%);
  min-height: 118px;
  display: block;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(247, 245, 251, .16);
  border-radius: 12px;
  background: rgba(5, 5, 6, .36);
  color: var(--white);
  font: 800 16px/1.45 Inter, system-ui, sans-serif;
}

#media-comment-submit {
  margin: 12px 0 22px;
}

.media-comment-list {
  display: grid;
  gap: 12px;
  width: min(820px, 100%);
}

.media-comment-list article {
  padding: 14px 16px;
  border: 1px solid rgba(247, 245, 251, .12);
  border-radius: 12px;
  background: rgba(5, 5, 6, .28);
}

.media-comment-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.media-comment-list p {
  margin: 0;
  color: rgba(247, 245, 251, .82);
  font-weight: 650;
}

.news-main {
  padding-bottom: 132px;
}

.news-hero-page {
  min-height: clamp(280px, 34vw, 460px);
}

.news-browser {
  padding-top: 18px !important;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: 28px;
}

.news-card-image a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.news-card-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}

.news-card-image:hover img {
  transform: scale(1.035);
  filter: brightness(.74);
}

.news-card-image h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 12px 0 4px;
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.16;
}

.news-card-image p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.news-reader-canvas img {
  width: min(var(--comic-page-width, 980px), 100%);
  margin: 0 auto;
  display: block;
  background: #fff;
}

.utility-main {
  padding-bottom: 132px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.utility-hero {
  min-height: clamp(260px, 34vw, 460px);
  padding: 0 !important;
  overflow: hidden;
  background: #050506;
}

.utility-hero img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.utility-content {
  background: #0f0f13;
  padding-top: 24px !important;
}

.utility-page .books-heading,
.utility-page .empty-state {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.utility-page .empty-state {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.utility-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.utility-search-box input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(247, 245, 251, .18);
  border-radius: 12px;
  background: rgba(247, 245, 251, .08);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.utility-search-box button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  font-weight: 950;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.utility-card {
  color: var(--white);
}

.utility-card a {
  display: block;
}

.utility-card-cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.utility-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #17141f;
}

.utility-cover-play,
.utility-cover-menu-button,
.playlist-tile-play,
.playlist-tile-menu-button {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(25, 24, 32, .82);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.utility-cover-play,
.playlist-tile-play {
  left: 16px;
  bottom: 16px;
}

.utility-cover-menu-button,
.playlist-tile-menu-button {
  right: 16px;
  bottom: 16px;
}

.utility-cover-menu,
.playlist-tile-menu,
.playlist-row-menu {
  position: absolute;
  z-index: 5;
  display: none;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(247, 245, 251, .16);
  border-radius: 10px;
  background: rgba(35, 33, 40, .96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
}

.utility-cover-menu,
.playlist-tile-menu {
  right: 16px;
  bottom: 72px;
}

.utility-cover-menu.is-open,
.playlist-tile-menu.is-open,
.playlist-row-menu.is-open {
  display: grid;
}

.utility-cover-menu button,
.playlist-tile-menu button,
.playlist-row-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.utility-cover-menu button:hover,
.playlist-tile-menu button:hover,
.playlist-row-menu button:hover {
  background: rgba(247, 245, 251, .1);
}

.utility-card h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 12px 0 4px;
  font-size: 18px;
  line-height: 1.2;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 950;
}

.utility-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.playlist-lists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

.playlist-block h2 {
  margin: 0 0 14px;
  color: var(--white);
}

.playlist-tile {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.playlist-tile-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  display: block;
  padding: 24px;
  border: 1px solid rgba(247, 245, 251, .2);
  border-radius: 8px;
  color: #050506;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.playlist-tile-cover b {
  display: block;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.playlist-tile strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
}

.playlist-tile em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.playlist-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 8vw, 110px) clamp(24px, 4vw, 64px) 40px;
  background: #1f1f21;
  color: var(--white);
}

.playlist-detail-cover {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(247, 245, 251, .2);
  border-radius: 10px;
  color: #050506;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.playlist-detail-info h1 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 84px);
  line-height: .98;
  font-weight: 950;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.playlist-detail-info p {
  margin: 0 0 56px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
}

.playlist-detail-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.playlist-detail-actions button {
  min-height: 56px;
  border-radius: 999px;
  padding: 0 36px;
  background: var(--white);
  color: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 950;
}

#playlist-detail-shuffle {
  width: 56px;
  padding: 0;
  background: rgba(247, 245, 251, .1);
  color: var(--white);
}

.playlist-detail-table {
  padding: 28px clamp(24px, 4vw, 64px) 150px;
  background: #1f1f21;
  color: var(--white);
}

.playlist-table-head,
.playlist-track-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, .55fr) 90px;
  align-items: center;
  gap: 24px;
}

.playlist-table-head {
  padding: 0 64px 14px 0;
  border-bottom: 1px solid rgba(247, 245, 251, .12);
  color: var(--muted);
  font-weight: 850;
}

.playlist-track-row {
  width: 100%;
  grid-template-columns: 48px minmax(0, 1.2fr) minmax(160px, .55fr) 90px 36px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 245, 251, .08);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.playlist-track-row:hover {
  background: rgba(247, 245, 251, .06);
}

.playlist-track-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  font-family: Inter, system-ui, sans-serif;
  cursor: pointer;
}

.playlist-track-title img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
}

.playlist-track-title b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 850;
}

.playlist-track-row em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-row-menu-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.playlist-row-menu-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 245, 251, .08);
  color: var(--white);
  font-weight: 950;
}

.playlist-row-menu {
  right: 0;
  top: 40px;
}

.rome-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .68);
}

.rome-confirm-dialog.is-open {
  display: grid;
}

.rome-confirm-dialog article {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(247, 245, 251, .18);
  border-radius: 16px;
  background: rgba(22, 18, 32, .96);
  color: var(--white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

.rome-confirm-dialog h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.rome-confirm-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 750;
}

.rome-confirm-dialog div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.rome-confirm-dialog button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(247, 245, 251, .1);
  color: var(--white);
  font-weight: 900;
}

#rome-confirm-ok {
  background: var(--white);
  color: var(--black);
}

.playlist-detail-count {
  margin: 42px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.playlist-detail-button {
  background: rgba(247, 245, 251, .12);
  color: var(--white);
}

.playlist-dialog {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.playlist-dialog.is-open {
  display: grid;
}

.playlist-dialog article {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(247, 245, 251, .18);
  border-radius: 18px;
  background: rgba(22, 18, 32, .96);
  color: var(--white);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .52);
}

#playlist-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: var(--white);
  font-size: 28px;
}

#playlist-dialog-cover {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.playlist-dialog label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}

.playlist-dialog select,
.playlist-dialog input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(247, 245, 251, .18);
  border-radius: 10px;
  background: rgba(247, 245, 251, .08);
  color: var(--white);
  font: inherit;
}

#playlist-dialog-save {
  min-height: 46px;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font-weight: 950;
}

@media (max-width: 780px) {
  .media-detail-info-section {
    grid-template-columns: 1fr;
  }

  .media-detail-rate {
    justify-self: start;
  }

  .media-detail-hero-copy {
    position: relative;
    left: auto;
    bottom: auto;
    padding: 18px 22px 28px;
    background: rgba(5, 5, 6, .72);
  }

  .media-detail-shade {
    background: linear-gradient(180deg, rgba(5, 5, 6, 0), rgba(5, 5, 6, .38));
  }

  .media-hero {
    height: 46vh;
    min-height: 280px;
  }

  .media-player-card {
    grid-template-columns: 1fr;
  }

  .media-episode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 220px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 66px;
  }

  .icon-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(5, 5, 7, .96);
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    border-radius: 8px;
    padding: 16px;
  }

  section {
    padding: 84px 18px;
  }

  .hero {
    padding-top: 96px;
  }

  .featured-book,
  .book-shelf,
  .comic-stage,
  .player-bar {
    grid-template-columns: 1fr;
  }

  .book-shelf {
    gap: 14px;
  }

  .book-shelf article {
    min-height: auto;
  }

  .manga-frame.tall,
  .manga-frame.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .news-filters,
  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .books-hero-page {
    min-height: 470px;
  }

  .books-main .books-hero-page {
    min-height: 260px;
  }

  .section-title-row,
  .lane-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-row,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .books-main .book-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .books-main .book-controls label,
  .books-main .book-controls select {
    min-width: 0;
    width: 100%;
  }

  .books-main .ranking-row,
  .books-main .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-tabs {
    min-height: 72px;
  }

  .book-viewport {
    grid-template-columns: 1fr;
  }

  .left-page {
    border-radius: 8px 8px 0 0;
  }

  .right-page {
    border-radius: 0 0 8px 8px;
  }
}
body.home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(132, 92, 216, 0.22), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(90, 40, 89, 0.3), transparent 28rem),
    linear-gradient(135deg, #050409 0%, #0d0917 46%, #160d22 100%);
  color: #f8f6ff;
  overflow-x: hidden;
}

.home-main {
  width: 100%;
  margin: 0 auto;
  padding: 18px 0 80px;
}

.home-carousel {
  position: relative;
  width: min(1891px, calc(100vw - 72px));
  aspect-ratio: 1891 / 832;
  height: auto;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 14, 32, 0.58);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(5, 4, 9, 0.44)),
    linear-gradient(90deg, rgba(9, 5, 18, 0.34), transparent 44%, rgba(9, 5, 18, 0.22));
}

.home-carousel-track,
.home-carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-carousel-track img {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.home-carousel-track img.active {
  opacity: 1;
  transform: scale(1);
}

.home-carousel-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.home-carousel-dots button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.home-carousel-dots button.active {
  background: #b893ff;
  box-shadow: 0 0 20px rgba(184, 147, 255, 0.74);
}

.home-section {
  margin-top: 0;
}

.home-carousel + .home-section {
  margin-top: -100px;
}

@media (max-width: 768px) {
  .home-carousel + .home-section {
    margin-top: -40px;
  }
}

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

.home-section-head.center {
  justify-content: center;
  text-align: center;
}

.home-section h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 2.45vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-release-grid {
  display: flex;
  justify-content: center;
  align-items: start;
}

.home-release-card,
.home-rank-card,
.home-chart-card {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.home-release-cover,
.home-rank-cover,
.home-chart-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(156, 128, 219, 0.26), rgba(44, 25, 67, 0.18)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.home-release-cover {
  aspect-ratio: 1 / 1;
}

.home-release-card.music .home-release-cover,
.home-release-card.media .home-release-cover {
  aspect-ratio: 1 / 1;
}

.home-release-card {
  width: min(320px, 74vw);
  text-align: center;
}

.home-release-card .home-release-cover {
  display: block;
}

.home-release-text {
  color: inherit;
  text-decoration: none;
}

.home-cover-play,
.home-cover-menu-button {
  position: absolute;
  z-index: 4;
  top: calc(min(320px, 74vw) - 64px);
  bottom: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(70, 45, 112, .86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .36);
  opacity: 1;
  transform: none;
  cursor: pointer;
}

.home-cover-play {
  left: 20px;
}

.home-cover-menu-button {
  right: 20px;
  bottom: auto;
  font-size: 22px;
}

.home-cover-menu {
  right: 14px;
  top: 72px;
  bottom: auto;
}

.home-release-cover img,
.home-rank-cover img,
.home-chart-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-release-card h3,
.home-rank-card h3,
.home-chart-card h3 {
  margin: 10px 0 4px;
  color: #fff;
  font-size: clamp(20px, 1.7vw, 30px);
  line-height: 1.08;
}

.home-release-card p,
.home-rank-card p,
.home-chart-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-section:has(#home-top-books) {
  margin-top: -180px;
}

.home-section:has(#home-top-comics),
.home-music-chart-section {
  margin-top: -180px;
}

.home-rank-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.home-rank-cover {
  display: block;
  aspect-ratio: 1 / 1;
}

.home-rank-card.media .home-rank-cover,
.home-rank-card.music .home-rank-cover {
  aspect-ratio: 1 / 1;
}

.home-rank-number {
  position: absolute;
  left: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(54px, 6vw, 96px);
  line-height: 0.82;
  font-weight: 900;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.54);
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.home-rank-card.is-coming-soon img {
  filter: grayscale(1) brightness(.55);
}

.home-rank-card.is-coming-soon .home-rank-cover::before {
  content: "COMING SOON";
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 900;
  background: rgba(0, 0, 0, .34);
  letter-spacing: 0;
}

.home-rank-cover .badge {
  left: 12px;
  top: 12px;
}

.home-rank-cover .age-badge {
  right: 12px;
  top: 12px;
}

.home-rank-cover .book-hover {
  padding: 14px;
}

.home-chart-head {
  align-items: center;
}

.home-chart-tabs {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.home-chart-tabs button {
  min-width: 82px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
  cursor: pointer;
}

.home-chart-tabs button.active {
  color: #0b0713;
  background: #f7f3ff;
  box-shadow: 0 12px 30px rgba(184, 147, 255, 0.18);
}

.home-music-chart {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(22, 179, 129, .1), rgba(72, 44, 102, .42)),
    rgba(8, 5, 15, .68);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(22px);
}

.home-chart-card,
.home-chart-row {
  display: grid;
  grid-template-columns: 58px 48px 34px minmax(0, 1fr) 120px 110px 72px 72px;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(97, 76, 132, 0.34), rgba(42, 21, 50, 0.36)),
    rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.home-chart-cover {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.home-chart-card h3 {
  margin-top: 0;
  font-size: 21px;
}

.home-chart-card .link-button {
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.home-chart-song .link-button:focus,
.home-chart-song .link-button:active {
  outline: 0;
  background: transparent !important;
  color: #fff !important;
}

.home-chart-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.home-chart-rank {
  color: #c4a4ff;
  font-size: 28px;
  font-weight: 900;
}

.home-chart-labels {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  text-transform: uppercase;
}

.home-chart-song {
  min-width: 0;
}

.home-chart-song h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.15;
}

.home-chart-song p {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.home-chart-move {
  font-size: 13px;
}

.home-chart-move.up {
  color: #4cffb5;
}

.home-chart-move.same {
  color: rgba(255, 255, 255, .52);
}

.home-chart-move.down {
  color: #ff667e;
}

.home-footer {
  width: min(1880px, calc(100% - 72px));
  margin: -100px auto 120px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.1fr auto 1.2fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(80, 58, 130, .42), rgba(42, 13, 42, .36)),
    rgba(8, 5, 15, .74);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px);
  color: #fff;
}

.home-footer-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    text-align:center;
    min-width:220px;
}

.home-footer-brand img {
  width:150px;
  height:150px;
  border-radius:18px;
  object-fit: cover;
  background: rgba(255, 255, 255, .1);
}

.home-footer-brand strong {
  font-size:26px;
  font-weight:900;
  line-height:1;
  letter-spacing:-0.02em;
}

.home-footer-social {
  display: flex;
  gap: 10px;
}

.home-footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.home-footer-meta {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-footer-meta time {
  color: #fff;
  font-size: 16px;
}

.home-language-switch {
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}

.home-language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  font-weight: 900;
  cursor: pointer;
}

.home-language-switch button.active {
  color: #120b1d;
  background: #f6f1ff;
}

@media (max-width: 820px) {
  .home-main {
    width: min(100% - 28px, 720px);
    padding-top: 16px;
  }

  .home-carousel {
    height: 48vw;
    min-height: 220px;
    border-radius: 20px;
  }

  .home-section-head,
  .home-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-section h2 {
    white-space: normal;
  }

  .home-section-head.center {
    align-items: center;
  }

  .home-chart-tabs {
    width: 100%;
    overflow-x: auto;
  }

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

  .home-music-chart {
    padding: 12px;
    overflow-x: auto;
  }

  .home-chart-row {
    grid-template-columns: 48px 38px 24px minmax(190px, 1fr) 92px 80px 54px 54px;
    min-width: 760px;
  }

  .home-chart-cover {
    width: 44px;
    height: 44px;
  }

  .home-footer {
    width: min(100% - 28px, 720px);
    grid-template-columns: 1fr;
    margin-bottom: 120px;
  }

  .home-language-switch {
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .home-rank-row {
    grid-template-columns: 1fr;
  }
}

/* FIX HOME MUSIC CHART SONG TITLE */
.home-chart-song h3,
.home-chart-song h3 button,
.home-chart-song .link-button {
  display: inline;
  width: auto;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  text-decoration: none !important;
  appearance: none !important;
}

.home-chart-song h3 {
  margin: 0 0 3px !important;
  font-size: 21px !important;
  font-weight: 900 !important;
}

.home-chart-song p {
  margin: 0 !important;
}

#backToTop{
  position:fixed;
  right:30px;
  bottom:120px;
  width:60px;
  height:60px;

  border:none;
  border-radius:50%;

  background:
    linear-gradient(135deg,
    rgba(80,58,130,.85),
    rgba(42,13,42,.85));

  color:#fff;
  font-size:22px;

  cursor:pointer;

  z-index:9999;

  box-shadow:
    0 10px 30px rgba(140,100,255,.35);

  opacity:0;
  visibility:hidden;

  transition:.3s;
}

#backToTop.show{
  opacity:1;
  visibility:visible;
}

#backToTop:hover{
  transform:translateY(-4px);
  box-shadow:
    0 16px 40px rgba(140,100,255,.5);
}

.detail-panel {
  display: none;
}

.detail-panel.active {
  display: block;
}

#comic-content-panel,
#comic-comments-panel {
  display: none;
}

#comic-content-panel.active,
#comic-comments-panel.active {
  display: block;
}

#backToTop {
  position: fixed;
  right: 28px;
  bottom: 110px;
  z-index: 9999;

  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;

  background:
    linear-gradient(135deg, rgba(80,58,130,.9), rgba(42,13,42,.9));

  color: #fff;
  font-size: 22px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  box-shadow: 0 16px 42px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);

  transition: .25s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-4px);
  border-color: rgba(184,147,255,.72);
  box-shadow: 0 18px 52px rgba(184,147,255,.32);
}

.rs-profile-page {
  min-height: 100vh;
  background: #fff;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
}

.rs-cover {
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #ddd;
}

.rs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity .5s ease;
}

.rs-profile-header {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  max-width: 1420px;
  margin: -90px auto 0;
  padding: 0 42px 42px;
  position: relative;
  z-index: 2;
}

.rs-avatar-wrap {
  position: relative;
}

.rs-avatar {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 8px solid #fff;
  object-fit: cover;
  background: #eee;
}

.rs-thought-btn {
  position: absolute;
  left: 0;
  top: -42px;
  min-width: 230px;
  height: 80px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

body.rome-profile-page {
  margin: 0;
  background: #ffffff;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
}

.rs-profile-page {
  background: #fff;
}

.rs-cover {
  width: calc(100vw - 56px);
  max-width: 1920px;
  aspect-ratio: 1891 / 832;
  height: auto;
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.rs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rs-profile-header {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px 34px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid #d8dadf;
}

.rs-avatar-wrap {
  position: relative;
  margin-top: -90px;
}

.rs-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 8px solid #fff;
  object-fit: cover;
  background: #eee;
}

.rs-thought-btn {
  position: absolute;
  left: -42px;
  top: -34px;
  height: 78px;
  padding: 0 38px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #65676b;
  font-size: 26px;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.12);
}

.rs-profile-info {
  padding-top: 38px;
}

.rs-profile-title-row {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr);
  gap: 80px;
  align-items: start;
}

.rs-profile-info h1 {
  margin: 0;
  font-size: 68px;
  line-height: .95;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.rs-name-extra {
  margin: 0;
  font-size: 54px;
  line-height: 1.15;
  font-weight: 400;
}

.rs-follow {
  margin: 22px 0 12px;
  font-size: 30px;
  font-weight: 800;
}

.rs-profile-info p {
  margin: 6px 0;
  font-size: 28px;
  line-height: 1.25;
}

.rs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 800;
}

.rs-tabs {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 34px;
  border-bottom: 1px solid #d8dadf;
}

.rs-tabs button {
  min-height: 76px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

.rs-tabs button.active {
  color: #0866ff;
  border-bottom: 6px solid #0866ff;
}

body.rome-profile-page {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 34rem),
    linear-gradient(135deg, #050409 0%, #0d0917 46%, #160d22 100%);
  color: #fff;
  overflow-x: hidden;
}

body.rome-profile-page .rs-profile-page {
  background: transparent;
  padding-top: 18px;
}

body.rome-profile-page .rs-cover {
  width: calc(100vw - 56px);
  max-width: none;
  aspect-ratio: 1891 / 832;
  height: auto;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

body.rome-profile-page .rs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

body.rome-profile-page .rs-profile-header {
  margin-top: 0 auto;
}

body.rome-profile-page .rs-cover {
  width: calc(100% - 56px) !important;
  max-width: none !important;
  margin: 18px 28px 0 28px !important;
  aspect-ratio: 1891 / 832 !important;
  height: auto !important;
  border-radius: 32px !important;
  overflow: hidden !important;
}

body.rome-profile-page .rs-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.rs-photo-slider {
  width: 100%;
  margin: 0px 0 90px;
}

.rs-photo-stage {
  position: relative;
  width: min(720px, calc(100vw - 56px));
  aspect-ratio: 1024 / 1536;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.rs-photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform 1.2s ease;
}

.rs-photo-slide.active {
  opacity: 1;
  transform: scale(1);
}

.rs-photo-prev,
.rs-photo-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.rs-photo-prev { left: 18px; }
.rs-photo-next { right: 18px; }

/* FIX: đưa slide ảnh sát tab */
body.rome-profile-page .rs-tabs {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.rome-profile-page .rs-photo-slider {
  margin-top: -50px !important;
  padding-top: 0 !important;
}

body.rome-profile-page .rs-photo-slider h2 {
  display: none !important;
}

body.rome-profile-page .rs-photo-stage {
  margin-top: 0 !important;
}

/* FIX CHÍNH XÁC MỤC MỚI RA MẮT */
body.home-page .home-section:has(#home-new-title) {
  margin-top: -10px !important;
  padding-top: 0 !important;
}

.music-cover-menu {
  display: none;
}

.music-cover-menu.is-open {
  display: block;
}

.comment-main,
.comment-reply {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.comment-body {
  flex: 1;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.comment-avatar.small {
  width: 30px;
  height: 30px;
}

.comment-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
}

.comment-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  align-items: center;
}

.comment-actions button,
.reply-box button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.reply-box {
  margin-top: 12px;
}

.reply-box textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

.comment-replies {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}