@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/*
Theme Name: BIGREV5MEI
Description: Responsive Movie Theme Slider
Version: 1.1
*/

:root {
    --bg-color: #EDF2F4;
    /* Base background (Off-white / Light Blue) */
    --bg-white: #ffffff;
    /* Pure white for containers/cards */
    --text-dark: #2B2D42;
    /* Main text (Navy Blue) */
    --text-muted: #8D99AE;
    /* Muted text/borders (Grey Blue) */
    --text-light: #ffffff;
    /* White text */
    --accent-color: #EF233C;
    /* Bright Red */
    --accent-dark: #D90429;
    /* Crimson Red for hover/active */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-dark);
    padding-top: 80px;
    /* offset for fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

button,
input,
select,
textarea {
    font-family: 'Nunito', sans-serif;
}

* {
    box-sizing: border-box;
}

/* Screen-reader only — visible to SEO crawlers, hidden visually */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 400px;
    /* Mobile roughly 400px */
    margin: 0 auto;
    padding: 16px;
}

/* --- Header System --- */
.site-header {
    background-color: rgba(43, 45, 66, 0.95);
    /* Navy transparan */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--bg-white);
    text-decoration: none;
}

/* Custom Logo */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 40px;
    /* fit header */
    width: auto;
    display: block;
}

/* Search Combobox */
.search-combobox {
    flex-grow: 1;
    max-width: 400px;
    margin-left: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.search-field {
    border: none;
    background: transparent;
    padding: 8px 12px;
    width: 100%;
    outline: none;
    color: var(--bg-white);
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.search-submit:hover {
    color: var(--accent-color);
}

/* Dropdown Menus */
.header-dropdowns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 44px;
    overflow: visible;
    padding: 0 4px;
    /* Room for shadow */
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    height: 36px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--bg-white);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-toggle svg {
    color: var(--accent-color);
    transition: transform 0.3s;
}

.dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--accent-color);
}

.dropdown-toggle:hover svg {
    transform: scale(1.15) rotate(-5deg);
}

.dropdown-toggle[aria-expanded="true"] {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3);
}

.dropdown-toggle[aria-expanded="true"] svg {
    color: #ffffff;
}

/* Widgets Base */
.widget {
    margin-bottom: 0;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: capitalize;
}

.btn-small {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--text-dark);
}

.btn-small:hover {
    color: var(--accent-color);
}

/* Slider System */
.slider-wrapper {
    position: relative;
    overflow: visible;
}

.sliders {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* No snap or max-width constraint — free scroll */
}

.sliders::-webkit-scrollbar {
    display: none;
}

.slider {
    flex: 0 0 auto;
}

/* Base Dimensions (Mobile) */
article {
    width: 100px;
    height: 214px;
    display: flex;
    flex-direction: column;
}

figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.poster {
    position: relative;
    width: 100px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlays on poster */
.year {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
}

.Tema {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(229, 9, 20, 0.8);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
}

.Country {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
}

figcaption {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
}

.genre {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

h3 {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 75px;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
    /* Always visible on all devices */
    opacity: 1;
    pointer-events: auto;
}

.scroll-btn:hover {
    background-color: var(--accent-color);
}

.scroll-btn.hidden {
    display: none !important;
}

.scroll-left {
    left: -10px;
}

.scroll-right {
    right: -10px;
}

/* Responsive adjustments */

/* Tablet */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

    .header-container {
        flex-direction: row;
        align-items: stretch;
        overflow: visible;
        padding-top: 0;
    }

    .header-main-row {
        flex: 1;
    }

    .header-dropdowns {
        height: auto;
        align-self: center;
        border-left: 1px solid #e2e8f0;
        padding-left: 16px;
    }

    article {
        width: 120px;
        height: 246.4px;
    }

    .poster {
        width: 120px;
        height: 180px;
    }

    .scroll-btn {
        top: 90px;
    }

    .genre {
        font-size: 11px;
    }

    h3 {
        font-size: 13px;
    }
}

/* Laptop */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }

    .header-container {
        min-height: 56px;
    }

    article {
        width: 130px;
        height: 266.2px;
    }

    .poster {
        width: 130px;
        height: 195px;
    }

    .scroll-btn {
        top: 97.5px;
    }

    .genre {
        font-size: 12px;
    }

    h3 {
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════
   HOT MOVIES / TRENDING GRID  (index.php)
══════════════════════════════════════════════════ */

.hot-movies-widget {
    margin-bottom: 0;
}

.rank {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(229, 9, 20, 0.8);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 2px;
    z-index: 2;
}

/* ══════════════════════════════════════════════════
   SINGLE PAGE  (single.php)
══════════════════════════════════════════════════ */

/* ── Shared layout shell ── */
.single-page {
    width: 100%;
}

.sp-section {
    padding: 0;
}

.sp-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ────────────────────────────────────────────────
   SECTION 1 : Player + Related sidebar
──────────────────────────────────────────────── */
.sp-section--player {
    background: var(--bg-white);
    border-bottom: 1px solid var(--text-muted);
}

.sp-section--player .sp-container {
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 0;
}

/* Player block – takes all available space */
.sp-player-block {
    flex: 1 1 auto;
    min-width: 0;
}

.sp-player-wrap {
    background: #000;
    /* iframe bg tetap hitam */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 16:9 responsive iframe */
.sp-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    background: #000;
}

.sp-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Server switcher bar */
.sp-servers {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border-top: 1px solid var(--text-muted);
    padding: 8px 14px;
    min-height: 46px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.sp-servers__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1.5px;
    margin-right: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    opacity: 1;
    flex-shrink: 0;
}

.sp-servers__label::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(229, 9, 20, 0.4);
}

.sp-srv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-color);
    border: 1.5px solid var(--text-muted);
    color: var(--text-dark);
    font-family: 'Nunito', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    padding: 0 16px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Sembunyikan img.emoji yang dirender WordPress di dalam tombol */
.sp-srv img.emoji {
    display: none !important;
}

.sp-srv:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(239, 35, 60, 0.08);
    /* accent with low opacity */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 35, 60, 0.15);
}

.sp-srv--active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(239, 35, 60, 0.2), 0 4px 12px rgba(239, 35, 60, 0.3) !important;
    transform: translateY(-1px);
    font-weight: 800 !important;
}

/* Subtitle info note next to Hydrax button */
.sp-servers__note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #fbbf24;
    white-space: nowrap;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

.sp-servers__note strong {
    font-weight: 800;
    color: #fde68a;
}

.sp-servers__note svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Related sidebar */
.sp-related {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-left: 1px solid var(--text-muted);
    display: flex;
    flex-direction: column;
    max-height: calc(56.25vw + 38px);
    /* match player height */
    overflow-y: hidden;
}

.sp-related__title {
    margin: 0;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent-color);
    background: var(--bg-color);
}

.sp-related__list {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}

.sp-related__list::-webkit-scrollbar {
    width: 4px;
}

.sp-related__list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
}

.sp-related__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    text-decoration: none;
    border-bottom: 1px solid var(--bg-color);
    transition: background 0.15s;
}

.sp-related__item:hover {
    background: var(--bg-color);
}

.sp-related__thumb {
    width: 54px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-color);
}

.sp-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-related__no-img {
    width: 100%;
    height: 100%;
    background: var(--text-muted);
}

.sp-related__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sp-related__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sp-related__year {
    font-size: 11px;
    color: var(--text-muted);
}

.sp-related__empty {
    color: var(--text-muted);
    font-size: 12px;
    padding: 16px;
}

/* ────────────────────────────────────────────────
   SECTION 2 : Info + Widgets sidebar
──────────────────────────────────────────────── */
.sp-section--info {
    background: var(--bg-white);
    border-top: 1px solid var(--text-muted);
}

.sp-section--info .sp-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 16px;
}

/* Movie info block */
.sp-info-block {
    flex: 1 1 auto;
    min-width: 0;
}

.sp-info__title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Badges */
.sp-info__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.sp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.sp-badge--rating {
    background: #fef3c7;
    color: #92400e;
}

