/* HNFLIX — RIWAYAT NONTON KHUSUS */

.history-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 110px;
}

.history-page-header {
    margin-bottom: 20px;
}

.history-page-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.history-page-header p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    width: 100%;
}

.history-card {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.history-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #222;
}

.history-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-title {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.history-meta {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}

@media (max-width: 600px) {
    .history-page {
        padding: 20px 14px 110px;
    }

    .history-grid {
        gap: 26px 18px;
    }
}

@media (max-width: 380px) {
    .history-page {
        padding-left: 11px;
        padding-right: 11px;
    }

    .history-grid {
        gap: 24px 14px;
    }
}

/* Samakan judul dan metadata dengan kartu Home */
.history-title {
    margin-top: 5px !important;
    padding: 0 !important;
    width: 100%;
    min-width: 0;
}

.history-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    max-height: 30px;
    font-size: 13px !important;
    line-height: 15px !important;
    font-weight: 600;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 13px;
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.2;
    white-space: nowrap;
    color: rgba(255,255,255,.55);
}

.history-meta span {
    margin: 0;
    padding: 0;
}

.history-meta span:nth-child(2) {
    color: #687386;
}

.history-meta span:last-child {
    color: #d7dde7;
    font-weight: 700;
}


/* Kembalikan warna tahun dan kualitas */
.history-meta span:first-child {
    color: rgba(255,255,255,.55) !important;
    font-weight: 400 !important;
}

.history-meta span:nth-child(2) {
    color: #687386 !important;
}

.history-meta span:last-child {
    color: #d7dde7 !important;
    font-weight: 700 !important;
}


.history-page .history-card .history-title .history-meta,
.history-page .history-card .history-title .history-meta span,
.history-page .history-card .history-title .history-meta span:first-child,
.history-page .history-card .history-title .history-meta span:nth-child(2),
.history-page .history-card .history-title .history-meta span:last-child {
    color: #d7dde7 !important;
    text-shadow: none !important;
    background: transparent !important;
}

.history-page .history-card .history-title .history-meta span:first-child {
    color: rgba(255,255,255,.55) !important;
    font-weight: 400 !important;
}

.history-page .history-card .history-title .history-meta span:nth-child(2) {
    color: #687386 !important;
}

.history-page .history-card .history-title .history-meta span:last-child {
    color: #d7dde7 !important;
    font-weight: 700 !important;
}


.history-page a.history-card,
.history-page a.history-card .history-title,
.history-page a.history-card .history-name,
.history-page a.history-card .history-meta,
.history-page a.history-card .history-meta span {
    color: #d7dde7 !important;
}

.history-page a.history-card .history-meta span:first-child {
    color: #9aa3b2 !important;
}

.history-page a.history-card .history-meta span:nth-child(2) {
    color: #687386 !important;
}

.history-page a.history-card .history-meta span:last-child {
    color: #d7dde7 !important;
    font-weight: 700 !important;
}


/* Warna kuning untuk tahun dan kualitas */
.history-page a.history-card .history-meta span:first-child,
.history-page a.history-card .history-meta span:last-child {
    color: #facc15 !important;
    font-weight: 700 !important;
}


.history-page .history-meta span:first-child,
.history-page .history-meta span:last-child {
    color: #facc15 !important;
    -webkit-text-fill-color: #facc15 !important;
    text-shadow: none !important;
}


/* Perbesar poster card Riwayat Nonton */
.history-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.history-thumb {
    aspect-ratio: 2 / 3 !important;
    width: 100% !important;
}

.history-card {
    min-width: 0 !important;
}


@media (max-width: 600px) {
    .history-page {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .history-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 8px !important;
        row-gap: 24px !important;
    }
}

