/* ============================================================
   Tema AnimeFLV — capa de adaptación sobre animeflv.css
   Base visual: animeflv.in (header oscuro, acento cian #01bcf3)
   Aquí se estilizan los componentes propios de la app Node
   (auth, perfil, feed, watchlist, reproductor, paginación…).
   ============================================================ */

:root {
    --af-dark: #3b4248;
    --af-dark-2: #2f353a;
    --af-cyan: #01bcf3;
    --af-cyan-2: #00aeed;
    --af-orange: #ff7e00;
    --af-red: #fb3447;
    --af-green: #00b046;
    --af-text: #3b4248;
    --af-muted: #9da1a4;
    --af-border: #e8e7f0;
    --af-soft: #f3f3f3;
    --af-radius: 5px;
}

/* ---------- utilidades ---------- */
.d-none { display: none !important; }
.no-scroll { overflow: hidden; }
img { max-width: 100%; }

/* ---------- header ---------- */
.Header > .Top {
    background-color: var(--af-cyan);
    padding-bottom: 0;
}
.Header > .Top .Container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.HeaderTagline {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.HeaderTagline i { font-size: 13px; margin-right: 4px; }
.HeaderTopNav { display: flex; gap: 16px; flex: none; }
.HeaderTopNav a {
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 18px;
}
.HeaderTopNav a:hover { color: #fff; }
.HeaderTopNav i { margin-right: 3px; }

.Header > .Mid .Logo a { display: inline-flex; align-items: center; }
.LogoText {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.LogoText i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(1, 188, 243, .18);
    box-shadow: inset 0 0 0 1px rgba(1, 188, 243, .45);
    color: var(--af-cyan);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
}

.HeaderNavWrap { position: relative; }
.Header > .Mid .Search > form input {
    height: 40px;
    color: #fff;
    min-width: 0;
}
.Header > .Mid .Search > form input::placeholder { color: rgba(255, 255, 255, .6); }
.Header > .Mid .Search > form button { color: rgba(255, 255, 255, .8); }
.Header > .Mid .Search > form button:hover { color: #fff; }

.Header > .Mid .Login {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
}

.HeaderAuth { display: flex; align-items: center; gap: 8px; }
.HdLoginBtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: rgba(0, 0, 0, .25);
    color: #fff;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s;
}
.HdLoginBtn i { color: var(--af-cyan); font-size: 13px; }
.HdLoginBtn:hover { background-color: rgba(0, 0, 0, .45); color: #fff; }

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, .25);
    border-radius: 20px;
    padding: 4px 12px 4px 4px;
    max-width: 170px;
}
.header-user:hover { color: #fff; background-color: rgba(0, 0, 0, .45); }
.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    flex: none;
}
.header-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header__logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(0, 0, 0, .25);
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}
.header__logout-btn svg { width: 15px; height: 15px; }
.header__logout-btn:hover { background-color: var(--af-red); }
.header__logout-text { display: none; }

