/* =========================================================
   AnimeLok Frontend UI
   File: assets/css/app.css
   ========================================================= */

:root {
    --al-bg: #050505;
    --al-bg-soft: #090b0f;
    --al-header: rgba(7, 11, 15, .84);

    --al-surface: #111419;
    --al-surface-2: #181b20;
    --al-surface-3: #1d293b;
    --al-card: #1d293b;

    --al-border: rgba(255, 255, 255, .09);
    --al-border-strong: rgba(255, 255, 255, .15);

    --al-orange: #ff861c;
    --al-orange-2: #ff9b3f;
    --al-orange-dark: #d96700;

    --al-white: #fff;
    --al-text: #e7e9ed;
    --al-muted: #8994a6;
    --al-muted-2: #596477;

    --al-sub: #b7efae;
    --al-dub: #bcecff;
    --al-raw: #ffd18b;

    --al-radius-sm: 6px;
    --al-radius: 10px;
    --al-radius-lg: 14px;

    --al-container: 1780px;
    --al-header-height: 90px;

    --al-shadow: 0 12px 35px rgba(0, 0, 0, .28);
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background: var(--al-bg);
}

body {
    margin: 0;
    padding: 0;
    background: var(--al-bg);
    color: var(--al-text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.admin-bar .al-header {
    top: 32px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--al-orange);
    color: #000;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.al-site {
    min-height: 100vh;
    background: var(--al-bg);
}

.al-container {
    width: min(calc(100% - 64px), var(--al-container));
    margin-inline: auto;
}

.al-main {
    min-height: 70vh;
}

.al-section {
    padding: 28px 0;
}

.al-section + .al-section {
    padding-top: 18px;
}

.al-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.al-section-title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: var(--al-white);
    font-size: clamp(21px, 1.5vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.03em;
}

.al-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 99px;
    background: var(--al-orange);
}

.al-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9eb4d1;
    font-size: 14px;
    white-space: nowrap;
    transition: .2s ease;
}

.al-view-all:hover {
    color: var(--al-orange);
    transform: translateX(2px);
}

.al-empty {
    padding: 40px 20px;
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius);
    background: var(--al-surface);
    color: var(--al-muted);
    text-align: center;
}


/* =========================================================
   HEADER
   ========================================================= */

.al-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    height: var(--al-header-height);
    border-bottom: 1px solid var(--al-border);
    background: var(--al-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.al-header-inner {
    width: min(calc(100% - 32px), var(--al-container));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 18px;
}

.al-menu-toggle,
.al-header-action,
.al-social-circle,
.al-user-button {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #fff;

    transition:
        background .2s ease,
        transform .2s ease,
        border-color .2s ease;
}

.al-menu-toggle:hover,
.al-header-action:hover,
.al-social-circle:hover,
.al-user-button:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.14);
    transform: translateY(-1px);
}

.al-menu-toggle {
    border: 0;
}

.al-menu-lines {
    position: relative;
    width: 20px;
    height: 14px;
}

.al-menu-lines::before,
.al-menu-lines::after,
.al-menu-lines {
    border-top: 2px solid #fff;
}

.al-menu-lines::before,
.al-menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
}

.al-menu-lines::before {
    top: 5px;
}

.al-menu-lines::after {
    top: 12px;
}

.al-logo {
    display: inline-flex;
    align-items: center;
    min-width: 190px;
}

.al-logo img {
    width: auto;
    max-width: 210px;
    max-height: 50px;
    object-fit: contain;
}

.al-logo-text {
    font-size: 29px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.al-logo-text strong {
    color: var(--al-orange);
}

.al-header-spacer {
    flex: 1;
}

.al-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.al-join {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    color: #fff;
    font-size: 13px;
    line-height: 1.05;
    text-align: center;
}

.al-search-trigger {
    border: 0;
}

.al-header-search {
    position: absolute;
    z-index: 1100;
    left: 50%;
    top: calc(100% + 12px);
    width: min(720px, calc(100vw - 30px));
    padding: 14px;
    border: 1px solid var(--al-border);
    border-radius: 14px;
    background: #111419;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    transition: .2s ease;
}

.al-header-search.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.al-header-search form {
    display: flex;
}

.al-header-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px;

    border: 1px solid var(--al-border);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    outline: none;

    background: #fff;
    color: #111;
}

.al-header-search button {
    min-width: 60px;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: var(--al-orange);
    color: #000;
}


/* =========================================================
   OFF CANVAS MENU
   ========================================================= */

.al-drawer-overlay {
    position: fixed;
    z-index: 1998;
    inset: 0;
    background: rgba(0,0,0,.68);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.al-drawer {
    position: fixed;
    z-index: 1999;
    left: 0;
    top: 0;
    bottom: 0;

    width: min(360px, 88vw);
    padding: 25px;

    background: #0e1116;
    border-right: 1px solid var(--al-border);

    transform: translateX(-100%);
    transition: .25s ease;
    overflow-y: auto;
}

body.al-menu-open .al-drawer {
    transform: translateX(0);
}

body.al-menu-open .al-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

.al-drawer-logo {
    margin-bottom: 30px;
}

.al-drawer nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.al-drawer nav li {
    border-bottom: 1px solid var(--al-border);
}

.al-drawer nav a {
    display: block;
    padding: 15px 4px;
    color: #e8ebef;
    font-weight: 600;
}

.al-drawer nav a:hover {
    color: var(--al-orange);
}


/* =========================================================
   HERO / SPOTLIGHT
   ========================================================= */

.al-hero {
    position: relative;
    width: 100%;
    min-height: 720px;
    overflow: hidden;
    background: #10151d;
}

.al-hero-slide {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: flex-end;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.al-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.94) 0%,
            rgba(0,0,0,.68) 34%,
            rgba(0,0,0,.18) 70%,
            rgba(0,0,0,.08) 100%
        ),
        linear-gradient(
            0deg,
            #050505 0%,
            rgba(5,5,5,.52) 18%,
            rgba(5,5,5,0) 55%
        );
}

.al-hero-content {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 64px), var(--al-container));
    margin: 0 auto;
    padding: 0 0 82px;
}

.al-hero-info {
    width: min(600px, 100%);
}

.al-spotlight {
    margin-bottom: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.al-hero-title {
    margin: 0 0 20px;
    max-width: 720px;

    color: #fff;
    font-size: clamp(38px, 4vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 900;
}

.al-hero-badges,
.al-hero-genres {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.al-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;

    border-radius: 5px;
    background: #f2f2f2;
    color: #111;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.al-hero-description {
    max-width: 580px;
    margin: 0 0 20px;
    color: #e5e8ec;
    font-size: 15px;
    line-height: 1.55;
}

.al-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.al-btn {
    min-height: 45px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 0;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 700;

    transition: .2s ease;
}

.al-btn:hover {
    transform: translateY(-2px);
}

.al-btn-primary {
    background: var(--al-orange);
    color: #090909;
}

.al-btn-primary:hover {
    background: var(--al-orange-2);
}

.al-btn-light {
    background: #fff;
    color: #111;
}

.al-hero-dots {
    position: absolute;
    z-index: 5;
    left: max(32px, calc((100vw - var(--al-container)) / 2));
    bottom: 30px;

    display: flex;
    gap: 8px;
}

.al-hero-dot {
    width: 20px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.58);
}

.al-hero-dot.is-active {
    width: 43px;
    background: #fff;
}


/* =========================================================
   STANDARD ANIME GRID
   ========================================================= */

.al-anime-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px 14px;
}

.al-card {
    min-width: 0;
}

.al-card-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;

    overflow: hidden;
    border-radius: var(--al-radius);
    background: var(--al-card);
}

.al-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform .3s ease,
        filter .3s ease;
}

.al-card:hover .al-card-poster img {
    transform: scale(1.035);
    filter: brightness(.82);
}

.al-no-poster {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(145deg, #1d293b, #111820);

    color: #657286;
    font-size: 12px;
}

.al-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255,134,28,.95);
    color: #000;

    opacity: 0;
    transform: translate(-50%, -40%) scale(.85);
    transition: .22s ease;
}

.al-card:hover .al-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.al-type-badge {
    position: absolute;
    z-index: 4;
    right: 8px;
    top: 8px;

    padding: 4px 7px;
    border-radius: 4px;

    background: rgba(4,7,10,.88);
    color: #fff;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.al-card-badges {
    position: absolute;
    z-index: 4;
    left: 7px;
    bottom: 7px;

    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.al-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 21px;
    padding: 3px 6px;

    border-radius: 4px;

    color: #111;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
}

.al-sub {
    background: var(--al-sub);
}

.al-dub {
    background: var(--al-dub);
}

.al-raw {
    background: var(--al-raw);
}

.al-card-body {
    padding: 9px 3px 0;
}

.al-card-title {
    margin: 0 0 5px;

    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.al-card-title a:hover {
    color: var(--al-orange);
}

.al-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #667386;
    font-size: 10px;
    text-transform: uppercase;
}


/* =========================================================
   TRENDING
   ========================================================= */

.al-trending-wrap {
    overflow-x: auto;
    scrollbar-width: none;
}

.al-trending-wrap::-webkit-scrollbar {
    display: none;
}

.al-trending-list {
    display: flex;
    gap: 9px;
    min-width: max-content;
}

.al-trending-card {
    position: relative;
    width: 205px;
    height: 330px;
    flex: 0 0 205px;

    overflow: hidden;
    border: 1px solid var(--al-border);
    border-radius: 10px;
    background: var(--al-card);
}

.al-trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-trending-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.96) 0,
            rgba(0,0,0,.35) 38%,
            transparent 66%
        );
}

.al-trending-number {
    position: absolute;
    z-index: 4;
    left: 10px;
    bottom: 10px;

    color: #fff;
    font-size: 54px;
    line-height: .9;
    font-style: italic;
    font-weight: 900;
}

.al-trending-title {
    position: absolute;
    z-index: 4;
    left: 75px;
    right: 8px;
    bottom: 15px;

    color: #fff;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
}


/* =========================================================
   HOME TWO COLUMN CONTENT
   ========================================================= */

.al-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
    align-items: start;
}

.al-home-content {
    min-width: 0;
}

.al-sidebar {
    min-width: 0;
}

.al-sidebar-block {
    margin-bottom: 28px;
}

.al-sidebar-box {
    overflow: hidden;
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius);
    background: #171717;
}


/* =========================================================
   GENRES
   ========================================================= */

.al-genres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 15px;
    padding: 24px 20px;
}

.al-genres-grid a {
    font-size: 14px;
    font-weight: 600;
}

.al-genres-grid a:nth-child(6n+1) {
    color: #d9ff84;
}

.al-genres-grid a:nth-child(6n+2) {
    color: #ff8db7;
}

.al-genres-grid a:nth-child(6n+3) {
    color: #ff7d72;
}

.al-genres-grid a:nth-child(6n+4) {
    color: #c780ff;
}

.al-genres-grid a:nth-child(6n+5) {
    color: #6dd5ff;
}

.al-genres-grid a:nth-child(6n+6) {
    color: #ffc268;
}

.al-genres-grid a:hover {
    color: #fff;
}

.al-show-more {
    width: calc(100% - 28px);
    min-height: 39px;
    margin: 0 14px 14px;

    border: 0;
    border-radius: 5px;

    background: #363541;
    color: #fff;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TOP 10
   ========================================================= */

.al-top-item {
    min-height: 80px;
    padding: 10px 15px;

    display: grid;
    grid-template-columns: 45px 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;

    border-bottom: 1px solid var(--al-border);
}

.al-top-item:last-child {
    border-bottom: 0;
}

.al-top-number {
    color: #75839a;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
}

.al-top-item:nth-child(-n+3) .al-top-number {
    color: #fff;
}

.al-top-number::after {
    content: "";
    display: block;

    width: 22px;
    height: 3px;
    margin-top: 8px;

    border-radius: 99px;
    background: #56657b;
}

.al-top-item:nth-child(-n+3) .al-top-number::after {
    background: var(--al-orange);
}

.al-top-poster {
    width: 48px;
    height: 58px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--al-card);
}

.al-top-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-top-title {
    margin-bottom: 7px;

    color: #fff;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.al-top-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}


/* =========================================================
   DUBBED / LANDSCAPE ROWS
   ========================================================= */

.al-landscape-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 38px;
}

.al-landscape-card {
    min-width: 0;
}

.al-landscape-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;

    overflow: hidden;
    border: 1px solid var(--al-border);
    border-radius: 10px;
    background: var(--al-card);
}

.al-landscape-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.al-landscape-card:hover img {
    transform: scale(1.035);
}

.al-dub-chip {
    position: absolute;
    z-index: 3;
    left: 10px;
    top: 10px;

    padding: 5px 8px;

    border-radius: 5px;
    background: rgba(7,10,15,.88);
    color: #fff;

    font-size: 10px;
    font-weight: 800;
}

.al-dub-chip::before {
    content: "♬";
    margin-right: 5px;
    color: var(--al-orange);
}

.al-landscape-title {
    margin: 9px 2px 3px;

    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 750;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.al-landscape-languages {
    margin: 0 2px;
    color: #8590a2;
    font-size: 12px;
}


/* =========================================================
   WATCH IN YOUR LANGUAGE
   ========================================================= */

.al-language-slider {
    position: relative;
    overflow: hidden;
}

.al-language-track {
    display: flex;
    gap: 22px;

    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.al-language-track::-webkit-scrollbar {
    display: none;
}

.al-language-card {
    position: relative;
    min-width: 275px;
    height: 135px;
    flex: 0 0 275px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border: 1px solid var(--al-border);
    border-radius: 9px;
    background: #1d293b;
}

.al-language-card::before {
    content: attr(data-native);

    position: absolute;
    left: -5px;
    top: 50%;

    color: rgba(255,255,255,.035);
    font-size: 70px;
    line-height: 1;
    font-weight: 900;

    transform: translateY(-50%);
}

.al-language-name {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
}

.al-language-native {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: calc(50% + 29px);
    transform: translateX(-50%);

    color: var(--al-orange);
    font-size: 13px;
}


/* =========================================================
   LATEST EPISODES
   ========================================================= */

.al-episodes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.al-language-select {
    min-width: 155px;
    height: 42px;
    padding: 0 14px;

    border: 1px solid var(--al-border);
    border-radius: 7px;
    outline: none;

    background: #111923;
    color: #dfe5ed;
}

.al-episode-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 14px;
}

.al-episode-card {
    min-width: 0;
}

.al-episode-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;

    overflow: hidden;
    border-radius: 10px;
    background: var(--al-card);
}

.al-episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-episode-title {
    margin: 8px 0 3px;

    color: #fff;
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.al-episode-meta {
    color: #748196;
    font-size: 11px;
}


/* =========================================================
   SINGLE ANIME
   ========================================================= */

.al-single-hero {
    position: relative;
    min-height: 540px;

    display: flex;
    align-items: flex-end;

    background-position: center;
    background-size: cover;
}

.al-single-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to right, rgba(0,0,0,.94), rgba(0,0,0,.45), rgba(0,0,0,.18)),
        linear-gradient(to top, #050505, transparent 60%);
}

.al-single-inner {
    position: relative;
    z-index: 2;

    width: min(calc(100% - 64px), var(--al-container));
    margin: 0 auto;
    padding: 70px 0 45px;

    display: grid;
    grid-template-columns: 220px minmax(0, 780px);
    gap: 30px;
    align-items: end;
}

.al-single-poster {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--al-shadow);
}

.al-single-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.al-single-title {
    margin: 0 0 15px;

    color: #fff;
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.05;
    font-weight: 900;
}

.al-single-description {
    max-width: 720px;
    color: #c6ccd5;
}

.al-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}


/* =========================================================
   EPISODE LIST
   ========================================================= */

.al-episode-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.al-episode-link {
    min-height: 46px;
    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid var(--al-border);
    border-radius: 6px;

    background: #13171d;
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    transition: .2s ease;
}

.al-episode-link:hover,
.al-episode-link.is-active {
    border-color: var(--al-orange);
    background: var(--al-orange);
    color: #090909;
}


/* =========================================================
   WATCH PAGE
   ========================================================= */

.al-watch-page {
    padding: 25px 0 60px;
}

.al-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.al-player iframe,
.al-player video {
    width: 100%;
    height: 100%;
    border: 0;
}

.al-player-empty {
    width: 100%;
    height: 100%;
    min-height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0b0e12;
    color: #6f7b8d;
}

.al-watch-title {
    margin: 20px 0 6px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}

.al-server-area {
    margin-top: 22px;
    padding: 18px;

    border: 1px solid var(--al-border);
    border-radius: 9px;
    background: #101318;
}

.al-server-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.al-server-label {
    margin-right: 5px;
    color: #8792a4;
    font-size: 13px;
}

.al-server-button {
    min-height: 37px;
    padding: 0 13px;

    border: 1px solid var(--al-border);
    border-radius: 5px;

    background: #1b2028;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
}

.al-server-button:hover,
.al-server-button.is-active {
    border-color: var(--al-orange);
    background: var(--al-orange);
    color: #000;
}


/* =========================================================
   ARCHIVE / SEARCH
   ========================================================= */

.al-page-header {
    padding: 50px 0 25px;
}

.al-page-title {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 900;
}

.al-page-description {
    max-width: 750px;
    margin-top: 8px;
    color: var(--al-muted);
}

.al-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 45px 0;
}

.al-pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;
    background: #171b21;
    color: #fff;
}

.al-pagination .current,
.al-pagination a:hover {
    background: var(--al-orange);
    color: #000;
}


/* =========================================================
   A-Z
   ========================================================= */

.al-az-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.al-az-list a {
    min-width: 39px;
    height: 39px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;
    background: #1a1a1d;
    color: #fff;

    font-size: 13px;
}

.al-az-list a:hover,
.al-az-list a.is-active {
    background: var(--al-orange);
    color: #000;
}


/* =========================================================
   SEO / ABOUT HOME AREA
   ========================================================= */

.al-about {
    position: relative;
    margin-top: 50px;
    padding: 80px 0;

    overflow: hidden;
    border-top: 1px solid var(--al-border);

    background:
        linear-gradient(
            to bottom,
            rgba(25,15,12,.80),
            rgba(5,5,5,.95)
        );
}

.al-about-inner {
    width: min(calc(100% - 64px), 980px);
    margin: 0 auto;
}

.al-about h2 {
    margin: 0 0 20px;

    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.al-about h3 {
    margin: 24px 0 10px;
    color: #fff;
    font-size: 18px;
}

.al-about p {
    color: #d0d3d8;
    line-height: 1.7;
}


/* =========================================================
   FOOTER
   ========================================================= */

.al-footer {
    border-top: 1px solid var(--al-border);
    background: #050505;
}

.al-footer-main {
    padding: 42px 0 30px;
}

.al-footer-top {
    display: flex;
    align-items: center;
    gap: 25px;

    padding-bottom: 30px;
    border-bottom: 1px solid var(--al-border);
}

.al-footer-logo img {
    max-width: 220px;
    max-height: 55px;
}

.al-footer-join {
    padding-left: 25px;
    border-left: 1px solid var(--al-border);
}

.al-footer-socials {
    display: flex;
    gap: 8px;
}

.al-footer-languages {
    padding: 30px 0 25px;
}

.al-footer-heading {
    margin: 0 0 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.al-footer-language-links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 28px;
}

.al-footer-language-links a {
    color: #9bb4d3;
}

.al-footer-language-links a:hover {
    color: var(--al-orange);
}

.al-footer-az {
    padding-bottom: 30px;
}

.al-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;

    padding: 28px 0;
    border-top: 1px solid var(--al-border);
}

.al-footer-links a {
    color: #9bb4d3;
}

.al-footer-links a:hover {
    color: #fff;
}

.al-footer-description {
    max-width: 800px;
    color: #74829a;
    font-size: 14px;
}

.al-copyright {
    padding: 10px 0 35px;
    color: #fff;
    font-size: 12px;
    font-style: italic;
}


/* =========================================================
   404
   ========================================================= */

.al-404 {
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.al-404-number {
    margin: 0;
    color: #302830;
    font-size: clamp(120px, 20vw, 230px);
    line-height: .8;
    font-weight: 900;
}

.al-404 h1 {
    margin: 20px 0 10px;
    color: #fff;
}

.al-404 p {
    color: var(--al-muted);
}


/* =========================================================
   LOADING SKELETON
   ========================================================= */

.al-skeleton {
    position: relative;
    overflow: hidden;
    background: #1d293b;
}

.al-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;

    transform: translateX(-100%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.055),
            transparent
        );

    animation: alSkeleton 1.4s infinite;
}

@keyframes alSkeleton {
    100% {
        transform: translateX(100%);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1450px) {

    .al-anime-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .al-episode-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .al-home-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .al-landscape-grid {
        gap: 25px 20px;
    }
}


@media (max-width: 1200px) {

    .al-container,
    .al-hero-content,
    .al-single-inner {
        width: min(calc(100% - 40px), var(--al-container));
    }

    .al-home-layout {
        grid-template-columns: 1fr;
    }

    .al-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .al-anime-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .al-landscape-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .al-episode-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .al-header-tools .al-social-circle:nth-of-type(n+3) {
        display: none;
    }
}


@media (max-width: 900px) {

    :root {
        --al-header-height: 72px;
    }

    body.admin-bar .al-header {
        top: 46px;
    }

    .al-container {
        width: calc(100% - 28px);
    }

    .al-header-inner {
        width: calc(100% - 20px);
        gap: 10px;
    }

    .al-menu-toggle,
    .al-header-action,
    .al-social-circle,
    .al-user-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .al-logo {
        min-width: 0;
        margin-right: auto;
    }

    .al-logo img {
        max-width: 170px;
    }

    .al-header-spacer {
        display: none;
    }

    .al-header-tools .al-social-circle,
    .al-join {
        display: none;
    }

    .al-hero,
    .al-hero-slide {
        min-height: 620px;
    }

    .al-hero-content {
        width: calc(100% - 30px);
        padding-bottom: 65px;
    }

    .al-hero-title {
        font-size: clamp(36px, 8vw, 58px);
    }

    .al-hero-slide::before {
        background:
            linear-gradient(
                90deg,
                rgba(0,0,0,.88),
                rgba(0,0,0,.36)
            ),
            linear-gradient(
                0deg,
                #050505 0%,
                rgba(5,5,5,.55) 30%,
                transparent 70%
            );
    }

    .al-anime-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .al-landscape-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .al-episode-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .al-episode-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .al-single-inner {
        width: calc(100% - 30px);
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .al-sidebar {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 640px) {

    body {
        font-size: 14px;
    }

    .al-section {
        padding: 22px 0;
    }

    .al-section-head {
        margin-bottom: 17px;
    }

    .al-section-title {
        font-size: 20px;
    }

    .al-header-action:nth-child(2),
    .al-header-action:nth-child(3) {
        display: none;
    }

    .al-logo img {
        max-width: 145px;
    }

    .al-hero,
    .al-hero-slide {
        min-height: 570px;
    }

    .al-hero-content {
        padding-bottom: 60px;
    }

    .al-hero-info {
        width: 100%;
    }

    .al-hero-title {
        font-size: 36px;
    }

    .al-hero-description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .al-hero-dots {
        left: 15px;
        bottom: 22px;
    }

    .al-anime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 10px;
    }

    .al-card-title {
        font-size: 13px;
    }

    .al-landscape-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .al-language-card {
        min-width: 230px;
        flex-basis: 230px;
        height: 115px;
    }

    .al-episode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }

    .al-episodes-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .al-language-select {
        width: 100%;
    }

    .al-trending-card {
        width: 165px;
        height: 265px;
        flex-basis: 165px;
    }

    .al-trending-number {
        font-size: 44px;
    }

    .al-single-hero {
        min-height: auto;
    }

    .al-single-inner {
        width: calc(100% - 28px);
        padding-top: 100px;

        grid-template-columns: 105px minmax(0, 1fr);
        gap: 15px;
    }

    .al-single-title {
        font-size: 28px;
    }

    .al-single-description {
        display: none;
    }

    .al-episode-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .al-player {
        border-radius: 0;
    }

    .al-player-empty {
        min-height: 220px;
    }

    .al-footer-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .al-footer-join {
        padding-left: 0;
        border-left: 0;
    }

    .al-about {
        padding: 55px 0;
    }

    .al-about-inner {
        width: calc(100% - 28px);
    }
}


@media (max-width: 420px) {

    .al-header-inner {
        width: calc(100% - 14px);
    }

    .al-menu-toggle,
    .al-header-action,
    .al-user-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .al-logo img {
        max-width: 132px;
    }

    .al-hero-title {
        font-size: 31px;
    }

    .al-btn {
        min-height: 42px;
        padding: 0 14px;
    }

    .al-episode-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Homepage latest episodes */
.al-episode-grid .al-card {
    min-width: 0;
}

.al-episode-grid .al-card-poster {
    width: 100%;
}

.al-language-track {
    padding-bottom: 5px;
}

@media (hover: hover) {
    .al-language-card {
        transition:
            transform .22s ease,
            border-color .22s ease,
            background .22s ease;
    }

    .al-language-card:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 134, 28, .65);
        background: #243247;
    }
}
/* =========================================================
   ANIMELOK HOME V2
========================================================= */

:root {
    --al-bg: #050608;
    --al-panel: #17191d;
    --al-panel-2: #202d40;
    --al-border: rgba(255,255,255,.09);
    --al-text: #f7f7f8;
    --al-muted: #8e98a8;
    --al-orange: #ff861c;
}

body {
    background: var(--al-bg);
    color: var(--al-text);
}

.al-container {
    width: min(94%, 1600px);
    margin-inline: auto;
}

.al-section {
    padding: 34px 0;
}

.al-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.al-section-title {
    position: relative;
    margin: 0;
    padding-left: 15px;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 800;
    line-height: 1.2;
}

.al-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 5px;
    background: var(--al-orange);
}

.al-view-all {
    color: #aebbd0;
    text-decoration: none;
    font-size: 14px;
}

.al-view-all:hover {
    color: var(--al-orange);
}


/* =========================================================
   HERO
========================================================= */

.al-hero {
    position: relative;
    height: min(760px, 78vh);
    min-height: 570px;
    overflow: hidden;
    background: #090b0e;
}

.al-hero-slides,
.al-hero-slide {
    position: absolute;
    inset: 0;
}

.al-hero-slide {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.al-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.al-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    transform: scale(1.01);
}

.al-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.94) 0%,
            rgba(0,0,0,.76) 28%,
            rgba(0,0,0,.22) 68%,
            rgba(0,0,0,.08) 100%
        ),
        linear-gradient(
            0deg,
            #050608 0%,
            rgba(5,6,8,.30) 35%,
            rgba(5,6,8,.1) 100%
        );
}

.al-hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 105px;
}

.al-hero-content {
    max-width: 570px;
}

.al-spotlight {
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 800;
}

.al-hero-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: .98;
    font-weight: 900;
}

.al-hero-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    font-size: 13px;
}

