.al-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #17131b;
}
.al-detail-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    filter: blur(7px);
    transform: scale(1.04);
}
.al-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #161219f5, #161219ae 62%, #1612195c),
        linear-gradient(0deg,#242424,transparent 54%);
}
.al-detail-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) clamp(190px,24vw,310px);
    gap: clamp(28px,8vw,116px);
    min-height: 460px;
    padding-top: 52px;
    padding-bottom: 44px;
    align-items: center;
}
.al-detail-hero-copy h1 {
    color: #fff;
    font-size: clamp(32px,4.8vw,64px);
    line-height: 1.12;
    margin: 0 0 12px;
}
.al-detail-hero-copy .al-detail-original { color: #ddd; margin-bottom: 16px; }
@media (min-width:1200px) { .al-detail-hero-copy { max-width: 67%; } }
.al-detail-alias { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.al-hero-plot { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.al-detail-panels #al-reviews-panel > h2 { color:#fff; }
.al-detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; color: #ddd; }
.al-detail-facts span { max-width: 100%; overflow-wrap: anywhere; }
.al-detail-facts span + span::before { content: '·'; color: #9d8ba1; margin-right: 14px; }
.al-platform-ratings { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 22px 0 0; }
.al-platform-ratings > div { display: grid; gap: 2px; border-inline-start: 2px solid #a958a5; padding-inline-start: 10px; }
.al-platform-ratings dt { font-size: .78rem; color: #c4b6c9; font-weight: 400; }
.al-platform-ratings dd { color: #f5cf49; margin: 0; font-variant-numeric: tabular-nums; }
.al-detail-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.al-site .al-detail-hero-actions .anime-btn2 { padding: 10px 20px; font-size: 1rem; }
.al-detail-hero .al-detail-poster { margin: 0; max-width: none; }
.al-poster-zoom {
    display: block;
    width: 100%;
    padding: 0;
    background: #201a23;
    border: 1px solid #ffffff25;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 18px 52px #0008;
}
.al-detail-hero .al-poster-zoom img { aspect-ratio: 2 / 3; border-radius: 0; }
.al-poster-zoom:hover { border-color: #a958a5; }
.al-hero-add {
    position: absolute;
    right: 12px;
    top: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #e9d5e869;
    color: #fff;
    background: #201620c9;
    z-index: 2;
    transition: border-color .2s, background .2s, color .2s;
}
.al-hero-add:hover { color: #f5cf49; border-color: #f5cf49; background: #2d2132; }
.al-hero-add i { font-family: system-ui, sans-serif; }
.al-hero-add i::before { content: '+'; font: normal 29px/1 system-ui; }
.al-hero-add.is-saved i::before, .al-hero-add[aria-pressed="true"] i::before { content: '✓'; font-size: 21px; }
.al-detail-panels { padding-bottom: 62px; }
.al-detail-tabs { display: flex; gap: clamp(12px,4vw,44px); border-bottom: 1px solid #434043; }
.al-detail-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #c5bcc7;
    min-width: 80px;
    padding: 16px 12px 12px;
    font-size: 1.12rem;
}
.al-detail-tabs button.active { color: #f5cf49; border-color: #f5cf49; }
.al-detail-tabs button:hover { color: #f5cf49; }
.al-detail-panels .tab-pane { padding: 26px 0 0; }
.al-detail-panels .recent { margin-top: 38px; }
.al-detail-panels .recent > .container { padding-inline: 0; }
.al-about-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(190px,1fr); gap: clamp(20px,4vw,52px); }
.al-about-layout:has(.al-about-main:only-child) { grid-template-columns: 1fr; }
.al-about-main { min-width: 0; display: grid; align-content: start; gap: 32px; }
.al-about-layout h2 { font-size: 1.4rem; color: #fff; margin: 0 0 13px; }
.al-about-layout h3 { font-size: .95rem; color: #ddd; }
.al-about-plot { line-height: 1.9; overflow-wrap: anywhere; }
.al-about-cast { border-left: 1px solid #434043; padding-left: clamp(16px,2.5vw,36px); }
.al-about-cast ul { display: grid; gap: 10px; padding: 0; margin: 0 0 20px; list-style: none; max-height: 320px; overflow: auto; scrollbar-width: thin; scrollbar-color: #895681 #29252a; }
.al-about-cast li > a, .al-about-cast li > div, .al-review-author { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.al-round-avatar { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: #39323b; color: #e8dfe8; }
.al-round-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.al-media-strip-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.al-media-strip-heading h2 { margin: 0; }
.al-media-strip-heading button, .al-detail-viewer header button, .al-viewer-body > button {
    border: 1px solid #655369;
    background: #241d28;
    color: #fff;
    border-radius: 7px;
    width: 40px;
    height: 40px;
    line-height: 1;
    font-size: 25px;
}
.al-media-strip-heading button:hover, .al-detail-viewer button:hover { color: #f5cf49; border-color: #f5cf49; }
.al-media-strip-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px,32%,245px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #865381 #252126; padding-bottom: 8px; }
.al-media-strip-track button { position: relative; border: 1px solid #49414c; border-radius: 9px; overflow: hidden; aspect-ratio: 16/9; scroll-snap-align: start; color: #fff; padding: 0; background: #342639; }
.al-media-strip-track button img { width: 100%; height: 100%; object-fit: cover; }
.al-strip-caption { position: absolute; inset: auto 0 0; padding: 12px 8px 6px; text-align: left; background: linear-gradient(transparent,#100d13ee); font-size: .8rem; }
.al-strip-play { position: absolute; top: 7px; left: 8px; background: #211a24d9; border-radius: 20px; padding: 3px 7px; }
.al-review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.al-review-list article { padding: 18px; border-radius: 10px; background: #1a171c; overflow-wrap: anywhere; }
.al-review-author { color: #fff; margin-bottom: 12px; }
.al-review-list p { margin: 0 0 8px; }
.al-review-list a { color: #f5cf49; font-size: .9rem; }
.al-detail-viewer {
    color: #fff;
    background: #18141b;
    padding: 12px;
    border: 1px solid #655369;
    border-radius: 12px;
    width: min(980px,97vw);
    max-height: 94vh;
    overflow: auto;
}
.al-detail-viewer::backdrop { background: #0c0911de; }
.al-detail-viewer header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.al-detail-viewer h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.al-viewer-body { position: relative; }
.al-viewer-body > button { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); }
.al-viewer-body > button:first-child { left: 4px; }
.al-viewer-body > button:last-child { right: 4px; }
.al-viewer-media { display: grid; place-items: center; min-height: min(270px,36vh); background: #0e0c10; border-radius: 8px; overflow: hidden; }
.al-viewer-media img { width: auto; max-width: 100%; max-height: 62vh; object-fit: contain; }
.al-viewer-media iframe, .al-viewer-media video { width: 100%; aspect-ratio: 16 / 9; max-height: 62vh; border: 0; }
.al-viewer-caption { padding: 8px 0; color: #ddd; text-align: center; }
.al-viewer-thumbs:not([hidden]) { display: flex; overflow: auto; gap: 8px; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: #865381 #252126; }
.al-viewer-thumbs button { flex: 0 0 100px; min-height: 52px; max-height: 64px; line-height: 1.25; overflow: hidden; color: #e8dfe8; background: #342639; border: 1px solid #57405b; border-radius: 5px; padding: 0; font-size: .75rem; }
.al-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.al-viewer-thumbs button[aria-current] { border: 2px solid #f5cf49; }
@media (max-width:767px) {
    .al-detail-hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 20px; padding-top: 34px; padding-bottom: 28px; }
    .al-detail-hero .al-detail-poster { order: -1; width: min(42vw,180px); margin: 0 auto; }
    .al-detail-hero-copy { min-width: 0; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
    .al-detail-hero-copy h1, .al-detail-hero-copy .al-detail-original {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .al-detail-facts { grid-template-columns: minmax(0,1fr); }
    .al-detail-facts, .al-platform-ratings, .al-detail-hero-actions { justify-content: center; }
    .al-platform-ratings > div { text-align: start; }
    .al-about-layout, .al-review-list { grid-template-columns: 1fr; }
    .al-about-cast { border-left: 0; border-top: 1px solid #434043; padding: 20px 0 0; }
    .al-detail-tabs { justify-content: center; }
}
.al-detail-background { filter: blur(3px); transform: scale(1.025); }
.al-detail-hero::before { background: linear-gradient(90deg,#161219df,#16121980 62%,#16121932),linear-gradient(0deg,#242424e6,transparent 60%); }
.al-detail-facts { display: grid; gap: 5px; }
.al-detail-facts > div { display: flex; flex-wrap: wrap; justify-content: inherit; align-items: center; gap: 4px 10px; min-width: 0; }
.al-detail-facts span + span::before { margin-right: 10px; }
.al-detail-alias { color: #ddd; margin: 8px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-hero-plot { color: #ece5ed; margin: 12px 0 0; line-height: 1.55; }
.al-site .al-hero-plot a { color: #f5cf49; font-size: inherit; white-space: nowrap; }
.al-hero-tools { position: absolute; right: 12px; top: 18px; z-index: 2; display: grid; gap: 8px; }
.al-hero-tools .al-hero-add, .al-hero-share { position: static; width: 44px; height: 44px; }
.al-hero-share { display: grid; place-items: center; border-radius: 50%; border: 1px solid #e9d5e869; color: #fff; background: #201620c9; }
.al-hero-share:hover { color: #f5cf49; border-color: #f5cf49; }
.al-detail-share { max-width: 390px; padding: 20px; }
.al-detail-share-qr { display: block; width: 168px; height: 168px; margin: 12px auto 18px; background: white; border-radius: 10px; overflow: hidden; }
.al-detail-share-qr img, .al-detail-share-qr canvas { display: block; width: 100% !important; height: 100% !important; }
.al-detail-share-copy,.al-detail-share-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.al-detail-share-copy input { flex: 1; min-width: 145px; border: 1px solid #655369; border-radius: 6px; background: #211b24; color: #ece5ed; padding: 7px; }
.al-detail-share-links a,.al-detail-share-links button,.al-detail-share-copy button { border: 1px solid #655369; border-radius: 7px; background: #241d28; color: #fff; padding: 5px 9px; font-size: .9rem; }
.al-detail-share p { margin-bottom: 0; color: #f5cf49; }
.al-strip-caption { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 42%; padding: 4px 8px; background: #100d13d9; }
.al-about-cast ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; max-height: 430px; }
.al-about-cast .al-round-avatar { width: 60px; height: 60px; flex-basis: 60px; }
.al-about-cast .al-cast-name { color: #f1ebf3; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.al-cast-name small { display: block; color: #c3b5c7; font-size: .75rem; font-weight: 400; }
@media (max-width:1199px) {
    .al-about-layout { grid-template-columns: 1fr; }
    .al-about-cast { grid-row: 1; border-left: 0; border-top: 0; border-bottom: 1px solid #434043; padding: 0 0 14px; min-width: 0; }
    .al-about-cast ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 104px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
    .al-about-cast li { scroll-snap-align: start; }
    .al-about-cast li > a,.al-about-cast li > div { flex-direction: column; text-align: center; }
    .al-hero-plot { display: none; }
}
@media (max-width:767px) {
    .al-detail-facts > div { flex-wrap: nowrap; justify-content: center; }
    .al-detail-facts span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
    .al-detail-facts > div span:last-child { flex-shrink: 0; max-width: 46%; }
}
.al-about-cast ul { gap:24px 16px; }
.al-about-cast li > a, .al-about-cast li > div { flex-direction:column; align-items:center; text-align:center; gap:9px; }
.al-about-cast .al-round-avatar { width:87px; height:87px; flex:0 0 87px; }
.al-about-cast .al-cast-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.35; max-width:100%; }
.al-about-cast a:hover .al-cast-name { color:#f5cf49; }
@media (max-width:1199px) { .al-about-cast .al-round-avatar { width:79px; height:79px; flex-basis:79px; } .al-about-cast .al-cast-crew { display:none; } }