/* campanita de novedades */
.header__notif { position: relative; }
.header__notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .25);
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}
.header__notif-btn:hover { background-color: rgba(0, 0, 0, .45); }
.header__notif-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background-color: var(--af-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}
.header__notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 310px;
    max-width: 90vw;
    background: #fff;
    border-radius: var(--af-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    overflow: hidden;
    z-index: 60;
    text-align: left;
}
.header__notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--af-soft);
    color: var(--af-text);
    font-size: 13px;
}
.header__notif-read {
    border: 0;
    background: transparent;
    color: var(--af-cyan);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.header__notif-list { max-height: 320px; overflow-y: auto; }
.header__notif-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--af-soft);
    font-size: 12px;
    color: var(--af-text);
}
.header__notif-item:hover { background-color: #f9fdfe; }
.header__notif-item.is-unread { background-color: rgba(1, 188, 243, .07); }
.header__notif-item img {
    width: 38px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    flex: none;
    background: var(--af-soft);
}
.header__notif-item__body { min-width: 0; }
.header__notif-item__title {
    display: block;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header__notif-item__sub { display: block; color: var(--af-muted); font-size: 11px; }
.header__notif-empty { padding: 16px 14px; margin: 0; font-size: 12px; color: var(--af-muted); text-align: center; }
.header__notif-foot {
    display: block;
    padding: 10px 14px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--af-cyan);
    background: #fafafa;
}
.header__notif-foot:hover { background: var(--af-soft); }

.MobileNav { display: none; }
.MobileNavTitle {
    padding: 14px 20px 6px;
    color: rgba(255, 255, 255, .35);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.MobileNav ul { margin: 0; padding: 0; }
.MobileNav a {
    display: block;
    padding: 0 20px;
    line-height: 42px;
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.MobileNav a i { width: 20px; color: var(--af-cyan); }
.MobileNav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.mobile-logout { list-style: none; }
.mobile-logout-btn {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0 20px;
    line-height: 42px;
    color: #ff8b97;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.mobile-logout-btn svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }

/* layout de navegación en escritorio */
@media all and (min-width: 1021px) {
    .Header > .Mid nav { align-items: center; justify-content: flex-end; }
    .Header > .Mid .Menu { order: 0; padding-right: 0; }
    .Header > .Mid .Search { order: 0; width: 250px; flex: none; margin-left: auto; }
    .Header > .Mid .Login { order: 0; flex: none; }
    .Header > .Mid .Menu > li > a { font-size: 12px; }
}

/* cajón móvil */
@media all and (max-width: 1020px) {
    .Header > .Mid nav .Menu { width: 100%; padding: 0; }
    .Header > .Mid nav .Menu > li { display: block; width: 100%; }
    .Header > .Mid nav .Menu > li > a {
        line-height: 46px;
        padding: 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
        opacity: .85;
    }
    .Header > .Mid nav .Menu > li.Current > a { color: var(--af-cyan); opacity: 1; }
    .Header > .Mid nav .Search,
    .Header > .Mid nav .Login {
        width: 100%;
        padding: 10px 20px;
    }
    .Header > .Mid nav .Search > form input { width: 100%; }
    .Header > .Mid nav .Login { justify-content: flex-start; }
    .MobileNav { display: block; }
}

@media all and (max-width: 767px) {
    .HeaderTopNav { display: none; }
    .LogoText { font-size: 20px; }
    .LogoText i { width: 32px; height: 32px; font-size: 13px; }
    .header-user-name { display: none; }
}

/* ---------- estructura ---------- */
.Main { min-width: 0; }
.Body > .Container > .AnflvTl { margin-top: 0; }
.AnflvDesc {
    margin: -10px 0 20px;
    padding: 0 4px;
    color: var(--af-muted);
    font-size: 13px;
    line-height: 1.65;
}
.SeoIntro {
    margin: -10px 0 20px;
    color: var(--af-muted);
    font-size: 12px;
    line-height: 1.6;
}
.SeoIntro strong { color: var(--af-text); }
.Title.Page h1 { font-size: 25px; }
.Title.Page .Order { white-space: nowrap; overflow-x: auto; }
.Title.Page .Order > a { text-decoration: none; }

/* ---------- tarjetas ---------- */
.Type {
    width: auto;
    min-width: 60px;
    padding: 0 8px;
}
.Anime.alt .Type { border-radius: 10px; }
.Anime.alt .Estreno {
    z-index: 3;
    font-size: 10px;
}
.Anime.alt .Description p { margin-bottom: 8px; }
.Anime.alt .Description .Vrnmlk { margin-top: auto; }
.Anime .Title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ListAnimes.Rows > li,
.ListEpisodios.Rows > li { margin-bottom: 0; }

/* ---------- sidebar ---------- */
.Wdgt > .Bod { padding: 12px 15px 15px; }
.Wdgt > .Top {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: -.2px;
}
.Wdgt > .Top[class*="fa-"]::before {
    width: 50px;
    text-align: center;
    pointer-events: none;
}

.SdbrTop { margin: 0; padding: 0; }
.SdbrTop > li { border-bottom: 1px solid var(--af-soft); }
.SdbrTop > li:last-child { border-bottom: 0; }
.SdbrTop > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--af-text);
    font-size: 12px;
    font-weight: 700;
}
.SdbrTop > li > a:hover { color: var(--af-cyan); }
.SdbrTop .Num {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--af-soft);
    color: var(--af-cyan);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.SdbrTop > li:first-child .Num { background: var(--af-cyan); color: #fff; }
.SdbrTop img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 3px;
    flex: none;
    background: var(--af-soft);
}
.SdbrTop .Ttl {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.SdbrTop .Vts { flex: none; color: #ffb300; font-size: 10px; }

.GenresBod,
.YearsBod { display: flex; flex-wrap: wrap; gap: 5px; }
.GenresBod a,
.YearsBod a {
    display: inline-block;
    padding: 0 10px;
    line-height: 24px;
    border-radius: 12px;
    background-color: var(--af-soft);
    color: var(--af-text);
    font-size: 11px;
    font-weight: 700;
}
.GenresBod a:hover,
.YearsBod a:hover { background-color: var(--af-cyan); color: #fff; }
.YearsBod a { padding: 0 8px; line-height: 22px; font-size: 10px; }

.AboutBod p { font-size: 12px; line-height: 1.6; color: var(--af-muted); margin-bottom: 12px; }
.AboutBod .Button { width: 100%; text-align: center; }

/* ---------- paginación ---------- */
.Pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.Pagination .Button { margin: 0; }
.Pagination .Pages { font-size: 12px; color: var(--af-muted); }
.Pagination .is-disabled { opacity: .4; pointer-events: none; }

.Msj { padding: 12px 15px; border-radius: var(--af-radius); margin-bottom: 15px; font-size: 13px; }
.Msj a { text-decoration: underline; }
.Msj.Wrn { background: rgba(255, 193, 7, .1); color: #8a6d00; }
.Msj.Wrn i, .Msj.Wrn a { color: #d39e00; }
.Msj.Err { background: rgba(251, 52, 71, .08); color: #c22636; }
.Msj.Err i { color: var(--af-red); }

/* ---------- autenticación ---------- */
.AuthPage { max-width: 470px; margin: 40px auto; }
.AuthCard { padding-bottom: 22px; }
.AuthForm { margin: 0; }
.AuthLabel {
    display: block;
    margin: 12px 0 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--af-text);
}
.AuthInput {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    background: #fff;
    color: var(--af-text);
    font-size: 13px;
    margin-bottom: 0 !important;
}
.AuthInput:focus { border-color: var(--af-cyan); outline: 0; }
.AuthSelect {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    background: #fff;
    color: var(--af-text);
    font-size: 13px;
    margin-bottom: 0 !important;
}
.AuthRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.AuthCaptcha {
    margin: 16px 0 0;
    padding: 12px;
    background: #f7f7f7;
    border-radius: var(--af-radius);
}
.AuthCaptcha .AuthLabel { margin-top: 0; color: var(--af-cyan); }
.AuthCheck { display: block; margin: 10px 0; font-size: 12px; color: var(--af-muted); }
.AuthCheck input { margin-right: 6px; }
.AuthSubmit {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border: 0;
    border-radius: var(--af-radius);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.AuthSubmit i { margin-right: 6px; }
.AuthLinks { text-align: center; font-size: 12px; margin: 15px 0 0; color: var(--af-muted); }
.AuthLinks a { color: var(--af-cyan); font-weight: 700; }

.EmptyState { text-align: center; padding: 40px 20px; }
.EmptyState .EmptyIcon { font-size: 44px; color: var(--af-muted); margin-bottom: 12px; }
.EmptyState h1 { font-size: 22px; margin-bottom: 8px; }
.EmptyState p { color: var(--af-muted); font-size: 13px; margin-bottom: 18px; }

/* ---------- perfil ---------- */
.ProfilePage { max-width: 920px; margin: 0 auto; }
.ProfileHead {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: var(--af-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}
.ProfileAvatar { position: relative; width: 92px; height: 92px; flex: none; }
.ProfileAvatar img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--af-soft);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--af-border);
}
.ProfileAvatarEdit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--af-cyan);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.ProfileInfo { flex: 1; min-width: 160px; }
.ProfileInfo h1 { font-size: 24px; margin-bottom: 5px; letter-spacing: -.5px; }
.ProfileMeta { margin: 0; font-size: 12px; color: var(--af-muted); }
.ProfileMeta span { margin-right: 14px; white-space: nowrap; }
.ProfileMeta i { color: var(--af-cyan); margin-right: 4px; }
.ProfileStats { text-align: center; padding: 0 10px; }
.ProfileStats .Num { display: block; font-size: 26px; font-weight: 700; color: var(--af-cyan); line-height: 1.1; }
.ProfileStats .Lbl { font-size: 10px; text-transform: uppercase; color: var(--af-muted); }
#avatar-upload-msg { width: 100%; font-size: 12px; }
#avatar-upload-msg.ok { color: var(--af-green); }
#avatar-upload-msg.err { color: var(--af-red); }

.wtab-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wtab-btn {
    border: 0;
    background: var(--af-soft);
    color: var(--af-text);
    border-radius: 15px;
    padding: 0 16px;
    line-height: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.wtab-btn:hover { background: #e8e8e8; }
.wtab-btn.active { background: var(--af-cyan); color: #fff; }

.ProfileGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
}
.WlItem { min-width: 0; }
.WlItem img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--af-radius);
    background: var(--af-soft);
}
.WlItem span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--af-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.WlItem a:hover span { color: var(--af-cyan); }

.CwGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
}
.CwCard { display: block; min-width: 0; color: var(--af-text); }
.CwCover { position: relative; display: block; }
.CwCover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--af-radius);
    background: var(--af-soft);
}
.CwBadge {
    position: absolute;
    left: 6px;
    top: 6px;
    background: var(--af-cyan);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 7px;
}
.CwTitle {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.CwSub { display: block; font-size: 10px; color: var(--af-muted); }
.CwCard:hover .CwTitle { color: var(--af-cyan); }

.NotifList { border-top: 1px solid var(--af-soft); }
.NotifItem,
.notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    border-bottom: 1px solid var(--af-soft);
    color: var(--af-text);
    font-size: 12px;
}
.NotifItem.is-unread,
.notif-item.is-unread { background: rgba(1, 188, 243, .06); border-left: 3px solid var(--af-cyan); padding-left: 8px; }
.NotifItem:hover,
.notif-item:hover { background: #f8fdff; }
.NotifImg { width: 40px; height: 54px; object-fit: cover; border-radius: 3px; flex: none; background: var(--af-soft); }
.NotifBody { flex: 1; min-width: 0; }
.NotifTitle { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.NotifSub { display: block; font-size: 11px; color: var(--af-muted); }
.NotifDate { font-size: 10px; color: var(--af-muted); flex: none; }
.notif-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 9px;
    background: var(--af-red);
    color: #fff;
    font-size: 10px;
    text-align: center;
    vertical-align: 1px;
}

.ListsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.ListCard {
    background: #f9f9f9;
    border-radius: var(--af-radius);
    padding: 12px 14px;
}
.ListCard h3 { font-size: 14px; margin-bottom: 4px; }
.ListCard h3 a { color: var(--af-text); }
.ListCard h3 a:hover { color: var(--af-cyan); }
.ListMeta { font-size: 11px; color: var(--af-muted); }
.NewListForm {
    background: #f9f9f9;
    border-radius: var(--af-radius);
    padding: 14px;
    margin-bottom: 15px;
}
.NewListForm .Button { margin-top: 10px; }

.RecentPost { padding: 12px 0; border-bottom: 1px solid var(--af-soft); }
.RecentPost:last-child { border-bottom: 0; }
.RecentPost p { font-size: 13px; color: var(--af-text); margin-bottom: 4px; }
.RecentMeta { font-size: 11px; color: var(--af-muted); }
.RecentMeta a { color: var(--af-cyan); font-weight: 700; }
.empty-msg { font-size: 12px; color: var(--af-muted); margin: 6px 0; }

/* ---------- comunidad ---------- */
.CommunityGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.RankCard .Top { margin-bottom: 10px; }
.RankRow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--af-soft);
    font-size: 12px;
}
.RankRow:last-child { border-bottom: 0; }
.RankNum {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--af-soft);
    color: var(--af-cyan);
    font-size: 10px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.RankRow:first-of-type .RankNum { background: var(--af-cyan); color: #fff; }
.RankAvatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.RankName {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: var(--af-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.RankName:hover { color: var(--af-cyan); }
.RankVal { flex: none; font-size: 10px; color: var(--af-muted); }
.RankVal i { color: var(--af-cyan); }

.CommunityPost { padding: 14px 0; border-bottom: 1px solid var(--af-soft); }
.CommunityPost:last-child { border-bottom: 0; }
.CommunityPostHead {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--af-muted);
}
.CommunityAuthor { display: inline-flex; align-items: center; gap: 6px; color: var(--af-text); font-weight: 700; }
.CommunityAuthor img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.CommunityLink { color: var(--af-cyan); font-weight: 700; }
.CommunityDate { margin-left: auto; font-size: 10px; }
.CommunityBody { font-size: 13px; color: var(--af-text); margin: 7px 0; line-height: 1.5; }
.CommunityFoot { display: flex; gap: 14px; font-size: 11px; color: var(--af-muted); }
.CommunityFoot i { color: var(--af-cyan); }

/* ---------- ficha de detalle ---------- */
.FichaAlt { margin: 6px 0; }
.Ficha .TxtAlt { margin-right: 6px; margin-top: 4px; }
a.TxtAlt:hover { background-color: var(--af-cyan); opacity: 1; color: #fff; }
.FichaAlt .TxtAlt { margin-bottom: 4px; }

.DetailMeta {
    margin: 15px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #efefef;
    font-size: 12px;
    color: #666;
}
.DetailMeta li { line-height: 1.7; margin-bottom: 3px; }
.DetailMeta strong { color: var(--af-text); }
.DetailMeta .Button.StylC { height: 24px; line-height: 24px; padding: 0 12px; font-size: 11px; margin: 0; }

.FichaData { margin: 12px 0 20px; padding: 0; border-top: 0; }
.FichaData li { font-size: 11px; line-height: 1.7; color: var(--af-muted); padding-left: 0; }
.FichaData li::before { content: none; }
.FichaData li i { color: var(--af-cyan); width: 16px; }
.FichaData li strong { color: var(--af-text); }

.AnimeCover .Image { border-radius: var(--af-radius); overflow: hidden; }
.AnimeCover .Image img { width: 100%; display: block; }
.AnmStts { font-size: 11px; }
.AnmStts span:before { font-size: 18px; }

.FichaActions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.FichaActions .watchlist-widget,
.FichaActions .customlist-widget,
.FichaActions .follow-widget { margin: 0; width: 100%; }
.FichaActions .BtnNw { width: 100%; margin: 0; text-align: left; }
#watchlist-btn .fa-heart,
#customlist-btn .fa-plus { position: absolute; }
#watchlist-btn span,
#customlist-btn span { padding-left: 0; }
.follow-widget { margin-bottom: 10px; }
.follow-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 0;
    border-radius: var(--af-radius);
    background: #fff;
    color: var(--af-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}
.follow-btn__icon { color: var(--af-cyan); flex: none; }
.follow-btn.is-active { background: var(--af-cyan); color: #fff; }
.follow-btn.is-active .follow-btn__icon { color: #fff; }
.new-feature-badge {
    margin-left: auto;
    background: var(--af-orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    padding: 0 6px;
    border-radius: 8px;
}

.watchlist-widget, .customlist-widget { position: relative; }
.watchlist-dropdown {
    position: fixed;
    z-index: 9000;
    min-width: 190px;
    padding: 5px 0;
    background: #fff;
    border-radius: var(--af-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.watchlist-dropdown > button {
    display: block;
    width: 100%;
    padding: 8px 15px;
    border: 0;
    background: transparent;
    color: var(--af-text);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}
.watchlist-dropdown > button:hover { background: var(--af-soft); }
.watchlist-dropdown > button i { width: 16px; color: var(--af-cyan); }
.watchlist-dropdown .watchlist-remove { color: var(--af-red); }
.watchlist-dropdown .watchlist-remove i { color: var(--af-red); }
.customlist-options { max-height: 220px; overflow-y: auto; padding: 4px 0; }
.customlist-options p { padding: 8px 15px; margin: 0; font-size: 12px; color: var(--af-muted); }
.customlist-option {
    display: block;
    width: 100%;
    padding: 8px 15px;
    border: 0;
    background: transparent;
    color: var(--af-text);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}
.customlist-option:hover { background: var(--af-soft); }
.customlist-option.is-in { color: var(--af-cyan); }

/* ---------- reproductor ---------- */
.player-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.player-tab {
    border: 0;
    border-radius: 15px;
    background-color: var(--af-dark);
    color: #fff;
    padding: 0 16px;
    line-height: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}
.player-tab:hover, .player-tab.active { background-color: var(--af-cyan); }
.player-container {
    border-radius: var(--af-radius);
    overflow: hidden;
    background: #000;
}
.player-content,
.ep-player__frame {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.player-content iframe,
.ep-player__frame iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ep-player { margin-bottom: 14px; }
.ep-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.ep-nav .Button { margin: 0; }
.ep-nav .is-disabled { opacity: .4; pointer-events: none; }
.ep-context { margin-bottom: 10px; }

/* ---------- episodios ---------- */
.SeasonBlock { margin-bottom: 16px; }
.SeasonTitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--af-text);
    padding: 8px 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--af-soft);
}
.SeasonTitle i { color: var(--af-cyan); margin-right: 3px; }
.SeasonTitle span { color: var(--af-muted); font-size: 11px; font-weight: 400; }
.ListCaps { margin: 0; }
.ListCaps > li { padding-left: 45px; }
.ListCaps > li > a { padding: 15px 20px 15px 125px; min-height: 90px; }
.ListCaps > li > a:hover .Title { color: var(--af-cyan); }
.ListCaps > li figure { left: 45px; }
.ListCaps > li:before { left: 12px; }
.SidebarSeason .Top { margin-bottom: 10px; }
.SidebarSeason .Top .Title { font-size: 16px; }
.SidebarSeason .ListEpisodes { margin: 0; }
.SidebarSeason .ListEpisodes > li > a { padding-right: 40px; font-size: 11px; }
.ListCaps li.is-active,
.ListEpisodes li.is-active { background-color: rgba(1, 188, 243, .08); }
.ListCaps li.is-active > a .Title,
.ListEpisodes li.is-active > a { color: var(--af-cyan); }
.ep-loading { padding: 18px; text-align: center; font-size: 13px; color: var(--af-muted); }
.ep-loading a { color: var(--af-cyan); text-decoration: underline; }
.episode-container { margin: 0 0 15px; }
.episode-container[hidden] { display: none !important; }

/* progreso de episodios (inyectado por ficha.js) */
.ep-watched-toggle {
    position: absolute;
    right: 10px;
    top: 12px;
    z-index: 4;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid var(--af-cyan);
    border-radius: 50%;
    background: #fff;
    color: transparent;
    cursor: pointer;
    transition: background .2s;
}
.ep-watched-toggle::before {
    content: '\f00c';
    font-family: FontAwesome;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    display: block;
    color: var(--af-cyan);
    opacity: .35;
}
.ep-watched-toggle:hover::before { opacity: 1; }
.ep-watched-toggle--check { background: var(--af-cyan); }
.ep-watched-toggle--check::before { color: #fff; opacity: 1; }
.ep-season-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 11px;
    color: var(--af-muted);
}
.ep-season-progress__label { flex: none; font-weight: 700; color: var(--af-text); }
.ep-season-progress__bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--af-soft);
    overflow: hidden;
}
.ep-season-progress__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--af-cyan);
    transition: width .3s;
}
.season-watched-btn {
    flex: none;
    border: 0;
    background: transparent;
    color: var(--af-cyan);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}
.ep-mark-btn {
    border: 0;
    background: var(--af-cyan);
    color: #fff;
    border-radius: 15px;
    padding: 0 14px;
    line-height: 28px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 8px;
}
.ep-mark-btn.is-watched { background: var(--af-green); }

/* ---------- feed / comentarios ---------- */
.feed-login-prompt { font-size: 12px; color: var(--af-muted); margin-bottom: 12px; }
.feed-login-prompt a { color: var(--af-cyan); font-weight: 700; text-decoration: underline; }
.feed-form-rating { font-size: 24px; margin-bottom: 8px; cursor: pointer; line-height: 1; }
.feed-form-rating span { color: #ddd; margin-right: 2px; }
.feed-form-rating span.active { color: #ffc107; }
.feed-input,
.feed-form textarea {
    display: block;
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    font-family: inherit;
    font-size: 13px;
    color: var(--af-text);
    resize: vertical;
    margin-bottom: 0 !important;
}
.feed-input:focus,
.feed-form textarea:focus { border-color: var(--af-cyan); outline: 0; }
.feed-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.feed-chars { font-size: 11px; color: var(--af-muted); }
.feed-form .Button { height: 34px; line-height: 34px; padding: 0 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; margin: 0; }
.feed-form-error { color: var(--af-red); font-size: 11px; margin-top: 6px; }
.feed-loading { font-size: 12px; color: var(--af-muted); }
.feed-pagination { margin-top: 12px; text-align: center; font-size: 12px; color: var(--af-muted); }
.feed-pagination button {
    border: 0;
    background: var(--af-soft);
    color: var(--af-text);
    border-radius: 12px;
    padding: 0 12px;
    line-height: 24px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 3px;
}
.feed-pagination button.active { background: var(--af-cyan); color: #fff; }
.feed-empty, .feed-empty-small { font-size: 12px; color: var(--af-muted); }

.feed-post { padding: 14px 0; border-bottom: 1px solid var(--af-soft); }
.feed-post:last-child { border-bottom: 0; }
.feed-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}
.feed-post-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--af-text);
    font-weight: 700;
}
.feed-post-author:hover { color: var(--af-cyan); }
.feed-post-avatar,
.feed-reply-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--af-soft); }
.feed-post-rating { color: #ffc107; font-size: 12px; letter-spacing: 1px; }
.feed-post-date { margin-left: auto; font-size: 10px; color: var(--af-muted); }
.feed-post-body { font-size: 13px; color: var(--af-text); line-height: 1.55; margin: 8px 0; }
.feed-post-footer { display: flex; align-items: center; gap: 14px; }
.feed-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--af-muted);
    font-size: 11px;
    cursor: pointer;
}
.feed-action-btn:hover, .feed-action-btn.liked { color: var(--af-cyan); }
.feed-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--af-soft); }
.feed-reply {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px dashed #f0f0f0;
}
.feed-reply:last-child { border-bottom: 0; }
.feed-reply-author { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--af-text); }
.feed-reply-avatar { width: 22px; height: 22px; }
.feed-reply-body { flex: 1; min-width: 120px; color: var(--af-text); }
.feed-reply-date { font-size: 10px; color: var(--af-muted); }
.feed-reply-actions { display: inline-flex; gap: 6px; }
.feed-reply-form { display: flex; gap: 8px; margin-top: 8px; }
.feed-reply-input {
    flex: 1;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--af-border);
    border-radius: 17px;
    font-size: 12px;
    color: var(--af-text);
    margin-bottom: 0 !important;
}
.feed-reply-submit {
    flex: none;
    border: 0;
    border-radius: 17px;
    background: var(--af-cyan);
    color: #fff;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* ---------- listas ---------- */
.ListDetail { max-width: 920px; margin: 0 auto; }
.ListOwner { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 8px; }
.ListOwner img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--af-soft); }
.ListOwner a { color: var(--af-text); font-weight: 700; }
.ListOwner a:hover { color: var(--af-cyan); }
.ListTitle { font-size: 24px; letter-spacing: -.5px; margin-bottom: 5px; }
.ListDesc { font-size: 13px; color: var(--af-muted); margin-bottom: 10px; }
.ListMeta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--af-muted); }
.ListMeta i { color: var(--af-cyan); }
.ListMeta .Button.StylC { height: 26px; line-height: 26px; margin: 0; }
.ListItems {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.ListItem { position: relative; min-width: 0; }
.ListItem img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--af-radius);
    background: var(--af-soft);
}
.ListItemTitle {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--af-text);
}
.ListItem a:hover .ListItemTitle { color: var(--af-cyan); }
.list-item-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(251, 52, 71, .92);
    color: #fff;
    font-size: 14px;
    line-height: 24px;
    cursor: pointer;
}

