/* Modern Theme - MMS Viral Hub */
:root {
    --bg-dark: #0f1115;
    --bg-header: #0a0b0d;
    --card-bg: #161a22;
    --card-border: #242b35;
    --text-white: #ffffff;
    --text-muted: #9ca3af;
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --crown-yellow: #fbbf24;
    --green-download: #10b981;
    --btn-bg: rgba(255, 255, 255, 0.05);
    
    --font-outfit: 'Outfit', 'Inter', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-inter);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.top-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-title {
    font-family: var(--font-outfit);
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 60%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-bar {
    background-color: #161a22;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    height: 44px;
    transition: all 0.25s ease;
}

.search-bar:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 0.95rem;
    padding: 0 0.75rem;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-settings-btn, .search-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-settings-btn:hover, .search-action-btn:hover {
    color: var(--text-white);
}

.search-settings-btn svg, .search-action-btn svg {
    width: 18px;
    height: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: color 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-white);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #161a22;
    border: 1px solid var(--card-border);
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 50px;
    cursor: pointer;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #a78bfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.profile-plan {
    font-size: 0.65rem;
    color: #60a5fa;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Navigation Filters Bar */
.navigation-bar {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0;
    background-color: var(--bg-dark);
}

.nav-pills {
    background-color: #161a22;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 0.35rem;
    display: flex;
    gap: 0.25rem;
}

.nav-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-inter);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.nav-pill svg {
    width: 16px;
    height: 16px;
}

.nav-pill:hover {
    color: var(--text-white);
}

.nav-pill.active {
    background-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}

/* Section Title Indicator */
.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.title-indicator {
    width: 5px;
    height: 24px;
    background-color: #ff6a00;
    border-radius: 4px;
}

.section-title {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Video Grid: 4 columns on Desktop */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Video Card Styling */
.video-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card-thumbnail-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    background: #000;
    height: 0;
    overflow: hidden;
}

.card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}


/* Thumbnail Badges */
.badge-resolution {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.badge-views {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-views svg {
    width: 11px;
    height: 11px;
}

.badge-duration {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.badge-size {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Card Body */
.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.crown-icon {
    color: var(--crown-yellow);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Card Bottom Buttons Bar */
.card-actions-bar {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    gap: 0.5rem;
}

.action-btn {
    background-color: var(--btn-bg);
    border: none;
    border-radius: 6px;
    width: 25%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.action-btn.download-btn {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--green-download);
}

.action-btn.download-btn:hover {
    background-color: var(--green-download);
    color: #ffffff;
}

.action-btn svg {
    width: 15px;
    height: 15px;
}

/* Loading Skeletons */
.skeleton-card {
    height: 310px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Load More pagination */
.load-more-container {
    text-align: center;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #161a22;
    border: 1px solid var(--card-border);
    color: var(--text-white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Modal Popup Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #121620;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.play-circle-glow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    animation: pulse 2s infinite;
}

.play-icon-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.play-icon-inner svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 35px rgba(37, 99, 235, 0.5); }
}

.modal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.modal-title {
    font-family: var(--font-outfit);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-white);
    margin-bottom: 2rem;
    word-break: break-word;
}

.btn-play {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: #ffffff;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6);
}

.external-icon {
    width: 16px;
    height: 16px;
}

.modal-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* PC Blocker Page Styling */
.desktop-blocker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.blocker-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blocker-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: phone-bounce 2s infinite ease-in-out;
}

@keyframes phone-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.blocker-title {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.blocker-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Default PC View overrides */
.header-center {
    display: none !important;
}

.header-right {
    display: none !important;
}

.navigation-bar {
    display: none !important;
}

.main-container {
    display: none !important;
}

/* Responsive Grid and layout overrides */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .top-header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 600px) {
    .desktop-blocker {
        display: none !important;
    }
    .header-center {
        display: flex !important;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    .navigation-bar {
        display: flex !important;
    }
    .main-container {
        display: block !important;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .top-header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    .header-right {
        display: none !important;
    }
}
