.home-hero {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: start;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-hero__action-primary {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    font-weight: 600;
    transition: all 0.15s;
}

.home-hero__action-primary:hover {
    background: var(--accent);
    opacity: 0.8 !important;
}

.home-hero__action-secondary {
    opacity: 0.9;
}

.home-hero__timezone {
    color: var(--text-muted);
    font-size: 0.86em;
    font-family: "JetBrains Mono", monospace;
}

.home-season {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.home-season__column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.home-season-hero {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px;
    gap: 20px;
    background: radial-gradient(680px 240px at 8% -20%, rgba(102, 163, 255, 0.16), transparent 65%), radial-gradient(560px 200px at 100% -35%, rgba(102, 163, 255, 0.14), transparent 62%), var(--bg2);
}
.home-season-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 0;
}
.home-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg1);
    text-align: center;
    gap: 5px;
}
.home-stat-card i {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 4px;
}
.home-stat-card__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
}
.home-stat-card__label {
    font-size: 11px;
    color: var(--text-muted, #888);
    line-height: 1.2;
}
.season-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 15px 18px 0;*/
}
.season-header a {
    color: var(--accent);
    text-decoration: none;
}
.season-header a:hover {
    text-decoration: underline;
}
.season-header__title {
    font-size: 13pt;
    font-weight: 600;
    margin: 0;
}
.home-season__cards {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 72px;
    gap: 20px;
    padding: 0 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    text-decoration: none;
    color: var(--text);
    content-visibility: auto;
    contain-intrinsic-size: 0 72px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-season__cards--no-rank {
    padding-left: 20px;
}

.home-season__cards--no-rank .season__anime-cover,
.home-season__cards .season__anime-cover {
    width: 82px;
    height: 72px;
    min-width: 82px;
    max-width: 82px;
    object-fit: cover;
    flex: 0 0 82px;
}

.home-season__cards:visited {
    color: var(--text);
}

.home-season__cards:hover {
    border-color: var(--accent);
}

.season__anime-episode {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-right: 6px;
}

.season__anime-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.home-season__cards:focus-visible {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.home-season__cards::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 12, 28, 0.9), rgba(10, 24, 58, 0.7) 55%, rgba(6, 14, 30, 0.86));
    pointer-events: none;
}

.home-season__cards > * {
    position: relative;
    z-index: 2;
}

.season__anime-rank {
    min-width: 54px;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 800;
    color: var(--text);
}

.season__anime-cover {
    width: 82px;
    height: 72px;
    object-fit: cover;
}

.season__anime-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    gap: 14px;
    position: relative;
    padding: 10px 0;
}

.season__anime-meta {
    flex: 1;
    min-width: 0;
}

.season__anime-title {
    display: block;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.season__anime-date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.season__anime-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.season__anime-countdown {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--text);
    /*border: 1px solid rgba(255, 255, 255, 0.22);*/
    border-radius: 999px;
    /*padding: 2px 8px;
    background: rgba(4, 8, 20, 0.45);*/
    white-space: nowrap;
}

.season__anime-delay {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    color: #ffd7d7;
    border: 1px solid rgba(255, 120, 120, 0.65);
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(120, 18, 18, 0.42);
    white-space: nowrap;
}

.season__anime-score {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 700;
}

.home-season-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-season-featured__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.home-season-featured__card {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--bg2);
    transition: border-color 0.15s;
    content-visibility: auto;
    contain-intrinsic-size: 0 80px;
}

.home-season-featured__card:hover {
    border-color: var(--accent);
}