.sp-badge--year {
    background: #e2e8f0;
    color: #475569;
}

.sp-badge--country {
    background: #dbeafe;
    color: #1e40af;
}

.sp-badge--genre {
    background: #fce7f3;
    color: #be185d;
}

.sp-badge--sub {
    background: #d1fae5;
    color: #065f46;
    font-size: 10px;
    padding: 2px 8px;
}

/* Synopsis */
.sp-info__synopsis-wrap {
    margin-bottom: 20px;
}

.sp-info__synopsis {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    text-align: justify;
}



/* Show More / Show Less button */
.sp-synopsis-toggle {
    display: inline-block;
    margin-top: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

.sp-synopsis-toggle:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Details wrap for Poster + Table */
.sp-info__details-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Details table */
.sp-info__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sp-info__table th,
.sp-info__table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--bg-color);
    vertical-align: top;
    text-align: left;
}

.sp-info__table th {
    width: 100px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.sp-info__table td {
    color: var(--text-dark);
}

/* Poster thumb */
.sp-info__poster-thumb {
    width: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sp-info__poster-thumb img {
    width: 100%;
    display: block;
}

/* Cast links */
.sp-cast-list {
    color: var(--text-dark);
}

.sp-cast-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.sp-cast-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.sp-cast-sep {
    color: var(--text-muted);
}

/* ── Widgets sidebar ── */
.sp-widgets {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-widget {
    background: var(--bg-white);
    border: 1px solid var(--text-muted);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(43, 45, 66, 0.05);
    /* Light shadow from text-dark rgb */
}

.sp-widget__title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: var(--bg-color);
    border-bottom: 1px solid var(--text-muted);
}

/* Social links */
.sp-social-links {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
}

.sp-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    color: #fff;
}

.sp-social:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.sp-social svg {
    width: 20px;
    height: 20px;
}

.sp-social--ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.sp-social--fb {
    background: #1877f2;
}

.sp-social--tw {
    background: #000;
}

.sp-social--tg {
    background: #0088cc;
}

/* Download buttons */
.sp-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 14px;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sp-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sp-download-btn--movie {
    background: var(--accent-color);
    color: #fff;
}

.sp-download-btn--sub {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 6px;
}

.sp-download-empty {
    margin: 10px 14px;
    font-size: 12px;
    color: #94a3b8;
}

/* ══════════════════════════════════════════════════
   PLAYER AD POPUP OVERLAY  (full-overlay, click-to-dismiss)
══════════════════════════════════════════════════ */
.sp-player-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 14, 16, 0.91);
    cursor: pointer;
    transition: opacity 0.45s ease;
    /* no backdrop-filter: keep the dark, not blurred */
}

.sp-player-popup--hidden {
    opacity: 0;
    pointer-events: none;
}

/* Inner content box — no background, just text centered */
.sp-popup-inner {
    text-align: center;
    padding: 28px 36px;
    max-width: 560px;
    width: 90%;
    /* subtle divider border to match screenshot look */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* Bold white heading */
.sp-popup-heading {
    margin: 0 0 18px;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Italic grey quote */
.sp-popup-quote {
    margin: 0 0 22px;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(12px, 1.6vw, 14px);
    font-style: italic;
    color: rgba(200, 200, 210, 0.72);
    line-height: 1.65;
    text-shadow: none;
}

.sp-popup-quote em {
    font-style: italic;
    color: rgba(220, 220, 240, 0.9);
    font-weight: 700;
}

/* Yellow glowing "THIS PLAYER CONTAINS ADS" */
.sp-popup-ads-label {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f5df1a;
    text-shadow:
        0 0 8px rgba(245, 223, 26, 0.55),
        0 0 20px rgba(245, 223, 26, 0.2);
}

/* ══════════════════════════════════════════════════
   DOWNLOAD IFRAME SECTIONS
══════════════════════════════════════════════════ */
.sp-dl-section {
    background: var(--bg-white);
    border-top: 1px solid var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    margin-top: 2px;
}

.sp-dl-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-color);
    border-bottom: 1px solid transparent;
    cursor: default;
}