.al-hero-pill {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 5px;
    background: #f1f2f3;
    color: #111;
    font-weight: 700;
}

.al-hero-genres {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
}

.al-hero-description {
    max-width: 520px;
    margin: 0 0 20px;
    line-height: 1.55;
    color: #f0f0f0;
}

.al-hero-actions {
    display: flex;
    gap: 10px;
}

.al-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.al-btn-watch {
    background: var(--al-orange);
    color: #111;
}

.al-btn-details {
    background: #fff;
    color: #111;
}

.al-hero-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 65px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.al-hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
}

.al-hero-dot.is-active {
    background: #fff;
}


/* =========================================================
   LANGUAGE AUTO SLIDER
========================================================= */

.al-language-slider {
    width: 100%;
    overflow: hidden;
}

.al-language-track {
    display: flex;
    width: max-content;
    gap: 18px;
    will-change: transform;
}

.al-language-card {
    position: relative;
    flex: 0 0 300px;
    height: 136px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    background: #202d40;
    color: #fff;
    text-decoration: none;
}

.al-language-card::after {
    content: attr(data-native);
    position: absolute;
    right: -5px;
    bottom: -15px;
    font-size: 72px;
    line-height: 1;
    font-weight: 900;
    color: rgba(50,174,198,.08);
}

.al-language-name {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 800;
}

.al-language-native {
    position: relative;
    z-index: 2;
    margin-top: 7px;
    color: #27b9c9;
    font-size: 15px;
}


/* =========================================================
   EPISODE LANGUAGE BADGES
========================================================= */

.al-language-badges {
    position: absolute;
    left: 9px;
    bottom: 9px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 18px);
}

.al-language-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(8,11,15,.88);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    backdrop-filter: blur(5px);
}

.al-lang-hindi,
.al-lang-tamil,
.al-lang-telugu {
    border-color: rgba(255,134,28,.55);
}

.al-lang-english,
.al-lang-english-subtitles {
    border-color: rgba(91,184,255,.55);
}

.al-lang-malayalam,
.al-lang-kannada,
.al-lang-bengali,
.al-lang-marathi {
    border-color: rgba(102,220,163,.5);
}


/* =========================================================
   LATEST EPISODES
========================================================= */

.al-episodes-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.al-language-select {
    min-width: 160px;
    height: 42px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--al-border);
    border-radius: 7px;
    background: #111923;
    color: #d7dce4;
}

.al-episode-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 22px 14px;
}

.al-episode-card {
    min-width: 0;
}

.al-episode-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #202d40;
}

.al-episode-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.al-episode-card:hover img {
    transform: scale(1.045);
}

.al-episode-play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,134,28,.92);
    color: #111;
    opacity: 0;
    transition: opacity .2s ease;
}

.al-episode-card:hover .al-episode-play {
    opacity: 1;
}

.al-episode-title {
    margin: 10px 0 6px;
    font-size: 14px;
    line-height: 1.35;
}

.al-episode-title a {
    color: #fff;
    text-decoration: none;
}

.al-episode-meta {
    display: flex;
    gap: 9px;
    color: var(--al-muted);
    font-size: 11px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1100px) {

    .al-episode-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .al-language-card {
        flex-basis: 260px;
    }
}

@media (max-width: 767px) {

    .al-section {
        padding: 25px 0;
    }

    .al-container {
        width: calc(100% - 24px);
    }

    .al-hero {
        height: 650px;
        min-height: 650px;
    }

    .al-hero-bg {
        background-position: 65% center;
    }

    .al-hero-shade {
        background:
            linear-gradient(
                0deg,
                #050608 3%,
                rgba(5,6,8,.80) 35%,
                rgba(5,6,8,.28) 100%
            );
    }

    .al-hero-inner {
        align-items: flex-end;
        padding-bottom: 95px;
    }

    .al-hero-title {
        font-size: 36px;
    }

    .al-hero-description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 13px;
    }

    .al-language-card {
        flex-basis: 210px;
        height: 115px;
    }

    .al-language-name {
        font-size: 20px;
    }

    .al-episode-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 18px 9px;
    }

    .al-episodes-head {
        align-items: flex-start;
    }

    .al-language-select {
        min-width: 130px;
        max-width: 145px;
    }
}

@media (max-width: 480px) {

    .al-episode-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .al-hero-title {
        font-size: 31px;
    }

    .al-btn {
        padding-inline: 14px;
    }
}
/* ==========================================================
   ANIMELOK HOMEPAGE LAYOUT
========================================================== */

.al-home {
    background: #000;
    min-height: 100vh;
}

.al-home .al-container {
    width: calc(100% - 128px);
    max-width: 1800px;
    margin: 0 auto;
}


/* Sections */

.al-home .al-section {
    padding: 30px 0;
}

.al-home .al-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

.al-home .al-section-title {
    position: relative;
    margin: 0;
    padding-left: 15px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.al-home .al-section-title::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 20px;
    background: #ff851b;
}

.al-home .al-view-all {
    color: #9bb3d4;
    font-size: 14px;
    text-decoration: none;
}

.al-home .al-view-all:hover {
    color: #ff851b;
}


/* ==========================================================
   TRENDING
========================================================== */

.al-trending-section {
    position: relative;
    z-index: 5;
}

.al-trending-track {
    display: grid;
    grid-template-columns:
        repeat(8, minmax(180px, 1fr));
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.al-trending-track::-webkit-scrollbar {
    display: none;
}

.al-trending-card {
    min-width: 180px;
}

.al-trending-poster {
    position: relative;
    display: block;
    height: 310px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    background: #182435;
}

.al-trending-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.al-trending-card:hover img {
    transform: scale(1.04);
}

.al-trending-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.95)
        );
}

.al-trending-number {
    position: absolute;
    z-index: 3;
    left: 11px;
    bottom: 7px;
    color: #fff;
    font-size: 53px;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
}

.al-trending-title {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 19px;
    width: 58%;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================
   TWO COLUMN HOMEPAGE
========================================================== */

.al-home-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 370px;
    gap: 28px;
    align-items: start;
}

.al-home-content {
    min-width: 0;
}

.al-home-sidebar {
    min-width: 0;
}


/* ==========================================================
   STANDARD ANIME CARDS
========================================================== */

.al-home .al-anime-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 28px 14px;
}

.al-home .al-card {
    min-width: 0;
}

.al-home .al-card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 7px;
    background: #202d40;
}

.al-home .al-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-home .al-card-title {
    margin: 9px 0 4px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.al-home .al-card-title a {
    color: #fff;
    text-decoration: none;
}

.al-home .al-card-meta {
    display: flex;
    gap: 8px;
    color: #6e7887;
    font-size: 11px;
}


/* ==========================================================
   LANGUAGE AUTO SLIDER
========================================================== */

.al-language-section {
    overflow: hidden;
}

.al-language-slider {
    width: 100%;
    overflow: hidden;
}

.al-language-track {
    display: flex;
    width: max-content;
    gap: 22px;
    will-change: transform;
}

.al-language-card {
    position: relative;
    flex: 0 0 300px;
    height: 135px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 28px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    background: #202d40;
    color: #fff;
    text-decoration: none;
}

.al-language-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(35,196,200,.09),
            transparent 42%
        );
}

.al-language-card::after {
    content: attr(data-native);
    position: absolute;
    right: -4px;
    bottom: -17px;
    color: rgba(58,190,204,.075);
    font-size: 68px;
    font-weight: 900;
    line-height: 1;
}

.al-language-name,
.al-language-native,
.al-language-arrow {
    position: relative;
    z-index: 2;
}

.al-language-name {
    color: #fff;
    font-size: 23px;
    font-weight: 800;
}

.al-language-native {
    margin-top: 5px;
    color: #22b9bd;
    font-size: 15px;
}

.al-language-arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.13);
    border-radius: 50%;
    color: rgba(255,255,255,.4);
}


/* ==========================================================
   LATEST EPISODES
========================================================== */

.al-episodes-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.al-language-select {
    width: 160px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #1b2737;
    border-radius: 6px;
    outline: none;
    background: #111a25;
    color: #a8b0bc;
}

.al-episode-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 30px 14px;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.al-sidebar-box {
    margin-bottom: 25px;
}

.al-sidebar-title {
    position: relative;
    margin: 0 0 17px;
    padding-left: 14px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.al-sidebar-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 10px;
    background: #ff851b;
}

.al-genre-list {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    gap: 28px 18px;
    padding: 26px 22px;
    border-radius: 9px;
    background: #191919;
}

.al-genre-list a {
    overflow: hidden;
    color: #dfe7ef;
    font-size: 13px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.al-genre-list a:nth-child(4n+1) {
    color: #d7ff78;
}

.al-genre-list a:nth-child(4n+2) {
    color: #ff8eb7;
}

.al-genre-list a:nth-child(4n+3) {
    color: #65d2ff;
}

.al-genre-list a:hover {
    color: #ff851b;
}


/* Top 10 */

.al-top10-list {
    overflow: hidden;
    border-radius: 9px;
    background: #191919;
}

.al-top10-item {
    display: grid;
    grid-template-columns:
        45px 50px minmax(0,1fr);
    gap: 12px;
    min-height: 80px;
    align-items: center;
    padding: 11px 15px;
    border-bottom:
        1px solid rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
}

.al-top10-item:last-child {
    border-bottom: 0;
}

.al-top10-number {
    color: #8290a2;
    font-size: 24px;
    font-weight: 700;
}

.al-top10-item:nth-child(-n+3)
.al-top10-number {
    color: #fff;
}

.al-top10-item img {
    width: 45px;
    height: 56px;
    border-radius: 3px;
    object-fit: cover;
}

.al-top10-info {
    min-width: 0;
}

.al-top10-info strong {
    display: block;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.al-top10-badges {
    display: flex;
    gap: 5px;
}

.al-top10-badges small {
    padding: 3px 6px;
    border-radius: 3px;
    background: #a9e7a6;
    color: #101610;
    font-size: 8px;
    font-weight: 800;
}


/* ==========================================================
   LANGUAGE DUBBED ROWS
========================================================== */

.al-wide-anime-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 36px;
}

.al-wide-card {
    min-width: 0;
}

.al-wide-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1.95 / 1;
    border-radius: 9px;
    background: #202d40;
}

.al-wide-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.al-wide-card:hover img {
    transform: scale(1.035);
}

.al-dub-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 5px;
    background: rgba(5,8,12,.88);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.al-dub-badge::first-letter {
    color: #ff851b;
}

.al-wide-card h3 {
    margin: 11px 0 7px;
    font-size: 15px;
}

.al-wide-card h3 a {
    color: #fff;
    text-decoration: none;
}

.al-wide-languages {
    overflow: hidden;
    color: #8b95a4;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================
   ABOUT
========================================================== */

.al-about {
    position: relative;
    margin-top: 35px;
    padding: 80px 0 95px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,132,28,.15),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #21191a,
            #070706
        );
}

.al-about-inner {
    position: relative;
    z-index: 2;
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}

.al-about h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 26px;
    line-height: 1.3;
}

.al-about h3 {
    margin: 24px 0 10px;
    color: #fff;
    font-size: 18px;
}

.al-about p {
    margin: 0 0 13px;
    color: #d1d1d1;
    font-size: 16px;
    line-height: 1.55;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1400px) {

    .al-home .al-container {
        width: calc(100% - 60px);
    }

    .al-home-layout {
        grid-template-columns:
            minmax(0,1fr) 320px;
    }

    .al-home .al-anime-grid,
    .al-episode-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }
}


@media (max-width: 1050px) {

    .al-home-layout {
        display: block;
    }

    .al-home-sidebar {
        margin-top: 45px;
    }

    .al-home .al-anime-grid,
    .al-episode-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }

    .al-wide-anime-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}


@media (max-width: 767px) {

    .al-home .al-container {
        width: calc(100% - 24px);
    }

    .al-home .al-section {
        padding: 24px 0;
    }

    .al-home .al-section-title,
    .al-sidebar-title {
        font-size: 20px;
    }

    .al-trending-track {
        display: flex;
        gap: 9px;
    }

    .al-trending-card {
        flex: 0 0 155px;
    }

    .al-trending-poster {
        height: 240px;
    }

    .al-trending-number {
        font-size: 40px;
    }

    .al-home .al-anime-grid,
    .al-episode-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
        gap: 20px 9px;
    }

    .al-language-card {
        flex-basis: 215px;
        height: 115px;
    }

    .al-language-name {
        font-size: 19px;
    }

    .al-wide-anime-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 10px;
    }

    .al-genre-list {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }
}


@media (max-width: 480px) {

    .al-home .al-anime-grid,
    .al-episode-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .al-wide-anime-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   ANIMELOK REFERENCE HEADER
========================================================== */

:root {
    --al-orange: #ff851b;
    --al-header-bg: rgba(4, 5, 6, .94);
    --al-circle: #1d1f21;
}

.al-site-header {
    position: relative;
    z-index: 9999;
    width: 100%;
    height: 90px;
    background: var(--al-header-bg);
    border: 0;
}

.al-header-inner {
    width: 100%;
    height: 90px;
    margin: 0;
    padding: 0 16px 0 31px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* LEFT */

.al-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.al-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    color: #fff;
    text-decoration: none;
}

.al-header-logo img {
    display: block;
    width: auto;
    max-width: 205px;
    height: 52px;
    object-fit: contain;
}

.al-logo-anime {
    color: var(--al-orange);
    font-size: 37px;
    font-weight: 800;
    letter-spacing: -2px;
}

.al-logo-lok {
    color: #fff;
    font-size: 37px;
    font-weight: 800;
    letter-spacing: -2px;
}


/* ==========================================================
   CIRCULAR HEADER BUTTONS
========================================================== */

.al-header-circle {
    width: 56px;
    height: 56px;
    min-width: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 1px solid rgba(255,255,255,.04);
    border-radius: 50%;

    background: var(--al-circle);
    color: #fff;

    cursor: pointer;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease,
        color .2s ease;
}

.al-header-circle:hover {
    background: #292c2f;
    color: var(--al-orange);
    transform: translateY(-1px);
}

.al-header-circle svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.al-action-symbol {
    font-size: 20px;
}

.al-smile {
    font-size: 25px;
    line-height: 1;
}


/* ==========================================================
   MENU HAMBURGER
========================================================== */

.al-menu-toggle {
    gap: 5px;
    flex-direction: column;
}

.al-menu-toggle span {
    width: 21px;
    height: 2px;
    display: block;
    border-radius: 20px;
    background: #fff;
}


/* ==========================================================
   RIGHT ACTIONS
========================================================== */

.al-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.al-join-now {
    min-width: 48px;
    margin: 0 3px 0 6px;

    display: flex;
    flex-direction: column;

    color: #fff;
    font-size: 14px;
    line-height: 1.05;
}


/* ==========================================================
   SOCIAL BUTTONS
========================================================== */

.al-header-socials {
    display: flex;
    align-items: center;
    gap: 7px;
}

.al-social {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #fff;
    font-size: 16px;
    font-weight: 800;

    text-decoration: none;

    transition: transform .2s ease;
}

.al-social:hover {
    color: #fff;
    transform: translateY(-2px);
}

.al-telegram {
    background: #159bd7;
}

.al-discord {
    background: #6678df;
}

.al-reddit {
    background: #f0442e;
}

.al-twitter {
    background: #159ee0;
}


/* ==========================================================
   SEARCH POPUP
========================================================== */

.al-header-search {
    position: absolute;
    z-index: 10020;

    top: 80px;
    right: 280px;

    width: min(470px, calc(100vw - 30px));

    padding: 12px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;

    background: #16191d;

    box-shadow:
        0 15px 50px rgba(0,0,0,.55);
}

.al-header-search form {
    display: flex;
    gap: 8px;
}

.al-header-search input[type="search"] {
    min-width: 0;
    flex: 1;

    height: 44px;

    padding: 0 15px;

    border: 1px solid #30353a;
    border-radius: 6px;

    outline: 0;

    background: #0d1014;
    color: #fff;
}

.al-header-search input:focus {
    border-color: var(--al-orange);
}

.al-header-search button {
    height: 44px;
    padding: 0 18px;

    border: 0;
    border-radius: 6px;

    background: var(--al-orange);
    color: #080808;

    font-weight: 700;
    cursor: pointer;
}


/* ==========================================================
   LANGUAGE DROPDOWN
========================================================== */

.al-header-language-menu {
    position: absolute;
    z-index: 10020;

    top: 80px;
    right: 220px;

    width: 245px;

    padding: 8px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;

    background: #17191c;

    box-shadow:
        0 15px 50px rgba(0,0,0,.55);
}

.al-header-language-menu a {
    display: block;

    padding: 10px 12px;

    border-radius: 5px;

    color: #cbd0d6;
    font-size: 13px;

    text-decoration: none;
}

.al-header-language-menu a:hover {
    background: #24272b;
    color: var(--al-orange);
}


/* ==========================================================
   DRAWER
========================================================== */

.al-main-drawer {
    position: fixed;
    z-index: 11000;

    inset: 0;

    visibility: hidden;
    pointer-events: none;
}

.al-main-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.al-drawer-overlay {
    position: absolute;
    inset: 0;

    opacity: 0;

    background: rgba(0,0,0,.72);

    transition: opacity .25s ease;
}

.al-main-drawer.is-open .al-drawer-overlay {
    opacity: 1;
}

.al-drawer-panel {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: min(340px, 88vw);

    padding: 25px;

    background: #111418;

    transform: translateX(-105%);

    transition: transform .25s ease;
}

.al-main-drawer.is-open .al-drawer-panel {
    transform: translateX(0);
}

.al-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(255,255,255,.08);

    color: #fff;
}

.al-drawer-head strong {
    font-size: 24px;
}

#alDrawerClose {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: #22262a;
    color: #fff;

    font-size: 25px;
    cursor: pointer;
}

.al-drawer-nav {
    display: flex;
    flex-direction: column;

    padding-top: 20px;
}

.al-drawer-nav a {
    padding: 14px 5px;

    border-bottom:
        1px solid rgba(255,255,255,.06);

    color: #dfe3e7;
    font-size: 15px;

    text-decoration: none;
}

.al-drawer-nav a:hover {
    color: var(--al-orange);
}


/* ==========================================================
   HOMEPAGE HEADER OVER HERO
========================================================== */

.home .al-site-header {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    background:
        linear-gradient(
            180deg,
            rgba(3,4,5,.92) 0%,
            rgba(3,4,5,.68) 65%,
            rgba(3,4,5,0) 100%
        );
}


/* WordPress admin bar */

.admin-bar .al-site-header {
    top: 32px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .al-header-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .al-header-circle {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .al-header-logo img {
        max-width: 180px;
        height: 46px;
    }

    .al-header-socials {
        display: none;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .al-site-header,
    .al-header-inner {
        height: 72px;
    }

    .al-header-inner {
        padding: 0 10px;
        gap: 10px;
    }

    .al-header-left {
        gap: 10px;
    }

    .al-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .al-header-logo img {
        max-width: 145px;
        height: 38px;
    }

    .al-logo-anime,
    .al-logo-lok {
        font-size: 27px;
    }

    .al-header-actions {
        gap: 5px;
    }

    .al-header-circle {
        width: 43px;
        height: 43px;
        min-width: 43px;
    }

    .al-header-actions
    .al-header-circle:nth-child(3),
    .al-header-actions
    .al-header-circle:nth-child(4),
    .al-header-actions
    .al-header-circle:nth-child(5) {
        display: none;
    }

    .al-join-now,
    .al-header-socials {
        display: none;
    }

    .al-header-search {
        top: 65px;
        right: 10px;
        left: 10px;

        width: auto;
    }

    .al-header-language-menu {
        top: 65px;
        right: 10px;
    }

    .admin-bar .al-site-header {
        top: 46px;
    }
}


@media (max-width: 480px) {

    .al-header-logo img {
        max-width: 125px;
    }

    .al-header-actions
    #alTranslateToggle {
        display: none;
    }
}
/* =========================================================
   ANIMELOK HOME V2
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.al-home {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.al-container {
    width: calc(100% - 128px);
    max-width: 1800px;
    margin: 0 auto;
}


/* ========================
   HERO
   ======================== */

.al-hero {
    position: relative;
    width: 100%;
    height: min(860px, 78vw);
    min-height: 650px;
    max-height: 860px;
    overflow: hidden;
    background: #090b0e;
}

.al-hero-slides,
.al-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.al-hero-slide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.93) 0%,
            rgba(0,0,0,.72) 24%,
            rgba(0,0,0,.22) 60%,
            rgba(0,0,0,.12) 100%
        ),
        linear-gradient(
            0deg,
            #000 0%,
            rgba(0,0,0,.75) 12%,
            transparent 40%
        ),
        var(--al-hero-bg);

    background-size: cover;
    background-position: center center;

    transition:
        opacity .65s ease,
        visibility .65s ease;
}

.al-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.al-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.05),
            rgba(0,0,0,.06) 55%,
            #000 100%
        );
}

.al-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;

    display: flex;
    align-items: flex-end;

    padding-bottom: 115px;
}

.al-hero-info {
    width: 430px;
    max-width: 90%;
}

.al-spotlight {
    display: block;
    margin-bottom: 17px;

    font-size: 12px;
    font-weight: 700;
}

.al-hero-poster {
    display: none;
}

.al-hero-title {
    margin: 0 0 16px;

    font-size: clamp(34px, 3.2vw, 58px);
    line-height: 1.05;
    font-weight: 800;
}

.al-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-bottom: 15px;
}

.al-hero-badges span {
    padding: 5px 8px;

    border-radius: 4px;
    background: rgba(255,255,255,.9);

    color: #111;

    font-size: 11px;
    font-weight: 600;
}

.al-hero-genres {
    margin-bottom: 14px;

    font-size: 12px;
    font-weight: 600;
}

.al-hero-description {
    max-width: 430px;

    margin: 0 0 18px;

    color: #fff;

    font-size: 14px;
    line-height: 1.5;
}

.al-hero-actions {
    display: flex;
    gap: 9px;
}

.al-watch-btn,
.al-details-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 17px;

    border-radius: 5px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.al-watch-btn {
    background: #ff8a24;
    color: #111;
}

.al-details-btn {
    background: #fff;
    color: #111;
}

.al-hero-dots {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    bottom: 65px;

    display: flex;
    gap: 8px;
}

.al-hero-dot {
    width: 21px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 20px;

    background: rgba(255,255,255,.55);

    cursor: pointer;

    transition: .25s ease;
}

.al-hero-dot.is-active {
    width: 39px;
    background: #fff;
}


/* ========================
   SECTIONS
   ======================== */

.al-section {
    padding: 28px 0;
    background: #000;
}

.al-section-head {
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 19px;
}

.al-section-title {
    position: relative;

    margin: 0;
    padding-left: 15px;

    color: #fff;

    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
}

.al-section-title::before {
    content: "";

    position: absolute;
    left: 0;
    top: 1px;

    width: 4px;
    height: 28px;

    border-radius: 4px;

    background: #ff8a24;
}

.al-view-all {
    color: #9eb4d0;

    font-size: 14px;
    text-decoration: none;
}

.al-view-all span {
    padding-left: 4px;
    font-size: 21px;
}


/* ========================
   TRENDING
   ======================== */

.al-trending-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.al-trending-scroll {
    display: flex;
    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 12px;

    scrollbar-width: none;
}

.al-trending-scroll::-webkit-scrollbar {
    display: none;
}

.al-trending-scroll > * {
    flex: 0 0 205px;
}


/* ========================
   HISTORY
   ======================== */

.al-history-section {
    padding-top: 15px;
}

.al-history-track {
    min-height: 70px;
}

.al-history-empty,
.al-empty {
    color: #617999;

    font-size: 14px;
    font-style: italic;
}


/* ========================
   WIDE LANGUAGE ANIME
   ======================== */

.al-wide-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 32px;
}


/* ========================
   LANGUAGE AUTO SLIDER
   ======================== */

.al-language-slider {
    width: 100%;

    overflow: hidden;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            #000 5%,
            #000 95%,
            transparent
        );
}

.al-language-track {
    width: max-content;

    display: flex;
    gap: 22px;

    animation:
        alLanguageScroll 38s linear infinite;

    will-change: transform;
}

.al-language-slider:hover .al-language-track {
    animation-play-state: paused;
}

@keyframes alLanguageScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.al-language-card {
    position: relative;

    width: 260px;
    height: 135px;

    flex: 0 0 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 7px;

    background: #1c293c;

    color: #fff;

    text-decoration: none;
}

.al-language-bg {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    color: rgba(255,255,255,.035);

    font-size: 75px;
    font-weight: 900;

    white-space: nowrap;
}

.al-language-name,
.al-language-native {
    position: relative;
    z-index: 2;
}

.al-language-name {
    font-size: 22px;
    font-weight: 800;
}

.al-language-native {
    margin-top: 5px;

    color: #ff8a24;

    font-size: 14px;
}


/* ========================
   MAIN / SIDEBAR
   ======================== */

.al-home-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 350px;

    gap: 25px;

    align-items: start;
}

.al-home-content {
    min-width: 0;
}

.al-home-sidebar {
    width: 100%;
    min-width: 0;
}


/* ========================
   LATEST
   ======================== */

.al-language-select {
    min-width: 150px;
    height: 39px;

    padding: 0 14px;

    border: 0;
    border-radius: 5px;

    outline: 0;

    background: #152033;
    color: #dce5f2;
}

.al-episode-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 25px 13px;
}


/* ========================
   NEW ANIME
   ======================== */

.al-new-head {
    margin-top: 45px;
}

.al-poster-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 28px 13px;
}


/* ========================
   DESKTOP ADJUSTMENT
   ======================== */

@media (max-width: 1500px) {

    .al-container {
        width: calc(100% - 70px);
    }

    .al-home-layout {
        grid-template-columns:
            minmax(0, 1fr) 315px;
    }

    .al-episode-grid,
    .al-poster-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}


/* ========================
   TABLET
   ======================== */

@media (max-width: 1100px) {

    .al-container {
        width: calc(100% - 40px);
    }

    .al-hero {
        min-height: 620px;
        height: 72vh;
    }

    .al-home-layout {
        display: block;
    }

    .al-home-sidebar {
        margin-top: 40px;
    }

    .al-wide-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .al-episode-grid,
    .al-poster-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


/* ========================
   MOBILE
   ======================== */

@media (max-width: 700px) {

    .al-container {
        width: calc(100% - 24px);
    }

    .al-hero {
        height: 620px;
        min-height: 620px;
    }

    .al-hero-slide {
        background-position: 65% center;

        background-image:
            linear-gradient(
                90deg,
                rgba(0,0,0,.82),
                rgba(0,0,0,.28)
            ),
            linear-gradient(
                0deg,
                #000 0%,
                rgba(0,0,0,.72) 35%,
                transparent 70%
            ),
            var(--al-hero-bg);
    }

    .al-hero-content {
        align-items: flex-end;
        padding-bottom: 85px;
    }

    .al-hero-info {
        width: 100%;
    }

    .al-hero-title {
        font-size: 31px;
    }

    .al-hero-description {
        max-width: 92%;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }

    .al-hero-dots {
        bottom: 45px;
    }

    .al-trending-section {
        margin-top: 0;
    }

    .al-section {
        padding: 23px 0;
    }

    .al-section-title {
        font-size: 21px;
    }

    .al-trending-scroll > * {
        flex-basis: 155px;
    }

    .al-wide-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px 10px;
    }

    .al-language-card {
        width: 190px;
        flex-basis: 190px;
        height: 105px;
    }

    .al-language-name {
        font-size: 18px;
    }

    .al-language-bg {
        font-size: 55px;
    }

    .al-episode-grid,
    .al-poster-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px 8px;
    }
}


