/* Anime Slayer Z Phase 5 — Catalogue, Episode Library, Authorized Player & Top 15 Band */
.asl-catalogue-main,
.asl-single-anime-main {
    padding-top: 8px;
    padding-bottom: 42px;
}

.asl-cat-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #d7e6f5;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.asl-cat-hero h1 {
    margin: 0 0 10px;
    color: #142c73;
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    line-height: 1.3;
}

.asl-cat-lead {
    margin: 0 0 12px;
    color: #334155;
    font-size: 0.98rem;
}

.asl-cat-disclosure-mini {
    display: inline-block;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Mobile-friendly Filter Bar */
.asl-filter-bar {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(20, 44, 115, 0.04);
}

.asl-filter-row {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, minmax(120px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.asl-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.asl-filter-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #142c73;
}

.asl-filter-field input,
.asl-filter-field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.9rem;
}

.asl-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.asl-btn-primary,
.asl-btn-ghost,
.asl-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.asl-btn-primary {
    background: #078fdf;
    color: #ffffff;
}

.asl-btn-primary:hover {
    background: #142c73;
    color: #ffffff;
}

.asl-btn-ghost {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.asl-btn-secondary {
    background: #eef6ff;
    color: #142c73;
    border-color: #bfdbfe;
}

/* Genre Chips */
.asl-genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.asl-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #dbe6f2;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.asl-chip.is-active,
.asl-chip:hover {
    background: #078fdf;
    border-color: #078fdf;
    color: #ffffff;
}

/* 2-4 Column Responsive Anime Card Grid */
.asl-anime-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.asl-anime-card {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    flex-direction: column;
}

.asl-anime-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(20, 44, 115, 0.08);
}

.asl-anime-poster-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.asl-anime-poster-wrap {
    position: relative;
    aspect-ratio: 5 / 7;
    background: #0f172a;
    overflow: hidden;
}

.asl-anime-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.asl-card-status,
.asl-card-year {
    position: absolute;
    top: 38px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
}

.asl-card-status {
    inset-inline-start: 10px;
    background: rgba(7, 143, 223, 0.92);
}

.asl-card-year {
    inset-inline-end: 10px;
}

.asl-anime-card-body {
    padding: 13px 14px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asl-anime-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #142c73;
    line-height: 1.35;
}

.asl-anime-card-meta {
    font-size: 0.82rem;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asl-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.asl-mini-tag {
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef6ff;
    color: #142c73;
    font-weight: 600;
}

.asl-archive-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.asl-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #142c73;
    font-weight: 700;
    text-decoration: none;
}

.asl-archive-pagination .page-numbers.current {
    background: #078fdf;
    color: #ffffff;
}

.asl-empty-catalogue {
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 36px 20px;
}

/* Single Anime Layout */
.asl-single-hero {
    position: relative;
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

.asl-single-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
}

/* Cinematic Backdrop Banner */
.asl-single-hero.has-hero-backdrop {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.asl-hero-backdrop-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.asl-hero-backdrop-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0.38;
    filter: blur(2px) saturate(1.25);
    transform: scale(1.04);
}

.asl-hero-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0.92) 80%, #0f172a 100%);
}

.has-hero-backdrop .asl-single-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.has-hero-backdrop .asl-alt-names {
    color: #cbd5e1;
}

.has-hero-backdrop .asl-alt-names span strong {
    color: #7dd3fc;
}

.has-hero-backdrop .asl-genre-badge {
    background: rgba(7, 143, 223, 0.22);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.35);
}

.has-hero-backdrop .asl-genre-badge:hover {
    background: #078fdf;
    color: #ffffff;
}

.has-hero-backdrop .asl-single-facts-grid {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.has-hero-backdrop .asl-fact-label {
    color: #94a3b8;
}

.has-hero-backdrop .asl-fact-val {
    color: #ffffff;
}

.has-hero-backdrop .asl-hero-licensed {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
}

.has-hero-backdrop .asl-licensed-heading {
    color: #e2e8f0;
}

.has-hero-backdrop .asl-licensed-btn-sm {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.has-hero-backdrop .asl-licensed-btn-sm:hover {
    background: #078fdf;
    border-color: #078fdf;
}

.has-hero-backdrop .asl-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.35);
}

.has-hero-backdrop .asl-poster-credit {
    color: #94a3b8;
}

.has-hero-backdrop .asl-single-poster-box {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.16);
}

.asl-single-poster-box {
    aspect-ratio: 5 / 7;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #cbd5e1;
}

.asl-single-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.asl-poster-credit {
    margin: 8px 0 10px;
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.4;
}

.asl-official-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: #142c73;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.asl-single-title {
    margin: 0 0 8px;
    color: #142c73;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.asl-alt-names {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 14px;
}