.sp-dl-section__header svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.sp-dl-section__header span {
    flex: 1;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* Toggle button */
.sp-dl-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sp-dl-toggle:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 35, 60, 0.3);
}

.sp-dl-toggle svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

/* iframe frame wrapper */
.sp-dl-frame-wrap {
    position: relative;
    width: 100%;
    /* 4:3-ish for download pages – can be overridden */
    padding-top: 56%;
    background: #111;
    border-top: 2px solid var(--accent-color);
    overflow: hidden;
}

.sp-dl-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

/* ── MOBILE : stack everything ── */
@media (max-width: 767px) {

    .sp-section--player .sp-container,
    .sp-section--info .sp-container {
        flex-direction: column;
    }

    /* Player: full bleed on mobile – no side padding */
    .sp-section--player .sp-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .sp-player-block {
        width: 100%;
    }

    .sp-info__table th {
        width: 80px;
    }

    .sp-related {
        width: 100%;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid #2e2e2e;
    }

    .sp-widgets {
        width: 100%;
    }

    .sp-servers {
        flex-wrap: wrap;
        overflow-x: visible;
        height: auto;
    }

    .sp-servers__note {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        white-space: normal;
    }
}

/* ══════════════════════════════════════════════════
   CATEGORY PAGE  (category.php)
══════════════════════════════════════════════════ */

/* Category page header */
.cat-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

.cat-page-header__title {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-page-header__desc {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Grid layout */
.cat-grid {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    /* Mobile: 3 columns */
    grid-template-columns: repeat(3, 1fr);
}

.cat-grid__item {
    min-width: 0;
}

.cat-grid__item article {
    width: 100%;
    height: auto;
}

.cat-grid__item figure {
    height: auto;
}

/* Poster fills full column width, keeps aspect ratio */
.cat-grid__item .poster {
    width: 100%;
    padding-top: 150%;
    /* 2:3 poster ratio */
    height: 0;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.cat-grid__item .poster a {
    position: absolute;
    inset: 0;
    display: block;
}

.cat-grid__item .poster img,
.cat-grid__item .poster>div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlays inherit from global .year / .Tema */

/* Figcaption below poster */
.cat-grid__item figcaption {
    margin-top: 6px;
}

/* Empty message */
.cat-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 14px;
}

/* Pagination */
.cat-pagination {
    margin: 28px 0;
    display: flex;
    justify-content: center;
}

.cat-pagination .nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.cat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--text-muted);
    transition: background 0.2s, color 0.2s;
}

.cat-pagination .page-numbers:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.cat-pagination .page-numbers.current {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ── Responsive breakpoints ── */
@media (min-width: 480px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .cat-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1280px) {
    .cat-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1440px) {
    .cat-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 16px;
    }
}

/* ── Single Page: Poster + Details side by side on mobile ── */
.sp-info__details-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

/* ══════════════════════════════════════════════════
   FOOTER SYSTEM
══════════════════════════════════════════════════ */
.site-footer {
    padding: 20px 20px;
    text-align: center;
    background: var(--text-dark);
    color: var(--text-muted);
    font-size: 14.5px;
    margin-top: 20px;
    border-top: 3px solid var(--accent-color);
}

/* ── Force footer to the bottom on Category (Archive) and Search pages ── */
body.archive,
body.search {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.archive .site-footer,
body.search .site-footer {
    margin-top: auto;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 767px) {
    .sp-info__details-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .sp-info__poster-thumb {
        flex: 0 0 110px;
        width: 110px;
    }

    .sp-info__poster-thumb img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        display: block;
    }

    .sp-info__table {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
    }

    .sp-info__table th {
        white-space: nowrap;
        padding-right: 8px;
        vertical-align: top;
    }

    .sp-info__table td {
        word-break: break-word;
    }
}