/* ========================
   SMALL MOBILE
   ======================== */

@media (max-width: 470px) {

    .al-episode-grid,
    .al-poster-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .al-wide-grid {
        grid-template-columns: 1fr;
    }

    .al-language-select {
        min-width: 125px;
        max-width: 145px;
    }

    .al-section-head {
        gap: 10px;
    }
}
/* ==========================================
   TRENDING - REFERENCE STYLE
   ========================================== */

.al-trending-wrap {
    position: relative;
}

.al-trending-track {
    display: flex;
    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    scrollbar-width: none;
}

.al-trending-track::-webkit-scrollbar {
    display: none;
}

.al-trending-card {
    flex: 0 0 clamp(165px, 12.5vw, 225px);

    min-width: 0;

    scroll-snap-align: start;
}

.al-trending-poster {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 0.68;

    overflow: hidden;

    border-radius: 9px;

    border:
        1px solid rgba(255,255,255,.12);

    background: #111823;

    color: #fff;

    text-decoration: none;
}

.al-trending-poster img,
.al-poster-placeholder {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.al-poster-placeholder {
    background:
        linear-gradient(
            145deg,
            #1e2a3b,
            #0e141d
        );
}

.al-trending-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.95) 0%,
            rgba(0,0,0,.35) 27%,
            transparent 55%
        );
}

.al-trending-rank {
    position: absolute;

    left: 10px;
    bottom: 8px;

    z-index: 3;

    font-size: clamp(46px, 4vw, 70px);
    line-height: .8;

    font-weight: 900;
    font-style: italic;

    letter-spacing: -6px;

    color: #fff;

    text-shadow:
        0 2px 10px rgba(0,0,0,.65);
}

.al-trending-name {
    position: absolute;

    left: 76px;
    right: 7px;
    bottom: 10px;

    z-index: 4;

    color: #fff;

    font-size: 12px;
    line-height: 1.08;

    font-weight: 800;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.al-trending-arrow {
    position: absolute;

    z-index: 10;

    top: 50%;

    width: 44px;
    height: 70px;

    transform: translateY(-50%);

    border: 0;

    background: rgba(20,24,30,.82);
    color: #fff;

    font-size: 35px;

    cursor: pointer;

    opacity: 0;

    transition: opacity .2s ease;
}

.al-trending-wrap:hover
.al-trending-arrow {
    opacity: 1;
}

.al-trending-prev {
    left: 0;

    border-radius: 0 8px 8px 0;
}

.al-trending-next {
    right: 0;

    border-radius: 8px 0 0 8px;
}
/* =========================================
   ANIMELOK POSTER BADGES
========================================= */

.al-card-poster,
.al-episode-poster {
    position: relative;
    overflow: hidden;
}

.al-card-overlay-badges {
    position: absolute;
    z-index: 7;

    left: 7px;
    right: 7px;
    bottom: 7px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 5px;
}

.al-episode-count,
.al-episode-number-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 7px;

    border-radius: 5px;

    background: rgba(10,14,20,.92);
    color: #fff;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.al-card-language-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 3px;
}

.al-card-language,
.al-episode-languages span {
    padding: 4px 6px;

    border-radius: 4px;

    background: #ff8126;
    color: #111;

    font-size: 9px;
    line-height: 1;
    font-weight: 800;
}

.al-episode-number-badge {
    position: absolute;

    left: 7px;
    top: 7px;

    z-index: 7;
}

.al-episode-languages {
    position: absolute;

    z-index: 7;

    left: 7px;
    right: 7px;
    bottom: 7px;

    display: flex;
    flex-wrap: wrap;

    gap: 3px;
}


/* =========================================
   LANGUAGE LIBRARY
========================================= */

.al-language-library-page {
    min-height: 100vh;

    padding: 100px 0 70px;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(255,125,32,.08),
            transparent 30%
        ),
        #050505;
}

.al-language-library-header {
    max-width: 760px;

    margin: 0 auto 42px;

    text-align: center;
}

.al-language-kicker {
    display: inline-flex;

    padding: 6px 13px;

    border:
        1px solid rgba(255,255,255,.15);

    border-radius: 30px;

    color: #bbb;

    font-size: 10px;
    font-weight: 700;
}

.al-language-library-header h1 {
    margin: 18px 0 8px;

    color: #fff;

    font-size: clamp(34px, 4vw, 55px);
    line-height: 1;

    font-weight: 900;
}

.al-language-library-header h1 em {
    color: #ff7d26;

    font-style: normal;
}

.al-language-library-header p {
    max-width: 500px;

    margin: 0 auto;

    color: #8f9aac;

    line-height: 1.6;
}

.al-language-library-grid {
    width: min(820px, 100%);

    margin: auto;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.al-language-library-card {
    position: relative;

    aspect-ratio: .67;

    overflow: hidden;

    border:
        2px solid rgba(197,154,86,.55);

    border-radius: 8px;

    background: #1a1510;

    text-decoration: none;

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.al-language-library-card:hover {
    transform: translateY(-5px);

    border-color: #d8a95f;
}

.al-language-library-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.al-language-library-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.9),
            transparent 45%
        );
}

.al-language-native {
    position: absolute;

    z-index: 2;

    top: 15px;
    left: 0;
    right: 0;

    padding: 0 10px;

    text-align: center;

    color: #17120d;

    font-size: clamp(17px, 1.6vw, 27px);
    font-weight: 900;
}

.al-language-card-bottom {
    position: absolute;

    z-index: 3;

    left: 10px;
    bottom: 9px;

    display: flex;
    flex-direction: column;
}

.al-language-card-bottom strong {
    color: #fff;

    font-size: 17px;
    font-style: italic;
    font-weight: 900;

    text-shadow:
        0 2px 4px #000;
}

.al-language-card-bottom small {
    margin-top: 3px;

    color: rgba(255,255,255,.7);

    font-size: 9px;
}

.al-language-arrow {
    position: absolute;

    z-index: 4;

    right: 7px;
    bottom: 8px;

    display: grid;
    place-items: center;

    width: 26px;
    height: 26px;

    border-radius: 50%;

    background: rgba(0,0,0,.55);
    color: #fff;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {

    .al-language-library-page {
        padding-top: 80px;
    }

    .al-language-library-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .al-language-library-header {
        margin-bottom: 25px;
    }

    .al-card-overlay-badges {
        left: 5px;
        right: 5px;
        bottom: 5px;
    }

    .al-card-language {
        font-size: 8px;
        padding: 3px 4px;
    }

    .al-episode-count {
        font-size: 9px;
    }
}
/* =========================================================
   ANIMELOK HOMEPAGE V2
========================================================= */

.al-home-v2 {
    background: #050505;
    color: #fff;
}

.al-home-section {
    padding: 26px 0;
}

.al-home-v2 .al-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 0 0 20px;
}

.al-home-v2 .al-section-title {
    position: relative;

    margin: 0;
    padding-left: 14px;

    color: #fff;

    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.al-home-v2 .al-section-title::before {
    content: "";

    position: absolute;

    left: 0;
    top: 2px;
    bottom: 2px;

    width: 4px;

    border-radius: 10px;

    background: #ff8126;
}

.al-home-v2 .al-view-all {
    flex: 0 0 auto;

    color: #9bb2cc;

    font-size: 13px;

    text-decoration: none;
}

.al-home-v2 .al-view-all:hover {
    color: #ff8126;
}


/* =========================================================
   TRENDING
========================================================= */

.al-trending-section {
    overflow: hidden;
}

.al-trending-shell {
    position: relative;
}

.al-trending-track {
    display: flex;

    gap: 9px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    scrollbar-width: none;
}

.al-trending-track::-webkit-scrollbar {
    display: none;
}

.al-trending-card {
    flex:
        0 0
        clamp(
            155px,
            12.8vw,
            205px
        );

    min-width: 0;

    scroll-snap-align: start;
}

.al-trending-poster {
    position: relative;

    display: block;

    aspect-ratio: .68;

    overflow: hidden;

    border:
        1px solid rgba(
            255,
            255,
            255,
            .13
        );

    border-radius: 10px;

    background: #131a24;

    color: #fff;

    text-decoration: none;
}

.al-trending-poster img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.al-trending-card:hover img {
    transform: scale(1.04);
}

.al-trending-placeholder {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            #202c3d,
            #101722
        );
}

.al-trending-shade {
    position: absolute;
    z-index: 2;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.95) 0%,
            rgba(0,0,0,.25) 43%,
            transparent 65%
        );
}

.al-trending-rank {
    position: absolute;

    z-index: 3;

    left: 10px;
    bottom: 7px;

    color: #fff;

    font-size:
        clamp(
            39px,
            3.8vw,
            58px
        );

    line-height: .85;

    font-weight: 900;
    font-style: italic;

    letter-spacing: -5px;

    text-shadow:
        0 2px 5px rgba(0,0,0,.7);
}

.al-trending-title {
    position: absolute;

    z-index: 4;

    left: 70px;
    right: 7px;
    bottom: 12px;

    overflow: hidden;

    color: #fff;

    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    text-shadow:
        0 1px 4px #000;
}

.al-slider-arrow {
    position: absolute;

    z-index: 20;

    top: 50%;

    width: 42px;
    height: 42px;

    transform:
        translateY(-50%);

    border: 0;
    border-radius: 50%;

    background:
        rgba(26,29,34,.85);

    color: #fff;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity .2s ease,
        background .2s ease;
}

.al-trending-shell:hover
.al-slider-arrow {
    opacity: 1;
}

.al-slider-arrow:hover {
    background: #ff8126;
}

.al-slider-prev {
    left: 8px;
}

.al-slider-next {
    right: 8px;
}


/* =========================================================
   WATCH HISTORY
========================================================= */

.al-home-history {
    min-height: 125px;
}

.al-home-history-track {
    display: flex;

    gap: 14px;

    overflow-x: auto;

    padding: 2px 0 8px;

    scrollbar-width: none;
}

.al-home-history-track::-webkit-scrollbar {
    display: none;
}

.al-history-empty {
    margin: 4px 0 10px;

    color: #57708e;

    font-size: 13px;
    font-style: italic;
}

.al-history-card {
    flex: 0 0 180px;

    min-width: 0;
}

.al-history-poster {
    position: relative;

    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 8px;

    background: #121b27;

    text-decoration: none;
}

.al-history-poster img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.al-history-placeholder {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            #202c3c,
            #101721
        );
}

.al-history-episode {
    position: absolute;

    z-index: 3;

    left: 7px;
    bottom: 7px;

    padding: 4px 6px;

    border-radius: 4px;

    background: #ff8126;

    color: #111;

    font-size: 9px;
    font-weight: 900;
}

.al-history-play {
    position: absolute;

    z-index: 3;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        rgba(0,0,0,.65);

    color: #fff;

    opacity: 0;

    transition: opacity .2s;
}

.al-history-poster:hover
.al-history-play {
    opacity: 1;
}

.al-history-title {
    display: block;

    margin-top: 7px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 12px;
}

.al-history-title a {
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   LANGUAGE AUTOSLIDER
========================================================= */

.al-language-carousel {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
}

.al-language-carousel::-webkit-scrollbar {
    display: none;
}

.al-language-track {
    display: flex;

    width: max-content;

    gap: 14px;

    padding-bottom: 5px;
}

.al-home-language-card {
    position: relative;

    flex: 0 0 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 145px;

    overflow: hidden;

    border:
        1px solid rgba(
            255,
            255,
            255,
            .04
        );

    border-radius: 8px;

    background: #202c3d;

    text-align: center;
    text-decoration: none;
}

.al-home-language-bg {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    color:
        rgba(
            255,
            129,
            38,
            .08
        );

    font-size: 70px;
    line-height: 1;
    font-weight: 900;

    white-space: nowrap;

    pointer-events: none;
}

.al-home-language-card strong {
    position: relative;
    z-index: 2;

    color: #fff;

    font-size: 21px;
    font-weight: 800;
}

.al-home-language-card small {
    position: relative;
    z-index: 2;

    margin-top: 7px;

    color: #ff8126;

    font-size: 13px;
}

.al-home-language-card:hover {
    border-color:
        rgba(
            255,
            129,
            38,
            .45
        );
}


/* =========================================================
   LATEST EPISODES
========================================================= */

.al-home-main-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    gap: 25px;

    align-items: start;
}

.al-home-primary {
    min-width: 0;
}

.al-language-filter {
    min-width: 145px;

    height: 38px;

    padding: 0 38px 0 13px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            .1
        );

    border-radius: 7px;

    outline: none;

    background: #1c293c;

    color: #fff;

    font-size: 12px;
}

.al-latest-episode-grid {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    gap:
        30px
        12px;
}

.al-latest-episode-grid
.al-episode-card {
    min-width: 0;
}

.al-latest-episode-grid
.al-episode-card[hidden] {
    display: none !important;
}


/* =========================================================
   SIDEBAR
========================================================= */

.al-home-sidebar {
    min-width: 0;
}

.al-home-sidebar
.al-sidebar {
    width: 100%;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1250px) {

    .al-home-main-layout {
        grid-template-columns:
            minmax(0, 1fr)
            300px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 950px) {

    .al-home-main-layout {
        display: block;
    }

    .al-home-sidebar {
        margin-top: 45px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 700px) {

    .al-home-section {
        padding: 19px 0;
    }

    .al-home-v2
    .al-section-title {
        font-size: 20px;
    }

    .al-trending-card {
        flex-basis: 145px;
    }

    .al-trending-rank {
        font-size: 42px;
    }

    .al-trending-title {
        left: 58px;

        font-size: 10px;
    }

    .al-slider-arrow {
        display: none;
    }

    .al-home-language-card {
        flex-basis: 205px;

        height: 112px;
    }

    .al-home-language-card strong {
        font-size: 18px;
    }

    .al-home-language-bg {
        font-size: 55px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap:
            24px
            9px;
    }

    .al-language-filter {
        min-width: 120px;

        max-width: 145px;
    }
}


@media (max-width: 480px) {

    .al-home-v2
    .al-section-head {
        gap: 10px;
    }

    .al-home-v2
    .al-section-title {
        font-size: 18px;
    }

    .al-home-v2
    .al-view-all {
        font-size: 11px;
    }

    .al-trending-card {
        flex-basis: 132px;
    }

    .al-home-language-card {
        flex-basis: 180px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .al-language-filter {
        height: 34px;

        font-size: 10px;
    }
}
/* =========================================================
   LANGUAGE BADGES
========================================================= */

.al-language-badges {
    position: absolute;

    z-index: 12;

    left: 8px;
    bottom: 8px;

    display: flex;
    flex-wrap: wrap;

    gap: 4px;

    max-width: calc(100% - 16px);
}

.al-lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    height: 20px;

    padding: 0 6px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            .15
        );

    border-radius: 4px;

    background:
        rgba(
            8,
            11,
            15,
            .91
        );

    color: #fff;

    font-size: 9px;
    line-height: 1;
    font-weight: 800;

    backdrop-filter: blur(5px);
}

.al-lang-telugu {
    color: #ffd18e;
}

.al-lang-hindi {
    color: #9fe3ff;
}

.al-lang-tamil {
    color: #ffb1bd;
}

.al-lang-malayalam {
    color: #b8ffb0;
}

.al-lang-bengali {
    color: #e2b7ff;
}

.al-lang-kannada {
    color: #fff3a4;
}

.al-lang-japanese {
    color: #ffb3b3;
}

.al-lang-english {
    color: #a9d5ff;
}


/* =========================================================
   DUBBED LANGUAGE ROWS
========================================================= */

.al-home-dubbed {
    background: #050505;
}

.al-language-anime-section {
    margin-bottom: 40px;
}

.al-language-anime-scroll {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 24px;
}

.al-language-anime-card {
    min-width: 0;
}

.al-language-anime-poster {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 8;

    overflow: hidden;

    border-radius: 9px;

    background: #1d2a3d;

    text-decoration: none;
}

.al-language-anime-poster img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.al-language-anime-card:hover
.al-language-anime-poster img {
    transform: scale(1.035);
}

.al-dub-label {
    position: absolute;

    z-index: 5;

    left: 10px;
    top: 10px;

    display: inline-flex;
    align-items: center;

    height: 23px;

    padding: 0 8px;

    border-radius: 5px;

    background:
        rgba(
            17,
            17,
            17,
            .88
        );

    color: #fff;

    font-size: 9px;
    font-weight: 800;
}

.al-dub-label::first-letter {
    color: #ff8126;
}

.al-row-play {
    position: absolute;

    z-index: 5;

    left: 50%;
    top: 50%;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    transform:
        translate(
            -50%,
            -50%
        );

    border-radius: 50%;

    background:
        rgba(
            255,
            129,
            38,
            .92
        );

    color: #fff;

    font-size: 17px;

    opacity: 0;

    transition:
        opacity .2s ease;
}

.al-language-anime-card:hover
.al-row-play {
    opacity: 1;
}

.al-language-anime-card h3 {
    margin:
        11px
        0
        5px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 14px;
    line-height: 1.3;
}

.al-language-anime-card h3 a {
    color: #fff;

    text-decoration: none;
}

.al-language-anime-card h3 a:hover {
    color: #ff8126;
}

.al-row-languages {
    display: flex;
    align-items: center;

    gap: 7px;

    overflow: hidden;

    color: #8d9aaa;

    white-space: nowrap;

    font-size: 11px;
}

.al-row-languages i {
    color: #526174;

    font-style: normal;
}

.al-speaker {
    color: #7c8b9e;
}


/* TABLET */

@media (max-width: 1100px) {

    .al-language-anime-scroll {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   MOBILE: HORIZONTAL SWIPE
========================================================= */

@media (max-width: 700px) {

    .al-language-anime-section {
        margin-bottom: 30px;
    }

    .al-language-anime-scroll {
        display: flex;

        gap: 12px;

        width: auto;

        margin-right: -16px;

        padding-right: 16px;
        padding-bottom: 7px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x proximity;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .al-language-anime-scroll::-webkit-scrollbar {
        display: none;
    }

    .al-language-anime-card {
        flex: 0 0 78vw;

        max-width: 330px;

        scroll-snap-align: start;
    }

    .al-language-anime-poster {
        aspect-ratio: 16 / 8.3;
    }

    .al-language-anime-card h3 {
        font-size: 13px;
    }

    .al-row-languages {
        font-size: 10px;
    }

    .al-language-badges {
        left: 6px;
        bottom: 6px;

        gap: 3px;
    }

    .al-lang-badge {
        min-width: 22px;
        height: 18px;

        padding: 0 5px;

        font-size: 8px;
    }
}


@media (max-width: 420px) {

    .al-language-anime-card {
        flex-basis: 82vw;
    }
}
/* ==========================================================
   AnimeLok - Latest Episode Compact Badges
   ========================================================== */

.al-episode-badges {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 8px;
}

.al-ep-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 29px;
    height: 23px;
    padding: 0 7px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;

    background: rgba(22, 22, 28, 0.92);
    color: #fff;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .35px;

    white-space: nowrap;

    box-sizing: border-box;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


/* Hindi */

.al-lang-hindi {
    background: rgba(255, 145, 0, 0.92);
    color: #111;
}


/* Tamil */

.al-lang-tamil {
    background: rgba(236, 72, 153, 0.92);
    color: #fff;
}


/* Telugu */

.al-lang-telugu {
    background: rgba(59, 130, 246, 0.92);
    color: #fff;
}


/* Malayalam */

.al-lang-malayalam {
    background: rgba(139, 92, 246, 0.92);
    color: #fff;
}


/* Kannada */

.al-lang-kannada {
    background: rgba(245, 158, 11, 0.92);
    color: #111;
}


/* Bengali */

.al-lang-bengali {
    background: rgba(16, 185, 129, 0.92);
    color: #07120e;
}


/* Marathi */

.al-lang-marathi {
    background: rgba(244, 63, 94, 0.92);
    color: #fff;
}


/* Japanese */

.al-lang-japanese {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
}


/* English */

.al-lang-english {
    background: rgba(14, 165, 233, 0.92);
    color: #fff;
}


/* Multi Language */

.al-lang-multi-language {
    min-width: 46px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, .95),
            rgba(37, 99, 235, .95)
        );

    color: #fff;
}


/* English subtitles language */

.al-lang-english-subtitles {
    min-width: 35px;
    background: rgba(34, 197, 94, 0.92);
    color: #07140b;
}


/* SUB */

.al-ep-sub {
    background: rgba(34, 197, 94, 0.94);
    color: #07140b;
}


/* DUB */

.al-ep-dub {
    background: rgba(168, 85, 247, 0.95);
    color: #fff;
}


/* RAW */

.al-ep-raw {
    background: rgba(71, 85, 105, 0.96);
    color: #fff;
}


/* Hover */

.al-ep-badge {
    transition:
        transform .18s ease,
        filter .18s ease,
        border-color .18s ease;
}

.al-ep-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    border-color: rgba(255, 255, 255, .28);
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 700px) {

    .al-episode-badges {
        gap: 4px;
        margin-top: 6px;
    }

    .al-ep-badge {
        min-width: 26px;
        height: 21px;

        padding: 0 6px;

        border-radius: 5px;

        font-size: 9px;
        letter-spacing: .2px;
    }

    .al-lang-multi-language {
        min-width: 42px;
    }
}
/* =========================================================
   ANIMELOK — LATEST EPISODES + SIDEBAR
   ========================================================= */

.al-latest-section {
    padding: 28px 0 42px;
}

.al-home-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.al-home-primary {
    min-width: 0;
}


/* =========================
   SECTION HEADER
   ========================= */

.al-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.al-section-title {
    position: relative;
    margin: 0;
    padding-left: 14px;

    color: #fff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
}

.al-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;

    width: 4px;
    border-radius: 20px;

    background: linear-gradient(
        180deg,
        #f3a8ff,
        #9c63ff
    );
}


/* =========================
   LANGUAGE FILTER
   ========================= */

.al-language-filter {
    width: auto;
    min-width: 155px;
    height: 38px;

    padding: 0 34px 0 13px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    outline: none;

    background-color: #202027;
    color: #ddd;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.al-language-filter:hover,
.al-language-filter:focus {
    border-color: rgba(202, 139, 255, .55);
    background-color: #25252d;
}


/* =========================================================
   LATEST EPISODE GRID
   ========================================================= */

.al-latest-episode-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 16px;
}


/* =========================
   CARD
   ========================= */

.al-latest-episode-card {
    min-width: 0;
}

.al-latest-episode-thumb {
    position: relative;
    display: block;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 2 / 3;

    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            #24242c,
            #16161c
        );

    box-shadow:
        0 7px 22px rgba(0,0,0,.18);

    isolation: isolate;
}


/* Poster */

.al-latest-episode-thumb > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform .35s ease,
        filter .35s ease;
}


/* Bottom readability gradient */

.al-latest-episode-thumb::after {
    content: "";

    position: absolute;
    z-index: 1;
    inset: 38% 0 0;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(7,7,10,.12) 30%,
        rgba(7,7,10,.82) 100%
    );
}


/* Hover poster */

.al-latest-episode-card:hover
.al-latest-episode-thumb > img {
    transform: scale(1.055);
    filter: brightness(.78);
}


/* =========================
   PLAY BUTTON
   ========================= */

.al-episode-play {
    position: absolute;
    z-index: 3;

    left: 50%;
    top: 50%;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;

    background: rgba(16,16,21,.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;

    transform:
        translate(-50%, -50%)
        scale(.8);

    transition:
        opacity .25s ease,
        transform .25s ease,
        background .25s ease;
}

.al-episode-play-icon {
    margin-left: 3px;

    color: #fff;

    font-size: 16px;
    line-height: 1;
}

.al-latest-episode-card:hover
.al-episode-play {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}

.al-episode-play:hover {
    background: rgba(168, 85, 247, .88);
}


/* =========================
   BADGE OVERLAY
   ========================= */

.al-episode-overlay {
    position: absolute;
    z-index: 4;

    left: 9px;
    right: 9px;
    bottom: 9px;

    pointer-events: none;
}

.al-episode-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px;

    margin: 0;
}

