/* ==========================================================================
   STARZ PICKS VIDEO HUB ARCHITECTURE STYLESHEET (DARK THEME OPTIMIZED)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Poppins:wght@400;600;700;800&display=swap');

.starz-hub-wrapper {
    margin: 0 auto;
    padding: 0.5rem;
}

/* Tighten the dead space above the grid */
.entry-header {
    display: none;
}

/* ==========================================================================
   CINEMATIC PLAYER
   ========================================================================== */
.starz-player-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 3rem auto;
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #1f1f1f;
    box-shadow: 0 20px 60px #000000cc;
}

.starz-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   GRID ARCHITECTURE: RESPONSIVE BREAKPOINTS
   ========================================================================== */
.starz-video-grid {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    justify-content: center;
}


@media (max-width: 599px) {
    .starz-video-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 1rem;
    }
    .starz-video-card {
        max-width: 100% !important;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    .starz-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .starz-video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* ==========================================================================
   CARD LAYOUT
   ========================================================================== */
.starz-video-card {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.starz-video-card:hover {
    border-color: #333333;
    box-shadow: 0 8px 24px #00000099;
    transform: none;
}

/* ==========================================================================
   THUMBNAIL
   ========================================================================== */
.starz-thumb-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    background: #000000;
    overflow: hidden;
}

.starz-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none;
}

.starz-video-card:hover .starz-thumb-frame img {
    transform: none;
}

/* ==========================================================================
   PLAY BUTTON
   ========================================================================== */
.starz-play-overlay {
    position: absolute;
    inset: 0;
    background: #00000040;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.starz-video-card:hover .starz-play-overlay {
    opacity: 1;
    background: #00000066;
}

.starz-play-btn {
    width: 52px !important;
    height: 52px !important;
    background-color: #d1eb0c !important;
    background-image: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 20px #d1eb0c66 !important;
    position: relative !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.starz-play-btn::before {
    content: "" !important;
    position: absolute !important;
    left: 20px !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    border-left: 16px solid #000000 !important;
}

.starz-play-btn * {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
}

.starz-video-card:hover .starz-play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 30px #d1eb0c99 !important;
}

/* ==========================================================================
   CARD DETAILS
   ========================================================================== */
.starz-card-details {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 0;
    justify-content: flex-start;
    background: linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
    border-top: 2px solid #1a1a1a;
}

.starz-video-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.starz-video-card:hover .starz-video-title {
    color: #EAEAEA;
}

.starz-branding-pill {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888888 !important;
    letter-spacing: 0.03em;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100%;
    text-transform: none;
    margin-top: 0.15rem;
}

.starz-branding-pill i {
    margin-right: 5px !important;
    font-size: 11px !important;
    color: #555555 !important;
}

.starz-video-card:hover .starz-branding-pill {
    color: #aaaaaa !important;
}

.starz-video-card:hover .starz-branding-pill i {
    color: #888888 !important;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.starz-pagination-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 3rem auto 1.5rem auto !important;
    width: 100% !important;
    clear: both !important;
}

.starz-page-box {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #111111 !important;
    border: 2px solid #2a2a2a !important;
    border-radius: 4px !important;
    color: #aaaaaa !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.starz-page-box:hover {
    background-color: #1f1f1f !important;
    border-color: #555555 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px #00000099 !important;
}

.starz-page-box.active {
    background-color: #d1eb0c !important;
    border-color: #d1eb0c !important;
    color: #0a0a0a !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px #d1eb0c4d !important;
    transform: none !important;
    pointer-events: none !important;
}