/* ── Single Page: Poster di samping tabel pada Desktop ── */
@media (min-width: 768px) {
    .sp-info__details-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .sp-info__poster-thumb {
        flex: 0 0 160px;
        width: 160px;
    }

    .sp-info__poster-thumb img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        display: block;
    }

    .sp-info__table {
        flex: 1;
        min-width: 0;
    }
}

/* ── Single Page: Related Movies Mobile Slider ── */

/* Desktop sidebar related (hidden on mobile, shown via CSS on ≥768px) */
.sp-related--desktop {
    display: block;
    /* visible on desktop */
}

@media (max-width: 767px) {
    .sp-related--desktop {
        display: none;
        /* hidden on mobile — bottom slider handles it */
    }
}

/* Desktop: keep bottom block hidden*/
.sp-related--bottom {
    display: none;
}

@media (max-width: 767px) {

    /* Show bottom related on mobile – matches homepage widget style */
    .sp-related--bottom {
        display: block;
        width: 100%;
        margin-top: 20px;
        padding-bottom: 16px;
        background: transparent;
    }

    /* Title row: same as .widget-header on the homepage */
    .sp-related--bottom .sp-related__title {
        display: flex;
        align-items: center;
        font-size: 1.05rem;
        font-weight: 700;
        margin: 0 0 12px;
        border-left: 4px solid var(--accent-color);
        padding-left: 10px;
        text-transform: capitalize;
    }

    /* Horizontal scroll list – identical to .sliders on homepage */
    .sp-related--bottom .sp-related__list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 12px;
        padding: 0 0 6px;
        list-style: none;
        margin: 0;
    }

    .sp-related--bottom .sp-related__list::-webkit-scrollbar {
        display: none;
    }

    /* Each linked card – identical proportions to homepage .slider card */
    .sp-related--bottom .sp-related__item {
        flex: 0 0 100px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
    }

    /* Poster thumbnail – matches .poster on homepage */
    .sp-related--bottom .sp-related__thumb {
        width: 100px;
        height: 150px;
        overflow: hidden;
        border-radius: 4px;
        background: transparent;
        position: relative;
    }

    .sp-related--bottom .sp-related__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Caption below thumb – matches .figcaption on homepage */
    .sp-related--bottom .sp-related__meta {
        margin-top: 5px;
    }

    .sp-related--bottom .sp-related__name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.73rem;
        font-weight: 600;
        color: var(--text-dark);
        line-height: 1.3;
    }

    .sp-related--bottom .sp-related__year {
        display: block;
        font-size: 0.68rem;
        color: #888;
        margin-top: 2px;
    }
}

/* ══════════════════════════════════════════════════
   CATEGORY PAGE  (category.php / archive.php)
══════════════════════════════════════════════════ */

/* ── Category Header ── */
.cat-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

.cat-page-header__inner {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-page-header__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.cat-page-header__desc {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Movie Grid ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}


.cat-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.cat-card figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cat-card .poster {
    position: relative;
    width: 100%;
    padding-top: 150%;
    /* 2:3 poster ratio */
    overflow: hidden;
    border-radius: 5px;
    background: #222;
}

.cat-card .poster a {
    position: absolute;
    inset: 0;
    display: block;
}

.cat-card .poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card:hover .poster img {
    transform: scale(1.04);
}

.cat-card .year {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    pointer-events: none;
}

.cat-card .Tema {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(229, 9, 20, 0.85);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    pointer-events: none;
}

.cat-card figcaption {
    margin-top: 7px;
    display: flex;
    flex-direction: column;
}

.cat-card .genre {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.cat-card h3 {
    margin: 0;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 1rem;
}

/* ── Pagination ── */
.cat-pagination {
    display: flex;
    justify-content: center;
    padding: 16px 0 32px;
}

.cat-pagination .nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* All page number links + prev/next */
.cat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--text-muted);
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.2s ease;
    line-height: 1;
}

.cat-pagination .page-numbers:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(239, 35, 60, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 35, 60, 0.15);
}

/* Current / active page */
.cat-pagination .page-numbers.current {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(239, 35, 60, 0.35);
    cursor: default;
    transform: none;
}

/* Dots separator */
.cat-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
}

.cat-pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