.al-ep-badge {
    min-width: 27px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 6px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;

    background: rgba(23,23,29,.92);
    color: #fff;

    box-shadow:
        0 2px 8px rgba(0,0,0,.25);

    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .35px;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* Individual languages */

.al-lang-hindi {
    background: #ffb454;
    color: #17120b;
}

.al-lang-tamil {
    background: #f18bbb;
    color: #1c0e15;
}

.al-lang-telugu {
    background: #79b8ff;
    color: #091523;
}

.al-lang-malayalam {
    background: #b79aff;
    color: #130e22;
}

.al-lang-kannada {
    background: #ffd16b;
    color: #181208;
}

.al-lang-bengali {
    background: #72dfb1;
    color: #071a12;
}

.al-lang-marathi {
    background: #ff8496;
    color: #220a0e;
}

.al-lang-japanese {
    background: #ff7777;
    color: #210909;
}

.al-lang-english {
    background: #7fd5f7;
    color: #07171d;
}


/* =========================================================
   CARD TEXT
   ========================================================= */

.al-latest-episode-content {
    padding: 10px 2px 0;
}

.al-latest-anime-title {
    margin: 0 0 6px;

    overflow: hidden;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-latest-anime-title a {
    color: #f4f4f6;
    text-decoration: none;

    transition: color .18s ease;
}

.al-latest-episode-card:hover
.al-latest-anime-title a {
    color: #dca9ff;
}

.al-latest-episode-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    min-width: 0;

    font-size: 11px;
}

.al-latest-episode-number {
    overflow: hidden;

    color: #9b9ba6;
    text-decoration: none;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-latest-episode-number:hover {
    color: #fff;
}

.al-episode-date {
    flex: 0 0 auto;
    color: #696974;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.al-home-sidebar {
    position: relative;
    min-width: 0;
}

/*
 * Styles generic sidebar blocks as well,
 * so Genres / Top 10 widgets can share one design.
 */

.al-home-sidebar > *,
.al-sidebar-widget,
.al-sidebar-box {
    margin-bottom: 22px;
}

.al-sidebar-widget,
.al-sidebar-box {
    overflow: hidden;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(31,31,38,.96),
            rgba(22,22,28,.96)
        );

    box-shadow:
        0 8px 28px rgba(0,0,0,.14);
}


/* Sidebar heading */

.al-sidebar-title,
.al-home-sidebar .widget-title {
    position: relative;

    margin: 0;
    padding: 15px 16px 14px 29px;

    border-bottom: 1px solid rgba(255,255,255,.065);

    color: #fff;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.al-sidebar-title::before,
.al-home-sidebar .widget-title::before {
    content: "";

    position: absolute;

    left: 16px;
    top: 16px;

    width: 4px;
    height: 17px;

    border-radius: 10px;

    background: #d59cff;
}


/* Sidebar links */

.al-home-sidebar ul {
    margin: 0;
    padding: 8px 0;

    list-style: none;
}

.al-home-sidebar li {
    margin: 0;
    padding: 0;

    border-bottom:
        1px solid rgba(255,255,255,.045);
}

.al-home-sidebar li:last-child {
    border-bottom: 0;
}

.al-home-sidebar li a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 15px;

    color: #bdbdc5;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;

    text-decoration: none;

    transition:
        color .18s ease,
        background .18s ease,
        padding-left .18s ease;
}

.al-home-sidebar li a:hover {
    padding-left: 19px;

    background: rgba(255,255,255,.035);
    color: #e3b9ff;
}


/* =========================================================
   TOP ANIME / TOP 10 ROW
   ========================================================= */

.al-top-item {
    display: grid;
    grid-template-columns: 27px 58px minmax(0,1fr);
    gap: 10px;
    align-items: center;

    padding: 10px 12px;

    border-bottom:
        1px solid rgba(255,255,255,.055);
}

.al-top-item:last-child {
    border-bottom: 0;
}

.al-top-rank {
    color: #7c7c87;

    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.al-top-item:nth-child(-n+3)
.al-top-rank {
    color: #dda8ff;
}

.al-top-poster {
    display: block;
    overflow: hidden;

    width: 58px;
    height: 78px;

    border-radius: 6px;

    background: #25252d;
}

.al-top-poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}

.al-top-item:hover
.al-top-poster img {
    transform: scale(1.06);
}

.al-top-info {
    min-width: 0;
}

.al-top-title {
    display: -webkit-box;
    overflow: hidden;

    margin-bottom: 5px;

    color: #eeeef1;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;

    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.al-top-title:hover {
    color: #dca9ff;
}

.al-top-meta {
    color: #777783;

    font-size: 10px;
    line-height: 1.3;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .al-home-main-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 20px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .al-latest-section {
        padding-top: 20px;
    }

    .al-home-main-layout {
        display: block;
    }

    .al-home-sidebar {
        margin-top: 30px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px 10px;
    }

    .al-section-title {
        font-size: 20px;
    }
}


/* Small phones */

@media (max-width: 600px) {

    .al-section-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .al-section-title {
        padding-left: 11px;
        font-size: 18px;
    }

    .al-section-title::before {
        width: 3px;
    }

    .al-language-filter {
        min-width: 0;
        max-width: 145px;
        height: 34px;

        padding-left: 10px;

        font-size: 10px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 17px 10px;
    }

    .al-latest-episode-thumb {
        border-radius: 7px;
    }

    .al-latest-episode-content {
        padding-top: 8px;
    }

    .al-latest-anime-title {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .al-latest-episode-meta {
        font-size: 10px;
    }

    .al-episode-overlay {
        left: 6px;
        right: 6px;
        bottom: 6px;
    }

    .al-ep-badge {
        min-width: 24px;
        height: 19px;

        padding: 0 5px;

        font-size: 8px;
    }

    /*
     * Keep play visible on touch devices.
     */
    .al-episode-play {
        width: 39px;
        height: 39px;

        opacity: .88;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    .al-episode-play-icon {
        font-size: 13px;
    }

    .al-home-sidebar {
        margin-top: 27px;
    }
}
/* =========================================================
   LATEST EPISODES — COMPACT DESKTOP POSTERS
   ========================================================= */

@media (min-width: 1101px) {

    /* More compact cards like anime listing sites */
    .al-latest-episode-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .al-latest-episode-thumb {
        width: 100%;
        aspect-ratio: 2 / 2.85;
        max-height: 265px;
        border-radius: 7px;
    }

    .al-latest-episode-thumb > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .al-latest-episode-content {
        padding: 8px 2px 0;
    }

    .al-latest-anime-title {
        margin-bottom: 4px;
        font-size: 12px;
        line-height: 1.35;
    }

    .al-latest-episode-meta {
        font-size: 10px;
    }

    .al-episode-overlay {
        left: 7px;
        right: 7px;
        bottom: 7px;
    }

    .al-ep-badge {
        min-width: 25px;
        height: 19px;
        padding: 0 5px;
        font-size: 8px;
        border-radius: 4px;
    }

    .al-episode-play {
        width: 42px;
        height: 42px;
    }

    .al-episode-play-icon {
        font-size: 14px;
    }
}

/* Large desktop — keep cards from becoming huge */
@media (min-width: 1450px) {

    .al-latest-episode-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .al-latest-episode-thumb {
        max-height: 255px;
    }
}
/* ==========================================================
   ANIMELOK — FINAL LATEST EPISODES UI
   ========================================================== */

.al-latest-section {
    padding: 26px 0 44px;
}

.al-home-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 26px;
    align-items: start;
}


/* HEADER */

.al-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.al-section-heading {
    min-width: 0;
}

.al-section-kicker {
    display: block;
    margin: 0 0 4px 13px;
    color: #898994;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.al-section-title {
    position: relative;
    margin: 0;
    padding-left: 13px;
    color: #f7f7f8;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

.al-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 4px;
    border-radius: 10px;
    background: linear-gradient(
        180deg,
        #e5a6ff,
        #9367ff
    );
}


/* SELECTOR */

.al-latest-filter-form {
    flex: 0 0 auto;
    margin: 0;
}

.al-language-filter {
    appearance: none;
    -webkit-appearance: none;

    height: 36px;
    min-width: 156px;

    padding: 0 34px 0 12px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 7px;

    outline: none;

    color: #d9d9df;

    background-color: #202027;

    background-image:
        linear-gradient(45deg, transparent 50%, #92929d 50%),
        linear-gradient(135deg, #92929d 50%, transparent 50%);

    background-position:
        calc(100% - 15px) 15px,
        calc(100% - 11px) 15px;

    background-size:
        4px 4px,
        4px 4px;

    background-repeat: no-repeat;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.al-language-filter:hover,
.al-language-filter:focus {
    background-color: #26262e;
    border-color: rgba(210,157,255,.45);
}


/* GRID */

.al-latest-episode-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 22px 13px;
}


/* CARD */

.al-latest-episode-card {
    min-width: 0;
}

.al-latest-episode-thumb {
    position: relative;

    display: block;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 2 / 2.85;

    border-radius: 7px;

    background: #1d1d24;

    box-shadow:
        0 6px 18px rgba(0,0,0,.18);

    isolation: isolate;
}

.al-latest-episode-thumb > img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transform: scale(1.001);

    transition:
        transform .38s cubic-bezier(.2,.7,.2,1),
        filter .3s ease;
}


/* permanent bottom gradient */

.al-latest-episode-thumb::after {
    content: "";

    position: absolute;
    z-index: 2;
    inset: 42% 0 0;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(8,8,11,0) 0%,
        rgba(8,8,11,.1) 28%,
        rgba(8,8,11,.76) 100%
    );
}


/* HOVER OVERLAY */

.al-card-hover {
    position: absolute;
    z-index: 3;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(150,91,210,.06),
            rgba(8,8,11,.48)
        );

    opacity: 0;

    transition: opacity .3s ease;
}


/* PLAY BUTTON */

.al-episode-play {
    position: absolute;
    z-index: 6;

    left: 50%;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border: 1px solid rgba(255,255,255,.36);
    border-radius: 50%;

    background: rgba(18,18,23,.7);

    box-shadow:
        0 5px 20px rgba(0,0,0,.3);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;

    transform:
        translate(-50%, -46%)
        scale(.75);

    transition:
        opacity .25s ease,
        transform .3s cubic-bezier(.2,.8,.2,1),
        background .2s ease;
}

.al-play-triangle {
    width: 0;
    height: 0;

    margin-left: 3px;

    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
}


/* EP NUMBER BADGE */

.al-number-badge {
    position: absolute;
    z-index: 7;

    top: 8px;
    left: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 23px;

    padding: 0 8px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;

    background: rgba(18,18,23,.88);
    color: #fff;

    box-shadow:
        0 3px 10px rgba(0,0,0,.25);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .3px;
}


/* LANGUAGE BADGES */

.al-episode-overlay {
    position: absolute;
    z-index: 7;

    left: 7px;
    right: 7px;
    bottom: 7px;
}

.al-episode-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;

    margin: 0;
}

.al-ep-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    height: 20px;

    padding: 0 5px;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 4px;

    box-shadow:
        0 3px 8px rgba(0,0,0,.22);

    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .35px;
}


/* CARD HOVER */

.al-latest-episode-card:hover
.al-latest-episode-thumb > img {
    transform: scale(1.065);
    filter: brightness(.78) saturate(1.06);
}

.al-latest-episode-card:hover
.al-card-hover {
    opacity: 1;
}

.al-latest-episode-card:hover
.al-episode-play {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}

.al-latest-episode-card:hover
.al-number-badge {
    border-color: rgba(222,170,255,.45);
}


/* CONTENT */

.al-latest-episode-content {
    padding: 8px 2px 0;
}

.al-latest-anime-title {
    overflow: hidden;

    margin: 0 0 4px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-latest-anime-title a {
    color: #eeeeF2;
    text-decoration: none;

    transition: color .18s ease;
}

.al-latest-episode-card:hover
.al-latest-anime-title a {
    color: #dfaaff;
}

.al-latest-episode-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 7px;

    min-width: 0;
}

.al-latest-episode-number {
    overflow: hidden;

    color: #92929d;

    font-size: 10px;
    font-weight: 500;

    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.al-latest-episode-number:hover {
    color: #d7d7dc;
}

.al-episode-date {
    flex: 0 0 auto;

    color: #686873;

    font-size: 9px;
}


/* EMPTY */

.al-empty {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;

    padding: 35px 20px;

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;

    background: rgba(255,255,255,.018);

    color: #777782;

    text-align: center;
}

.al-empty strong {
    margin-bottom: 4px;

    color: #d9d9dd;

    font-size: 13px;
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.al-episode-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 30px;
}

.al-episode-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 35px;
    height: 35px;

    padding: 0 10px;

    border: 1px solid rgba(255,255,255,.075);
    border-radius: 7px;

    background: #202027;
    color: #a8a8b1;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.al-episode-pagination a.page-numbers:hover {
    border-color: rgba(214,162,255,.35);

    background: #292932;
    color: #fff;

    transform: translateY(-1px);
}

.al-episode-pagination
.page-numbers.current {
    border-color: rgba(220,170,255,.45);

    background:
        linear-gradient(
            135deg,
            #a865dc,
            #7653d6
        );

    color: #fff;

    box-shadow:
        0 5px 15px rgba(117,70,170,.2);
}

.al-episode-pagination .dots {
    border-color: transparent;
    background: transparent;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .al-home-main-layout {
        grid-template-columns:
            minmax(0, 1fr) 260px;

        gap: 20px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 820px) {

    .al-home-main-layout {
        display: block;
    }

    .al-home-sidebar {
        margin-top: 30px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px 10px;
    }
}


@media (max-width: 600px) {

    .al-latest-section {
        padding-top: 20px;
    }

    .al-section-head {
        align-items: center;
        gap: 10px;

        margin-bottom: 14px;
    }

    .al-section-kicker {
        display: none;
    }

    .al-section-title {
        padding-left: 10px;
        font-size: 18px;
    }

    .al-section-title::before {
        width: 3px;
    }

    .al-language-filter {
        min-width: 125px;
        max-width: 145px;
        height: 34px;

        padding-left: 9px;

        font-size: 10px;
    }

    .al-latest-episode-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 17px 10px;
    }

    .al-latest-episode-thumb {
        border-radius: 6px;
    }

    .al-number-badge {
        top: 6px;
        left: 6px;

        min-height: 20px;

        padding: 0 6px;

        font-size: 8px;
    }

    .al-episode-overlay {
        left: 6px;
        right: 6px;
        bottom: 6px;
    }

    .al-ep-badge {
        min-width: 23px;
        height: 18px;

        padding: 0 4px;

        font-size: 7px;
    }

    /*
     * Touch devices don't have hover,
     * so keep a subtle play button visible.
     */

    .al-episode-play {
        width: 36px;
        height: 36px;

        opacity: .82;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    .al-play-triangle {
        border-top-width: 5px;
        border-bottom-width: 5px;
        border-left-width: 8px;
    }

    .al-latest-anime-title {
        font-size: 11px;
    }

    .al-latest-episode-number {
        font-size: 9px;
    }

    .al-episode-pagination {
        gap: 5px;
        margin-top: 24px;
    }

    .al-episode-pagination .page-numbers {
        min-width: 32px;
        height: 32px;

        padding: 0 8px;

        font-size: 10px;
    }
}
.al-latest-episode-card {
    animation: alEpisodeIn .22s ease both;
}

.al-latest-episode-card[hidden] {
    display: none !important;
}

.al-filter-empty[hidden] {
    display: none !important;
}

@keyframes alEpisodeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================
   ANIMELOK — SINGLE ANIME FINAL
   ========================================================== */

.al-single-anime {
    overflow: hidden;
    background: #0d0f13;
    color: #ddd;
}


/* ==========================================================
   HERO
   ========================================================== */

.al-detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #101319;
}

.al-detail-backdrop {
    position: absolute;
    inset: 0;

    background-position: center 22%;
    background-repeat: no-repeat;
    background-size: cover;

    opacity: .48;

    transform: scale(1.025);
}

.al-detail-backdrop-mask {
    position: absolute;
    z-index: 1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10,12,16,.98) 0%,
            rgba(10,12,16,.88) 26%,
            rgba(10,12,16,.63) 58%,
            rgba(10,12,16,.73) 100%
        ),
        linear-gradient(
            0deg,
            #0d0f13 0%,
            rgba(13,15,19,.55) 25%,
            transparent 65%
        );
}

.al-detail-container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 210px minmax(0, 720px);
    align-items: end;

    gap: 30px;

    min-height: 520px;
    padding-top: 105px;
    padding-bottom: 48px;
}


/* ==========================================================
   POSTER
   ========================================================== */

.al-detail-poster-wrap {
    min-width: 0;
}

.al-detail-poster {
    position: relative;

    width: 210px;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    border-radius: 9px;

    background: #1d2430;

    box-shadow:
        0 15px 38px rgba(0,0,0,.42);
}

.al-detail-poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.al-detail-no-poster {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    background: #1b2431;
    color: #7f8996;

    font-size: 28px;
}

.al-detail-type-badge {
    position: absolute;

    left: 8px;
    bottom: 8px;

    padding: 5px 8px;

    border-radius: 4px;

    background: rgba(13,16,21,.88);
    color: #eee;

    font-size: 9px;
    font-weight: 800;

    backdrop-filter: blur(6px);
}


/* ==========================================================
   INFO
   ========================================================== */

.al-detail-info {
    min-width: 0;
}

.al-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 13px;

    color: #777f8b;

    font-size: 10px;
}

.al-detail-breadcrumb a {
    color: #a9afb8;
    text-decoration: none;
}

.al-detail-breadcrumb a:hover {
    color: #fff;
}

.al-detail-breadcrumb .current {
    overflow: hidden;

    max-width: 270px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-detail-title {
    max-width: 800px;

    margin: 0 0 13px;

    color: #fff;

    font-size: clamp(29px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.12;

    letter-spacing: -.5px;
}


/* Meta */

.al-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 12px;
}

.al-detail-meta > span {
    min-height: 26px;

    display: inline-flex;
    align-items: center;

    padding: 0 9px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;

    background: rgba(22,25,31,.72);
    color: #b8bec6;

    font-size: 10px;
    font-weight: 600;

    backdrop-filter: blur(6px);
}

.al-detail-meta .al-detail-score {
    color: #f2c16f;
}

.al-star {
    margin-right: 4px;
}


/* Stream badges */

.al-detail-stream-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-bottom: 8px;
}

.al-detail-stream {
    min-height: 25px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 0 8px;

    border-radius: 4px;

    font-size: 9px;
    font-weight: 800;
}

.al-detail-stream strong {
    font-size: inherit;
}

.al-detail-stream.al-sub {
    background: #b7d99d;
    color: #12200d;
}

.al-detail-stream.al-dub {
    background: #b7d6f5;
    color: #0b1927;
}

.al-detail-stream.al-raw {
    background: #d0c3ef;
    color: #181124;
}


/* Languages */

.al-detail-languages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-bottom: 15px;
}

.al-detail-language {
    min-width: 29px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 6px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 4px;

    background: rgba(20,23,29,.85);
    color: #ddd;

    font-size: 8px;
    font-weight: 900;
}


/* Description */

.al-detail-description {
    max-width: 680px;

    margin: 0 0 14px;

    color: #aeb3bb;

    font-size: 12px;
    line-height: 1.72;
}

.al-detail-description p {
    margin: 0 0 9px;
}

.al-detail-description p:last-child {
    margin-bottom: 0;
}


/* Genres */

.al-detail-genres {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;
}

.al-detail-label {
    color: #858c96;

    font-size: 10px;
    font-weight: 700;
}

.al-detail-genre-list {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

.al-detail-genre-list a {
    padding: 4px 8px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;

    background: rgba(255,255,255,.035);
    color: #c0c4cb;

    font-size: 9px;
    text-decoration: none;
}

.al-detail-genre-list a:hover {
    border-color: rgba(224,172,255,.3);
    color: #e4b7ff;
}


/* ==========================================================
   ACTIONS
   ========================================================== */

.al-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.al-detail-watch {
    min-height: 42px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 0 17px;

    border-radius: 7px;

    background: linear-gradient(
        135deg,
        #e4a2ff,
        #9368e8
    );

    color: #16111a;

    box-shadow:
        0 8px 22px rgba(148,93,201,.2);

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.al-detail-watch:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 27px rgba(148,93,201,.3);
}

.al-watch-play {
    font-size: 10px;
}

.al-detail-watchlist {
    min-height: 42px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 0 15px;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 7px;

    background: rgba(25,28,35,.8);
    color: #c5c9cf;

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    backdrop-filter: blur(6px);
}

.al-detail-watchlist:hover {
    background: #292d35;
    color: #fff;
}


/* ==========================================================
   PAGE BODY
   ========================================================== */

.al-single-body {
    padding: 30px 0 55px;
}

.al-single-body-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;

    gap: 27px;

    align-items: start;
}

.al-single-main {
    min-width: 0;
}


/* ==========================================================
   SECTIONS
   ========================================================== */

.al-detail-section {
    margin-bottom: 30px;
}

.al-detail-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 14px;
}

.al-detail-section-head h2 {
    position: relative;

    margin: 0;

    padding-left: 12px;

    color: #f2f2f4;

    font-size: 20px;
    font-weight: 800;
}

.al-detail-section-head h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 2px;
    bottom: 2px;

    width: 3px;

    border-radius: 10px;

    background: #dca1ff;
}

.al-detail-section-kicker {
    display: block;

    margin: 0 0 3px 12px;

    color: #686f79;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.al-detail-episode-total {
    color: #777f89;

    font-size: 10px;
}


/* ==========================================================
   EPISODE TOOLBAR
   ========================================================== */

.al-episode-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 9px;

    margin-bottom: 12px;
}

.al-episode-search-box {
    position: relative;

    flex: 1;

    max-width: 300px;
}

.al-search-icon {
    position: absolute;

    left: 11px;
    top: 50%;

    color: #737a84;

    font-size: 15px;

    transform: translateY(-50%);
}

.al-episode-search-box input,
.al-episode-order {
    height: 36px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;

    outline: none;

    background: #171a20;
    color: #ccc;

    font-size: 10px;
}

.al-episode-search-box input {
    width: 100%;

    padding: 0 12px 0 33px;
}

.al-episode-order {
    min-width: 105px;

    padding: 0 10px;
}


/* ==========================================================
   EPISODE GRID
   ========================================================== */

.al-detail-episode-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}

.al-detail-episode-card {
    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        auto
        auto
        28px;

    align-items: center;

    min-height: 61px;

    gap: 8px;

    padding: 7px 9px;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 7px;

    background: #15181e;
    color: #ccc;

    text-decoration: none;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.al-detail-episode-card:hover {
    border-color: rgba(214,160,255,.23);

    background: #1a1d24;

    transform: translateY(-1px);
}


/* Number */

.al-detail-episode-number {
    height: 44px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #20242c;
}

.al-detail-episode-number small {
    color: #777f89;

    font-size: 7px;
    font-weight: 800;
}

.al-detail-episode-number strong {
    margin-top: 1px;

    color: #e8e8eb;

    font-size: 14px;
    line-height: 1;
}


/* Episode info */

.al-detail-episode-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.al-detail-episode-info > strong {
    overflow: hidden;

    color: #cfd1d5;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-detail-episode-info > small {
    color: #666e79;

    font-size: 8px;
}


/* Episode languages */

.al-detail-episode-langs,
.al-detail-episode-types {
    display: flex;
    align-items: center;

    gap: 3px;
}

.al-ep-mini,
.al-detail-episode-types small {
    min-width: 24px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    border-radius: 3px;

    font-size: 7px;
    font-weight: 900;
}

.al-ep-mini {
    background: #252932;
    color: #ccc;
}

.al-mini-sub {
    background: #b9db9f;
    color: #12200e;
}

.al-mini-dub {
    background: #b9d8f5;
    color: #0c1926;
}

.al-mini-raw {
    background: #d1c4ef;
    color: #181224;
}


/* Episode play */

.al-detail-episode-play {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #252932;
    color: #969da7;

    font-size: 8px;

    transition:
        background .18s ease,
        color .18s ease;
}

.al-detail-episode-card:hover
.al-detail-episode-play {
    background: #d9a0fa;
    color: #18111c;
}


/* ==========================================================
   INFORMATION GRID
   ========================================================== */

.al-detail-info-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 7px;
}

.al-detail-info-item {
    min-height: 67px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 12px;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 7px;

    background: #15181e;
}

.al-detail-info-item span {
    color: #6d7580;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
}

.al-detail-info-item strong {
    overflow: hidden;

    color: #cfd2d7;

    font-size: 10px;
    font-weight: 700;

    text-overflow: ellipsis;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.al-single-sidebar {
    position: sticky;
    top: 82px;

    min-width: 0;
}

.al-single-sidebox {
    overflow: hidden;

    margin-bottom: 15px;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 8px;

    background: #15181e;
}

.al-single-sidebox > h3 {
    position: relative;

    margin: 0;

    padding: 13px 14px 12px 25px;

    border-bottom:
        1px solid rgba(255,255,255,.055);

    color: #e4e5e7;

    font-size: 12px;
    font-weight: 800;
}

.al-single-sidebox > h3::before {
    content: "";

    position: absolute;

    left: 14px;
    top: 13px;

    width: 3px;
    height: 15px;

    border-radius: 10px;

    background: #dda5fa;
}

.al-side-details {
    padding: 6px 13px;
}

.al-side-details > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;

    padding: 9px 0;

    border-bottom:
        1px solid rgba(255,255,255,.04);
}

.al-side-details > div:last-child {
    border-bottom: 0;
}

.al-side-details span {
    color: #6f7781;

    font-size: 9px;
}

.al-side-details strong {
    max-width: 65%;

    color: #bfc3c9;

    font-size: 9px;
    font-weight: 600;

    text-align: right;
}

.al-side-genres {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    padding: 12px;
}

.al-side-genres a {
    padding: 6px 8px;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 5px;

    background: #1c1f26;
    color: #9ca3ad;

    font-size: 8px;
    font-weight: 600;

    text-decoration: none;
}

.al-side-genres a:hover {
    border-color: rgba(218,161,255,.25);
    color: #dfaaff;
}


/* ==========================================================
   EMPTY
   ========================================================== */

.al-detail-empty,
.al-episode-no-results {
    padding: 25px;

    border: 1px solid rgba(255,255,255,.05);
    border-radius: 7px;

    background: #15181e;
    color: #7e858f;

    font-size: 10px;

    text-align: center;
}

.al-episode-no-results[hidden] {
    display: none !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .al-detail-container {
        grid-template-columns:
            185px minmax(0, 1fr);

        gap: 24px;
    }

    .al-detail-poster {
        width: 185px;
    }

    .al-single-body-layout {
        grid-template-columns:
            minmax(0, 1fr) 245px;

        gap: 20px;
    }

    .al-detail-episode-grid {
        grid-template-columns: 1fr;
    }

    .al-detail-info-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .al-detail-hero {
        min-height: auto;
    }

    .al-detail-backdrop {
        height: 270px;

        background-position: center top;

        opacity: .42;
    }

    .al-detail-backdrop-mask {
        background:
            linear-gradient(
                0deg,
                #0d0f13 0%,
                rgba(13,15,19,.92) 43%,
                rgba(13,15,19,.3) 100%
            );
    }

    .al-detail-container {
        display: block;

        min-height: 0;

        padding-top: 155px;
        padding-bottom: 28px;
    }

    .al-detail-poster-wrap {
        margin-bottom: 18px;
    }

    .al-detail-poster {
        width: 125px;

        border-radius: 7px;
    }

    .al-detail-breadcrumb {
        display: none;
    }

    .al-detail-title {
        margin-bottom: 10px;

        font-size: 25px;
    }

    .al-detail-description {
        max-width: none;

        font-size: 11px;
        line-height: 1.65;
    }

    .al-single-body {
        padding-top: 20px;
    }

    .al-single-body-layout {
        display: block;
    }

    .al-single-sidebar {
        position: static;

        margin-top: 28px;
    }

    .al-detail-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 520px) {

    .al-detail-container {
        padding-top: 140px;
    }

    .al-detail-poster {
        width: 110px;
    }

    .al-detail-title {
        font-size: 22px;
    }

    .al-detail-meta > span {
        min-height: 23px;

        padding: 0 7px;

        font-size: 9px;
    }

    .al-detail-watch,
    .al-detail-watchlist {
        min-height: 38px;
    }

    .al-detail-section-head h2 {
        font-size: 18px;
    }

    .al-episode-toolbar {
        align-items: stretch;
    }

    .al-episode-search-box {
        max-width: none;
    }

    .al-detail-episode-card {
        grid-template-columns:
            43px
            minmax(0,1fr)
            auto;

        min-height: 58px;
    }

    .al-detail-episode-langs {
        display: none;
    }

    .al-detail-episode-types {
        display: none;
    }

    .al-detail-episode-play {
        grid-column: 3;
    }

    .al-detail-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}
/* ==========================================================
   SINGLE ANIME — MOBILE EPISODE LANGUAGE BADGES FIX
   ========================================================== */