.asl-single-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.asl-genre-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #078fdf;
    border: 1px solid #bfdbfe;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.asl-single-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    background: #f8fbff;
    border: 1px solid #e2ecf7;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.asl-fact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asl-fact-label {
    font-size: 0.78rem;
    color: #64748b;
}

.asl-fact-val {
    font-size: 0.92rem;
    color: #0f172a;
}

.asl-hero-licensed {
    margin-bottom: 12px;
}

.asl-licensed-heading {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #142c73;
    margin-bottom: 8px;
}

.asl-licensed-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.asl-licensed-btn,
.asl-licensed-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #078fdf;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.asl-licensed-btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.asl-single-synopsis,
.asl-player-section,
.asl-episode-library,
.asl-rel-anime-section,
.asl-rel-articles-section {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 22px;
}

.asl-single-synopsis h2,
.asl-episode-library h2,
.asl-rel-anime-section h2,
.asl-rel-articles-section h2 {
    margin-top: 0;
    color: #142c73;
    font-size: 1.25rem;
}

/* Phase 5.3 — Authentic Scene & Key Visual Gallery */
.asl-anime-gallery-section {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(20, 44, 115, 0.03);
}

.asl-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #eef4fb;
    padding-bottom: 12px;
}

.asl-gallery-header h2 {
    margin: 0;
    color: #142c73;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.asl-gallery-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #078fdf;
    font-size: 0.82rem;
    font-weight: 700;
}

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

.asl-gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.asl-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.asl-gallery-link {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.asl-gallery-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.asl-gallery-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.asl-gallery-link:hover img {
    transform: scale(1.04);
}

.asl-gallery-zoom {
    position: absolute;
    bottom: 8px;
    inset-inline-end: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.asl-gallery-link:hover .asl-gallery-zoom {
    opacity: 1;
}

.asl-gallery-disclaimer {
    margin: 14px 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

/* Lightbox Modal */
.asl-lightbox-modal[hidden] {
    display: none !important;
}

.asl-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.asl-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(4px);
}

.asl-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asl-lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.asl-lightbox-close {
    position: absolute;
    top: -16px;
    inset-inline-end: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #078fdf;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.asl-lightbox-caption {
    margin-top: 10px;
    color: #e2e8f0;
    font-size: 0.9rem;
    text-align: center;
}

/* Player Stage & Rights Guard */
.asl-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.asl-ep-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #078fdf;
    margin-bottom: 4px;
}

.asl-player-title {
    margin: 0;
    font-size: 1.18rem;
    color: #142c73;
}

.asl-ep-prevnext {
    display: flex;
    gap: 8px;
}

.asl-ep-nav-btn {
    padding: 7px 14px;
    border-radius: 8px;
    background: #eef6ff;
    color: #142c73;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.asl-player-auth-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.asl-video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b1120;
    border-radius: 12px;
    overflow: hidden;
}

.asl-video-el {
    width: 100%;
    height: 100%;
    display: block;
    background: radial-gradient(circle at center, #132a57 0%, #091326 100%);
}

.asl-player-error {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.asl-player-error[hidden] {
    display: none;
}

.asl-player-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.asl-source-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.asl-toolbar-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.asl-source-btn {
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.asl-source-btn.is-active {
    background: #078fdf;
    border-color: #078fdf;
    color: #ffffff;
}

.asl-resume-notice {
    font-size: 0.82rem;
    color: #0369a1;
    font-weight: 600;
}

.asl-rights-unavailable-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 18px 20px;
}

.asl-rights-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.asl-rights-body h3 {
    margin: 0 0 6px;
    color: #142c73;
    font-size: 1.05rem;
}

.asl-rights-body p {
    margin: 0 0 12px;
    color: #334155;
    font-size: 0.92rem;
}

.asl-ep-synopsis-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.92rem;
    color: #334155;
}

/* Episode Library */
.asl-ep-lib-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.asl-ep-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.asl-ep-search {
    min-width: 240px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.88rem;
}

.asl-season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asl-season-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.asl-season-btn.is-active {
    background: #142c73;
    color: #ffffff;
    border-color: #142c73;
}

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

.asl-ep-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.asl-ep-row[hidden] {
    display: none;
}

.asl-ep-row-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1 1 320px;
    min-width: 0;
}

.asl-ep-num {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 7px;
    background: #142c73;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
}

.asl-ep-text strong {
    display: block;
    color: #0f172a;
    font-size: 0.94rem;
}

.asl-ep-text p {
    margin: 3px 0 0;
    color: #475569;
    font-size: 0.84rem;
}

.asl-ep-row-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.asl-ep-date {
    font-size: 0.8rem;
    color: #64748b;
}

.asl-rights-tag {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.asl-rights-tag.is-auth {
    background: #d1fae5;
    color: #065f46;
}

.asl-rights-tag.is-ext {
    background: #e0f2fe;
    color: #075985;
}

.asl-ep-action-btn {
    padding: 6px 12px;
    border-radius: 7px;
    background: #078fdf;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.asl-rel-articles-list {
    margin: 0;
    padding-inline-start: 20px;
    display: grid;
    gap: 8px;
}

.asl-rel-articles-list a {
    color: #078fdf;
    font-weight: 600;
    text-decoration: none;
}

/* Compact Pre-Footer Top 15 Popular Anime Discovery Band */
.asl-top15-band {
    background: #f1f6fc;
    border-top: 1px solid #d7e6f5;
    border-bottom: 1px solid #d7e6f5;
    padding: 20px 18px;
}

.asl-top15-inner {
    max-width: 1184px;
    margin: 0 auto;
}

.asl-top15-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.asl-top15-title {
    margin: 0;
    font-size: 1.05rem;
    color: #142c73;
    font-weight: 800;
}

.asl-top15-all {
    font-size: 0.86rem;
    font-weight: 700;
    color: #078fdf;
    text-decoration: none;
}

.asl-top15-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 10px;
}

.asl-top15-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dbe6f2;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.82rem;
    min-height: 36px;
}

