/* assets/css/premium.css - Dedicated Styles for Premium Vertical Cards & Multi-Player Experience */

/* Premium Navigation Pill (Circled in Image 2) - Specially Highlighted & Animated */
.category-pill.premium-pill {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #e11d48 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #fde047 !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    letter-spacing: 0.4px;
    padding: 0.55rem 1.1rem !important;
    border-radius: 50px !important;
    position: relative;
    overflow: hidden;
    animation: premiumGlowPulse 2.4s infinite ease-in-out;
    transition: all 0.25s ease !important;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .category-pill.premium-pill.mobile-only-pill {
        display: none !important;
    }
}

@keyframes premiumGlowPulse {
    0%, 100% {
        box-shadow: 0 0 14px rgba(245, 158, 11, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 24px rgba(251, 191, 36, 0.9), 0 0 12px rgba(225, 29, 72, 0.6);
        transform: scale(1.03);
    }
}

.category-pill.premium-pill:hover,
.category-pill.premium-pill.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 45%, #f43f5e 100%) !important;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.95), 0 6px 20px rgba(0,0,0,0.6) !important;
    transform: translateY(-2px) scale(1.05) !important;
    border-color: #ffffff !important;
}

.category-pill.premium-pill i.fa-crown {
    color: #fef08a !important;
    font-size: 1.05rem;
    filter: drop-shadow(0 0 5px rgba(254, 240, 138, 0.9));
    animation: crownShine 2s infinite ease-in-out;
}

@keyframes crownShine {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(4deg); }
}

/* ========================================================
   PREMIUM POSTS GRID - EXACT MATCH WITH USER IMAGE 1 & 2
   Vertical/Portrait Cards (High Aspect Ratio)
   ======================================================== */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1200px) {
    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 860px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 480px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 vertical cards side by side on mobile just like Image 1 */
        gap: 0.6rem;
    }
}

/* Vertical / Portrait Card Container with Multi-Ratio Support */
.premium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: var(--card-aspect, 3 / 4);
    min-height: 250px;
    background: #11111c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.28s ease;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .premium-card {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .premium-card {
        border-radius: 8px;
    }
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.25);
}

/* Portrait Image Viewport with Ambient Blur Backdrop */
.premium-card-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #08080f;
}

/* Blurred background layer */
.premium-card-bg-blur {
    position: absolute;
    inset: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.65);
    transform: scale(1.15);
    z-index: 1;
}

/* Crisp foreground image */
.premium-card-fg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.35s ease;
}

.premium-card:hover .premium-card-fg-img {
    transform: scale(1.03);
}