@media (max-width: 760px) {

    .al-detail-episode-card {
        display: grid;

        grid-template-columns:
            42px
            minmax(0, 1fr)
            auto;

        grid-template-areas:
            "number info play"
            "number badges badges";

        align-items: center;

        column-gap: 9px;
        row-gap: 6px;

        min-height: 72px;

        padding: 8px 9px;
    }


    /* Episode number */

    .al-detail-episode-number {
        grid-area: number;

        width: 42px;
        height: 48px;

        align-self: center;
    }


    /* Episode title */

    .al-detail-episode-info {
        grid-area: info;

        min-width: 0;
    }

    .al-detail-episode-info > strong {
        overflow: hidden;

        font-size: 10px;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .al-detail-episode-info > small {
        font-size: 8px;
    }


    /* Play button */

    .al-detail-episode-play {
        grid-area: play;

        width: 27px;
        height: 27px;

        align-self: center;
    }


    /* =============================================
       LANGUAGE BADGES
       HI / TA / TE / EN etc.
       ============================================= */

    .al-detail-episode-langs {
        grid-area: badges;

        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;

        gap: 4px;

        min-width: 0;
    }


    .al-detail-episode-langs .al-ep-mini {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        min-width: 25px;
        height: 19px;

        padding: 0 5px;

        border: 1px solid rgba(255,255,255,.12);
        border-radius: 4px;

        background: #252932;
        color: #ddd;

        font-size: 7px;
        font-weight: 900;
        line-height: 1;

        letter-spacing: .25px;

        box-shadow:
            0 2px 5px rgba(0,0,0,.15);
    }


    /* Hindi */

    .al-detail-episode-langs
    .al-lang-hindi {
        background: #f0aa43;
        color: #17120a;
        border-color: #f0aa43;
    }


    /* Tamil */

    .al-detail-episode-langs
    .al-lang-tamil {
        background: #e98db4;
        color: #1a0c12;
        border-color: #e98db4;
    }


    /* Telugu */

    .al-detail-episode-langs
    .al-lang-telugu {
        background: #79b6ed;
        color: #071421;
        border-color: #79b6ed;
    }


    /* English */

    .al-detail-episode-langs
    .al-lang-english {
        background: #ef9b38;
        color: #16110b;
        border-color: #ef9b38;
    }


    /* Malayalam */

    .al-detail-episode-langs
    .al-lang-malayalam {
        background: #aa91e9;
        color: #110d1c;
        border-color: #aa91e9;
    }


    /* Kannada */

    .al-detail-episode-langs
    .al-lang-kannada {
        background: #77c8a5;
        color: #071710;
        border-color: #77c8a5;
    }


    /* Bengali */

    .al-detail-episode-langs
    .al-lang-bengali {
        background: #e5c266;
        color: #171306;
        border-color: #e5c266;
    }


    /* Marathi */

    .al-detail-episode-langs
    .al-lang-marathi {
        background: #d98d73;
        color: #180c08;
        border-color: #d98d73;
    }


    /* Japanese */

    .al-detail-episode-langs
    .al-lang-japanese {
        background: #262a31;
        color: #ddd;
        border-color: rgba(255,255,255,.16);
    }


    /*
     * SUB / DUB / RAW ko bhi mobile par rakhna hai.
     */

    .al-detail-episode-types {
        grid-area: badges;

        display: flex !important;
        align-items: center;

        gap: 4px;

        /*
         * Language badges ke baad same row mein
         * PHP structure ki wajah se placement browser
         * naturally handle karega.
         */
        justify-self: end;
    }


    .al-detail-episode-types small {
        display: inline-flex !important;

        min-width: 27px;
        height: 19px;

        padding: 0 5px;

        font-size: 7px;
        font-weight: 900;

        border-radius: 4px;
    }
}
@media (max-width: 520px) {

    .al-detail-episode-card {
        grid-template-areas:
            "number info play"
            "number badges badges";
    }

    .al-detail-episode-langs {
        display: flex !important;
        padding-right: 55px;
    }

    .al-detail-episode-types {
        display: flex !important;
    }
}
/* ==========================================================
   ANIMELOK — SINGLE ANIME ORANGE FINAL OVERRIDE
   ========================================================== */

.al-single-anime {
    --al-orange: #ff9d3d;
    --al-orange-light: #ffb067;
    --al-orange-dark: #e97e1c;
    --al-orange-soft: rgba(255, 157, 61, .14);

    background: #0c0f13;
}


/* ==========================================================
   HERO — BIGGER DESKTOP
   ========================================================== */

@media (min-width: 1000px) {

    .al-detail-hero {
        min-height: 650px;
    }

    .al-detail-container {
        grid-template-columns:
            245px minmax(0, 920px);

        gap: 38px;

        min-height: 650px;

        padding-top: 105px;
        padding-bottom: 54px;
    }

    .al-detail-poster {
        width: 245px;
    }

    .al-detail-info {
        width: 100%;
        max-width: 920px;
    }

    .al-detail-title {
        max-width: 900px;

        margin-bottom: 15px;

        font-size: clamp(38px, 3vw, 52px);
        line-height: 1.08;

        letter-spacing: -.7px;
    }

    .al-detail-description {
        font-size: 13px;
        line-height: 1.7;
    }
}


/* ==========================================================
   BACKDROP
   ========================================================== */

.al-detail-backdrop {
    opacity: .52;
}

.al-detail-backdrop-mask {
    background:
        linear-gradient(
            90deg,
            rgba(7,10,14,.98) 0%,
            rgba(7,10,14,.91) 24%,
            rgba(7,10,14,.62) 58%,
            rgba(7,10,14,.58) 100%
        ),
        linear-gradient(
            0deg,
            #0c0f13 0%,
            rgba(12,15,19,.6) 30%,
            rgba(12,15,19,.08) 75%
        );
}


/* ==========================================================
   POSTER
   ========================================================== */

.al-detail-poster {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;

    box-shadow:
        0 20px 48px rgba(0,0,0,.48);
}

.al-detail-type-badge {
    background: var(--al-orange);
    color: #16100a;

    font-weight: 900;
}


/* ==========================================================
   TITLE / BREADCRUMB
   ========================================================== */

.al-detail-breadcrumb a:hover {
    color: var(--al-orange-light);
}

.al-detail-title {
    color: #fff;
}


/* ==========================================================
   META
   ========================================================== */

.al-detail-meta {
    gap: 6px;
}

.al-detail-meta > span {
    border-color: rgba(255,255,255,.09);

    background: rgba(20,24,30,.8);
}

.al-detail-score,
.al-detail-meta .al-detail-score {
    border-color: rgba(255,157,61,.22);

    background: rgba(255,157,61,.09);

    color: var(--al-orange-light);
}

.al-star {
    color: var(--al-orange);
}

.al-detail-studio {
    max-width: 190px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ==========================================================
   STREAM BADGES
   ========================================================== */

.al-detail-stream.al-sub {
    background: #c8e99f;
    color: #14200b;
}

.al-detail-stream.al-dub {
    background: var(--al-orange);
    color: #171008;
}

.al-detail-stream.al-raw {
    background: #282d35;
    color: #ddd;
}


/* ==========================================================
   LANGUAGE BADGES
   ========================================================== */

.al-detail-language {
    border-color: rgba(255,157,61,.16);

    background: rgba(15,18,23,.88);

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.al-detail-language:hover {
    border-color: var(--al-orange);

    background: var(--al-orange);

    color: #15100b;
}


/* ==========================================================
   SYNOPSIS
   ========================================================== */

.al-detail-synopsis {
    position: relative;

    max-width: 850px;

    margin: 2px 0 17px;
}

.al-detail-synopsis .al-detail-description {
    position: relative;

    overflow: hidden;

    max-width: none;
    max-height: 130px;

    margin-bottom: 5px;
    padding-right: 8px;

    color: #c0c3c8;

    transition: max-height .3s ease;
}

.al-detail-synopsis:not(.is-expanded)
.al-detail-description::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 42px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(12,15,19,0),
        rgba(12,15,19,.98)
    );
}


/* Expanded = scrollable */

.al-detail-synopsis.is-expanded
.al-detail-description {
    max-height: 300px;

    overflow-x: hidden;
    overflow-y: auto;
}

.al-detail-synopsis.is-expanded
.al-detail-description::after {
    display: none;
}

.al-detail-description::-webkit-scrollbar {
    width: 4px;
}

.al-detail-description::-webkit-scrollbar-track {
    background: rgba(255,255,255,.03);
}

.al-detail-description::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background: var(--al-orange);
}


/* Synopsis toggle */

.al-synopsis-toggle {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 3px 0;

    border: 0;

    background: transparent;
    color: var(--al-orange);

    font-family: inherit;
    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}

.al-synopsis-toggle:hover {
    color: var(--al-orange-light);
}

.al-synopsis-less {
    display: none;
}

.al-synopsis-arrow {
    transition: transform .2s ease;
}

.al-detail-synopsis.is-expanded
.al-synopsis-more {
    display: none;
}

.al-detail-synopsis.is-expanded
.al-synopsis-less {
    display: inline;
}

.al-detail-synopsis.is-expanded
.al-synopsis-arrow {
    transform: rotate(180deg);
}

.al-detail-synopsis.is-short
.al-synopsis-toggle {
    display: none;
}

.al-detail-synopsis.is-short
.al-detail-description {
    overflow: visible;

    max-height: none;
}

.al-detail-synopsis.is-short
.al-detail-description::after {
    display: none;
}


/* ==========================================================
   GENRES
   ========================================================== */

.al-detail-genre-list a:hover {
    border-color: rgba(255,157,61,.45);

    background: rgba(255,157,61,.08);

    color: var(--al-orange-light);
}


/* ==========================================================
   WATCH BUTTON
   ========================================================== */

.al-detail-watch {
    background: linear-gradient(
        135deg,
        var(--al-orange-light),
        var(--al-orange-dark)
    );

    color: #181009;

    box-shadow:
        0 8px 24px rgba(255,137,35,.22);
}

.al-detail-watch:hover {
    color: #120c07;

    box-shadow:
        0 12px 30px rgba(255,137,35,.32);
}

.al-detail-watchlist:hover {
    border-color: rgba(255,157,61,.28);

    color: var(--al-orange-light);
}


/* ==========================================================
   EPISODE HEADING
   ========================================================== */

.al-detail-section-head h2::before {
    background: var(--al-orange);
}

.al-detail-section-kicker {
    color: var(--al-orange);
}


/* ==========================================================
   EPISODE TOOLBAR
   ========================================================== */

.al-episode-search-box input:focus,
.al-episode-order:focus {
    border-color: rgba(255,157,61,.45);

    box-shadow:
        0 0 0 2px rgba(255,157,61,.07);
}


/* ==========================================================
   EPISODE CARDS
   ========================================================== */

.al-detail-episode-card:hover {
    border-color: rgba(255,157,61,.28);

    background: #1b1e24;
}

.al-detail-episode-card:hover
.al-detail-episode-number {
    background: rgba(255,157,61,.12);
}

.al-detail-episode-card:hover
.al-detail-episode-number strong {
    color: var(--al-orange-light);
}

.al-detail-episode-play {
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.al-detail-episode-card:hover
.al-detail-episode-play {
    background: var(--al-orange);

    color: #171009;

    transform: scale(1.06);
}


/* ==========================================================
   EPISODE LANGUAGE BADGES
   ========================================================== */

.al-detail-episode-langs .al-ep-mini {
    border: 1px solid rgba(255,255,255,.09);

    background: #252932;
    color: #ddd;
}


/* Hindi */

.al-detail-episode-langs .al-lang-hindi {
    background: #ffae45;
    border-color: #ffae45;
    color: #191006;
}


/* Tamil */

.al-detail-episode-langs .al-lang-tamil {
    background: #ed8f9d;
    border-color: #ed8f9d;
    color: #1b090c;
}


/* Telugu */

.al-detail-episode-langs .al-lang-telugu {
    background: #72b9ec;
    border-color: #72b9ec;
    color: #061521;
}


/* English */

.al-detail-episode-langs .al-lang-english {
    background: #f39a38;
    border-color: #f39a38;
    color: #171006;
}


/* Malayalam */

.al-detail-episode-langs .al-lang-malayalam {
    background: #ad96e6;
    border-color: #ad96e6;
    color: #120e1c;
}


/* Kannada */

.al-detail-episode-langs .al-lang-kannada {
    background: #79c6a6;
    border-color: #79c6a6;
    color: #07160f;
}


/* Bengali */

.al-detail-episode-langs .al-lang-bengali {
    background: #e3c266;
    border-color: #e3c266;
    color: #171306;
}


/* Marathi */

.al-detail-episode-langs .al-lang-marathi {
    background: #db9276;
    border-color: #db9276;
    color: #190d08;
}


/* Japanese */

.al-detail-episode-langs .al-lang-japanese {
    background: #292d34;
    border-color: rgba(255,255,255,.13);
    color: #eee;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .al-detail-container {
        padding-top: 150px;
        padding-bottom: 28px;
    }

    .al-detail-poster {
        width: 140px;
    }

    .al-detail-title {
        font-size: 27px;
        line-height: 1.12;
    }

    .al-detail-synopsis
    .al-detail-description {
        max-height: 112px;

        font-size: 11px;
        line-height: 1.65;
    }

    .al-detail-synopsis.is-expanded
    .al-detail-description {
        max-height: 250px;
    }


    /*
     * Episode mobile layout.
     * Language badges stay visible.
     */

    .al-detail-episode-card {
        display: grid !important;

        grid-template-columns:
            43px minmax(0,1fr) auto;

        grid-template-areas:
            "number info play"
            "number langs langs"
            "number types types";

        align-items: center;

        column-gap: 9px;
        row-gap: 5px;

        min-height: 79px;

        padding: 8px 9px;
    }

    .al-detail-episode-number {
        grid-area: number;

        width: 43px;
        height: 51px;
    }

    .al-detail-episode-info {
        grid-area: info;
    }

    .al-detail-episode-play {
        grid-area: play;
    }

    .al-detail-episode-langs {
        grid-area: langs;

        display: flex !important;
        align-items: center;
        flex-wrap: wrap;

        gap: 3px;
    }

    .al-detail-episode-types {
        grid-area: types;

        display: flex !important;
        align-items: center;
        flex-wrap: wrap;

        gap: 3px;
    }

    .al-detail-episode-langs
    .al-ep-mini,
    .al-detail-episode-types small {
        display: inline-flex !important;

        min-width: 25px;
        height: 18px;

        align-items: center;
        justify-content: center;

        padding: 0 4px;

        border-radius: 3px;

        font-size: 7px;
        font-weight: 900;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 520px) {

    .al-detail-poster {
        width: 125px;
    }

    .al-detail-title {
        font-size: 24px;
    }

    /*
     * Override old CSS which hid mobile language badges.
     */

    .al-detail-episode-langs,
    .al-detail-episode-types {
        display: flex !important;
    }
}
/* ==========================================================
   ANIMELOK WATCH PAGE — FINAL
   ========================================================== */

.al-watch-page {
    --watch-orange: #ff9d3d;
    --watch-orange-2: #ffb15f;
    --watch-bg: #0c0f13;
    --watch-panel: #14181e;
    --watch-panel-2: #181d24;
    --watch-border: rgba(255,255,255,.075);

    min-height: 100vh;

    padding:
        32px 0 60px;

    background: var(--watch-bg);

    color: #fff;
}


/* ==========================================================
   HEADER
   ========================================================== */

.al-watch-header {
    margin-bottom: 18px;
}

.al-watch-back {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 10px;

    color: #8d939c;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;
}

.al-watch-back span {
    color: var(--watch-orange);

    font-size: 17px;
}

.al-watch-back:hover {
    color: var(--watch-orange-2);
}

.al-watch-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.al-watch-heading h1 {
    margin: 0;

    color: #fff;

    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
}

.al-watch-heading p {
    margin: 7px 0 0;

    color: #858b94;

    font-size: 11px;
}

.al-watch-heading p strong {
    color: var(--watch-orange-2);
}


/* ==========================================================
   CURRENT LANGUAGES
   ========================================================== */

.al-watch-current-languages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px;
}

.al-watch-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 29px;
    height: 22px;

    padding: 0 6px;

    border: 1px solid var(--watch-border);
    border-radius: 4px;

    background: #20252d;
    color: #eee;

    font-size: 8px;
    font-weight: 900;
}


/* ==========================================================
   MAIN LAYOUT
   ========================================================== */

.al-watch-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 16px;

    align-items: start;
}

.al-watch-main {
    min-width: 0;
}


/* ==========================================================
   PLAYER SHELL
   ========================================================== */

.al-player-shell {
    overflow: hidden;

    border: 1px solid var(--watch-border);
    border-radius: 9px;

    background: #07090c;

    box-shadow:
        0 18px 45px rgba(0,0,0,.26);
}

.al-player {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #181d24,
            #07090c 65%
        );
}

.al-player iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;

    background: #000;
}


/* ==========================================================
   NO STREAM
   ========================================================== */

.al-no-stream {
    position: absolute;

    inset: 0;

    display: grid;
    place-items: center;

    padding: 30px;

    text-align: center;
}

.al-no-stream-icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    margin:
        0 auto
        14px;

    border-radius: 50%;

    background:
        rgba(255,157,61,.13);

    color: var(--watch-orange);

    font-size: 20px;
}

.al-no-stream h2 {
    margin: 0 0 7px;

    font-size: 17px;
}

.al-no-stream p {
    margin: 0;

    color: #818791;

    font-size: 11px;
}


/* ==========================================================
   PLAYER BOTTOM
   ========================================================== */

.al-player-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 45px;

    padding: 0 13px;

    border-top:
        1px solid
        rgba(255,255,255,.055);

    background: #11151a;
}

.al-player-episode-label {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #aeb3bb;

    font-size: 10px;
}

.al-player-episode-label strong {
    color: #fff;
}

.al-player-orange-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--watch-orange);

    box-shadow:
        0 0 10px
        rgba(255,157,61,.6);
}

.al-player-bottom-actions {
    display: flex;

    gap: 5px;
}

.al-player-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 27px;

    padding: 0 10px;

    border: 1px solid var(--watch-border);
    border-radius: 5px;

    background: #191e25;
    color: #bfc3c9;

    font-size: 9px;
    font-weight: 700;

    text-decoration: none;
}

.al-player-nav:hover {
    border-color:
        rgba(255,157,61,.3);

    color: var(--watch-orange-2);
}


/* ==========================================================
   STREAM PANEL
   ========================================================== */

.al-stream-panel {
    margin-top: 13px;

    overflow: hidden;

    border: 1px solid var(--watch-border);
    border-radius: 8px;

    background: var(--watch-panel);
}

.al-stream-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 13px 14px;

    border-bottom:
        1px solid
        var(--watch-border);
}

.al-stream-heading > div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.al-stream-kicker {
    color: var(--watch-orange);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 1.3px;
}

.al-stream-heading strong {
    color: #f5f5f5;

    font-size: 12px;
}

.al-stream-current {
    display: inline-flex;
    align-items: center;

    height: 25px;

    padding: 0 9px;

    border-radius: 4px;

    background:
        rgba(255,157,61,.1);

    color: var(--watch-orange-2);

    font-size: 9px;
    font-weight: 800;
}

.al-stream-list {
    padding: 3px 14px 10px;
}

.al-stream-language {
    display: grid;

    grid-template-columns:
        120px minmax(0,1fr);

    gap: 12px;

    align-items: center;

    padding: 10px 0;

    border-bottom:
        1px solid
        rgba(255,255,255,.045);
}

.al-stream-language:last-child {
    border-bottom: 0;
}

.al-language-title {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #bfc3c9;

    font-size: 10px;
    font-weight: 700;
}

.al-stream-lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 21px;

    padding: 0 5px;

    border-radius: 4px;

    background: #252a32;
    color: #fff;

    font-size: 7px;
    font-weight: 900;
}

.al-stream-language-servers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;
}

.al-server-button {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 30px;

    padding: 4px 9px;

    border: 1px solid var(--watch-border);
    border-radius: 5px;

    background: #1b2027;
    color: #b8bdc5;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.al-server-button:hover {
    border-color:
        rgba(255,157,61,.3);

    color: #fff;

    transform: translateY(-1px);
}

.al-server-button.is-active {
    border-color:
        rgba(255,157,61,.48);

    background:
        rgba(255,157,61,.12);

    color: var(--watch-orange-2);
}

.al-stream-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 18px;

    padding: 0 4px;

    border-radius: 3px;

    font-size: 7px;
    font-weight: 900;
}

.al-stream-type.al-sub {
    background: #b8e28e;
    color: #122007;
}

.al-stream-type.al-dub {
    background: var(--watch-orange);
    color: #171006;
}

.al-stream-type.al-raw {
    background: #333941;
    color: #ddd;
}


/* ==========================================================
   RIGHT SIDEBAR
   ========================================================== */

.al-watch-sidebar {
    overflow: hidden;

    border: 1px solid var(--watch-border);
    border-radius: 8px;

    background: var(--watch-panel);

    position: sticky;

    top: 76px;
}


/* Anime info */

.al-watch-anime {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px;

    border-bottom:
        1px solid
        var(--watch-border);
}

.al-watch-anime-poster {
    flex: 0 0 45px;

    width: 45px;
    height: 62px;

    overflow: hidden;

    border-radius: 5px;

    background: #20252c;
}

.al-watch-anime-poster img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.al-watch-anime-info {
    min-width: 0;
}

.al-watch-anime-info > strong {
    display: block;

    overflow: hidden;

    color: #fff;

    font-size: 11px;
    line-height: 1.35;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-watch-anime-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px;

    margin-top: 6px;
}

.al-watch-anime-meta span {
    padding: 3px 5px;

    border-radius: 3px;

    background: #22272e;
    color: #90969f;

    font-size: 7px;
    font-weight: 800;
}


/* Sidebar title */

.al-watch-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 11px 12px 7px;
}

.al-watch-sidebar-head > div {
    display: flex;
    flex-direction: column;

    gap: 1px;
}

.al-watch-sidebar-kicker {
    color: var(--watch-orange);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 1.1px;
}

.al-watch-sidebar-head strong {
    font-size: 11px;
}

.al-watch-episode-count {
    display: grid;
    place-items: center;

    min-width: 25px;
    height: 21px;

    border-radius: 4px;

    background:
        rgba(255,157,61,.1);

    color: var(--watch-orange);

    font-size: 8px;
    font-weight: 900;
}


/* Search */

.al-watch-episode-search {
    position: relative;

    margin: 3px 10px 9px;
}

.al-watch-episode-search > span {
    position: absolute;

    left: 10px;
    top: 50%;

    z-index: 2;

    transform:
        translateY(-50%);

    color: #727983;

    font-size: 12px;

    pointer-events: none;
}

.al-watch-episode-search input {
    width: 100%;
    height: 34px;

    padding:
        0 10px
        0 30px;

    border:
        1px solid
        var(--watch-border);

    border-radius: 5px;

    outline: 0;

    background: #101419;
    color: #fff;

    font-family: inherit;
    font-size: 9px;
}

.al-watch-episode-search input:focus {
    border-color:
        rgba(255,157,61,.38);
}


/* ==========================================================
   EPISODE LIST
   ========================================================== */

.al-watch-episodes {
    max-height: 540px;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 0 7px 8px;
}

.al-watch-episodes::-webkit-scrollbar {
    width: 4px;
}

.al-watch-episodes::-webkit-scrollbar-track {
    background: transparent;
}

.al-watch-episodes::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background: #30353c;
}

.al-watch-episodes:hover::-webkit-scrollbar-thumb {
    background:
        rgba(255,157,61,.45);
}

.al-watch-episode {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    min-height: 52px;

    margin-bottom: 4px;

    padding: 6px 7px;

    border:
        1px solid
        transparent;

    border-radius: 6px;

    background: #171b21;

    color: inherit;

    text-decoration: none;

    transition:
        background .17s ease,
        border-color .17s ease;
}

.al-watch-episode:hover {
    border-color:
        rgba(255,157,61,.2);

    background: #1c2128;
}

.al-watch-episode.is-active {
    border-color:
        rgba(255,157,61,.42);

    background:
        rgba(255,157,61,.09);
}


/* Left */

.al-watch-episode-left {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;
}

.al-watch-episode-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex: 0 0 37px;

    width: 37px;
    height: 37px;

    border-radius: 5px;

    background: #22272e;
}

.al-watch-episode-number small {
    color: #777e88;

    font-size: 6px;
    font-weight: 800;
}

.al-watch-episode-number strong {
    margin-top: 1px;

    color: #eee;

    font-size: 10px;
}

.al-watch-episode.is-active
.al-watch-episode-number {
    background: var(--watch-orange);
}

.al-watch-episode.is-active
.al-watch-episode-number small,
.al-watch-episode.is-active
.al-watch-episode-number strong {
    color: #171006;
}

.al-watch-episode-text {
    min-width: 0;
}

.al-watch-episode-text > strong {
    display: block;

    overflow: hidden;

    max-width: 95px;

    color: #d9dce0;

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-watch-episode-text > small {
    display: block;

    margin-top: 3px;

    color: #717780;

    font-size: 7px;
}

.al-watch-episode.is-active
.al-watch-episode-text > small {
    color: var(--watch-orange);
}


/* Right */

.al-watch-episode-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 3px;
}

.al-watch-episode-langs,
.al-watch-episode-types {
    display: flex;
    align-items: center;

    gap: 2px;
}

.al-watch-mini-lang,
.al-watch-episode-types small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 16px;

    padding: 0 3px;

    border-radius: 3px;

    background: #282d34;
    color: #ddd;

    font-size: 6px;
    font-weight: 900;
}

.al-watch-episode-types .al-sub {
    background: #b9e18f;
    color: #122006;
}

.al-watch-episode-types .al-dub {
    background: var(--watch-orange);
    color: #181006;
}

.al-watch-episode-types .al-raw {
    background: #343a42;
    color: #ddd;
}


/* ==========================================================
   LANGUAGE COLORS
   ========================================================== */

.al-watch-page .al-lang-hindi {
    background: #ffae45;
    color: #191006;
}

.al-watch-page .al-lang-tamil {
    background: #e98c9a;
    color: #19090b;
}

.al-watch-page .al-lang-telugu {
    background: #73b9eb;
    color: #071521;
}

.al-watch-page .al-lang-english {
    background: #f39a38;
    color: #181006;
}

.al-watch-page .al-lang-malayalam {
    background: #aa94e5;
    color: #110d1b;
}

.al-watch-page .al-lang-kannada {
    background: #79c5a4;
    color: #07160f;
}

.al-watch-page .al-lang-bengali {
    background: #e3c165;
    color: #171306;
}

.al-watch-page .al-lang-marathi {
    background: #da9075;
    color: #190d08;
}


/* ==========================================================
   PREV/NEXT UNDER PANEL
   ========================================================== */

.al-episode-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 10px;
}