.home-season-featured__cover {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.home-season-featured__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-season-featured__title {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-season-featured__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.home-season-featured__score {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .home-season {
        display: grid;
        grid-template-columns: repeat(1, minmax(145px, 1fr));
    }
}

@media (max-width: 640px) {
    .home-hero__actions {
        width: 100%;
        flex-direction: column;
    }

    .home-hero__actions .animes-random-btn {
        width: 100%;
        text-align: center;
    }

    .home-season__cards {
        gap: 12px;
        padding: 0 10px;
        min-height: 68px;
    }

    .season__anime-rank {
        min-width: 40px;
        font-size: 1.05rem;
    }

    .season__anime-cover {
        width: 72px;
        height: 62px;
        min-width: 72px;
        max-width: 72px;
        flex: 0 0 72px;
    }

    .season__anime-score {
        font-size: 0.92rem;
    }

    .season__anime-info {
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .season__anime-date-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    .season__anime-date {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .season__anime-countdown {
        font-size: 0.72rem;
        /*padding: 2px 6px;*/
    }

    .season__anime-delay {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* Spotlight da Semana */
.home-spotlight {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(680px 240px at 8% -20%, rgba(102, 163, 255, 0.16), transparent 65%),
        radial-gradient(560px 200px at 100% -35%, rgba(102, 163, 255, 0.14), transparent 62%),
        var(--bg2);
}

.home-spotlight__header, .home-season__header {
    padding: 15px 18px 0;
}

.home-spotlight__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}

.home-spotlight__card:hover {
    opacity: 0.95;
}

.home-spotlight__banner {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
}

.home-spotlight__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg2), transparent 60%);
}

.home-spotlight__cover {
    position: absolute;
    bottom: -40px;
    left: 20px;
    width: 120px;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border);
    z-index: 2;
}

.home-spotlight__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 20px 18px;
    gap: 20px;
}

.home-spotlight__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-spotlight__title {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-spotlight__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-spotlight__tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.home-spotlight__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.home-spotlight__dot {
    color: var(--text-dim);
}

.home-spotlight__synopsis {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    width: 100%;
}

.home-spotlight__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.home-spotlight__score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.home-spotlight__score-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.home-spotlight__score-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.home-spotlight__popularity {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Anime do Dia */
.home-anime-day {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    gap: 15px;
    overflow: hidden;
    background: radial-gradient(680px 240px at 8% -20%, rgba(102, 163, 255, 0.16), transparent 65%),
        radial-gradient(560px 200px at 100% -35%, rgba(102, 163, 255, 0.14), transparent 62%),
        var(--bg2);
}

.home-anime-day__airing {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.is-translating {
    opacity: 0.5;
    animation: translatePulse 1s ease-in-out infinite;
}

.is-translated {
    opacity: 1;
}

@keyframes translatePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Heatmap da Semana */
.home-heatmap {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px;
    gap: 15px;
    background: radial-gradient(680px 240px at 8% -20%, rgba(102, 163, 255, 0.16), transparent 65%),
        radial-gradient(560px 200px at 100% -35%, rgba(102, 163, 255, 0.14), transparent 62%),
        var(--bg2);
}

.home-heatmap__busy-label {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.home-heatmap__grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-heatmap__hour-labels {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-left: 42px;
}

.home-heatmap__corner {
    width: 40px;
}

.home-heatmap__hour {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: "JetBrains Mono", monospace;
}

.home-heatmap__row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.home-heatmap__day {
    width: 40px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-right: 6px;
    flex-shrink: 0;
}

.home-heatmap__cell {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 3px;
    min-height: 20px;
    max-height: 32px;
    overflow: hidden;
}

.home-heatmap__cell-inner {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0.08;
}

.home-heatmap__total {
    width: 32px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: "JetBrains Mono", monospace;
    flex-shrink: 0;
    padding-right: 4px;
}

.home-heatmap-tooltip {
    position: fixed;
    z-index: 1000;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
    max-width: 260px;
    white-space: normal;
    word-break: break-word;
}

.home-heatmap-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-heatmap__cell {
    cursor: pointer;
}

.home-heatmap__cell:hover .home-heatmap__cell-inner {
    filter: brightness(1.2);
}

/* Responsive */
@media (max-width: 640px) {
    .home-spotlight__banner {
        height: 160px;
    }

    .home-spotlight__cover {
        width: 90px;
        height: 128px;
        bottom: -30px;
        left: 15px;
    }

    .home-spotlight__body {
        padding: 35px 15px 15px;
    }

    .home-spotlight__title {
        font-size: 1.15rem;
    }

    .home-spotlight__score-value {
        font-size: 1.5rem;
    }

    .home-heatmap__hour-labels {
        padding-left: 32px;
    }

    .home-heatmap__day {
        width: 30px;
        font-size: 0.7rem;
    }

    .home-heatmap__cell {
        min-height: 16px;
    }
}
