.anime-shell {
    background: radial-gradient(circle at top, #2a0f3a 0%, #110719 40%, #0b0612 100%);
    color: #f5efff;
    min-height: 100vh;
}

.zona-hero {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.zona-latest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zona-latest-item {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #f4ecff;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.zona-latest-item img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

.zona-latest-item span {
    display: flex;
    flex-direction: column;
}

.zona-latest-item small {
    color: #ccb9e8;
}

.zona-ficha-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zona-ficha-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
}

.zona-ficha-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
}

.zona-platforms-grid {
    margin-top: .25rem;
}

.zona-platform-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f4ecff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    height: 100%;
}

.zona-platform-card:hover {
    color: #fff;
    background: rgba(203, 140, 255, 0.16);
}

.zona-platform-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #120a1e;
}

.zona-platform-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zona-platform-meta strong {
    font-size: .92rem;
}

.zona-platform-meta small {
    color: #ccb9e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

@media (max-width: 991px) {
    .zona-ficha-grid {
        grid-template-columns: 1fr;
    }
}

.anime-hero,
.anime-panel {
    background: rgba(24, 13, 36, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

.anime-hero {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn-anime-primary {
    background: linear-gradient(135deg, #ff4fa8, #c442ff);
    color: #fff;
    border: none;
}

.btn-anime-primary:hover {
    color: #fff;
    filter: brightness(1.05);
}

.btn-anime-outline {
    border: 1px solid #cb8cff;
    color: #e8cbff;
    background: transparent;
}

.btn-anime-outline:hover {
    background: rgba(203, 140, 255, 0.15);
    color: #fff;
}

.anime-card {
    background: #1a1028;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.anime-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: linear-gradient(135deg, #ff4fa8, #c442ff);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.home-top-holder {
    width: 100%;
    overflow: hidden;
}

.home-top-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.home-top-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: homeTopScrollRight 46s linear infinite;
    will-change: transform;
}

.home-top-card {
    position: relative;
    width: 220px;
    min-width: 220px;
    background: #1a1028;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.home-top-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.home-rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: linear-gradient(135deg, #ff4fa8, #c442ff);
    color: #fff;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .74rem;
    font-weight: 700;
}

.home-top-card .card-body {
    padding: .75rem;
}

.home-top-card .home-title {
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: .35rem;
    line-height: 1.2;
    min-height: 2.1em;
}

.home-top-card .home-score {
    color: #ffd36b;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .55rem;
}

.home-top-card .btn {
    font-size: .75rem;
    padding: .3rem .55rem;
}

@keyframes homeTopScrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (max-width: 768px) {
    .home-top-card {
        width: 190px;
        min-width: 190px;
    }

    .home-top-card img {
        height: 145px;
    }

    .home-top-track {
        animation-duration: 52s;
    }
}

.anime-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.anime-card .card-body {
    padding: 1rem;
}

.anime-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .6rem;
}

.anime-genre {
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #34204e;
    color: #eedbff;
}

.anime-score {
    font-weight: 700;
    color: #ffd36b;
}

.anime-list-stack > .anime-rec-item {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anime-list-stack > .anime-rec-item:last-child {
    border-bottom: none;
}

.anime-rec-user {
    color: #f8bfff;
    font-weight: 600;
}

.anime-calendar-day {
    background: #181026;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: .9rem;
    min-height: 240px;
}

.anime-calendar-day h3 {
    font-size: 1rem;
    margin-bottom: .75rem;
    color: #f7d9ff;
}

.anime-calendar-item {
    font-size: .88rem;
    padding: .5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: .4rem;
}

.anime-empty {
    color: #c2b3d6;
    font-size: .92rem;
}

.anime-calendar-toolbar {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.anime-day-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}

.anime-day-pill {
    font-size: .78rem;
    border-radius: 999px;
}

.anime-event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: .9rem;
    height: 100%;
}

.anime-detail-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
}

.anime-detail-cover {
    width: 100%;
    border-radius: 12px;
    max-height: 380px;
    object-fit: cover;
}

.form-control,
.form-select,
textarea.form-control {
    background: #120a1e;
    border: 1px solid #4f2a78;
    color: #f4ecff;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background: #120a1e;
    color: #fff;
    border-color: #cb8cff;
    box-shadow: 0 0 0 .2rem rgba(203, 140, 255, .25);
}

@media (max-width: 991px) {
    .anime-detail-wrap {
        grid-template-columns: 1fr;
    }

    .anime-card img {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .anime-day-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .35rem;
        scrollbar-width: thin;
    }

    .anime-day-pill {
        white-space: nowrap;
        min-width: max-content;
    }

    #weeklyCalendar {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: .4rem;
    }

    .anime-day-col {
        min-width: 86%;
        scroll-snap-align: start;
    }

    .anime-calendar-day {
        min-height: 220px;
    }

    .anime-calendar-item {
        padding: .6rem;
    }
}