.al-episode-navigation a {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    min-height: 33px;

    padding: 0 11px;

    border:
        1px solid
        var(--watch-border);

    border-radius: 5px;

    background: #15191f;
    color: #aaaeb6;

    font-size: 9px;
    font-weight: 700;

    text-decoration: none;
}

.al-episode-navigation a:hover {
    border-color:
        rgba(255,157,61,.3);

    color: var(--watch-orange);
}


/* ==========================================================
   EMPTY
   ========================================================== */

.al-watch-empty {
    max-width: 500px;

    margin: 80px auto;

    text-align: center;
}

.al-watch-empty-icon {
    display: grid;
    place-items: center;

    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background:
        rgba(255,157,61,.12);

    color: var(--watch-orange);
}

.al-watch-home-button {
    display: inline-flex;

    margin-top: 15px;

    padding: 10px 16px;

    border-radius: 5px;

    background: var(--watch-orange);
    color: #171006;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {

    .al-watch-layout {
        grid-template-columns:
            minmax(0,1fr)
            290px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .al-watch-page {
        padding-top: 18px;
    }

    .al-watch-layout {
        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .al-watch-main,
    .al-watch-sidebar {
        width: 100%;
    }

    .al-watch-sidebar {
        position: static;
    }

    .al-watch-heading-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .al-watch-heading h1 {
        font-size: 20px;
    }

    .al-player-shell {
        /*
         * Let video use almost full phone width.
         */
        margin-left: -2px;
        margin-right: -2px;
    }

    .al-player-bottom {
        min-height: 41px;
    }

    .al-stream-language {
        display: block;

        padding: 9px 0;
    }

    .al-language-title {
        margin-bottom: 7px;
    }

    .al-stream-language-servers {
        width: 100%;
    }

    .al-server-button {
        min-height: 29px;
    }

    .al-watch-episodes {
        max-height: 440px;
    }

    .al-watch-anime-poster {
        flex-basis: 42px;

        width: 42px;
        height: 57px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .al-watch-heading h1 {
        font-size: 18px;
    }

    .al-watch-current-languages {
        width: 100%;
    }

    .al-stream-heading {
        padding:
            11px 10px;
    }

    .al-stream-list {
        padding:
            2px 10px 8px;
    }

    .al-player-bottom {
        padding:
            0 8px;
    }

    .al-player-nav {
        padding:
            0 7px;
    }

    .al-watch-episode {
        min-height: 55px;
    }

    .al-watch-episode-text > strong {
        max-width: 85px;
    }

    /*
     * Languages remain visible on mobile.
     */

    .al-watch-episode-langs,
    .al-watch-episode-types {
        display: flex !important;
    }
}
/* ==========================================================
   ANIMELOK WATCH PAGE V2
   ========================================================== */

.al-watch-page {
    --al-watch-orange: #ff8a32;
    --al-watch-orange-2: #ffab63;
    --al-watch-bg: #0b0e12;
    --al-watch-panel: #12171d;
    --al-watch-panel-2: #171c23;
    --al-watch-border: rgba(255,255,255,.075);

    min-height: 100vh;
    padding: 28px 0 60px;

    background: var(--al-watch-bg);
    color: #fff;
}


/* TITLE */

.al-watch-titlebar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.al-watch-back {
    display: inline-block;

    margin-bottom: 8px;

    color: #8c929b;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
}

.al-watch-back:hover {
    color: var(--al-watch-orange);
}

.al-watch-title-left h1 {
    margin: 0;

    font-size: 25px;
    line-height: 1.15;
}

.al-watch-title-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 8px;
}

.al-watch-title-meta span {
    padding: 4px 7px;

    border: 1px solid var(--al-watch-border);
    border-radius: 4px;

    background: #171b21;
    color: #9fa5ae;

    font-size: 8px;
    font-weight: 700;
}

.al-watch-title-langs {
    display: flex;
    flex-wrap: wrap;

    gap: 4px;
}

.al-watch-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 29px;
    height: 22px;

    padding: 0 5px;

    border-radius: 4px;

    background: #272c34;

    font-size: 8px;
    font-weight: 900;
}


/* ==========================================================
   LAYOUT
   ========================================================== */

.al-watch-layout {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        330px;

    gap: 14px;

    align-items: start;
}

.al-watch-main {
    min-width: 0;
}


/* ==========================================================
   PLAYER TOOLBAR
   ========================================================== */

.al-player-toolbar {
    display: grid;

    grid-template-columns:
        repeat(7,1fr);

    overflow: hidden;

    border: 1px solid var(--al-watch-border);
    border-bottom: 0;

    border-radius: 8px 8px 0 0;

    background: #171c22;
}

.al-player-tool {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 0;
    height: 48px;

    padding: 0 7px;

    border: 0;
    border-right: 1px solid rgba(255,255,255,.045);

    background: transparent;
    color: #858b94;

    font-family: inherit;
    font-size: 9px;

    cursor: pointer;

    text-decoration: none;

    transition:
        color .18s ease,
        background .18s ease;
}

.al-player-tool:last-child {
    border-right: 0;
}

.al-player-tool span {
    font-size: 14px;
}

.al-player-tool strong {
    font-size: 9px;
    font-weight: 700;
}

.al-player-tool:hover {
    background: rgba(255,255,255,.025);
    color: #fff;
}

.al-player-tool.is-active {
    color: var(--al-watch-orange);
}

.al-player-tool.is-disabled {
    opacity: .35;
    cursor: default;
}


/* ==========================================================
   PLAYER
   ========================================================== */

.al-player-shell {
    overflow: hidden;

    border: 1px solid var(--al-watch-border);

    border-radius: 0 0 8px 8px;

    background: #000;

    box-shadow: 0 18px 45px rgba(0,0,0,.3);
}

.al-player {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    background:
        radial-gradient(
            circle at center,
            #181d23,
            #06080b 68%
        );
}

.al-player iframe {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #000;
}


/* Fullscreen */

.al-player-shell:fullscreen {
    width: 100vw;
    height: 100vh;

    border: 0;
    border-radius: 0;

    background: #000;
}

.al-player-shell:fullscreen .al-player {
    width: 100%;
    height: 100%;

    aspect-ratio: auto;
}


/* ==========================================================
   NO STREAM
   ========================================================== */

.al-no-stream {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    text-align: center;
}

.al-no-stream-icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: rgba(255,138,50,.12);
    color: var(--al-watch-orange);

    font-size: 19px;
}

.al-no-stream h2 {
    margin: 0 0 6px;

    font-size: 16px;
}

.al-no-stream p {
    margin: 0;

    color: #7e858f;

    font-size: 10px;
}


/* ==========================================================
   YOU ARE WATCHING
   ========================================================== */

.al-watching-box {
    position: relative;

    padding: 17px 18px;

    border: 1px solid var(--al-watch-border);
    border-top: 0;

    background: #10151a;
}

.al-watching-box::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 2px;

    background: var(--al-watch-orange);
}

.al-watching-box p {
    margin: 0;

    color: #89909a;

    font-size: 11px;
}

.al-watching-box p strong {
    color: #fff;
}

.al-watching-box p span {
    color: #949ba5;
}

.al-watching-box .al-watching-help {
    max-width: 450px;

    margin-top: 9px;

    color: #89909a;

    line-height: 1.55;
}


/* ==========================================================
   PANEL
   ========================================================== */

.al-watch-language-panel,
.al-watch-server-panel {
    margin-top: 12px;

    overflow: hidden;

    border: 1px solid var(--al-watch-border);
    border-radius: 8px;

    background: var(--al-watch-panel);
}

.al-watch-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 12px 14px;

    border-bottom: 1px solid var(--al-watch-border);
}

.al-watch-panel-head > div > span {
    display: block;

    margin-bottom: 2px;

    color: var(--al-watch-orange);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 1.4px;
}

.al-watch-panel-head h2 {
    margin: 0;

    font-size: 12px;
}

.al-watch-panel-head > small {
    color: #747b85;

    font-size: 8px;
}


/* ==========================================================
   LANGUAGE SELECT
   ========================================================== */

.al-watch-language-tabs {
    display: flex;
    align-items: stretch;

    gap: 6px;

    overflow-x: auto;

    padding: 10px;
}

.al-watch-language-tabs::-webkit-scrollbar {
    height: 3px;
}

.al-watch-language-tabs::-webkit-scrollbar-thumb {
    background: #333941;
}

.al-watch-language-button {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 7px;

    min-width: 100px;
    height: 39px;

    padding: 0 10px;

    border: 1px solid var(--al-watch-border);
    border-radius: 5px;

    background: #191e25;
    color: #b8bdc5;

    font-family: inherit;

    cursor: pointer;

    transition: .18s ease;
}

.al-watch-language-button:hover {
    border-color: rgba(255,138,50,.3);
}

.al-watch-language-button.is-active {
    border-color: rgba(255,138,50,.5);

    background: rgba(255,138,50,.09);

    color: #fff;
}

.al-watch-language-short {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 22px;

    padding: 0 4px;

    border-radius: 4px;

    background: #292e35;

    font-size: 7px;
    font-weight: 900;
}

.al-watch-language-name {
    font-size: 9px;
    font-weight: 700;
}


/* ==========================================================
   SERVER GROUPS
   ========================================================== */

.al-watch-server-groups {
    padding: 10px;
}

.al-watch-server-language {
    display: none;
}

.al-watch-server-language.is-active {
    display: block;
}

.al-watch-server-type + .al-watch-server-type {
    margin-top: 11px;
}

.al-watch-server-type-title {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 7px;
}

.al-watch-server-type-title strong {
    color: #9299a2;

    font-size: 9px;
}

.al-watch-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 31px;
    height: 19px;

    border-radius: 3px;

    font-size: 7px;
    font-weight: 900;
}

.al-watch-type-badge.al-sub {
    background: #b9e58c;
    color: #102005;
}

.al-watch-type-badge.al-dub {
    background: var(--al-watch-orange);
    color: #1a0e05;
}

.al-watch-type-badge.al-raw {
    background: #323840;
    color: #ddd;
}

.al-watch-server-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

.al-server-button {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 31px;

    padding: 0 10px;

    border: 1px solid var(--al-watch-border);
    border-radius: 5px;

    background: #1a1f26;
    color: #b5bac2;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition: .18s ease;
}

.al-server-button:hover {
    border-color: rgba(255,138,50,.35);

    color: #fff;

    transform: translateY(-1px);
}

.al-server-button.is-active {
    border-color: var(--al-watch-orange);

    background: rgba(255,138,50,.11);

    color: var(--al-watch-orange);
}

.al-server-play {
    font-size: 8px;
}


/* ==========================================================
   PREV / NEXT
   ========================================================== */

.al-watch-bottom-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 12px;
}

.al-watch-bottom-navigation a {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 130px;

    padding: 9px 11px;

    border: 1px solid var(--al-watch-border);
    border-radius: 6px;

    background: #14191f;
    color: #b7bcc4;

    text-decoration: none;
}

.al-watch-bottom-navigation a > span {
    color: var(--al-watch-orange);

    font-size: 20px;
}

.al-watch-bottom-navigation a div {
    display: flex;
    flex-direction: column;
}

.al-watch-bottom-navigation a small {
    color: #737a84;

    font-size: 7px;
}

.al-watch-bottom-navigation a strong {
    margin-top: 1px;

    font-size: 9px;
}

.al-watch-bottom-navigation .is-next {
    justify-content: flex-end;

    margin-left: auto;

    text-align: right;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.al-watch-sidebar {
    position: sticky;

    top: 72px;

    overflow: hidden;

    border: 1px solid var(--al-watch-border);
    border-radius: 8px;

    background: var(--al-watch-panel);
}

.al-watch-anime-card {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px;

    border-bottom: 1px solid var(--al-watch-border);
}

.al-watch-anime-poster {
    flex: 0 0 42px;

    width: 42px;
    height: 58px;

    overflow: hidden;

    border-radius: 4px;
}

.al-watch-anime-poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.al-watch-anime-card > div {
    min-width: 0;
}

.al-watch-anime-card > div > strong {
    display: block;

    overflow: hidden;

    color: #fff;

    font-size: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-watch-anime-card > div > span {
    display: block;

    margin-top: 4px;

    color: #787f89;

    font-size: 8px;
}


/* Heading */

.al-watch-sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 11px 6px;
}

.al-watch-sidebar-heading span {
    display: block;

    color: var(--al-watch-orange);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.al-watch-sidebar-heading h3 {
    margin: 2px 0 0;

    font-size: 11px;
}

.al-watch-sidebar-heading > strong {
    display: grid;
    place-items: center;

    min-width: 25px;
    height: 21px;

    border-radius: 4px;

    background: rgba(255,138,50,.1);
    color: var(--al-watch-orange);

    font-size: 8px;
}


/* Search */

.al-watch-sidebar-search {
    position: relative;

    margin: 3px 9px 6px;
}

.al-watch-sidebar-search span {
    position: absolute;

    left: 9px;
    top: 50%;

    transform: translateY(-50%);

    color: #747b84;

    pointer-events: none;
}

.al-watch-sidebar-search input,
.al-watch-episode-filter select {
    width: 100%;
    height: 33px;

    border: 1px solid var(--al-watch-border);
    border-radius: 5px;

    outline: none;

    background: #0f1318;
    color: #dfe1e4;

    font-family: inherit;
    font-size: 8px;
}

.al-watch-sidebar-search input {
    padding: 0 9px 0 28px;
}

.al-watch-sidebar-search input:focus,
.al-watch-episode-filter select:focus {
    border-color: rgba(255,138,50,.4);
}

.al-watch-episode-filter {
    margin: 0 9px 8px;
}

.al-watch-episode-filter select {
    padding: 0 8px;

    cursor: pointer;
}


/* ==========================================================
   EPISODES
   ========================================================== */

.al-watch-episodes {
    max-height: 535px;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 0 6px 7px;
}

.al-watch-episodes::-webkit-scrollbar {
    width: 4px;
}

.al-watch-episodes::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background: #323840;
}

.al-watch-episode {
    display: grid;

    grid-template-columns:
        38px minmax(0,1fr) auto;

    grid-template-areas:
        "number info langs"
        "number info types";

    align-items: center;

    gap: 2px 7px;

    min-height: 51px;

    margin-bottom: 4px;

    padding: 6px;

    border: 1px solid transparent;
    border-radius: 6px;

    background: #171c22;
    color: inherit;

    text-decoration: none;

    transition: .18s ease;
}

.al-watch-episode:hover {
    border-color: rgba(255,138,50,.2);

    background: #1b2027;
}

.al-watch-episode.is-active {
    border-color: rgba(255,138,50,.45);

    background: rgba(255,138,50,.08);
}

.al-watch-episode[hidden] {
    display: none !important;
}

.al-watch-episode-number {
    grid-area: number;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 5px;

    background: #242930;
}

.al-watch-episode-number small {
    color: #7c838d;

    font-size: 6px;
}

.al-watch-episode-number strong {
    color: #eee;

    font-size: 10px;
}

.al-watch-episode.is-active
.al-watch-episode-number {
    background: var(--al-watch-orange);
}

.al-watch-episode.is-active
.al-watch-episode-number small,
.al-watch-episode.is-active
.al-watch-episode-number strong {
    color: #190e05;
}

.al-watch-episode-info {
    grid-area: info;

    min-width: 0;
}

.al-watch-episode-info > strong {
    display: block;

    overflow: hidden;

    color: #d9dce0;

    font-size: 8px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-watch-episode-info > small {
    display: block;

    margin-top: 3px;

    color: #727983;

    font-size: 6px;
}

.al-watch-episode.is-active
.al-watch-episode-info > small {
    color: var(--al-watch-orange);
}

.al-watch-episode-langs {
    grid-area: langs;

    display: flex;
    justify-content: flex-end;

    gap: 2px;
}

.al-watch-episode-types {
    grid-area: types;

    display: flex;
    justify-content: flex-end;

    gap: 2px;
}

.al-watch-mini-lang,
.al-watch-episode-types small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 15px;

    padding: 0 3px;

    border-radius: 3px;

    background: #2a2f36;
    color: #ddd;

    font-size: 6px;
    font-weight: 900;
}

.al-watch-episode-types .al-sub {
    background: #b9e38d;
    color: #102005;
}

.al-watch-episode-types .al-dub {
    background: var(--al-watch-orange);
    color: #190e05;
}

.al-watch-episode-types .al-raw {
    background: #343a42;
}


/* ==========================================================
   LANGUAGE COLORS
   ========================================================== */

.al-watch-page .al-lang-hindi {
    background: #ffad43;
    color: #191006;
}

.al-watch-page .al-lang-tamil {
    background: #ea8c9b;
    color: #1b090c;
}

.al-watch-page .al-lang-telugu {
    background: #70b8eb;
    color: #061521;
}

.al-watch-page .al-lang-english {
    background: #f39837;
    color: #181006;
}

.al-watch-page .al-lang-malayalam {
    background: #aa93e5;
    color: #110d1b;
}

.al-watch-page .al-lang-kannada {
    background: #78c5a4;
    color: #07160f;
}

.al-watch-page .al-lang-bengali {
    background: #e3c165;
    color: #171306;
}

.al-watch-page .al-lang-marathi {
    background: #da9075;
    color: #190d08;
}

.al-watch-page .al-lang-japanese {
    background: #2c3138;
    color: #eee;
}


/* ==========================================================
   FOCUS MODE
   ========================================================== */

body.al-player-focus-active {
    overflow: hidden;
}

.al-watch-page.is-focus-mode {
    position: fixed;

    inset: 0;

    z-index: 999999;

    overflow-y: auto;

    padding: 15px;

    background: #050608;
}

.al-watch-page.is-focus-mode
.al-watch-titlebar,
.al-watch-page.is-focus-mode
.al-watch-sidebar,
.al-watch-page.is-focus-mode
.al-watch-language-panel,
.al-watch-page.is-focus-mode
.al-watch-server-panel,
.al-watch-page.is-focus-mode
.al-watch-bottom-navigation,
.al-watch-page.is-focus-mode
.al-watching-box {
    display: none;
}

.al-watch-page.is-focus-mode
.al-watch-layout {
    display: block;

    max-width: 1400px;

    margin: 0 auto;
}

.al-watch-page.is-focus-mode
.al-player-toolbar {
    border-radius: 8px 8px 0 0;
}


/* ==========================================================
   REPORT MODAL
   ========================================================== */

.al-report-modal[hidden] {
    display: none !important;
}

.al-report-modal {
    position: fixed;

    inset: 0;

    z-index: 1000000;

    display: grid;
    place-items: center;

    padding: 15px;
}

.al-report-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.75);

    backdrop-filter: blur(4px);
}

.al-report-dialog {
    position: relative;
    z-index: 2;

    width: min(400px,100%);

    padding: 24px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;

    background: #151a20;

    box-shadow: 0 25px 70px rgba(0,0,0,.55);

    text-align: center;
}

.al-report-close {
    position: absolute;

    right: 10px;
    top: 8px;

    border: 0;

    background: transparent;
    color: #8d949e;

    font-size: 22px;

    cursor: pointer;
}

.al-report-icon {
    display: grid;
    place-items: center;

    width: 45px;
    height: 45px;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: rgba(255,138,50,.11);
    color: var(--al-watch-orange);
}

.al-report-dialog h3 {
    margin: 0;

    font-size: 15px;
}

.al-report-dialog p {
    color: #828993;

    font-size: 9px;
}

.al-report-options {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 5px;

    margin: 14px 0;
}

.al-report-options button {
    min-height: 36px;

    border: 1px solid var(--al-watch-border);
    border-radius: 5px;

    background: #1b2027;
    color: #b7bcc4;

    font-family: inherit;
    font-size: 8px;

    cursor: pointer;
}

.al-report-options button:hover {
    border-color: rgba(255,138,50,.4);

    color: var(--al-watch-orange);
}

