
.anime-overview { margin-top: 24px; padding: 28px 0 30px; border-top: 1px solid #384859; scroll-margin-top: 24px; }
.anime-fact-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 18px 0; margin: 0 0 26px; border-bottom: 1px solid var(--border); }
.anime-fact-strip > div { padding: 0 20px; border-left: 1px solid var(--border); }
.anime-fact-strip > div:first-child { padding-left: 0; border: 0; }
.anime-fact-strip dt { font-size: 12px; color: #8e8f9f; margin-bottom: 7px; }
.anime-fact-strip dd { margin: 0; color: #dedee7; font-size: 13px; line-height: 1.5; }
.anime-synopsis { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
.anime-synopsis h2 { margin: 0; font: 700 26px/1.2 'Barlow Condensed', sans-serif; }
.anime-synopsis p { margin: 0; max-width: 800px; color: var(--muted); font-size: 14px; line-height: 1.9; padding-left: 20px; border-left: 2px solid #5b83a7; }
.anime-profile .next-links a { border-color: #36516b; background: #121923; color: #deebf8; }
.anime-profile .next-links a::after { color: #91b8dc; }
.anime-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.anime-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.anime-section-header h2 { margin: 0; font: 700 28px/1.2 'Barlow Condensed', sans-serif; }
.anime-season-select { border: 1px solid var(--border); background: #15161d; color: var(--text); border-radius: 6px; padding: 9px 28px 9px 12px; font-size: 12px; cursor: pointer; }
.anime-music-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.anime-music-filters { display: flex; gap: 6px; }
.anime-music-filters button { border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; background: #111218; color: var(--muted); font-size: 12px; cursor: pointer; }
.anime-music-filters button.selected { background: var(--accent); border-color: var(--accent); color: white; }
.anime-music-count { color: #8e90a0; font-size: 12px; }
.anime-song-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.anime-song-card { display: flex; align-items: center; gap: 14px; padding: 12px; min-width: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #121319; }
.anime-song-image { width: 76px; height: 76px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #191a22; }
.anime-song-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.anime-song-type { display: inline-block; padding: 4px 7px; border-radius: 4px; background: #921b31e8; color: white; font-size: 11px; font-weight: 600; }
.anime-song-card.ending .anime-song-type { background: #164c85eb; }
.anime-song-copy { padding: 0; min-width: 0; }
.anime-song-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.anime-song-copy h3 { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.anime-song-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.anime-song-status { display: block; margin-top: 8px; color: #878998; font-size: 11px; }
@media (max-width: 600px) { .anime-song-gallery { grid-template-columns: 1fr; } }
.anime-demo-note { color: #888a9a; font-size: 11px; line-height: 1.7; margin: -6px 0 18px; }
.anime-track-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.anime-character-carousel { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; border-radius: 10px; overflow-anchor: none; }
.anime-character-carousel::-webkit-scrollbar { display: none; }
.anime-character-carousel.is-dragging { cursor: grabbing; }
.anime-character-card { display: flex; align-items: center; gap: 16px; flex: 0 0 min(370px, 95%); min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #121319; }
.anime-character-card > img { display: block; width: 120px; height: 120px; flex-shrink: 0; border-radius: 10px; object-fit: cover; -webkit-user-drag: none; }
.anime-character-details { flex: 1; min-width: 0; }
.anime-character-details h3 { margin: 0 0 12px; font-size: 15px; line-height: 1.3; }
.anime-character-details dl { margin: 0; display: grid; gap: 7px; }
.anime-character-details dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.anime-character-details dt { color: #9294a5; }
.anime-character-details dd { margin: 0; color: #d4d5df; text-align: right; }
.character-pause { border: 1px solid var(--border); border-radius: 6px; background: #16171e; color: #d0d1dc; padding: 8px 12px; font-size: 12px; cursor: pointer; }
.character-pause:hover { border-color: #70404d; }
@media (max-width: 600px) { .anime-character-card { gap: 12px; padding: 12px; } .anime-character-card > img { width: 96px; height: 96px; } .anime-character-details h3 { font-size: 14px; } }
.anime-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 170px); gap: 12px; }
.anime-gallery a { position: relative; display: block; min-height: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #14151c; }
.anime-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.anime-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.anime-gallery a:hover img { transform: scale(1.03); }
.anime-list-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.anime-list-link { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #111218; }
.anime-list-link img { display: block; width: 78px; height: 88px; object-fit: cover; flex-shrink: 0; }
.anime-list-link div { padding: 10px 12px 10px 0; min-width: 0; }
.anime-list-link span { font-size: 10px; letter-spacing: .8px; color: #c28597; text-transform: uppercase; }
.anime-list-link h3 { margin: 6px 0 0; font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.anime-list-link:hover { border-color: var(--card-hover); }
@media (max-width: 850px) {
  .anime-fact-strip > div { padding: 0 12px; }
  .anime-synopsis { grid-template-columns: 140px minmax(0, 1fr); }
  .anime-gallery { grid-template-rows: repeat(2, 135px); }
  .anime-list-link { gap: 12px; }
  .anime-list-link img { width: 78px; height: 88px; }
}
@media (max-width: 600px) {
  .anime-fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .anime-fact-strip > div { padding-left: 0; border: 0; }
  .anime-synopsis { grid-template-columns: 1fr; gap: 14px; }
  .anime-synopsis p { padding-left: 14px; font-size: 13px; }
  .anime-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 210px 130px 130px; gap: 10px; }
  .anime-gallery a:first-child { grid-column: span 2; grid-row: span 1; }
  .anime-list-links { grid-template-columns: 1fr; }
  .anime-section-header h2 { font-size: 26px; }
}

/* The banner ends in the gap between the title and genres. */
.anime-profile .profile-identity { display: grid; grid-template-columns: 154px minmax(0, 1fr); grid-template-rows: 106px auto; align-items: start; column-gap: 26px; row-gap: 0; margin-top: -106px; }
.anime-profile .profile-cover { grid-column: 1; grid-row: 1 / 3; }
.anime-profile .profile-name { display: contents; }
.anime-hero-title { grid-column: 2; grid-row: 1; align-self: end; padding-bottom: 16px; min-width: 0; }
.anime-profile .anime-hero-title h1 { margin-bottom: 0; text-shadow: 0 2px 12px #0008; }
.anime-hero-details { grid-column: 2; grid-row: 2; padding-top: 16px; min-width: 0; }
@media (max-width: 850px) { .anime-profile .profile-identity { column-gap: 18px; } }
@media (max-width: 600px) {
  .anime-profile .profile-identity { grid-template-columns: 105px minmax(0, 1fr); grid-template-rows: 90px auto; margin-top: -90px; column-gap: 14px; }
  .anime-hero-title { padding-bottom: 12px; }
  .anime-hero-details { padding-top: 12px; }
  .anime-profile .anime-hero-title h1 { font-size: 32px; }
}
.anime-more { display: table; margin: 22px auto 0; padding: 10px 18px; border: 1px solid #493039; border-radius: 7px; background: #921b311c; color: #e2bec8; font-size: 12px; font-weight: 600; }
.anime-more:hover { border-color: #b94d62; background: #921b3138; color: white; }
.anime-more[hidden] { display: none; }
