.anime-page {
  --detail-panel: rgba(255, 253, 248, 0.68);
  --detail-line: rgba(13, 41, 61, 0.13);
}

.anime-page [hidden] {
  display: none !important;
}

.anime-page main {
  position: relative;
  overflow: clip;
}

.anime-page [id] {
  scroll-margin-top: 102px;
}

.anime-page main::before {
  position: absolute;
  top: 160px;
  right: max(-230px, calc((100% - 1500px) / 2));
  z-index: -1;
  width: 620px;
  height: 620px;
  content: "";
  border: 1px solid rgba(244, 198, 168, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(244, 198, 168, 0.08),
    0 0 0 150px rgba(191, 228, 215, 0.07);
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 15px;
  color: rgba(13, 41, 61, 0.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.detail-breadcrumb a {
  transition: color 180ms ease;
}

.detail-breadcrumb a:hover {
  color: var(--mint-deep);
}

.detail-breadcrumb [aria-current="page"] {
  max-width: 460px;
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anime-hero {
  display: grid;
  grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
  min-height: 680px;
  padding-top: 46px;
  padding-bottom: 92px;
}

.anime-cover-stage {
  position: relative;
  width: min(100%, 350px);
  margin-inline: auto;
  padding: 18px 14px 22px;
}

.anime-cover-orbit {
  position: absolute;
  top: -40px;
  left: -72px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(46, 119, 111, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(191, 228, 215, 0.08),
    0 0 0 108px rgba(191, 228, 215, 0.04);
}

.anime-cover-back {
  position: absolute;
  inset: 34px 2px 12px 44px;
  background: var(--peach);
  border: 1px solid rgba(13, 41, 61, 0.12);
  border-radius: 22px 22px 54px 22px;
  transform: rotate(5deg);
  box-shadow: 0 24px 44px rgba(13, 41, 61, 0.1);
}

.anime-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 12%, rgba(191, 228, 215, 0.8), transparent 45%),
    var(--ink);
  border: 7px solid var(--white);
  border-radius: 22px 22px 52px 22px;
  box-shadow:
    0 28px 56px rgba(13, 41, 61, 0.24),
    0 2px 0 rgba(255, 253, 248, 0.7) inset;
  transform: rotate(-1.5deg);
}

.anime-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  color: rgba(255, 253, 248, 0.62);
  font-family: var(--display);
  font-size: 80px;
  font-weight: 900;
  place-items: center;
}

.anime-cover figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--white);
  font-family: var(--body);
  background: rgba(9, 33, 48, 0.75);
  border: 1px solid rgba(255, 253, 248, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.anime-cover figcaption span {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.anime-cover figcaption strong {
  color: var(--mint);
  font-size: 9px;
}

.anime-cover-sticker {
  position: absolute;
  right: -8px;
  bottom: 55px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: var(--ink);
  font-family: var(--body);
  background: var(--yellow);
  border: 1px solid rgba(13, 41, 61, 0.16);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(13, 41, 61, 0.18);
  transform: rotate(8deg);
}

.anime-cover-sticker span {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.anime-cover-sticker strong {
  font-size: 14px;
  line-height: 1;
}

.anime-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(46px, 5.4vw, 82px);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.anime-alt-title {
  max-width: 690px;
  margin: 0 0 21px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.anime-genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 27px;
}

.anime-genre-row span {
  padding: 6px 10px;
  color: var(--mint-deep);
  font-size: 9px;
  font-weight: 700;
  background: rgba(191, 228, 215, 0.4);
  border: 1px solid rgba(46, 119, 111, 0.12);
  border-radius: 999px;
}

.anime-score-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
}

.anime-score {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 8px;
  align-items: end;
  min-width: 122px;
  padding: 12px 14px 11px;
  background: rgba(255, 253, 248, 0.67);
  border: 1px solid var(--detail-line);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(13, 41, 61, 0.05);
}

.anime-score > span {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: rgba(13, 41, 61, 0.44);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.anime-score strong {
  font-family: var(--body);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.anime-score small {
  padding-bottom: 2px;
  color: rgba(13, 41, 61, 0.48);
  font-size: 8px;
}

.anime-score.is-empty strong {
  color: rgba(13, 41, 61, 0.35);
}

.airing-calendar-dialog {
 width: min(1040px, calc(100vw - 48px));
 max-width:1040px;
 max-height: min(86vh,820px);
 margin: auto;
 padding:0;
 overflow: visible;
 color: var(--ink);
 background: transparent;
 border:0;
 outline:0;
}

.airing-calendar-dialog::backdrop {
 background: rgba(8,30,45,0.58);
 backdrop-filter: blur(8px);
}

.airing-calendar-dialog[open] {
 animation: airing-dialog-in 220ms ease-out;
}

.airing-calendar-modal {
 position: relative;
 display: flex;
 flex-direction: column;
 max-height: min(86vh,820px);
 padding:32px 32px 24px;
 overflow: hidden;
 background:
 radial-gradient(circle at 100% 0, rgba(127,206,210,0.19), transparent 32rem),
 radial-gradient(circle at 0 100%, rgba(244,198,168,0.14), transparent 28rem),
 var(--white);
 border:1px solid rgba(13,41,61,0.12);
 border-radius:28px;
 box-shadow:
0 32px 100px rgba(8,30,45,0.32),
 inset 0 0 1px rgba(255,253,248,0.48);
 scrollbar-width: thin;
 scrollbar-color: rgba(46,119,111,0.36) transparent;
}

.airing-calendar-modal::after {
 position: absolute;
 top: -78px;
 right: -48px;
 width:190px;
 height:190px;
 pointer-events: none;
 content: "";
 border:1px solid rgba(46,119,111,0.09);
 border-radius:50%;
 box-shadow:0 0 0 32px rgba(191,228,215,0.055);
}

.airing-calendar-head {
 flex:0 0 auto;
padding-right:54px;
}

.airing-calendar-close {
 position: absolute;
 top:0;
 right:0;
 display: grid;
 width:40px;
 height:40px;
 padding:0;
 color: var(--ink);
 font-family: var(--body);
 font-size:26px;
 line-height:1;
 cursor: pointer;
 background: rgba(255,253,248,0.78);
 border:1px solid rgba(13,41,61,0.12);
 border-radius:50%;
 place-items: center;
 transition:
 transform 180ms ease,
 background-color 180ms ease,
 border-color 180ms ease;
}

.airing-calendar-close:hover {
 background: var(--mint);
 border-color: rgba(46,119,111,0.28);
 transform: rotate(6deg);
}

.airing-calendar-close:focus-visible {
 outline:2px solid var(--ink);
 outline-offset:3px;
}

.airing-calendar-toolbar {
 position: relative;
 z-index:1;
display: flex;
 flex:0 0 auto;
gap:18px;
 align-items: center;
 justify-content: space-between;
 padding-top:18px;
 margin-bottom:16px;
 border-top:1px solid rgba(13,41,61,0.1);
}

.airing-calendar-month {
 color: rgba(13,41,61,0.58);
 font-size:10px;
 font-weight:700;
 letter-spacing:0.05em;
}

.airing-date-grid {
 flex:1 1 auto;
 min-height:0;
 padding:2px 6px 8px 2px;
 overflow: auto;
 overscroll-behavior: contain;
 scrollbar-width: thin;
 scrollbar-color: rgba(46,119,111,0.36) transparent;
}

.airing-date-card {
 position: relative;
 display: grid;
 grid-template-columns: minmax(0,1fr) auto;
 gap: 5px 8px;
 align-items: center;
 min-height:112px;
 padding: 15px 14px;
 overflow: hidden;
 color: #169bd0;
 text-align: left;
 background:
 linear-gradient(145deg, rgba(255,255,255,0.76), transparent 62%),
 #f2fbfe;
 border:1px solid #bde8f4;
 border-radius:14px;
}

.airing-date-card::after {
 position: absolute;
 right: -24px;
 bottom: -34px;
 width:86px;
 height:86px;
 pointer-events: none;
 content: "";
 border:1px solid rgba(22,155,208,0.13);
 border-radius:50%;
}

.airing-date-card time,
.airing-date-card small {
 grid-column:1 / -1;
}

.airing-date-card small {
 color: rgba(13,41,61,0.45);
 font-size:8px;
 line-height:1.4;
}

.airing-date-status {
 justify-self: end;
 padding: 3px 7px;
 color: #168dbd;
 font-size:8px;
 font-weight:700;
 line-height:1.4;
 background: rgba(255,253,248,0.74);
 border:1px solid rgba(22,155,208,0.18);
 border-radius:999px;
}

.airing-date-card.is-upcoming {
 background:
 linear-gradient(145deg, rgba(255,255,255,0.7), transparent 62%),
 #f1f1f1;
 border-color: #e3e3e3;
}

.airing-date-card.is-upcoming::after {
 border-color: rgba(13,41,61,0.08);
}

.airing-date-card.is-upcoming .airing-date-status {
 color: #777b7d;
 border-color: rgba(13,41,61,0.1);
}

html.airing-calendar-is-open {
 overflow: hidden;
}

html.airing-calendar-is-open body {
 position: fixed;
 top: var(--airing-scroll-offset,0);
 right:0;
 left:0;
 width:100%;
 overflow: hidden;
}

@keyframes airing-dialog-in {
 from {
 opacity:0;
 transform: translateY(12px) scale(0.985);
 }

 to {
 opacity:1;
 transform: translateY(0) scale(1);
 }
}

.anime-hero-actions .button {
 font-family: var(--body);
 cursor: pointer;
}

.anime-hero-summary {
  display: -webkit-box;
  max-width: 690px;
  margin: 0 0 30px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.anime-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  align-items: center;
}

.anime-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 27px;
}

.anime-hero-meta span {
  padding: 5px 9px;
  color: rgba(13, 41, 61, 0.54);
  font-size: 8px;
  font-weight: 600;
  background: rgba(255, 253, 248, 0.45);
  border: 1px solid rgba(13, 41, 61, 0.09);
  border-radius: 999px;
}

.anime-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 28px;
  align-items: start;
  padding-bottom: 120px;
}

.anime-detail-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.detail-panel {
  padding: 32px;
  background: var(--detail-panel);
  border: 1px solid var(--detail-line);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(13, 41, 61, 0.075);
  backdrop-filter: blur(12px);
}

.detail-panel-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
}

.detail-panel-head .eyebrow,
.detail-side-kicker {
  margin: 0 0 8px;
  color: var(--mint-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.detail-panel-head h2,
.detail-side-card h2,
.detail-facts h2 {
  margin: 0;
  font-size: 29px;
}

.detail-panel-index {
  color: rgba(13, 41, 61, 0.12);
  font-family: var(--body);
  font-size: 47px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.detail-story-body {
  max-width: 760px;
  columns: 1;
}

.detail-story-body p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
}

.detail-story-body p:first-child {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.95;
}

.detail-story-body p:last-child {
  margin-bottom: 0;
}

.detail-airing-calendar {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(127, 206, 210, 0.13), transparent 34%),
    var(--detail-panel);
}

.detail-airing-calendar::after {
  position: absolute;
  top: -78px;
  right: -48px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(46, 119, 111, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(191, 228, 215, 0.055);
}

.airing-calendar-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.airing-calendar-head .eyebrow {
  margin: 0 0 8px;
  color: var(--mint-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.airing-calendar-head h2 {
  margin: 0;
  font-size: 29px;
}

.airing-calendar-summary {
  margin: 8px 0 0;
  color: rgba(13, 41, 61, 0.48);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
}

.airing-order-toggle {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px;
  background: #f0f1f1;
  border: 1px solid rgba(13, 41, 61, 0.04);
  border-radius: 13px;
}

.airing-order-toggle button {
  min-width: 66px;
  height: 38px;
  padding: 0 16px;
  color: #777c7e;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.airing-order-toggle button:hover {
  color: var(--ink);
}

.airing-order-toggle button.is-active {
  color: var(--white);
  background: #31cbc7;
  box-shadow: 0 5px 12px rgba(49, 203, 199, 0.24);
}

.airing-order-toggle button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.airing-date-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.airing-date-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 78px;
  padding: 12px 10px;
  color: #169bd0;
  text-align: center;
  background: #f2fbfe;
  border: 1px solid #bde8f4;
  border-radius: 10px;
}

.airing-date-card strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.airing-date-card time {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.airing-date-card.is-upcoming {
  color: #777b7d;
  background: #f1f1f1;
  border-color: #f1f1f1;
}

.airing-date-empty {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  color: rgba(13, 41, 61, 0.45);
  text-align: center;
  background: rgba(255, 253, 248, 0.5);
  border: 1px dashed rgba(13, 41, 61, 0.13);
  border-radius: 12px;
}

.airing-date-empty > span {
  color: var(--mint-deep);
  font-size: 19px;
}

.airing-date-empty strong {
  font-family: var(--display);
  font-size: 12px;
}

.airing-date-empty small {
  font-size: 8px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.character-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px;
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid rgba(13, 41, 61, 0.1);
  border-radius: 16px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.character-card:hover {
  border-color: rgba(46, 119, 111, 0.32);
  box-shadow: 0 10px 22px rgba(13, 41, 61, 0.09);
  transform: translateY(-3px);
}

.character-image {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 12px;
  overflow: hidden;
  color: rgba(13, 41, 61, 0.52);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  background:
    radial-gradient(circle at 28% 20%, rgba(244, 198, 168, 0.8), transparent 55%),
    var(--mint);
  border-radius: 50% 50% 18px 18px;
  place-items: center;
}

.character-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.character-card > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.character-card strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-card small {
  margin-top: 2px;
  color: var(--mint-deep);
  font-size: 7px;
  font-weight: 700;
}

.character-card div:last-child span {
  margin-top: 6px;
  overflow: hidden;
  color: rgba(13, 41, 61, 0.45);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 8px;
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid rgba(13, 41, 61, 0.1);
  border-radius: 14px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.related-card:hover {
  background: var(--white);
  border-color: rgba(46, 119, 111, 0.32);
  transform: translateY(-2px);
}

.related-cover {
  position: relative;
  display: grid;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  color: rgba(255, 253, 248, 0.55);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  background: var(--ink);
  border-radius: 9px;
  place-items: center;
}

.related-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.related-copy small {
  margin-bottom: 5px;
  color: var(--mint-deep);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.related-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-copy > span {
  margin-top: 8px;
  color: rgba(13, 41, 61, 0.42);
  font-size: 8px;
  font-weight: 600;
}

.related-copy i {
  color: var(--mint-deep);
  font-style: normal;
}

.anime-detail-side {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

.detail-facts {
  position: relative;
  padding: 28px 25px 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(127, 206, 210, 0.25), transparent 42%),
    var(--ink);
  border-radius: 23px 23px 46px 23px;
  box-shadow: 0 22px 46px rgba(13, 41, 61, 0.2);
}

.detail-facts::after {
  position: absolute;
  right: -54px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(191, 228, 215, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(191, 228, 215, 0.035);
}

.detail-facts .detail-side-kicker {
  position: relative;
  z-index: 1;
  color: var(--mint);
}

.detail-facts h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: var(--white);
}

.detail-facts dl {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.detail-facts dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 253, 248, 0.1);
}

.detail-facts dt {
  color: rgba(255, 253, 248, 0.42);
  font-size: 8px;
}

.detail-facts dd {
  margin: 0;
  color: rgba(255, 253, 248, 0.83);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.55;
  text-align: right;
}

.detail-side-card {
  padding: 21px 21px 19px;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--detail-line);
  border-radius: 19px;
  box-shadow: 0 11px 27px rgba(13, 41, 61, 0.055);
}

.detail-side-card h2 {
  margin-bottom: 15px;
  font-size: 20px;
}

.detail-stream-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-stream-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid rgba(13, 41, 61, 0.09);
  border-radius: 9px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.detail-stream-list a:hover {
  background: var(--mint);
  border-color: rgba(46, 119, 111, 0.22);
}

.detail-stream-list a span:last-child {
  color: var(--mint-deep);
}

.detail-staff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-staff-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13, 41, 61, 0.08);
}

.detail-staff-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-staff-list strong {
  font-family: var(--display);
  font-size: 10px;
}

.detail-staff-list span {
  color: rgba(13, 41, 61, 0.45);
  font-size: 7.5px;
}

.detail-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-external-links a {
  padding: 6px 9px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid rgba(13, 41, 61, 0.09);
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.detail-external-links a:hover {
  color: var(--mint-deep);
  background: rgba(191, 228, 215, 0.38);
}

.detail-app-card {
  position: relative;
  padding: 23px 22px 21px;
  overflow: hidden;
  background: var(--peach);
  border: 1px solid rgba(13, 41, 61, 0.11);
  border-radius: 20px;
}

.detail-app-mark {
  position: absolute;
  top: -19px;
  right: 7px;
  color: rgba(13, 41, 61, 0.08);
  font-family: var(--body);
  font-size: 104px;
  font-weight: 700;
  line-height: 1;
}

.detail-app-card p {
  position: relative;
  z-index: 1;
  max-width: 220px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}

.detail-app-card .button {
  position: relative;
  z-index: 1;
}

.detail-not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 660px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.detail-not-found .eyebrow {
  margin-bottom: 24px;
}

.detail-not-found-mark {
  color: rgba(13, 41, 61, 0.09);
  font-family: var(--body);
  font-size: clamp(100px, 16vw, 210px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.detail-not-found h1 {
  margin: 16px 0 15px;
  font-size: clamp(38px, 5vw, 64px);
}

.detail-not-found > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

@media (max-width: 1100px) {
  .anime-hero {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
    gap: 48px;
  }

  .anime-detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .anime-hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 38px;
    padding-bottom: 76px;
  }

  .anime-cover-stage {
    width: min(100%, 330px);
  }

  .anime-hero-copy {
    max-width: 760px;
  }

  .anime-detail-layout {
    grid-template-columns: 1fr;
  }

  .anime-detail-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .detail-facts,
  .detail-app-card {
    grid-column: 1 / -1;
  }

  .character-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .anime-page main::before {
    display: none;
  }

  .detail-breadcrumb {
    padding-top: 8px;
    font-size: 8px;
  }

  .anime-hero {
    gap: 40px;
    padding-top: 34px;
    padding-bottom: 62px;
  }

  .anime-cover-stage {
    width: min(88%, 270px);
    padding-inline: 0;
  }

  .anime-cover-orbit {
    top: -18px;
    left: -52px;
    width: 350px;
    height: 350px;
  }

  .anime-cover-back {
    inset: 28px -2px 8px 33px;
  }

  .anime-cover {
    border-width: 6px;
    border-radius: 18px 18px 42px 18px;
  }

  .anime-cover-sticker {
    right: -19px;
    bottom: 43px;
    width: 58px;
    height: 58px;
  }

  .anime-hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .anime-alt-title {
    font-size: 10px;
  }

  .anime-genre-row {
    margin-bottom: 22px;
  }

  .anime-score {
    min-width: 103px;
    padding: 10px 12px;
  }

  .anime-score strong {
    font-size: 21px;
  }

  .anime-hero-summary {
    font-size: 12px;
    -webkit-line-clamp: 5;
  }

  .anime-hero-actions {
    gap: 17px;
  }

  .anime-hero-meta {
    margin-top: 22px;
  }

  .anime-detail-layout {
    gap: 18px;
    padding-bottom: 82px;
  }

  .anime-detail-main {
    gap: 18px;
  }

  .detail-panel {
    padding: 22px 18px;
    border-radius: 19px;
  }

  .detail-panel-head {
    margin-bottom: 20px;
  }

  .detail-panel-head h2,
  .detail-side-card h2,
  .detail-facts h2 {
    font-size: 24px;
  }

  .detail-panel-index {
    font-size: 38px;
  }

  .detail-story-body p {
    font-size: 12px;
    line-height: 1.95;
  }

  .detail-story-body p:first-child {
    font-size: 13px;
  }

  .airing-calendar-head {
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
  }

  .airing-calendar-head h2 {
    font-size: 24px;
  }

  .airing-order-toggle {
    margin-left: auto;
  }

  .airing-order-toggle button {
    min-width: 58px;
    height: 34px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .airing-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .airing-date-card {
    min-height: 72px;
    padding: 10px 8px;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .anime-detail-side {
    grid-template-columns: 1fr;
  }

  .detail-facts,
  .detail-app-card {
    grid-column: auto;
  }

  .detail-facts {
    padding: 24px 21px 21px;
  }

  .detail-facts dl div {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .detail-not-found {
    min-height: 600px;
    padding-top: 90px;
    padding-bottom: 90px;
  }
}

@media (max-width: 380px) {
  .anime-score-strip {
    gap: 6px;
  }

  .anime-score {
    min-width: calc(50% - 3px);
  }

  .character-grid {
    gap: 7px;
  }

  .character-card {
    padding: 9px;
  }
}

@media (max-width:720px) {
 .airing-calendar-dialog {
 width: calc(100vw - 24px);
 max-height:90vh;
 }

 .airing-calendar-modal {
 max-height:90vh;
 padding: 24px 17px 19px;
 border-radius:22px;
 }

 .airing-calendar-head {
 padding-right:46px;
 margin-bottom:18px;
 }

 .airing-calendar-close {
 width:36px;
 height:36px;
 font-size:23px;
 }

 .airing-calendar-toolbar {
 gap:12px;
 padding-top:15px;
 margin-bottom:13px;
 }

 .airing-calendar-month {
 font-size:9px;
 }

 .airing-date-grid {
 grid-template-columns: repeat(2, minmax(0,1fr));
 gap:8px;
 }

 .airing-date-card {
 min-height:104px;
 padding: 13px 12px;
 }
}

@media (prefers-reduced-motion: reduce) {
 .airing-calendar-dialog[open] {
 animation: none;
 }

 .airing-calendar-close {
 transition: none;
 }
}