/* Badges on Top Corners */
.premium-badge-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.premium-badge-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    background: rgba(10, 10, 18, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fef08a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Bottom Title and Info Gradient Overlay (Exact match to User Image 1) */
.premium-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 2.5rem 0.85rem 0.85rem 0.85rem;
    background: linear-gradient(to top, rgba(8, 8, 14, 0.98) 0%, rgba(8, 8, 14, 0.85) 60%, rgba(8, 8, 14, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.premium-card-title {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 480px) {
    .premium-card-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

.premium-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.premium-card-model {
    color: #f59e0b;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.premium-card-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ========================================================
   PREMIUM MULTI-PLAYER WATCH PAGE - EXACT MATCH TO IMAGE 3
   ======================================================== */
.premium-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 980px) {
    .premium-watch-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

.premium-main-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

/* Hero Portrait Preview / Header Banner */
.premium-header-banner {
    position: relative;
    width: 100%;
    max-height: 480px;
    height: 420px;
    background: #080811;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .premium-header-banner {
        height: 320px;
    }
}

.premium-header-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.5);
    transform: scale(1.2);
}

.premium-header-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Stacked Video Players Container (User Image 3) */
.premium-players-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.premium-player-item {
    background: #12121e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s ease;
}

.premium-player-item:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.premium-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 40, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-player-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-player-title i {
    color: #f59e0b;
}

.premium-player-source-tag {
    font-size: 0.72rem;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
}

/* Responsive Player Frame (Supports vertical and widescreen videos) */
.premium-player-viewport {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 standard fallback */
    background: #000000;
}

.premium-player-viewport.portrait-stream {
    padding-bottom: 125%; /* Taller for mobile portrait leaks */
    max-height: 680px;
}

.premium-player-viewport iframe,
.premium-player-viewport video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Post Info Bar */
.premium-info-card {
    background: #141424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
}

.premium-title-main {
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.premium-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #94a3b8;
}

.premium-actions-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-premium-like {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-premium-like:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #f87171;
}

.btn-premium-like.liked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-premium-share:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

.btn-premium-wa:hover {
    background: rgba(37, 211, 102, 0.25) !important;
    border-color: #25D366 !important;
    color: #4ade80 !important;
}

/* Tags cloud */
.premium-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.premium-tag-pill {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.premium-tag-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border-color: #38bdf8;
}

/* Sidebar "Must Watch" Column */
.premium-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-sidebar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.25rem;
}

.premium-sidebar-title i {
    color: #f59e0b;
}

.premium-sidebar-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 980px) {
    .premium-sidebar-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 480px) {
    .premium-sidebar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* ========================================================
   MULTI-POSTER CARD CAROUSEL (Feed Page premium.php)
   ======================================================== */
.card-slider-arrows {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    opacity: 0;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
    z-index: 6;
}

.premium-card:hover .card-slider-arrows {
    opacity: 1;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .card-slider-arrows {
        display: none !important;
    }
}

.card-slider-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(10, 10, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    pointer-events: auto !important;
}

.card-slider-btn:hover {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    transform: scale(1.15);
}

.card-slider-dots {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
    pointer-events: none;
}

.card-slider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
}

.card-slider-dot.active {
    width: 14px;
    border-radius: 4px;
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.9);
}

/* ========================================================
   MULTI-POSTER WATCH PAGE GALLERY (premium-watch.php)
   ======================================================== */
.prem-gallery-wrap {
    position: relative;
    background: #080811;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.prem-gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: var(--banner-aspect, 3 / 4);
    min-height: 480px;
    max-height: 540px;
    overflow: hidden;
    background: #05050a;
    display: block;
}

.prem-gallery-blur {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.45);
    transform: scale(1.15);
    z-index: 1;
    pointer-events: none;
    transition: background-image 0.3s ease;
}

.prem-gallery-fg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 2;
    transition: opacity 0.25s ease, transform 0.25s ease;
    cursor: zoom-in;
    display: block;
    margin: auto;
}

.prem-gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fef08a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prem-gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.2s ease;
}

.prem-gallery-nav-btn:hover {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    transform: translateY(-50%) scale(1.1);
}

.prem-gallery-nav-btn.prev { left: 12px; }
.prem-gallery-nav-btn.next { right: 12px; }

.prem-thumb-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 18, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.prem-thumb-item {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 65px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #000;
}

.prem-thumb-item.active,
.prem-thumb-item:hover {
    border-color: #f59e0b;
    opacity: 1;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

.prem-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .prem-gallery-stage {
        max-height: 420px;
        min-height: 280px;
    }
    .prem-thumb-strip {
        padding: 0.5rem 0.65rem;
        gap: 6px;
    }
    .prem-thumb-item {
        width: 56px;
        height: 70px;
    }
    .prem-gallery-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .prem-gallery-nav-btn.prev { left: 8px; }
    .prem-gallery-nav-btn.next { right: 8px; }
}

/* ========================================================
   ADMIN MULTI-POSTER & ASPECT RATIO SELECTOR STYLES
   ======================================================== */
.ratio-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.ratio-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.6rem;
    background: rgba(18, 18, 30, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    user-select: none;
}

.ratio-option-card:hover {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.06);
}

.ratio-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ratio-option-card.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.16);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.ratio-option-icon {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    margin-bottom: 6px;
    display: block;
    transition: all 0.2s ease;
}

.ratio-option-card.selected .ratio-option-icon {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.3);
}

.ratio-option-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.ratio-option-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

.poster-thumbs-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(8, 8, 16, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.poster-thumb-preview-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.poster-thumb-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-thumb-preview-item .cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

.poster-thumb-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