/* Prev / Next arrow buttons */
.cat-pagination .prev.page-numbers,
.cat-pagination .next.page-numbers {
    font-size: 16px;
    font-weight: 900;
    padding: 0 12px;
}

/* ── Responsive ── */
@media (min-width: 480px) {
    .cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 14px;
    }
}

@media (min-width: 768px) {
    .cat-page-header__title {
        font-size: 2rem;
    }

    .cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }

    .cat-card h3 {
        font-size: 12.5px;
    }

    .cat-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (min-width: 1280px) {
    .cat-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1440px) {
    .cat-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 18px;
    }

    .cat-card h3 {
        font-size: 13px;
    }
}

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD WIDGET POPUP ADS (.sp-download-wrap & .sp-dl-popup)
   Tampil di atas widget Download Movie & Subtitle
══════════════════════════════════════════════════════════════ */

.sp-download-wrap {
    position: relative;
    /* Memberikan konteks stacking context untuk popup overlay */
    border-radius: 8px; /* Mengikuti border radius form/widget */
    overflow: hidden; /* Mencegah popup melebar keluar batas */
}

/* Overlay menutupi seluruh .sp-download-wrap */
.sp-dl-popup {
    position: absolute;
    inset: 0;                          /* top/right/bottom/left: 0 */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    /* Latar transparan terang/gelap — glassmorphism */
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);

    /* Fade-in saat muncul */
    animation: sp-popup-fadein 0.4s ease forwards;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease, transform 0.4s ease;
    
    /* Beri sedikit border agar batas lebih terlihat */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark Mode support (jika ada) atau menyesuaikan dengan nuansa theme */
body.dark-mode .sp-dl-popup {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animasi keluar saat diklik */
.sp-dl-popup--hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(10px) scale(0.98) !important;
}

/* Kotak konten tengah — info download */
.sp-dl-popup__inner {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 8px;
    
    /* Warna latar belakang solid/transparan untuk box konten */
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.2); /* Sentuhan merah dari accent */

    text-align: center;
    color: var(--text-dark);
    user-select: none;
    
    /* Animasi masuk kartu */
    animation: sp-dl-card-slidein 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

body.dark-mode .sp-dl-popup__inner {
    background: rgba(30, 30, 40, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes sp-dl-card-slidein {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Ikon panah/download */
.sp-dl-popup__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(239, 35, 60, 0.1); /* Latar belakang merah tipis */
    color: var(--accent-color);
}

.sp-dl-popup__icon svg {
    width: 24px;
    height: 24px;
    animation: sp-dl-bounce 2s ease-in-out infinite;
}

@keyframes sp-dl-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

/* Heading */
.sp-dl-popup__heading {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

body.dark-mode .sp-dl-popup__heading {
    color: #fff;
}

/* Teks keterangan */
.sp-dl-popup__text {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}

/* Tombol Tap di sini */
.sp-dl-popup__cta {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(239, 35, 60, 0.3);
    pointer-events: none; /* Klik ditangani oleh parent overlay */
    transition: transform 0.2s ease;
}

.sp-dl-popup:hover .sp-dl-popup__cta {
    transform: scale(1.05);
}

/* Label keterangan iklan */
.sp-dl-popup__label {
    margin: 12px 0 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ══════════════════════════════════════════════════
   PAGINATION — navigation pagination (category & advanced-search)
══════════════════════════════════════════════════ */
.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 20px;
    width: 100%;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid var(--text-muted);
    background: var(--bg-white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.navigation.pagination .nav-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 35, 60, 0.25);
}

.navigation.pagination .nav-links span.current {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 35, 60, 0.25);
    cursor: default;
}

.navigation.pagination .nav-links span.dots {
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
}

/* Prev / Next arrows */
.navigation.pagination .nav-links .prev,
.navigation.pagination .nav-links .next {
    font-size: 15px;
    font-weight: 800;
    padding: 0 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .navigation.pagination .nav-links a,
    .navigation.pagination .nav-links span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    .navigation.pagination .nav-links {
        gap: 4px;
    }
}
