* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keep default cursor visible on all elements */
body, html {
    cursor: default;
}

/* Custom cursor will overlay on top */

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0f;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Custom Cursor - Always Visible & Working */
.cursor-dot {
    width: 20px;
    height: 20px;
    border: 3px solid #e62117;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999; /* Highest z-index to stay on top */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(230, 33, 23, 0.8);
    background: rgba(230, 33, 23, 0.3);
    display: block !important; /* Force show */
    visibility: visible !important;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(230, 33, 23, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(230, 33, 23, 0.5);
    display: block !important; /* Force show */
    visibility: visible !important;
}

/* 3D Animated Background */
.background-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    perspective: 1000px;
}

.grid-plane {
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(90deg, rgba(230, 33, 23, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(230, 33, 23, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    backface-visibility: visible;
}

.floating-cube {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(230, 33, 23, 0.2), rgba(230, 33, 23, 0.05));
    border: 2px solid rgba(230, 33, 23, 0.3);
    transform-style: preserve-3d;
    animation: floatAndRotate 15s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(230, 33, 23, 0.3);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(230, 33, 23, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(230, 33, 23, 0.8);
    animation: particleFloat 10s ease-in-out infinite;
}

@keyframes gridMove {
    0% {
        transform: rotateX(60deg) translateY(-100px) translateZ(-200px);
    }
    100% {
        transform: rotateX(60deg) translateY(0px) translateZ(-200px);
    }
}

@keyframes floatAndRotate {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translate3d(100px, 50px, 100px) rotateX(90deg) rotateY(45deg);
    }
    50% {
        transform: translate3d(-50px, 100px, -50px) rotateX(180deg) rotateY(90deg);
    }
    75% {
        transform: translate3d(-100px, -50px, 50px) rotateX(270deg) rotateY(135deg);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translate3d(100px, -200px, 50px);
    }
}

/* Header Styles - Enhanced 3D */
.header {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    padding: 20px 40px;
    border-bottom: 3px solid rgba(230, 33, 23, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(230, 33, 23, 0.3),
                0 10px 60px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-3d {
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(230, 33, 23, 0.6));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-5px) rotateY(10deg);
    }
}

.logo-text {
    font-size: 32px;
    font-weight: 900;
    color: #e62117;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(230, 33, 23, 0.8), 
                 0 0 40px rgba(230, 33, 23, 0.4),
                 0 5px 15px rgba(0,0,0,0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 20px rgba(230, 33, 23, 0.8), 
                     0 0 40px rgba(230, 33, 23, 0.4);
    }
    to {
        text-shadow: 0 0 30px rgba(230, 33, 23, 1), 
                     0 0 60px rgba(230, 33, 23, 0.6),
                     0 5px 20px rgba(0,0,0,0.8);
    }
}

/* Ad Sections */
.ad-section {
    width: 100%;
    padding: 20px;
    background-color: #0f0f1a;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 12px;
    color: #666;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ad-container {
    min-width: 300px;
    min-height: 100px;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a2e;
    border-radius: 8px;
    padding: 20px;
}

.ad-placeholder {
    color: #888;
    font-size: 14px;
    text-align: center;
}

.top-ad {
    min-height: 150px;
}

.bottom-ad {
    min-height: 200px;
    margin-top: 20px;
}

/* Article Ad Spaces / लेख विज्ञापन स्थान */
.article-ad-space {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.in-article-ad {
    margin: 30px 0;
    padding: 20px;
    background: rgba(15, 15, 26, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(230, 33, 23, 0.2);
}

/* Legal Content Section / कानूनी सामग्री अनुभाग */
.legal-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.9), rgba(26, 26, 46, 0.9));
    border-radius: 12px;
    border: 2px solid rgba(230, 33, 23, 0.3);
    box-shadow: 0 10px 40px rgba(230, 33, 23, 0.2),
                inset 0 0 20px rgba(230, 33, 23, 0.05);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.legal-content h2 {
    color: #e62117;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #e62117;
    padding-bottom: 15px;
}

.legal-content h3 {
    color: #ffffff;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #e62117;
    padding-left: 15px;
}

.legal-content p {
    color: #cccccc;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
    font-size: 15px;
}

.legal-text {
    max-width: 100%;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .legal-content h2 {
        font-size: 24px;
    }
    
    .legal-content h3 {
        font-size: 18px;
    }
    
    .legal-content p {
        font-size: 14px;
    }
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Section */
.search-section {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease-in;
}

.search-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
}

.search-title span:first-child {
    color: #ffffff;
    display: block;
}

.search-title span:last-child {
    color: #e62117;
    display: block;
    margin-top: 10px;
}

.search-subtitle {
    font-size: 20px;
    color: #aaa;
    margin: 20px 0 40px;
    font-weight: 300;
}

.search-box {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    gap: 10px;
    background-color: #1a1a2e;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(230, 33, 23, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    color: #ffffff;
    outline: none;
}

.search-input::placeholder {
    color: #666;
}

.launch-btn {
    background: linear-gradient(135deg, #e62117 0%, #ff4d4d 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.launch-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(230, 33, 23, 0.4);
}

.launch-btn:active {
    transform: scale(0.98);
}

/* Video Section */
.video-section {
    margin-top: 40px;
    animation: slideUp 0.5s ease-out;
}

.video-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Video Wrapper - Responsive for ALL Devices */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(230, 33, 23, 0.3);
}

/* PC/Desktop - Fixed aspect ratio container */
@media (min-width: 1025px) {
    .video-wrapper {
        max-width: 900px;
        aspect-ratio: 16 / 9;
    }
}

/* Tablet - Slightly smaller */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-wrapper {
        max-width: 800px;
        aspect-ratio: 16 / 9;
    }
}