.al-report-dialog > small {
    color: #666d76;

    font-size: 7px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .al-watch-layout {
        grid-template-columns:
            minmax(0,1fr)
            285px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .al-watch-page {
        padding-top: 16px;
    }

    .al-watch-titlebar {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .al-watch-title-left h1 {
        font-size: 20px;
    }

    .al-watch-layout {
        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .al-watch-main,
    .al-watch-sidebar {
        width: 100%;
    }

    .al-watch-sidebar {
        position: static;
    }


    /* Toolbar horizontally scrollable */

    .al-player-toolbar {
        display: flex;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .al-player-toolbar::-webkit-scrollbar {
        display: none;
    }

    .al-player-tool {
        flex: 0 0 82px;

        height: 43px;
    }

    .al-player-tool strong {
        font-size: 8px;
    }


    .al-watching-box {
        padding: 13px;
    }

    .al-watch-panel-head {
        padding: 10px;
    }

    .al-watch-panel-head > small {
        display: none;
    }

    .al-watch-language-tabs {
        padding: 8px;
    }

    .al-watch-language-button {
        min-width: 91px;
        height: 36px;
    }

    .al-watch-server-groups {
        padding: 8px;
    }

    .al-watch-episodes {
        max-height: 460px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .al-watch-title-left h1 {
        font-size: 18px;
    }

    .al-watch-title-langs {
        width: 100%;
    }

    .al-watch-language-name {
        font-size: 8px;
    }

    .al-watch-bottom-navigation a {
        min-width: 115px;
    }

    .al-watch-episode {
        grid-template-columns:
            37px minmax(0,1fr) auto;

        min-height: 55px;
    }

    .al-watch-episode-langs,
    .al-watch-episode-types {
        display: flex !important;
    }

    .al-report-options {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   ANIMELOK WATCH — FINAL UI
   ========================================================== */

.al-watch-page {
    --al-orange: #ff8a32;
    --al-orange-soft: #ffad66;
    --al-bg: #090d11;
    --al-panel: #11161c;
    --al-panel2: #171c22;
    --al-border: rgba(255,255,255,.075);
    --al-muted: #7e8792);

    min-height:100vh;
    padding:25px 0 60px;
    background:#090d11;
    color:#f5f5f5;
}

.al-watch-container {
    width:min(1440px,calc(100% - 32px));
    margin:0 auto;
}


/* HEADER */

.al-watch-heading {
    margin-bottom:15px;
}

.al-watch-back {
    display:inline-flex;
    margin-bottom:7px;
    color:#8b939d;
    font-size:11px;
    font-weight:600;
    text-decoration:none;
}

.al-watch-back:hover {
    color:var(--al-orange);
}

.al-watch-heading h1 {
    margin:0;
    color:#fff;
    font-size:25px;
    line-height:1.2;
    font-weight:800;
}

.al-watch-current-title {
    margin-top:6px;
    color:var(--al-orange);
    font-size:11px;
    font-weight:700;
}

.al-watch-current-title span {
    color:#858d97;
    font-weight:500;
}


/* LAYOUT */

.al-watch-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:15px;
    align-items:start;
}

.al-watch-main {
    min-width:0;
}


/* ==========================================================
   CONTROLS
   ========================================================== */

.al-player-controls {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    overflow:hidden;

    border:1px solid var(--al-border);
    border-bottom:0;
    border-radius:9px 9px 0 0;

    background:#171c22;
}

.al-control {
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    height:47px;
    padding:0 8px;

    border:0;
    border-right:1px solid rgba(255,255,255,.045);

    background:transparent;
    color:#858c95;

    font-family:inherit;
    font-size:10px;
    font-weight:600;

    text-decoration:none;
    cursor:pointer;

    transition:
        background .18s ease,
        color .18s ease;
}

.al-control:last-child {
    border-right:0;
}

.al-control:hover {
    background:rgba(255,255,255,.025);
    color:#fff;
}

.al-control-icon {
    color:#7c838c;
    font-size:13px;
}

.al-control.is-on {
    color:#fff;
}

.al-control.is-on .al-control-icon {
    color:var(--al-orange);
}

.al-control.is-on::after {
    content:"";

    position:absolute;
    left:50%;
    bottom:0;

    width:22px;
    height:2px;

    transform:translateX(-50%);

    border-radius:3px 3px 0 0;

    background:var(--al-orange);
}

.al-control.is-disabled {
    opacity:.25;
    cursor:not-allowed;
}


/* ==========================================================
   PLAYER
   ========================================================== */

.al-player-shell {
    position:relative;

    width:100%;
    aspect-ratio:16/9;

    overflow:hidden;

    border:1px solid var(--al-border);
    border-radius:0 0 9px 9px;

    background:
        radial-gradient(
            circle at 50% 45%,
            #18202a 0,
            #080b0f 60%,
            #030405 100%
        );

    box-shadow:0 20px 55px rgba(0,0,0,.32);
}

.al-player-shell iframe {
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    border:0;
    background:#000;
}

.al-player-shell:fullscreen {
    width:100vw;
    height:100vh;

    aspect-ratio:auto;

    border:0;
    border-radius:0;
}

.al-player-empty {
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    padding:25px;

    text-align:center;
}

.al-player-empty-icon {
    display:grid;
    place-items:center;

    width:58px;
    height:58px;

    margin-bottom:13px;

    border-radius:50%;

    background:rgba(255,138,50,.1);
    color:var(--al-orange);

    font-size:20px;
}

.al-player-empty strong {
    font-size:15px;
}

.al-player-empty span {
    margin-top:6px;
    color:#78818b;
    font-size:10px;
}


/* ==========================================================
   NOW WATCHING
   ========================================================== */

.al-now-watching {
    position:relative;

    display:flex;
    gap:12px;

    padding:17px 18px;

    border:1px solid var(--al-border);
    border-top:0;

    background:#10151a;
}

.al-now-line {
    flex:0 0 2px;

    width:2px;

    border-radius:10px;

    background:var(--al-orange);
}

.al-now-watching p {
    margin:0;

    color:#9ba2ab;

    font-size:11px;
}

.al-now-watching p strong {
    margin-right:4px;
    color:#fff;
}

.al-now-watching p span {
    color:#7f8791;
}

.al-now-watching small {
    display:block;

    margin-top:8px;

    color:#707984;

    font-size:9px;
    line-height:1.55;
}


/* ==========================================================
   LANGUAGE / SERVER BOX
   ========================================================== */

.al-watch-box {
    margin-top:13px;

    overflow:hidden;

    border:1px solid var(--al-border);
    border-radius:9px;

    background:var(--al-panel);
}

.al-watch-box-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;

    min-height:55px;

    padding:10px 13px;

    border-bottom:1px solid var(--al-border);
}

.al-watch-box-head small {
    display:block;

    margin-bottom:3px;

    color:var(--al-orange);

    font-size:7px;
    font-weight:900;

    letter-spacing:1.4px;
}

.al-watch-box-head h2 {
    margin:0;

    color:#fff;

    font-size:12px;
    font-weight:800;
}

.al-watch-box-head > span {
    color:#68717c;
    font-size:8px;
}


/* LANGUAGE */

.al-language-list {
    display:flex;
    gap:7px;

    overflow-x:auto;

    padding:10px;

    scrollbar-width:thin;
}

.al-language-btn {
    display:flex;
    align-items:center;
    gap:8px;

    flex:0 0 auto;

    min-width:102px;
    height:40px;

    padding:0 10px;

    border:1px solid rgba(255,255,255,.075);
    border-radius:6px;

    background:#171c22;
    color:#bac0c8;

    font-family:inherit;
    font-size:9px;
    font-weight:700;

    cursor:pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.al-language-btn:hover {
    transform:translateY(-1px);

    border-color:rgba(255,138,50,.32);

    color:#fff;
}

.al-language-btn.is-active {
    border-color:var(--al-orange);

    background:
        linear-gradient(
            135deg,
            rgba(255,138,50,.14),
            rgba(255,138,50,.04)
        );

    color:#fff;

    box-shadow:
        inset 0 0 0 1px rgba(255,138,50,.08);
}

.al-language-code {
    display:grid;
    place-items:center;

    min-width:29px;
    height:22px;

    padding:0 5px;

    border-radius:4px;

    background:var(--al-orange);
    color:#17100a;

    font-size:7px;
    font-weight:900;
}


/* ==========================================================
   SERVERS
   ========================================================== */

.al-server-content {
    padding:10px;
}

.al-server-language {
    display:none !important;
}

.al-server-language.is-active {
    display:block !important;
}

.al-server-row + .al-server-row {
    margin-top:13px;
}

.al-server-label {
    display:flex;
    align-items:center;
    gap:7px;

    margin-bottom:7px;
}

.al-server-label strong {
    color:#89919b;
    font-size:9px;
}

.al-stream-type {
    display:grid;
    place-items:center;

    min-width:32px;
    height:20px;

    padding:0 5px;

    border-radius:4px;

    font-size:7px;
    font-weight:900;
}

.al-stream-sub {
    background:#b8e58d;
    color:#102006;
}

.al-stream-dub {
    background:var(--al-orange);
    color:#1b0e05;
}

.al-stream-raw {
    background:#343a42;
    color:#e4e4e4;
}

.al-server-list {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.al-server-btn {
    display:inline-flex;
    align-items:center;
    gap:6px;

    min-height:32px;

    padding:0 11px;

    border:1px solid rgba(255,255,255,.075);
    border-radius:5px;

    background:#191e24;
    color:#aeb5be;

    font-family:inherit;
    font-size:9px;
    font-weight:700;

    cursor:pointer;

    transition:.18s ease;
}

.al-server-btn > span {
    color:#737c86;
    font-size:8px;
}

.al-server-btn:hover {
    border-color:rgba(255,138,50,.35);

    color:#fff;

    transform:translateY(-1px);
}

.al-server-btn.is-active {
    border-color:var(--al-orange);

    background:rgba(255,138,50,.11);

    color:var(--al-orange);
}

.al-server-btn.is-active > span {
    color:var(--al-orange);
}


/* ==========================================================
   PREV NEXT
   ========================================================== */

.al-watch-navigation {
    display:flex;
    justify-content:space-between;
    gap:10px;

    margin-top:13px;
}

.al-watch-navigation a {
    display:flex;
    align-items:center;
    gap:10px;

    min-width:135px;

    padding:10px 12px;

    border:1px solid var(--al-border);
    border-radius:7px;

    background:#13181e;
    color:#fff;

    text-decoration:none;

    transition:.18s ease;
}

.al-watch-navigation a:hover {
    border-color:rgba(255,138,50,.3);

    background:#171c22;
}

.al-watch-navigation a > span {
    color:var(--al-orange);
    font-size:22px;
}

.al-watch-navigation a div {
    display:flex;
    flex-direction:column;
}

.al-watch-navigation small {
    color:#6d7680;
    font-size:6px;
    letter-spacing:.7px;
}

.al-watch-navigation strong {
    margin-top:2px;
    font-size:9px;
}

.al-watch-navigation .al-nav-next {
    justify-content:flex-end;
    margin-left:auto;
    text-align:right;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.al-watch-sidebar {
    position:sticky;
    top:75px;

    overflow:hidden;

    border:1px solid var(--al-border);
    border-radius:9px;

    background:#11161c;

    box-shadow:0 15px 45px rgba(0,0,0,.18);
}

.al-watch-anime {
    display:flex;
    align-items:center;
    gap:10px;

    padding:10px;

    border-bottom:1px solid var(--al-border);
}

.al-watch-anime img {
    flex:0 0 44px;

    width:44px;
    height:61px;

    border-radius:5px;

    object-fit:cover;
}

.al-watch-anime > div {
    min-width:0;
}

.al-watch-anime strong {
    display:block;

    overflow:hidden;

    color:#fff;

    font-size:10px;

    white-space:nowrap;
    text-overflow:ellipsis;
}

.al-watch-anime span {
    display:block;

    margin-top:4px;

    color:#737c86;
    font-size:8px;
}


/* EP HEAD */

.al-episode-head {
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:11px 10px 7px;
}

.al-episode-head small {
    color:var(--al-orange);

    font-size:6px;
    font-weight:900;

    letter-spacing:1.2px;
}

.al-episode-head h3 {
    margin:2px 0 0;
    font-size:11px;
}

.al-episode-head > span {
    display:grid;
    place-items:center;

    min-width:27px;
    height:22px;

    border-radius:4px;

    background:rgba(255,138,50,.1);
    color:var(--al-orange);

    font-size:8px;
    font-weight:800;
}


/* TOOLS */

.al-episode-tools {
    display:grid;
    grid-template-columns:1fr 115px;
    gap:5px;

    padding:0 8px 8px;
}

.al-episode-tools input,
.al-episode-tools select {
    min-width:0;
    height:33px;

    padding:0 9px;

    border:1px solid var(--al-border);
    border-radius:5px;

    outline:0;

    background:#0c1116;
    color:#cdd1d6;

    font-family:inherit;
    font-size:8px;
}

.al-episode-tools input:focus,
.al-episode-tools select:focus {
    border-color:rgba(255,138,50,.45);
}


/* EPISODE LIST */

.al-episode-list {
    max-height:565px;

    overflow-y:auto;

    padding:0 6px 7px;
}

.al-episode-list::-webkit-scrollbar {
    width:4px;
}

.al-episode-list::-webkit-scrollbar-thumb {
    border-radius:10px;
    background:#343a42;
}

.al-episode-item {
    display:grid;

    grid-template-columns:39px minmax(0,1fr) auto;

    align-items:center;

    gap:8px;

    min-height:53px;

    margin-bottom:4px;

    padding:6px;

    border:1px solid transparent;
    border-radius:6px;

    background:#171c22;
    color:#fff;

    text-decoration:none;

    transition:.18s ease;
}

.al-episode-item:hover {
    border-color:rgba(255,138,50,.2);

    background:#1a2027;
}

.al-episode-item.is-active {
    border-color:rgba(255,138,50,.48);

    background:
        linear-gradient(
            90deg,
            rgba(255,138,50,.12),
            rgba(255,138,50,.035)
        );
}

.al-episode-item[hidden] {
    display:none !important;
}

.al-ep-number {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    width:39px;
    height:39px;

    border-radius:5px;

    background:#252b32;
}

.al-ep-number small {
    color:#777f89;
    font-size:6px;
}

.al-ep-number strong {
    color:#f0f0f0;
    font-size:10px;
}

.al-episode-item.is-active .al-ep-number {
    background:var(--al-orange);
}

.al-episode-item.is-active .al-ep-number small,
.al-episode-item.is-active .al-ep-number strong {
    color:#1c1007;
}

.al-ep-info {
    min-width:0;
}

.al-ep-info > strong {
    display:block;

    overflow:hidden;

    color:#d9dde1;

    font-size:8px;

    white-space:nowrap;
    text-overflow:ellipsis;
}

.al-ep-info > small {
    display:block;

    margin-top:3px;

    color:#707983;
    font-size:6px;
}

.al-episode-item.is-active .al-ep-info > small {
    color:var(--al-orange);
}

.al-ep-languages {
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:2px;

    max-width:90px;
}

.al-ep-languages span {
    display:grid;
    place-items:center;

    min-width:22px;
    height:16px;

    padding:0 3px;

    border-radius:3px;

    background:#2b3138;
    color:#e0e0e0;

    font-size:6px;
    font-weight:900;
}

.al-no-episodes {
    padding:20px;
    color:#747d87;
    font-size:9px;
    text-align:center;
}


/* ==========================================================
   FOCUS
   ========================================================== */

body.al-focus-active {
    overflow:hidden;
}

.al-watch-page.is-focus {
    position:fixed;
    inset:0;
    z-index:999999;

    overflow-y:auto;

    padding:14px;

    background:#030405;
}

.al-watch-page.is-focus .al-watch-heading,
.al-watch-page.is-focus .al-watch-sidebar,
.al-watch-page.is-focus .al-watch-box,
.al-watch-page.is-focus .al-watch-navigation,
.al-watch-page.is-focus .al-now-watching {
    display:none;
}

.al-watch-page.is-focus .al-watch-container {
    width:min(1500px,100%);
}

.al-watch-page.is-focus .al-watch-layout {
    display:block;
}


/* ==========================================================
   REPORT
   ========================================================== */

.al-report-modal[hidden] {
    display:none !important;
}

.al-report-modal {
    position:fixed;
    inset:0;
    z-index:1000000;

    display:grid;
    place-items:center;

    padding:15px;
}

.al-report-overlay {
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.78);

    backdrop-filter:blur(4px);
}

.al-report-card {
    position:relative;
    z-index:2;

    width:min(360px,100%);

    padding:25px;

    border:1px solid rgba(255,255,255,.09);
    border-radius:10px;

    background:#151a20;
    color:#fff;

    text-align:center;

    box-shadow:0 30px 80px rgba(0,0,0,.5);
}

.al-report-close {
    position:absolute;
    top:8px;
    right:10px;

    border:0;
    background:none;
    color:#858d97;

    font-size:22px;
    cursor:pointer;
}

.al-report-symbol {
    display:grid;
    place-items:center;

    width:46px;
    height:46px;

    margin:0 auto 10px;

    border-radius:50%;

    background:rgba(255,138,50,.1);
    color:var(--al-orange);

    font-size:17px;
}

.al-report-card h3 {
    margin:0;
    font-size:15px;
}

.al-report-card p {
    margin:8px 0 15px;

    color:#808893;

    font-size:9px;
    line-height:1.6;
}

.al-report-done {
    height:34px;
    padding:0 18px;

    border:0;
    border-radius:5px;

    background:var(--al-orange);
    color:#1d1006;

    font-family:inherit;
    font-size:9px;
    font-weight:800;

    cursor:pointer;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:900px) {

    .al-watch-layout {
        display:flex;
        flex-direction:column;
    }

    .al-watch-main,
    .al-watch-sidebar {
        width:100%;
    }

    .al-watch-sidebar {
        position:static;
    }

    .al-episode-list {
        max-height:500px;
    }
}


@media (max-width:650px) {

    .al-watch-page {
        padding:14px 0 40px;
    }

    .al-watch-container {
        width:min(100% - 18px,1440px);
    }

    .al-watch-heading h1 {
        font-size:20px;
    }


    /* controls remain one row and scroll */

    .al-player-controls {
        display:flex;

        overflow-x:auto;

        scrollbar-width:none;
    }

    .al-player-controls::-webkit-scrollbar {
        display:none;
    }

    .al-control {
        flex:0 0 82px;

        height:43px;

        font-size:8px;
    }

    .al-control-icon {
        font-size:11px;
    }


    .al-now-watching {
        padding:13px 12px;
    }

    .al-now-watching p {
        font-size:10px;
    }


    .al-watch-box-head {
        min-height:50px;
        padding:9px 10px;
    }

    .al-watch-box-head > span {
        display:none;
    }


    /* language scroll */

    .al-language-list {
        padding:8px;
    }

    .al-language-btn {
        min-width:94px;
        height:37px;
    }


    .al-server-content {
        padding:8px;
    }


    .al-watch-navigation a {
        min-width:115px;
        padding:8px 10px;
    }


    .al-episode-tools {
        grid-template-columns:1fr 110px;
    }


    /* DO NOT HIDE LANGUAGE BADGES ON MOBILE */

    .al-ep-languages {
        display:flex !important;
    }
}


@media (max-width:420px) {

    .al-watch-container {
        width:calc(100% - 12px);
    }

    .al-player-shell {
        border-radius:0 0 6px 6px;
    }

    .al-watch-heading h1 {
        font-size:18px;
    }

    .al-control {
        flex-basis:75px;
    }

    .al-episode-tools {
        grid-template-columns:1fr;
    }

    .al-episode-item {
        grid-template-columns:38px minmax(0,1fr) auto;
    }

    .al-ep-languages {
        max-width:72px;
    }
}
/* ==========================================================
   HEADER FUNCTIONAL PANELS
   ========================================================== */

.al-header-search[hidden],
.al-header-language-menu[hidden] {
    display: none !important;
}


/* SEARCH */

.al-header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9998;

    padding: 14px 20px;

    background: #11161c;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.08);

    box-shadow: 0 14px 35px rgba(0,0,0,.35);
}

.al-header-search form {
    width: min(760px, 100%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 8px;
}

.al-header-search input[type="search"] {
    min-width: 0;
    flex: 1;

    height: 46px;

    padding: 0 16px;

    color: #fff;
    background: #1a2028;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;

    outline: none;
}

.al-header-search input[type="search"]:focus {
    border-color: #ff9d32;
}

.al-header-search button {
    height: 46px;

    padding: 0 22px;

    border: 0;
    border-radius: 8px;

    background: #ff9d32;
    color: #111;

    font-weight: 800;
    cursor: pointer;
}


/* LANGUAGE DROPDOWN */

.al-header-language-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 180px;

    z-index: 9999;

    width: 310px;

    padding: 10px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 5px;

    background: #151a21;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;

    box-shadow: 0 16px 45px rgba(0,0,0,.45);
}

.al-header-language-menu a {
    display: flex;
    align-items: center;

    min-height: 38px;

    padding: 8px 11px;

    border-radius: 6px;

    color: #d7dce3;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
        background .18s ease,
        color .18s ease;
}

.al-header-language-menu a:hover {
    color: #fff;
    background: rgba(255,157,50,.14);
}


/* DRAWER */

.al-main-drawer {
    position: fixed;
    inset: 0;

    z-index: 10000;

    visibility: hidden;
    pointer-events: none;
}

.al-main-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.al-drawer-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.72);

    opacity: 0;
    transition: opacity .25s ease;
}

.al-main-drawer.is-open
.al-drawer-overlay {
    opacity: 1;
}

.al-drawer-panel {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: min(330px, 88vw);

    padding: 0;

    overflow-y: auto;

    background: #10151b;

    border-right: 1px solid rgba(255,255,255,.08);

    transform: translateX(-100%);
    transition: transform .25s ease;

    box-shadow: 15px 0 50px rgba(0,0,0,.4);
}

.al-main-drawer.is-open
.al-drawer-panel {
    transform: translateX(0);
}

.al-drawer-head {
    min-height: 70px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.al-drawer-head strong {
    color: #ff9d32;
    font-size: 20px;
    font-weight: 900;
}

.al-drawer-head button {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: #20262e;
    color: #fff;

    font-size: 22px;
    cursor: pointer;
}

.al-drawer-nav {
    padding: 12px;
}

.al-drawer-nav a {
    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 0 14px;
    margin-bottom: 3px;

    border-radius: 7px;

    color: #d7dce3;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.al-drawer-nav a:hover {
    color: #fff;
    background: rgba(255,157,50,.12);
}


/* Prevent body scroll while drawer open */

body.al-drawer-open {
    overflow: hidden;
}


/* ACTIVE HEADER BUTTON */

.al-header-circle.is-active {
    color: #ff9d32;
    border-color: rgba(255,157,50,.5);
}


/* MOBILE */

@media (max-width: 767px) {

    .al-header-search {
        padding: 10px;
    }

    .al-header-search form {
        gap: 6px;
    }

    .al-header-search input[type="search"] {
        height: 42px;
    }

    .al-header-search button {
        height: 42px;
        padding: 0 14px;
    }

    .al-header-language-menu {
        position: fixed;

        top: 70px;
        left: 10px;
        right: 10px;

        width: auto;

        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}
/* ==========================================================
   ANIMELOK HEADER SEARCH
   ========================================================== */

.al-site-header {
    position: relative;
    z-index: 9990;
}

.al-header-search {
    position: absolute;
    z-index: 99999;

    top: 100%;
    left: 0;

    width: 100%;

    padding: 0 18px;

    background: #0d1116;

    border-top:
        1px solid rgba(255,255,255,.05);

    border-bottom:
        1px solid rgba(255,255,255,.08);

    box-shadow:
        0 18px 45px rgba(0,0,0,.4);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.al-header-search.is-open {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

.al-header-search-inner {
    width: min(900px,100%);

    margin: 0 auto;

    padding: 14px 0;
}

.al-header-search-form {
    display: flex;
    align-items: center;

    gap: 8px;
}

.al-search-field {
    position: relative;

    display: flex;
    align-items: center;

    flex: 1;

    min-width: 0;
}

.al-search-field > svg {
    position: absolute;

    left: 15px;

    width: 17px;
    height: 17px;

    fill: none;

    stroke: #7e8791;
    stroke-width: 1.8;

    pointer-events: none;
}

.al-search-field input {
    width: 100%;
    height: 46px;

    padding:
        0 44px
        0 44px;

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 8px;

    outline: none;

    background: #171c22;
    color: #fff;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color .18s ease,
        background .18s ease;
}

.al-search-field input::placeholder {
    color: #727b86;
}

.al-search-field input:focus {
    border-color:
        rgba(255,145,45,.7);

    background: #1a2027;
}

.al-search-clear {
    position: absolute;

    right: 10px;

    width: 28px;
    height: 28px;

    border: 0;

    background: transparent;
    color: #858e98;

    font-size: 20px;

    cursor: pointer;
}

.al-search-submit {
    height: 46px;

    padding: 0 21px;

    border: 0;
    border-radius: 7px;

    background: #ff922e;
    color: #17100a;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.al-search-submit:hover {
    background: #ffa348;
}

.al-search-close {
    width: 42px;
    height: 42px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 50%;

    background: #171c22;
    color: #a4abb4;

    font-size: 21px;

    cursor: pointer;
}

.al-search-close:hover {
    color: #fff;
}


/* MOBILE */

@media (max-width: 600px) {

    .al-header-search {
        padding: 0 9px;
    }

    .al-header-search-inner {
        padding: 9px 0;
    }

    .al-header-search-form {
        gap: 5px;
    }

    .al-search-field input {
        height: 42px;
        font-size: 12px;
    }

    .al-search-submit {
        height: 42px;

        padding: 0 13px;

        font-size: 10px;
    }

    .al-search-close {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;
    }
}
/* ==========================================================
   LANGUAGE LIBRARY
   ========================================================== */

.al-language-library-page {
    min-height: 70vh;
    padding: 52px 0 80px;
}

.al-language-library-header {
    max-width: 720px;
    margin-bottom: 34px;
}

.al-language-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;

    color: #ff9635;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.al-language-library-header h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.al-language-library-header h1 em {
    color: #ff9635;
    font-style: normal;
}

.al-language-library-header p {
    max-width: 560px;

    margin: 16px 0 0;

    color: #89919c;

    font-size: 13px;
    line-height: 1.7;
}


/* GRID */

.al-language-library-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}


/* CARD */

.al-language-library-card {
    position: relative;

    display: block;

    min-width: 0;
    height: 205px;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 10px;

    background: #14191f;

    color: #fff;
    text-decoration: none;

    isolation: isolate;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.al-language-library-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(255,150,53,.5);

    box-shadow:
        0 16px 36px
        rgba(0,0,0,.28);
}


/* IMAGE */

.al-language-card-image {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.al-language-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform: scale(1.01);

    transition:
        transform .4s ease,
        filter .4s ease;
}

.al-language-library-card:hover
.al-language-card-image img {
    transform: scale(1.07);
}

.al-language-image-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(8,10,13,.05) 5%,
            rgba(8,10,13,.22) 38%,
            rgba(8,10,13,.94) 100%
        );
}


/* FALLBACK */

.al-language-image-fallback {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255,150,53,.20),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #1b2129,
            #0e1217
        );
}

.al-language-image-fallback span {
    color: rgba(255,255,255,.07);

    font-size: 62px;
    font-weight: 900;
    letter-spacing: -4px;
}


/* LANGUAGE CODE */

.al-language-code {
    position: absolute;

    z-index: 3;

    top: 12px;
    left: 12px;

    min-width: 31px;
    height: 25px;

    padding: 0 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #ff9635;
    color: #14100b;

    font-size: 10px;
    font-weight: 900;

    box-shadow:
        0 4px 14px
        rgba(0,0,0,.25);
}


/* NATIVE TEXT */

.al-language-native {
    position: absolute;

    z-index: 3;

    top: 12px;
    right: 12px;

    max-width: calc(100% - 70px);

    color: rgba(255,255,255,.86);

    font-size: 11px;
    font-weight: 700;

    text-align: right;
}


/* BOTTOM */

.al-language-card-bottom {
    position: absolute;

    z-index: 4;

    left: 14px;
    right: 14px;
    bottom: 13px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 10px;
}

.al-language-card-text {
    min-width: 0;
}

.al-language-card-bottom strong {
    display: block;

    overflow: hidden;

    color: #fff;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-language-card-bottom small {
    display: block;

    margin-top: 3px;

    color: #a3aab2;

    font-size: 10px;
    font-weight: 600;
}

.al-language-arrow {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius: 50%;

    background:
        rgba(12,15,19,.65);

    color: #fff;

    font-size: 21px;
    line-height: 1;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.al-language-library-card:hover
.al-language-arrow {
    background: #ff9635;
    color: #15100a;

    border-color: #ff9635;
}


/* ADMIN NOTICE */

.al-language-admin-notice {
    margin-top: 24px;
    padding: 13px 15px;

    border:
        1px solid rgba(255,150,53,.25);

    border-radius: 7px;

    background:
        rgba(255,150,53,.07);

    color: #aab1ba;

    font-size: 12px;
}

.al-language-admin-notice strong {
    color: #ff9635;
}


/* TABLET */

@media (max-width: 1050px) {

    .al-language-library-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }
}


/* MOBILE */

@media (max-width: 720px) {

    .al-language-library-page {
        padding: 30px 0 55px;
    }

    .al-language-library-header {
        margin-bottom: 23px;
    }

    .al-language-library-header h1 {
        font-size: 31px;
    }

    .al-language-library-header p {
        font-size: 12px;
    }

    .al-language-library-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 9px;
    }

    .al-language-library-card {
        height: 180px;
        border-radius: 8px;
    }

    .al-language-code {
        top: 9px;
        left: 9px;
    }

    .al-language-native {
        top: 10px;
        right: 9px;

        font-size: 9px;
    }

    .al-language-card-bottom {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .al-language-card-bottom strong {
        font-size: 12px;
    }

    .al-language-arrow {
        width: 27px;
        height: 27px;

        flex-basis: 27px;

        font-size: 18px;
    }
}


@media (max-width: 370px) {

    .al-language-library-card {
        height: 165px;
    }
}
/* ==========================================================
   LANGUAGE CARDS — BIG POSTER OVERRIDE
   ========================================================== */

.al-language-library-page {
    padding-top: 55px;
    padding-bottom: 90px;
}

.al-language-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* BIG CARDS */

.al-language-library-card {
    height: 360px;
    border-radius: 14px;
    overflow: hidden;

    background: #12171d;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.al-language-library-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(255,150,53,.55);

    box-shadow:
        0 22px 45px rgba(0,0,0,.38);
}


/* POSTER / IMAGE */

.al-language-card-image {
    position: absolute;
    inset: 0;
}

.al-language-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform .45s ease,
        filter .45s ease;
}

.al-language-library-card:hover
.al-language-card-image img {
    transform: scale(1.055);
}


/* DARK GRADIENT */

.al-language-image-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(5,8,11,.03) 0%,
            rgba(5,8,11,.08) 35%,
            rgba(5,8,11,.48) 65%,
            rgba(5,8,11,.96) 100%
        );
}


/* LANGUAGE CODE */

.al-language-code {
    top: 15px;
    left: 15px;

    min-width: 38px;
    height: 29px;

    padding: 0 10px;

    border-radius: 6px;

    font-size: 11px;
}


/* NATIVE LANGUAGE */

.al-language-native {
    top: 16px;
    right: 15px;

    padding: 5px 8px;

    border-radius: 5px;

    background: rgba(0,0,0,.45);
    backdrop-filter: blur(5px);

    color: #fff;

    font-size: 11px;
}


/* BOTTOM INFORMATION */

.al-language-card-bottom {
    left: 18px;
    right: 18px;
    bottom: 17px;

    align-items: center;
}

.al-language-card-bottom strong {
    font-size: 19px;
    line-height: 1.2;
}

.al-language-card-bottom small {
    margin-top: 6px;

    font-size: 11px;
}


/* ARROW */

.al-language-arrow {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    font-size: 25px;
}


/* FALLBACK IMAGE */

.al-language-image-fallback span {
    font-size: 82px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .al-language-library-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .al-language-library-card {
        height: 340px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .al-language-library-page {
        padding-top: 32px;
        padding-bottom: 60px;
    }

    .al-language-library-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .al-language-library-card {
        height: 255px;
        border-radius: 10px;
    }

    .al-language-code {
        top: 9px;
        left: 9px;

        min-width: 30px;
        height: 24px;

        padding: 0 7px;

        font-size: 9px;
    }

    .al-language-native {
        top: 9px;
        right: 8px;

        max-width: 75px;

        font-size: 8px;
    }

    .al-language-card-bottom {
        left: 11px;
        right: 11px;
        bottom: 11px;
    }

    .al-language-card-bottom strong {
        font-size: 14px;
    }

    .al-language-card-bottom small {
        margin-top: 3px;
        font-size: 9px;
    }

    .al-language-arrow {
        width: 29px;
        height: 29px;

        flex: 0 0 29px;

        font-size: 19px;
    }
}


/* VERY SMALL MOBILE */

@media (max-width: 370px) {

    .al-language-library-card {
        height: 225px;
    }
}
/* ==========================================================
   ANIMELOK
   A-Z + CONTINUE WATCHING + RELEASE SCHEDULE
   ========================================================== */


/* ==========================================================
   SHARED
   ========================================================== */

.al-az-page,
.al-continue-page,
.al-schedule-page {
    min-height: 75vh;
    padding: 52px 0 85px;
}

.al-az-page em,
.al-continue-page em,
.al-schedule-page em {
    color: #ff9635;
    font-style: normal;
}

.al-az-kicker,
.al-continue-kicker,
.al-schedule-kicker {
    display: inline-flex;
    align-items: center;

    margin-bottom: 11px;

    color: #ff9635;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}


/* ==========================================================
   A-Z PAGE
   ========================================================== */

.al-az-header {
    margin-bottom: 28px;
}

.al-az-header h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;

    letter-spacing: -1.8px;
}

.al-az-header p {
    margin: 13px 0 0;

    color: #818a95;

    font-size: 13px;
    line-height: 1.6;
}


/* LETTER NAV */

.al-az-nav {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 27px;
    padding: 10px;

    overflow-x: auto;
    overscroll-behavior-x: contain;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 10px;

    background: #11161c;

    scrollbar-width: thin;
}

.al-az-nav::-webkit-scrollbar {
    height: 4px;
}

.al-az-nav::-webkit-scrollbar-thumb {
    background: #343b44;
    border-radius: 10px;
}

.al-az-nav a {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 6px;

    background: #191f26;
    color: #8d96a1;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.al-az-nav a:first-child {
    width: 50px;
    flex-basis: 50px;
}

.al-az-nav a:hover {
    color: #fff;

    border-color:
        rgba(255,150,53,.4);

    background:
        rgba(255,150,53,.1);

    transform: translateY(-1px);
}

.al-az-nav a.is-active {
    color: #171009;

    border-color: #ff9635;

    background: #ff9635;

    box-shadow:
        0 5px 15px
        rgba(255,150,53,.18);
}


/* RESULT HEADER */

.al-az-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}