/* ---------- tráiler ---------- */
.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
}
.trailer-modal.is-open { display: block; }
.trailer-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .8);
}
.trailer-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 92vw);
    background: #000;
    border-radius: var(--af-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.trailer-modal__frame { position: relative; padding-top: 56.25%; }
.trailer-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.trailer-modal__close {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 20px;
    line-height: 34px;
    cursor: pointer;
}

/* ---------- footer ---------- */
.Footer .pm-footer-up { cursor: pointer; }
.Footer .FooterCopy { font-size: 11px; color: #8d9599; padding-top: 8px; }
.Footer .ListSocial { margin: 0; }
.Footer .mnftxt { margin-top: 8px; }

/* ---------- responsive ---------- */
@media all and (max-width: 767px) {
    .Title.Page h1 { font-size: 20px; }
    .Title.Page .Order > a { font-size: 10px; min-width: 55px; padding: 0 10px; }
    .AuthPage { margin: 20px auto; }
    .ProfileHead { padding: 15px; gap: 14px; }
    .ProfileAvatar, .ProfileAvatar img { width: 72px; height: 72px; }
    .ProfileInfo h1 { font-size: 20px; }
    .ProfileStats { width: 100%; text-align: left; padding: 0; }
    .ProfileStats .Num { display: inline; font-size: 18px; margin-right: 6px; }
    .ListCaps > li > a { padding-left: 20px; }
    .ListCaps > li figure { display: none; }
    .ep-season-progress { flex-wrap: wrap; }
}

@media all and (max-width: 467px) {
    .AuthRow { grid-template-columns: 1fr; }
    .ListMeta { gap: 10px; }
    .CommunityDate { margin-left: 0; }
    .Ficha .Title { font-size: 20px; }
    .Ficha .TxtAlt { font-size: 11px; }
}