/* Mobile - Full width, auto height */
@media (max-width: 768px) {
    .video-wrapper {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .video-wrapper {
        aspect-ratio: 16 / 9;
    }
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000;
    object-fit: contain;
}

/* Top Control Buttons (Home + Replay) / शीर्ष नियंत्रण बटन */
.video-top-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.top-control-btn {
    width: 45px;
    height: 45px;
    background: rgba(230, 33, 23, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.top-control-btn:hover {
    background: rgba(230, 33, 23, 1);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(230, 33, 23, 0.6);
}

.top-control-btn:active {
    transform: scale(0.95);
}

/* Quality Selector Container - Below Video / वीडियो के नीचे */
.quality-selector-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.95), rgba(26, 26, 46, 0.95));
    border-radius: 12px;
    border: 2px solid rgba(230, 33, 23, 0.3);
    box-shadow: 0 10px 40px rgba(230, 33, 23, 0.2);
    text-align: center;
}

.quality-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quality Selector / गुणवत्ता चयनक */
.quality-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.quality-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(230, 33, 23, 0.5);
    color: white;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quality-btn:hover {
    background: linear-gradient(135deg, rgba(230, 33, 23, 0.8), rgba(230, 33, 23, 0.6));
    border-color: #e62117;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 33, 23, 0.5);
}

.quality-btn:active {
    transform: translateY(0) scale(0.98);
}