.al-az-result-head strong {
    color: #f4f6f8;

    font-size: 16px;
    font-weight: 800;
}

.al-az-result-head span {
    padding: 5px 9px;

    border-radius: 5px;

    background: #191f25;
    color: #7f8994;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .5px;
}


/* A-Z GRID
   Existing anime-card.php remains unchanged.
*/

.al-az-page .al-anime-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 20px 13px;
}


/* PAGINATION */

.al-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 42px;
}

.al-pagination .page-numbers {
    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 6px;

    background: #151b21;
    color: #929ba5;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;

    transition: .18s ease;
}

.al-pagination a.page-numbers:hover {
    color: #fff;

    border-color:
        rgba(255,150,53,.45);
}

.al-pagination .current {
    border-color: #ff9635;

    background: #ff9635;
    color: #171009;
}


/* ==========================================================
   CONTINUE WATCHING
   ========================================================== */

.al-continue-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 30px;
}

.al-continue-header h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;

    letter-spacing: -1.8px;
}

.al-continue-header p {
    margin: 12px 0 0;

    color: #818a95;

    font-size: 13px;
}


/* CLEAR HISTORY */

.al-history-clear {
    min-height: 39px;

    padding: 0 15px;

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 6px;

    background: #171c22;
    color: #9aa2ac;

    font-family: inherit;
    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition: .18s ease;
}

.al-history-clear:hover {
    border-color:
        rgba(255,150,53,.5);

    color: #ff9635;
}


/* HISTORY GRID */

.al-history-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* HISTORY CARD */

.al-history-card {
    position: relative;

    display: block;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 10px;

    background: #12171d;
    color: #fff;

    text-decoration: none;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.al-history-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(255,150,53,.4);

    box-shadow:
        0 17px 35px
        rgba(0,0,0,.3);
}


/* POSTER */

.al-history-poster {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #1b2027;
}

.al-history-poster::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(8,11,14,.45)
        );
}

.al-history-poster img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}

.al-history-card:hover
.al-history-poster img {
    transform: scale(1.045);
}

.al-history-poster-fallback {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 70% 25%,
            rgba(255,150,53,.16),
            transparent 40%
        ),
        #171c22;

    color: rgba(255,255,255,.08);

    font-size: 26px;
    font-weight: 900;
}


/* HISTORY INFORMATION */

.al-history-info {
    padding: 13px 14px 14px;
}

.al-history-info strong {
    display: block;

    overflow: hidden;

    color: #f5f6f7;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-history-info > span {
    display: block;

    margin-top: 4px;

    color: #8b949f;

    font-size: 10px;
    font-weight: 600;
}


/* WATCH PROGRESS */

.al-history-progress {
    position: relative;

    width: 100%;
    height: 4px;

    margin-top: 12px;

    overflow: hidden;

    border-radius: 10px;

    background: #282e35;
}

.al-history-progress i {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    display: block;

    border-radius: inherit;

    background: #ff9635;
}

.al-history-info small {
    display: block;

    margin-top: 7px;

    color: #6f7882;

    font-size: 9px;
    font-weight: 700;
}


/* ==========================================================
   RELEASE SCHEDULE
   ========================================================== */

.al-schedule-header {
    margin-bottom: 32px;
}

.al-schedule-header h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;

    letter-spacing: -1.8px;
}

.al-schedule-header p {
    margin: 13px 0 0;

    color: #818a95;

    font-size: 13px;
    line-height: 1.6;
}


/* SCHEDULE */

.al-schedule {
    display: grid;
    gap: 17px;
}


/* DAY */

.al-schedule-day {
    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 10px;

    background: #11161c;
}


/* DAY HEADER */

.al-schedule-day-head {
    min-height: 72px;

    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px solid rgba(255,255,255,.06);

    background:
        linear-gradient(
            90deg,
            rgba(255,150,53,.07),
            transparent 40%
        );
}

.al-schedule-day-head span {
    display: block;

    margin-bottom: 3px;

    color: #ff9635;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.al-schedule-day-head h2 {
    margin: 0;

    color: #f3f5f7;

    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.al-schedule-day-head small {
    padding: 6px 9px;

    border-radius: 5px;

    background: #1b2128;
    color: #858e98;

    font-size: 9px;
    font-weight: 700;
}


/* RELEASE ITEMS */

.al-schedule-items {
    display: grid;
}

.al-schedule-item {
    min-height: 82px;

    padding: 9px 15px;

    display: grid;

    grid-template-columns:
        48px 82px minmax(0, 1fr) 32px;

    align-items: center;

    gap: 13px;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    color: inherit;
    text-decoration: none;

    transition:
        background .18s ease,
        padding-left .18s ease;
}

.al-schedule-item:last-child {
    border-bottom: 0;
}

.al-schedule-item:hover {
    padding-left: 19px;

    background:
        rgba(255,150,53,.055);
}


/* SCHEDULE POSTER */

.al-schedule-poster {
    width: 48px;
    height: 62px;

    overflow: hidden;

    border-radius: 5px;

    background: #20262d;
}

.al-schedule-poster img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.al-schedule-poster span {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: #ff9635;

    font-size: 10px;
    font-weight: 900;
}


/* TIME */

.al-schedule-item time {
    color: #ff9635;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}


/* ANIME INFO */

.al-schedule-info {
    min-width: 0;
}

.al-schedule-info strong {
    display: block;

    overflow: hidden;

    color: #f1f3f5;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-schedule-info span {
    display: inline-flex;

    margin-top: 5px;
    padding: 3px 6px;

    border-radius: 4px;

    background:
        rgba(255,255,255,.055);

    color: #8b949f;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .3px;
}


/* ARROW */

.al-schedule-arrow {
    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 50%;

    color: #747d87;

    font-size: 19px;

    transition: .18s ease;
}

.al-schedule-item:hover
.al-schedule-arrow {
    border-color: #ff9635;

    background: #ff9635;
    color: #16100a;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.al-az-page .al-empty,
.al-continue-page .al-empty,
.al-schedule-page .al-empty {
    min-height: 230px;

    padding: 35px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border:
        1px dashed rgba(255,255,255,.1);

    border-radius: 10px;

    background: #11161c;

    color: #7f8892;
}

.al-az-page .al-empty strong,
.al-continue-page .al-empty strong,
.al-schedule-page .al-empty strong {
    margin-bottom: 7px;

    color: #e7e9eb;

    font-size: 15px;
    font-weight: 800;
}

.al-az-page .al-empty p,
.al-continue-page .al-empty p,
.al-schedule-page .al-empty p {
    max-width: 430px;

    margin: 0;

    color: #747d87;

    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================
   RESPONSIVE — LAPTOP
   ========================================================== */

@media (max-width: 1200px) {

    .al-az-page .al-anime-grid {
        grid-template-columns:
            repeat(5, minmax(0,1fr));
    }

    .al-history-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }
}


/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 900px) {

    .al-az-page .al-anime-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }

    .al-history-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .al-az-page,
    .al-continue-page,
    .al-schedule-page {
        padding: 30px 0 55px;
    }


    /* HEADINGS */

    .al-az-header h1,
    .al-continue-header h1,
    .al-schedule-header h1 {
        font-size: 31px;
    }


    /* A-Z */

    .al-az-nav {
        margin-left: -5px;
        margin-right: -5px;

        padding: 7px;

        border-radius: 7px;
    }

    .al-az-nav a {
        width: 32px;
        height: 32px;

        flex-basis: 32px;

        font-size: 10px;
    }

    .al-az-nav a:first-child {
        width: 45px;
        flex-basis: 45px;
    }

    .al-az-result-head strong {
        font-size: 13px;
    }

    .al-az-page .al-anime-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));

        gap: 15px 8px;
    }


    /* CONTINUE */

    .al-continue-header {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 23px;
    }

    .al-history-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 10px;
    }

    .al-history-info {
        padding: 10px;
    }

    .al-history-info strong {
        font-size: 11px;
    }


    /* SCHEDULE */

    .al-schedule {
        gap: 12px;
    }

    .al-schedule-day-head {
        min-height: 62px;

        padding: 10px 12px;
    }

    .al-schedule-day-head h2 {
        font-size: 15px;
    }

    .al-schedule-item {
        min-height: 74px;

        padding: 7px 10px;

        grid-template-columns:
            43px minmax(0,1fr) 26px;

        gap: 9px;
    }

    .al-schedule-item:hover {
        padding-left: 10px;
    }

    .al-schedule-poster {
        width: 43px;
        height: 57px;
    }

    .al-schedule-item time {
        position: absolute;

        /*
         * Time is moved into info flow below
         * through mobile layout styling.
         */
        width: 1px;
        height: 1px;

        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .al-schedule-info strong {
        font-size: 11px;
    }

    .al-schedule-arrow {
        width: 26px;
        height: 26px;

        font-size: 17px;
    }
}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {

    .al-az-page .al-anime-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 15px 9px;
    }
}
/* ==========================================================
   ANIMELOK — LANGUAGE TAXONOMY ARCHIVE
   /languages/hindi/
   /languages/tamil/
   /languages/telugu/
   ========================================================== */

.al-language-archive {
    min-height: 70vh;
    padding: 42px 0 80px;
}


/* =========================
   HEADER
   ========================= */

.al-language-archive-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 26px;
    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255,255,255,.07);
}

.al-language-archive-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.al-language-archive-code {
    min-width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,150,53,.35);
    border-radius: 9px;

    background: rgba(255,150,53,.10);
    color: #ff9635;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .6px;
}

.al-language-archive-kicker {
    display: block;

    margin-bottom: 7px;

    color: #ff9635;

    font-size: 9px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.al-language-archive-header h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(27px, 3vw, 39px);
    line-height: 1;
    font-weight: 900;

    letter-spacing: -1.2px;
}

.al-language-archive-header h1 em {
    color: #ff9635;
    font-style: normal;
}


/* RESULT COUNT */

.al-language-result-count {
    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;

    background: #151a20;
    color: #89929c;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


/* DESCRIPTION */

.al-language-description {
    max-width: 800px;

    margin: -10px 0 25px;

    color: #818a94;

    font-size: 12px;
    line-height: 1.7;
}

.al-language-description p {
    margin: 0;
}


/* ==========================================================
   FIX LANGUAGE ANIME GRID
   ========================================================== */

.al-language-archive .al-anime-grid {
    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 24px 14px !important;

    align-items: start;
}


/* Don't allow anime cards to become huge */

.al-language-archive .al-anime-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
}


/* POSTER */

.al-language-archive .al-anime-poster {
    position: relative;

    width: 100% !important;
    height: auto !important;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    border-radius: 9px;

    background: #151a20;
}

.al-language-archive .al-anime-poster img {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;
    object-position: center;

    transition: transform .3s ease;
}

.al-language-archive
.al-anime-card:hover
.al-anime-poster img {
    transform: scale(1.04);
}


/* ==========================================================
   ALSO SUPPORT COMMON CARD WRAPPERS
   ========================================================== */

.al-language-archive .al-card,
.al-language-archive .anime-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}


/* ==========================================================
   CARD TITLE
   ========================================================== */

.al-language-archive .al-anime-title {
    margin-top: 9px;

    overflow: hidden;

    color: #f3f4f5;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-language-archive .al-anime-title a {
    color: inherit;
    text-decoration: none;
}

.al-language-archive
.al-anime-title a:hover {
    color: #ff9635;
}


/* ==========================================================
   META
   ========================================================== */

.al-language-archive .al-anime-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 5px;

    color: #69737e;

    font-size: 9px;
    line-height: 1.3;
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.al-language-archive .al-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 42px;
}

.al-language-archive
.al-pagination .page-numbers {
    min-width: 36px;
    height: 36px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;

    background: #151a20;
    color: #8d96a0;

    text-decoration: none;

    font-size: 10px;
    font-weight: 800;

    transition: .18s ease;
}

.al-language-archive
.al-pagination a.page-numbers:hover {
    border-color: rgba(255,150,53,.45);

    color: #ff9635;
}

.al-language-archive
.al-pagination .current {
    border-color: #ff9635;

    background: #ff9635;
    color: #15100b;
}


/* ==========================================================
   LAPTOP
   ========================================================== */

@media (max-width: 1250px) {

    .al-language-archive .al-anime-grid {
        grid-template-columns:
            repeat(5, minmax(0,1fr)) !important;
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {

    .al-language-archive .al-anime-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr)) !important;

        gap: 20px 12px !important;
    }
}


@media (max-width: 760px) {

    .al-language-archive .al-anime-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr)) !important;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .al-language-archive {
        padding: 27px 0 55px;
    }

    .al-language-archive-header {
        align-items: flex-start;

        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .al-language-archive-title {
        gap: 10px;
    }

    .al-language-archive-code {
        min-width: 40px;
        height: 40px;

        border-radius: 7px;

        font-size: 10px;
    }

    .al-language-archive-header h1 {
        font-size: 25px;
    }

    .al-language-archive-kicker {
        margin-bottom: 5px;

        font-size: 8px;
    }

    .al-language-result-count {
        padding: 5px 7px;

        font-size: 8px;
    }

    .al-language-archive .al-anime-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr)) !important;

        gap: 17px 8px !important;
    }

    .al-language-archive .al-anime-poster {
        border-radius: 7px;
    }

    .al-language-archive .al-anime-title {
        margin-top: 7px;

        font-size: 10px;
    }

    .al-language-archive .al-anime-meta {
        gap: 3px;

        margin-top: 3px;

        font-size: 8px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 390px) {

    .al-language-archive .al-anime-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;

        gap: 16px 9px !important;
    }
}
/* ==========================================================
   HOMEPAGE WATCH HISTORY — HEADER ACTIONS
   ========================================================== */

.al-history-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.al-history-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* VIEW ALL */

.al-history-view-all {
    height: 34px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;

    background: #171c22;
    color: #a0a8b1;

    text-decoration: none;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.al-history-view-all:hover {
    color: #fff;
    border-color: rgba(255,150,53,.35);
    background: #1c2229;
}


/* CLEAR HISTORY */

.al-home-clear-history {
    appearance: none;

    height: 34px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid rgba(255,150,53,.28);
    border-radius: 7px;

    background: rgba(255,150,53,.08);
    color: #ff9635;

    font-family: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


/* SMALL TRASH ICON WITHOUT HTML CHANGE */

.al-home-clear-history::before {
    content: "×";

    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,150,53,.14);

    font-size: 15px;
    line-height: 1;
    font-weight: 400;
}


/* HOVER */

.al-home-clear-history:hover {
    color: #16100a;
    background: #ff9635;
    border-color: #ff9635;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(255,150,53,.16);
}

.al-home-clear-history:hover::before {
    background: rgba(0,0,0,.12);
}


/* CLICK */

.al-home-clear-history:active {
    transform: translateY(0);
    box-shadow: none;
}


/* FOCUS */

.al-home-clear-history:focus-visible,
.al-history-view-all:focus-visible {
    outline: 2px solid rgba(255,150,53,.55);
    outline-offset: 2px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .al-history-section-head {
        gap: 10px;
    }

    .al-history-head-actions {
        gap: 5px;
    }

    .al-history-view-all,
    .al-home-clear-history {
        height: 30px;
        padding: 0 9px;

        border-radius: 6px;

        font-size: 9px;
    }

    .al-home-clear-history::before {
        width: 15px;
        height: 15px;

        font-size: 13px;
    }
}


/* VERY SMALL PHONE */

@media (max-width: 390px) {

    .al-history-view-all {
        display: none;
    }

    .al-home-clear-history {
        padding: 0 8px;
    }
}
/* ==========================================================
   CONTINUE WATCHING — COMPACT CARD FIX
   /continue-watching/
   ========================================================== */

.al-continue-page .al-history-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
    align-items: start;
}

.al-continue-page .al-history-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    overflow: hidden;
    border-radius: 9px;
}


/* POSTER — NORMAL ANIME POSTER SIZE */

.al-continue-page .al-history-poster {
    position: relative;

    width: 100% !important;
    height: auto !important;

    aspect-ratio: 2 / 3 !important;

    overflow: hidden;

    border-radius: 8px 8px 0 0;

    background: #171c22;
}

.al-continue-page .al-history-poster img {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;
    object-position: center !important;
}


/* INFORMATION */

.al-continue-page .al-history-info {
    padding: 10px 11px 12px !important;
}

.al-continue-page .al-history-info strong {
    display: block;

    overflow: hidden;

    font-size: 11px !important;
    line-height: 1.4;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.al-continue-page .al-history-info > span {
    margin-top: 4px;

    font-size: 9px !important;
}


/* PROGRESS */

.al-continue-page .al-history-progress {
    height: 3px !important;
    margin-top: 9px !important;
}

.al-continue-page .al-history-info small {
    margin-top: 6px;

    font-size: 8px !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1200px) {

    .al-continue-page .al-history-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {

    .al-continue-page .al-history-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {

    .al-continue-page .al-history-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 14px 8px !important;
    }

    .al-continue-page .al-history-info {
        padding: 8px !important;
    }

    .al-continue-page .al-history-info strong {
        font-size: 10px !important;
    }
}

@media (max-width: 390px) {

    .al-continue-page .al-history-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 14px 9px !important;
    }
}
/* ==========================================================
   CONTINUE WATCHING — DESKTOP COMPACT POSTER FINAL FIX
   ========================================================== */

@media (min-width: 901px) {

    .al-continue-page .al-history-grid {
        display: grid !important;

        /* IMPORTANT: cards stretch nahi hongi */
        grid-template-columns:
            repeat(auto-fill, 180px) !important;

        justify-content: start !important;
        align-items: start !important;

        gap: 22px 16px !important;

        width: 100% !important;
    }


    .al-continue-page .al-history-card {
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;

        margin: 0 !important;

        border-radius: 9px !important;
        overflow: hidden !important;
    }


    .al-continue-page .al-history-poster {
        position: relative !important;

        width: 180px !important;
        height: 255px !important;

        aspect-ratio: auto !important;

        display: block !important;
        overflow: hidden !important;

        border-radius: 8px 8px 0 0 !important;
    }


    .al-continue-page .al-history-poster img {
        display: block !important;

        width: 180px !important;
        height: 255px !important;

        max-width: none !important;

        object-fit: cover !important;
        object-position: center !important;
    }


    .al-continue-page .al-history-info {
        width: 180px !important;
        box-sizing: border-box !important;

        padding: 9px 10px 11px !important;
    }


    .al-continue-page .al-history-info strong {
        display: block !important;

        font-size: 11px !important;
        line-height: 1.35 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
/* ==========================================================
   ANIMELOK — BROWSE ANIME
   ========================================================== */

.al-browse-page {
    padding: 34px 0 65px;
    min-height: 70vh;
}

.al-browse-page .al-browse-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.al-browse-page .al-browse-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #ff9635;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.al-browse-page .al-browse-heading h1 {
    margin: 0;
    color: #fff;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 850;
}

.al-browse-page .al-browse-heading p {
    max-width: 590px;
    margin: 9px 0 0;
    color: #858e99;
    font-size: 11px;
    line-height: 1.7;
}

.al-browse-page .al-browse-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    background: #171c22;
}

.al-browse-page .al-browse-count strong {
    color: #ff9635;
    font-size: 15px;
}

.al-browse-page .al-browse-count span {
    color: #89929c;
    font-size: 9px;
    font-weight: 700;
}


/* FILTER BOX */

.al-browse-page .al-browse-filter-box {
    padding: 18px;
    margin-bottom: 19px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 10px;
    background: #14191f;
}

.al-browse-page .al-browse-form {
    margin: 0;
}

.al-browse-page .al-filter-label,
.al-browse-page .al-filter-field > span {
    display: block;
    margin-bottom: 6px;
    color: #aeb5bd;
    font-size: 9px;
    line-height: 1;
    font-weight: 750;
}

.al-browse-page .al-browse-search {
    margin-bottom: 14px;
}

.al-browse-page .al-browse-search-input {
    position: relative;
}

.al-browse-page .al-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    color: #727c86;
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.al-browse-page .al-browse-search input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 15px 0 40px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 7px;
    outline: none;
    background: #10151a;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
}

.al-browse-page .al-browse-search input:focus {
    border-color: rgba(255,150,53,.55);
    box-shadow: 0 0 0 3px rgba(255,150,53,.07);
}

.al-browse-page .al-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 11px;
}

.al-browse-page .al-filter-field {
    min-width: 0;
}

.al-browse-page .al-filter-field select {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 0 30px 0 10px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 7px;
    outline: none;
    background: #10151a;
    color: #d7dce1;
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
}

.al-browse-page .al-filter-field select:focus {
    border-color: rgba(255,150,53,.5);
}

.al-browse-page .al-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.al-browse-page .al-filter-submit,
.al-browse-page .al-filter-reset {
    height: 36px;
    box-sizing: border-box;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: inherit;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.al-browse-page .al-filter-submit {
    border: 1px solid #ff9635;
    background: #ff9635;
    color: #15100b;
}

.al-browse-page .al-filter-submit:hover {
    filter: brightness(1.07);
}

.al-browse-page .al-filter-reset {
    border: 1px solid rgba(255,255,255,.08);
    background: #1a2027;
    color: #9da5ae;
}

.al-browse-page .al-filter-reset:hover {
    color: #fff;
}


/* A-Z */

.al-browse-page .al-browse-az {
    margin-bottom: 20px;
    padding: 15px 16px 16px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 9px;
    background: #14191f;
}

.al-browse-page .al-browse-mini-head {
    margin-bottom: 11px;
}

.al-browse-page .al-browse-mini-head strong {
    display: block;
    color: #fff;
    font-size: 12px;
}

.al-browse-page .al-browse-mini-head span {
    display: block;
    margin-top: 3px;
    color: #737d87;
    font-size: 8px;
}

.al-browse-page .al-az-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.al-browse-page .al-az-buttons a {
    min-width: 29px;
    height: 29px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 5px;
    background: #1a2027;
    color: #929ba5;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    transition: .18s ease;
}

.al-browse-page .al-az-buttons a:hover,
.al-browse-page .al-az-buttons a.active {
    border-color: #ff9635;
    background: #ff9635;
    color: #17110c;
}


/* ACTIVE FILTERS */

.al-browse-page .al-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.al-browse-page .al-active-label {
    margin-right: 3px;
    color: #68727d;
    font-size: 9px;
    font-weight: 700;
}

.al-browse-page .al-active-filters a {
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,150,53,.17);
    border-radius: 5px;
    background: rgba(255,150,53,.065);
    color: #d4d8dc;
    font-size: 8px;
    font-weight: 700;
    text-decoration: none;
}

.al-browse-page .al-active-filters a b {
    color: #ff9635;
    font-size: 12px;
    font-weight: 400;
}

.al-browse-page .al-active-filters .al-clear-all {
    border-color: rgba(255,255,255,.07);
    background: transparent;
    color: #78828c;
}


/* RESULT HEADER */

.al-browse-page .al-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 15px;
}

.al-browse-page .al-results-head h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 820;
}

.al-browse-page .al-results-head span {
    display: block;
    margin-top: 4px;
    color: #737d87;
    font-size: 9px;
}


/* GRID
   Scoped so Continue Watching/Home is untouched.
*/

.al-browse-page .al-browse-anime-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0,1fr));
    gap: 23px 13px;
    align-items: start;
}

.al-browse-page .al-browse-anime-grid > * {
    min-width: 0;
}


/* PAGINATION */

.al-browse-page .al-browse-pagination {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.al-browse-page .al-browse-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    margin: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    background: #171d23;
    color: #939ca6;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.al-browse-page .al-browse-pagination a.page-numbers:hover,
.al-browse-page .al-browse-pagination .page-numbers.current {
    border-color: #ff9635;
    background: #ff9635;
    color: #16110c;
}


/* EMPTY */

.al-browse-page .al-browse-empty {
    padding: 75px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    background: #14191f;
}

.al-browse-page .al-empty-icon {
    margin-bottom: 10px;
    color: #ff9635;
    font-size: 34px;
}

.al-browse-page .al-browse-empty h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.al-browse-page .al-browse-empty p {
    margin: 7px 0 15px;
    color: #78828c;
    font-size: 10px;
}

.al-browse-page .al-browse-empty a {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 6px;
    background: #ff9635;
    color: #16110c;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1250px) {

    .al-browse-page .al-filter-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

    .al-browse-page .al-browse-anime-grid {
        grid-template-columns:
            repeat(5, minmax(0,1fr));
    }
}


@media (max-width: 950px) {

    .al-browse-page .al-browse-anime-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }
}


@media (max-width: 720px) {

    .al-browse-page {
        padding-top: 22px;
    }

    .al-browse-page .al-browse-head {
        align-items: flex-start;
    }

    .al-browse-page .al-browse-heading h1 {
        font-size: 24px;
    }

    .al-browse-page .al-browse-heading p {
        display: none;
    }

    .al-browse-page .al-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .al-browse-page .al-browse-anime-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
        gap: 19px 9px;
    }

    .al-browse-page .al-browse-count {
        padding: 7px 9px;
    }

    .al-browse-page .al-browse-count span {
        display: none;
    }
}


@media (max-width: 480px) {

    .al-browse-page .al-browse-filter-box {
        padding: 13px;
    }

    .al-browse-page .al-filter-grid {
        gap: 9px 7px;
    }

    .al-browse-page .al-filter-field select {
        height: 36px;
        font-size: 9px;
    }

    .al-browse-page .al-browse-search input {
        height: 39px;
    }

    .al-browse-page .al-az-buttons {
        gap: 4px;
    }

    .al-browse-page .al-az-buttons a {
        min-width: 27px;
        height: 27px;
        font-size: 8px;
    }

    .al-browse-page .al-browse-anime-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
        gap: 17px 7px;
    }
}


@media (max-width: 370px) {

    .al-browse-page .al-browse-anime-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}