/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --dark-bg: #0a0a0f;
    --card-bg: #141420;
    --text-light: #e0e0e0;
    --text-dim: #888;
    --neon-cyan: #00f0ff;
    --ecommerce-color: #667eea;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ========================================
   BACK TO HOME BUTTON
   ======================================== */

.back-home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--neon-cyan), var(--ecommerce-color));
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.back-home-btn i {
    font-size: 1.2rem;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .back-home-btn {
        top: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== HERO ===== */
.hero {
    padding: 5rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--ecommerce-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* ===== GRID ===== */
/* Horizontal scroll row like YouTube */
.video-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.video-grid::-webkit-scrollbar {
    display: none;
}

.video-card {
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: .3s;
    border-top: 4px solid var(--ecommerce-color);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, .4);
}

.video-thumbnail {
    height: 180px;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 18px;
}

/* ========================================================= */
/* ================= FULLSCREEN VIDEO PLAYER ================ */
/* ========================================================= */

.video-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: none;
}

.video-modal.active {
    display: block;
}

/* remove page feel */
.modal-content {
    width: 100vw;
    height: 100vh;
}

/* TRUE FULLSCREEN LAYER */
.modal-video-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
}

/* VIDEO CONTAINER */
.modal-video-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
}

/* MAGIC LINE */
.modal-video-container video {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* cinematic fullscreen */
    background: #000;
}

/* hide extra info */
.modal-info {
    display: none;
}

/* hide default controls */
video::-webkit-media-controls {
    display: none !important;
}

/* CLOSE BUTTON like apps */
.close-modal {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, .25);
    transform: scale(1.1);
}

/* ================= CONTROLS ================= */

.custom-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
    opacity: 0;
    transition: .3s;
    z-index: 100000;
}

.modal-video-container:hover .custom-controls,
.custom-controls.show,
.custom-controls.always-show {
    opacity: 1;
}

.progress-container {
    height: 4px;
    background: rgba(255, 255, 255, .3);
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    background: var(--neon-cyan);
    width: 0%;
    border-radius: 2px;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    color: var(--neon-cyan);
    transform: scale(1.1);
}

/* Video Loading Spinner */
.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
}

.video-loading i {
    font-size: 3rem;
    color: var(--neon-cyan);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Play Button Overlay */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-btn {
    opacity: 1;
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Video Category Badge */
.video-category {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: var(--ecommerce-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Video Title */
.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Video Meta */
.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.video-meta i {
    font-size: 1rem;
}

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Controls Spacer */
.controls-spacer {
    flex: 1;
}

/* Volume Container */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: var(--neon-cyan);
    border-radius: 2px;
    width: 70%;
    pointer-events: none;
}

/* Modal Info Section */
.modal-info {
    padding: 20px;
    background: var(--dark-bg);
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0.9;
}

/* Category Section */
.category-section {
    padding: 40px 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.category-name i {
    color: var(--ecommerce-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   MOBILE FULLSCREEN VIDEO ONLY
   ========================================= */
@media (max-width: 768px) {
    .modal-video-wrapper,
    .modal-video-container {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #000 !important;
        z-index: 100000 !important;
    }

    .modal-video-container video {
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover !important; /* cinematic */
    }

    /* hide info section on mobile while playing */
    .modal-info {
        display: none !important;
    }

    /* move close button like apps */
    .close-modal {
        top: 20px !important;
        right: 20px !important;
        z-index: 100001 !important;
    }

    /* controls overlay like YouTube */
    .custom-controls {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 60px 20px 20px;
        background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
    }
}

/* =========================================
   YOUTUBE-STYLE MOBILE VIDEO PAGE
   ========================================= */
@media (max-width: 768px) {
    .modal-content {
        height: 100vh;
        overflow-y: auto;
        background: #000;
    }

    .modal-video-wrapper {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }

    .modal-video-container {
        position: relative !important;
        width: 100% !important;
        height: 240px !important; /* video height like screenshot */
        max-height: 240px !important;
        background: #000;
    }

    .modal-video-container video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* show info again */
    .modal-info {
        display: block !important;
        padding: 15px !important;
        background: #0a0a0f;
    }

    /* sticky close button like app back */
    .close-modal {
        top: 10px !important;
        right: 10px !important;
        z-index: 100001;
        background: rgba(0, 0, 0, 0.6);
    }

    /* controls position */
    .custom-controls {
        position: absolute !important;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 40px 10px 10px;
    }

    .video-card {
        min-width: 220px;
        max-width: 220px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .category-name {
        font-size: 1.2rem;
    }
}














.hero{
    position:relative;
    overflow:hidden;
}

/* slider row */
.hero-shots{
    display:flex;
    gap:20px;
    transition:transform .6s ease;
    padding:20px 80px; /* space for buttons */
}

/* images */
.hero-shots img{
    width:260px;
    border-radius:14px;
    flex-shrink:0;
    filter:brightness(1.2) contrast(1.1);
    box-shadow:0 20px 50px rgba(0,0,0,.6);
}

/* buttons */
.shot-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
    background:rgba(0,0,0,.5);
    color:white;
    border:none;
    font-size:28px;
    width:50px;
    height:50px;
    border-radius:50%;
    cursor:pointer;
    backdrop-filter:blur(10px);
}

.shot-btn.left{ left:10px; }
.shot-btn.right{ right:10px; }

.shot-btn:active{
    transform:translateY(-50%) scale(.9);
}