.quality-btn.active {
    background: linear-gradient(135deg, #e62117, #ff4d4d);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(230, 33, 23, 0.8),
                0 6px 20px rgba(230, 33, 23, 0.4);
    font-weight: bold;
    transform: translateY(-3px);
}

.quality-status {
    color: #00ff88;
    font-size: 14px;
    font-weight: bold;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quality-status.show {
    opacity: 1;
}

/* Replay Button / रीप्ले बटन */
.replay-btn {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: rgba(230, 33, 23, 0.8);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 33, 23, 0.5);
}

.replay-btn:hover {
    background: #e62117;
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 6px 30px rgba(230, 33, 23, 0.8);
}

/* Video Embed - Responsive */
.video-embed {
    width: 100%;
    display: none;
}

/* Desktop - Larger */
@media (min-width: 1025px) {
    .video-embed,
    .video-embed iframe {
        min-height: 500px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-embed,
    .video-embed iframe {
        min-height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .video-embed,
    .video-embed iframe {
        min-height: 250px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .video-embed,
    .video-embed iframe {
        min-height: 200px;
    }
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Play Button Overlay */
.play-button-overlay {
    animation: fadeIn 0.3s ease;
}

.play-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    outline: none;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Video Overlay Ad */
.video-overlay-ad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.ad-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #e62117 0%, #ff4d4d 100%);
    color: white;
    padding: 30px 60px;
    font-size: 72px;
    font-weight: 900;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(230, 33, 23, 0.8),
                0 0 100px rgba(230, 33, 23, 0.4),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: pulse 0.8s infinite, timerGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.4);
    letter-spacing: 5px;
    min-width: 200px;
    text-align: center;
    z-index: 10000;
}

@keyframes timerGlow {
    from {
        box-shadow: 0 10px 50px rgba(230, 33, 23, 0.8),
                    0 0 100px rgba(230, 33, 23, 0.4),
                    inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    to {
        box-shadow: 0 15px 70px rgba(230, 33, 23, 1),
                    0 0 150px rgba(230, 33, 23, 0.6),
                    inset 0 0 50px rgba(255, 255, 255, 0.4);
    }
}

.overlay-ad-content {
    width: 100%;
    max-width: 800px;
    min-height: 250px;
    background-color: #1a1a2e;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Anti-Screen Recording & Screenshot Protection / स्क्रीन रिकॉर्डिंग सुरक्षा */
@media print {
    body {
        display: none !important;
    }
    
    * {
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Block screen capture APIs */
video::-webkit-media-controls {
    -webkit-user-select: none;
    user-select: none;
}

/* Prevent right-click context menu on video */
.video-player,
.video-container,
#videoPlayer,
.video-wrapper {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

/* Hide cursor during video playback to prevent capture */
.video-player[controls] {
    cursor: none !important;
}

/* Custom Cursor - Always Visible & Working */
.cursor-dot {
    width: 20px;
    height: 20px;
    border: 3px solid #e62117;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999; /* Highest z-index to stay on top */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(230, 33, 23, 0.8);
    background: rgba(230, 33, 23, 0.3);
    display: block !important; /* Force show */
    visibility: visible !important;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(230, 33, 23, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(230, 33, 23, 0.5);
    display: block !important; /* Force show */
    visibility: visible !important;
}

/* Mobile Responsive Design - पूरा साइट मोबाइल के लिए अनुकूलित */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 15px 15px;
        box-shadow: 0 3px 20px rgba(230, 33, 23, 0.3);
    }

    .logo-text {
        font-size: 20px;
        letter-spacing: 1px;
    }

    /* Search Section */
    .search-title {
        font-size: 28px;
    }

    .search-subtitle {
        font-size: 14px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
    }

    .search-input {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .launch-btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Video Player - Responsive */
    .video-wrapper {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .video-player,
    .video-embed {
        width: 100%;
        height: 100%;
        min-height: 200px;
    }

    /* Top Controls on Mobile */
    .video-top-controls {
        top: 10px;
        left: 10px;
    }

    .top-control-btn {
        width: 40px;
        height: 40px;
    }

    /* Quality Selector */
    .quality-selector-container {
        margin: 15px 10px;
        padding: 15px;
        max-width: 100%;
    }

    .quality-label {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .quality-selector {
        gap: 6px;
    }

    .quality-btn {
        padding: 8px 10px;
        font-size: 11px;
        min-width: 50px;
        flex: 1 1 auto;
        white-space: nowrap;
    }

    /* Ads */
    .ad-section {
        padding: 15px 10px;
    }

    .ad-container {
        min-width: 100%;
        max-width: 100%;
    }

    .top-ad {
        min-height: 100px;
    }

    .bottom-ad {
        min-height: 150px;
    }

    .ad-timer {
        top: 10px;
        right: 10px;
        font-size: 18px;
        padding: 8px 15px;
    }

    .overlay-ad-content {
        padding: 15px;
        max-width: 90%;
    }

    /* Legal Content */
    .legal-content {
        padding: 20px 15px;
        margin: 20px 10px;
    }

    .legal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .legal-content h3 {
        font-size: 16px;
        margin-top: 20px;
    }

    .legal-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .article-ad-space {
        margin: 20px 10px;
        padding: 15px;
    }

    .in-article-ad {
        margin: 20px 0;
        padding: 15px;
    }

    /* 3D Background */
    .background-3d {
        display: none; /* Disable heavy 3D effects on mobile */
    }

    /* Cursor */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto;
    }

    /* Main Content */
    .main-content {
        padding: 15px 10px;
    }
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
    .header {
        padding: 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .search-title {
        font-size: 22px;
    }

    .search-subtitle {
        font-size: 12px;
    }

    .video-player,
    .video-embed {
        min-height: 200px;
    }

    .quality-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 50px;
    }

    .replay-btn {
        width: 45px;
        height: 45px;
    }

    /* Timer - Bigger on Mobile */
    .ad-timer {
        font-size: 48px;
        padding: 20px 40px;
        min-width: 150px;
    }
    
    .overlay-ad-content {
        padding: 15px;
        max-width: 95%;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .search-title {
        font-size: 36px;
    }

    .video-player,
    .video-embed {
        min-height: 400px;
    }

    .quality-btn {
        padding: 9px 15px;
        font-size: 13px;
    }

    .logo-text {
        font-size: 26px;
    }
}

/* ============================================
   BLOG CATEGORY MODAL STYLES
   ============================================ */
.blog-category-btn {
    background: linear-gradient(135deg, #e62117, #ff4d4d);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 33, 23, 0.4);
    transition: all 0.3s ease;
    margin-left: auto;
}

.blog-category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 33, 23, 0.6);
}

.blog-icon {
    font-size: 24px;
}

.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

/* Modal Ad Spaces - Compact */
.modal-ad-header,
.modal-ad-footer {
    max-width: 800px;
    margin: 10px auto; /* Reduced from 20px */
    padding: 10px; /* Reduced from 15px */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(230, 33, 23, 0.3);
}

.in-post-ad {
    margin: 15px 0; /* Reduced from 30px */
    padding: 12px; /* Reduced from 20px */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(230, 33, 23, 0.3);
}

.modal-content {
    max-width: 1200px;
    margin: 30px auto; /* Reduced from 50px */
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.98), rgba(26, 26, 46, 0.98));
    border-radius: 16px;
    padding: 25px; /* Reduced from 40px */
    border: 2px solid rgba(230, 33, 23, 0.5);
    position: relative;
    box-shadow: 0 20px 100px rgba(230, 33, 23, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #e62117;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px; /* Reduced from 30px */
    margin-top: 15px; /* Reduced from 30px */
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(230, 33, 23, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 33, 23, 0.5);
    border-color: #e62117;
}

.blog-card-image {
    width: 100%;
    height: 160px; /* Reduced from 180px */
    object-fit: cover;
    border-bottom: 2px solid rgba(230, 33, 23, 0.5);
}

.blog-card-info {
    padding: 12px; /* Reduced from 15px */
}

.blog-card-category {
    display: inline-block;
    background: rgba(230, 33, 23, 0.2);
    color: #e62117;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px; /* Reduced from 10px */
}

.blog-card-title {
    color: #ffffff;
    font-size: 15px; /* Reduced from 16px */
    margin: 0 0 8px 0; /* Reduced spacing */
    line-height: 1.4;
}

/* Blog Post Modal */
.blog-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    overflow-y: auto;
    animation: slideIn 0.4s ease;
}

.modal-post-content {
    max-width: 900px;
    margin: 50px auto;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.98), rgba(26, 26, 46, 0.98));
    border-radius: 16px;
    padding: 50px;
    border: 2px solid rgba(230, 33, 23, 0.5);
    position: relative;
    box-shadow: 0 20px 100px rgba(230, 33, 23, 0.5);
}

.close-post-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #e62117;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(230, 33, 23, 0.5);
    padding-bottom: 20px;
}

.post-header h1 {
    color: #e62117;
    font-size: 32px;
    margin-bottom: 15px;
}

.post-meta {
    color: #888;
    font-size: 14px;
}

.post-content {
    color: #cccccc;
    line-height: 1.8;
}

.article-body {
    font-size: 16px;
}

.article-body h4 {
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-body ul,
.article-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
    color: #cccccc;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   All devices: Mobile, Tablet, PC
   ============================================ */

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    .header {
        padding: 20px 40px;
    }
    
    .logo-text {
        font-size: 32px;
    }
    
    .blog-category-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .full-video-container {
        max-width: 100%;
    }
    
    .integrated-controls {
        top: 15px;
        left: 15px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
    }
    
    .quality-overlay {
        bottom: -10px; /* BELOW video on mobile (above toggle button) */
        padding: 10px;
    }
    
    .quality-btn-small {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .header {
        padding: 15px 25px;
    }
    
    .logo-text {
        font-size: 26px;
    }
    
    .blog-category-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .full-video-container {
        aspect-ratio: 16 / 9;
    }
    
    .integrated-controls {
        top: 12px;
        left: 12px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .quality-overlay {
        bottom: 50px;
        padding: 8px;
    }
    
    .quality-btn-small {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .modal-content,
    .modal-post-content {
        margin: 40px auto;
        padding: 30px;
    }
}

/* Mobile (481px - 768px) */
@media (max-width: 768px) {
    .header {
        padding: 15px 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .blog-category-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-left: auto;
    }
    
    .search-title {
        font-size: 32px;
    }
    
    .search-subtitle {
        font-size: 14px;
    }
    
    .search-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .launch-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Video Player - Mobile */
    .full-video-container {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .integrated-controls {
        top: 10px;
        left: 10px;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
    }
    
    .video-embed-full iframe {
        min-height: 250px;
    }
    
    .quality-overlay {
        bottom: 50px;
        padding: 6px;
        gap: 3px;
    }
    
    .quality-btn-small {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 45px;
    }
    
    .quality-status-msg {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 15px;
    }
    
    /* Blog Modal - Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content,
    .modal-post-content {
        margin: 20px 10px;
        padding: 20px 15px;
    }
    
    .close-modal,
    .close-post-modal {
        font-size: 32px;
        top: 15px;
        right: 15px;
    }
    
    .post-header h1 {
        font-size: 24px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .modal-ad-header,
    .modal-ad-footer,
    .in-post-ad {
        padding: 12px;
        margin: 15px 0;
    }
    
    /* Footer - Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-footer {
        padding: 40px 15px 15px;
    }
}

/* Extra Small Phones (up to 480px) */
@media (max-width: 480px) {
    .header {
        padding: 12px 10px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .blog-category-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-title {
        font-size: 26px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input,
    .launch-btn {
        width: 100%;
    }
    
    /* Video - Extra Small */
    .full-video-container {
        border-radius: 8px;
    }
    
    .integrated-controls {
        top: 8px;
        left: 8px;
        gap: 8px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
    }
    
    .video-embed-full iframe {
        min-height: 200px;
    }
    
    .quality-overlay {
        bottom: 45px;
        padding: 5px;
        gap: 2px;
        max-width: 95%;
    }
    
    .quality-btn-small {
        padding: 3px 6px;
        font-size: 9px;
        min-width: 40px;
        white-space: nowrap;
    }
    
    .quality-status-msg {
        bottom: 8px;
        font-size: 11px;
        padding: 5px 12px;
    }
    
    /* Blog - Extra Small */
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-title {
        font-size: 16px;
    }
    
    .modal-content,
    .modal-post-content {
        padding: 15px 10px;
    }
    
    .post-header h1 {
        font-size: 20px;
    }
    
    .article-body {
        font-size: 14px;
    }
}

/* Tablet Landscape (optional refinement) */
@media (max-width: 896px) and (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure no text cutoff anywhere */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Prevent horizontal scroll on all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   FULL-SIZE VIDEO PLAYER STYLES (1280x720)
   ============================================ */
.full-video-container {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Fixed to 1280px width */
    margin: 0 auto; /* Center the video */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(230, 33, 23, 0.3);
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio for 1280x720 */
}

/* Desktop - Fixed 1280x720 size */
@media (min-width: 1025px) {
    .full-video-container {
        max-width: 1280px; /* Full 1280px width on desktop */
        aspect-ratio: 16 / 9; /* Perfect for 720p */
    }
}

/* Tablet - Scaled down but maintain aspect ratio */
@media (max-width: 1024px) and (min-width: 769px) {
    .full-video-container {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .full-video-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
}

.integrated-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: rgba(230, 33, 23, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.control-btn:hover {
    background: rgba(230, 33, 23, 1);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(230, 33, 23, 0.6);
}

.video-player-full {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000;
    object-fit: contain;
    max-width: 1280px;
    max-height: 720px;
}

.video-embed-full {
    width: 100%;
    height: 100%;
    display: none;
    background-color: #000;
    max-width: 1280px;
    margin: 0 auto;
}

/* Desktop - 1280x720 */
@media (min-width: 1025px) {
    .video-embed-full iframe {
        min-height: 720px;
        max-height: 720px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-embed-full iframe {
        min-height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .video-embed-full iframe {
        min-height: 250px;
    }
}

/* Quality Selector Dropdown - Below Video (Mobile & PC) */
.quality-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: none; /* Hidden by default, shown via toggle */
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.95);
    padding: 15px;
    border-radius: 8px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(230, 33, 23, 0.5);
    margin: 10px auto 20px;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.quality-overlay.show {
    display: flex;
}

.quality-btn-small {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-btn-small:hover {
    background: rgba(230, 33, 23, 0.6);
    border-color: #e62117;
    transform: scale(1.1);
}

.quality-btn-small.active {
    background: #e62117;
    border-color: #e62117;
    font-weight: bold;
}

.quality-status-msg {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 136, 0.9);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.quality-status-msg.show {
    opacity: 1;
}

/* ============================================
   BLOG SECTION STYLES
   ============================================ */
.blog-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.95), rgba(26, 26, 46, 0.95));
    border-radius: 16px;
    border: 2px solid rgba(230, 33, 23, 0.3);
    box-shadow: 0 10px 40px rgba(230, 33, 23, 0.2);
}

.blog-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

.blog-subtitle {
    text-align: center;
    color: #888;
    font-size: 16px;
    margin-bottom: 40px;
}

.blog-post {
    margin-bottom: 30px; /* Reduced from 60px to minimize space */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(230, 33, 23, 0.2);
}

.blog-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 3px solid #e62117;
}

.blog-content {
    padding: 20px; /* Reduced from 30px */
}

.blog-content h3 {
    color: #e62117;
    margin-bottom: 15px;
}

.blog-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content h4 {
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.blog-content p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.blog-content ul,
.blog-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
    color: #cccccc;
}

.blog-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-ad-space {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* ============================================
   ENHANCED FOOTER STYLES
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-top: 3px solid rgba(230, 33, 23, 0.5);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: #e62117;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #e62117;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2);
}

.footer-ads {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(230, 33, 23, 0.2);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #666;
}

.footer-bottom p {
    margin: 5px 0;
}

.disclaimer {
    font-size: 12px;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 15px 15px;
    }
    
    .blog-section {
        padding: 20px 15px;
        margin: 30px auto;
    }
    
    .blog-section h2 {
        font-size: 24px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
}

/* ============================================
   NEW COMPONENTS - URL MODAL & QUALITY TOGGLE
   ============================================ */

/* Quality Selector Button - Single Dropdown Below Video */
.quality-toggle-btn {
    position: relative;
    bottom: auto;
    right: auto;
    background: linear-gradient(135deg, #e62117, #ff4444);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin: 20px auto 0;
    display: block;
    box-shadow: 0 4px 15px rgba(230, 33, 23, 0.4);
}

.quality-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 33, 23, 0.6);
}

.quality-toggle-btn:hover {
    background: rgba(230, 33, 23, 1);
    transform: scale(1.05);
}

/* URL Input Modal */
.url-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.url-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid rgba(230, 33, 23, 0.5);
    box-shadow: 0 20px 60px rgba(230, 33, 23, 0.3);
    position: relative;
}

.close-url-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-url-modal:hover {
    color: white;
}

.url-input-field {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(230, 33, 23, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.url-input-field:focus {
    border-color: #e62117;
    background: rgba(255, 255, 255, 0.15);
}

.url-launch-btn {
    background: linear-gradient(135deg, #e62117, #ff4444);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.url-launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 33, 23, 0.4);
}

.url-launch-btn:active {
    transform: translateY(0);
}

/* ============================================
   MID-ROLL AD OVERLAY (3-minute pause)
   ============================================ */

.midroll-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.midroll-ad-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-container {
    max-width: 80%;
    max-height: 80%;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(230, 33, 23, 0.5);
    text-align: center;
}

.ad-placeholder {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.midroll-timer {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #e62117, #ff4444);
    color: white;
    font-size: 48px;
    font-weight: bold;
    padding: 20px 30px;
    border-radius: 15px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(230, 33, 23, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

/* Responsive Mid-Roll Ad */
@media (max-width: 768px) {
    .adsense-container {
        max-width: 90%;
        padding: 20px;
    }
    
    .midroll-timer {
        right: 15px;
        font-size: 36px;
        padding: 15px 20px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .adsense-container {
        max-width: 95%;
        padding: 15px;
    }
    
    .ad-placeholder {
        font-size: 14px;
    }
    
    .midroll-timer {
        right: 10px;
        font-size: 28px;
        padding: 12px 15px;
        min-width: 50px;
    }
}

/* Responsive for URL Modal */
@media (max-width: 768px) {
    .url-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .url-input-field {
        font-size: 14px;
        padding: 12px;
    }
    
    .url-launch-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .quality-toggle-btn {
        bottom: -50px; /* BELOW video container on mobile */
        right: 8px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Ensure video container has space for buttons below */
    .full-video-container {
        margin-bottom: 60px; /* Space for quality buttons */
    }
    
    .url-modal-content {
        padding: 25px 15px;
    }
    
    .url-input-field {
        font-size: 13px;
        padding: 10px;
    }
    
    .url-launch-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* ============================================
   MOBILE & TABLET OPTIMIZATIONS - 3D EFFECTS
   ============================================ */

/* Hide custom cursor on touch devices */
@media (max-width: 1024px) and (pointer: coarse),
       (max-width: 768px) and (hover: none) {
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
    
    /* Optimize 3D background for mobile/tablet */
    .background-3d {
        perspective: 500px; /* Reduced for better mobile performance */
    }
    
    .grid-plane {
        animation-duration: 30s; /* Slower animation for performance */
    }
    
    .floating-cube {
        animation-duration: 20s; /* Slower rotation */
    }
    
    /* Ensure video player works properly on mobile */
    .full-video-container {
        max-width: 100%;
        aspect-ratio: 16/9;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .video-embed-full {
        width: 100%;
        position: relative;
    }
    
    .video-embed-full iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
    }
    
    /* Play overlay optimized for mobile tap */
    #playOverlay {
        padding: 20px 40px !important;
        font-size: 18px !important;
        border-radius: 30px !important;
    }
    
    /* Custom video player on mobile */
    .custom-video-container {
        max-width: 100%;
        border-radius: 6px;
    }
    
    .custom-video-element {
        width: 100%;
        height: 100%;
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    #playOverlay {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
    
    .custom-video-container {
        border-radius: 4px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE / TABLET / PC
   ============================================ */

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
    /* Header adjustments */
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .logo-container {
        flex: 1;
    }
    
    .logo-text {
        font-size: 18px !important;
    }
    
    .logo-3d svg {
        width: 40px;
        height: 40px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #homeBtn2 {
        font-size: 20px;
    }
    
    /* Search section */
    .search-title {
        font-size: 20px;
    }
    
    .search-subtitle {
        font-size: 14px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 12px;
    }
    
    .launch-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Video controls */
    .quality-toggle-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .quality-btn-small {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Blog modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    #footer-ad-1 {
        min-width: 320px !important;
        min-height: 50px !important;
    }
}

/* Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
    /* Smaller fonts */
    body {
        font-size: 14px;
    }
    
    h1, h2, h3 {
        font-size: 18px, 16px, 14px;
    }
    
    /* Compact header - Logo and buttons stacked */
    .header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-3d svg {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 18px !important;
    }
    
    /* Navigation buttons compact */
    .nav-btn {
        padding: 5px 10px;
    }
    
    #homeBtn2 {
        font-size: 22px;
    }
    
    #blogCategoryBtn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Full-width search */
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .launch-btn {
        width: 100%;
    }
    
    /* Video player full width */
    .video-container {
        width: 100%;
        padding: 0;
    }
    
    .full-video-container {
        width: 100%;
    }
    
    /* Quality selector compact */
    .quality-overlay {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .quality-btn-small {
        flex: 0 0 auto;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    /* Mid-roll ad responsive */
    .midroll-ad-overlay {
        padding: 10px;
    }
    
    .midroll-timer {
        font-size: 48px !important;
    }
    
    /* Blog responsive */
    .blog-post {
        margin: 10px;
    }
    
    .blog-image {
        width: 100%;
        height: auto;
    }
    
    /* Footer compact */
    .footer-column h3 {
        font-size: 16px;
    }
    
    .footer-column p {
        font-size: 13px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-icon {
        font-size: 18px;
        margin: 0 5px;
    }
}

/* Large Desktop (1920px and above) */
@media screen and (min-width: 1920px) {
    .main-content {
        max-width: 1600px;
    }
    
    .video-container {
        max-width: 1600px;
    }
    
    .search-input {
        font-size: 18px;
        padding: 18px;
    }
    
    .launch-btn {
        padding: 18px 35px;
        font-size: 18px;
    }
}