.asl-top15-link:hover {
    border-color: #078fdf;
    color: #078fdf;
}

.asl-top15-rank {
    flex: 0 0 20px;
    height: 20px;
    border-radius: 50%;
    background: #142c73;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.asl-top15-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.asl-top15-year {
    font-size: 0.72rem;
    color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .asl-filter-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .asl-anime-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .asl-top15-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .asl-single-hero,
    .asl-single-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .asl-single-hero.has-hero-backdrop {
        padding: 20px 16px;
    }
    .asl-single-poster-col {
        max-width: 240px;
    }
    .asl-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .asl-anime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .asl-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .asl-top15-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .asl-filter-row,
    .asl-single-facts-grid,
    .asl-top15-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .asl-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .asl-lightbox-close {
        top: -12px;
        inset-inline-end: -8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .asl-ep-search {
        min-width: 0;
        width: 100%;
    }
    .asl-rights-unavailable-card {
        flex-direction: column;
    }
}

/* Phase 5.1 — YouTube Official Player, Fallback Poster Cards & Kitsu Discover Section */
.asl-youtube-frame-wrap {
    background: #0b1120;
}

.asl-youtube-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.asl-poster-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 46px 14px 18px;
    background: linear-gradient(155deg, #142c73 0%, #0d1f4d 58%, #078fdf 145%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-sizing: border-box;
}

.asl-pf-brand {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.asl-pf-title {
    font-size: 1rem;
    line-height: 1.35;
    color: #ffffff;
}

.asl-pf-jp {
    font-size: 0.82rem;
    color: #cbd5e1;
}

.asl-pf-note {
    margin-top: 6px;
    font-size: 0.72rem;
    color: #dbeafe;
    opacity: 0.9;
}

.asl-discover-section {
    margin-top: 38px;
    padding-top: 26px;
    border-top: 2px solid #e2e8f0;
}

.asl-discover-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.asl-section-heading {
    margin: 0 0 6px;
    color: #142c73;
    font-size: 1.3rem;
}

.asl-discover-sub {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
}

.asl-cache-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.76rem;
    font-weight: 700;
}

.asl-kitsu-card .asl-anime-card-title a {
    color: #142c73;
    text-decoration: none;
}

.asl-kitsu-card .asl-anime-card-title a:hover {
    color: #078fdf;
}

.asl-kitsu-local-link {
    margin-top: 4px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #078fdf;
    text-decoration: none;
}

.asl-kitsu-preview summary {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-top: 4px;
}

.asl-kitsu-preview p {
    margin: 6px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #475569;
}

.asl-kitsu-attribution {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 780px) {
    .asl-discover-head {
        flex-direction: column;
    }
}

/* Phase 5.2 — Breadcrumbs, Player Loading & Availability Badges */
.asl-breadcrumbs-bar {
    margin: 0 0 16px;
    font-size: 0.84rem;
    color: #64748b;
}

.asl-breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.asl-breadcrumbs-list li a {
    color: #142c73;
    text-decoration: none;
    font-weight: 600;
}

.asl-breadcrumbs-list li a:hover {
    color: #078fdf;
    text-decoration: underline;
}

.asl-bc-sep {
    color: #94a3b8;
    user-select: none;
}

.asl-yt-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 17, 32, 0.82);
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

.asl-yt-loading[hidden] {
    display: none;
}

.asl-status-pill.is-available {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.asl-region-note {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #b45309;
    font-weight: 600;
}
