* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: #0a0f1c;
}

/* ========== VOLUME CONTROL - RED THUMB COLOR ========== */

#volumeControl {
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    height: 4px;
    border-radius: 5px;
}

#volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    border: none;
}

#volumeControl::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: red !important;
    cursor: pointer;
    border: none;
}

#volumeControl::-ms-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: red !important;
    cursor: pointer;
}

/* ========== PROGRESS BAR (hidden, shows on hover) ========== */
#progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 20;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}
#screenPlayer:hover #progress-wrap {
    opacity: 1;
}
#progress-bar {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    border-radius: 0;
}
#progress-fill {
    height: 100%;
    width: 0%;
    background: #e50914;
    border-radius: 0;
    transition: width 0.1s linear;
}
#time-display {
    position: absolute;
    color: #ccc;
    font-size: 11px;
    font-family: monospace;
    z-index: 20;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: black;
}

#ima-ad-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    background: black;
    overflow: hidden;
}
#ima-ad-container video,
#ima-ad-container iframe {
    width: 100% !important;
    height: 100% !important;
}

#controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    z-index: 15;
}

/* ========== DESKTOP VIEW (min-width: 1024px) ========== */

@media screen and (min-width: 1024px) {
    
    #search {
        float: right;
        margin: 0 10px;
        height: 45px;
        width: calc(100% - 20px);
        border: 3px solid blue;
        border-radius: 15px;
        font-size: 18px;
        box-shadow: 2px 3px 2px black, -2px -2px 2px black;
    }

    #main {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        background: #0a0f1c;
        padding: 10px 15px;
        gap: 15px;
        overflow-x: hidden;
        position: relative;
    }

    #screenPlayer {
        position: relative;
        width: 100%;
        height: 530px;
        background: #008b8b;
        border: 42px groove black;
        border-bottom: 50px groove black;
        box-shadow: 0px 1px 0px silver;
        transition: height 0.4s ease;
        margin-right: 0;
    }

    /* Video Controls */
    #time-display {
        bottom: -42px;
        left: 50%;
        transform: translateX(-50%);
    }
    #speaker-mute {
        position: absolute;
        bottom: -47px;
        left: 3%;
        width: 30px;
        height: 21px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
    }

    #volumeControl{
        position: absolute;
        bottom: -40px;
        left: 7%;
        width: 60px;
        z-index: 10;
    }

    #play{
        position: absolute;
        bottom: -46px;
        left: 35%;
        width: 55px;
        height: 22px;
        font-size: 12px;
        color: #ffffff;
        background: green;
        border-radius: 9px;
        cursor: pointer;
        z-index: 10;
        box-shadow : 2px 2px 2px #000000; 

      }

 #play:hover{
    transform: translateY(1.5px);
    transition: 1s, easy;
    cursor: pointer;
   }

    #pause{
        position: absolute;
        bottom: -46px;
        right: 35%;
        width: 55px;
        height: 22px;
        background: maroon;
        font-size: 12px;
        color:#ffffff;
        border-radius: 9px;
        cursor: pointer;
        z-index: 10;
        box-shadow : 2px 2px 2px #000000; 
    }

    #pause:hover{
    transform: translateY(1.5px);
    transition: 1s, easy;
    cursor: pointer;

   }

    #Upload {
        position: absolute;
        bottom: -46px;
        right: 15%;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: blue;
        z-index: 10;
        cursor: pointer;
    }

    #fileInput {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        opacity: 0;
        cursor: pointer;
    }

    #resize {
        position: absolute;
        bottom: -48px;
        right: -38px;
        width: 24px;
        height: 24px;
        background: #000000;
        cursor: pointer;
        z-index: 10;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #zoom-image {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    #player-column {
        display: flex;
        flex-direction: column;
        width: 71%;
        flex-shrink: 0;
        transition: width 0.4s ease;
    }

    /* Social Action Bar + Review Wrapper */
    #social-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    #social-wrapper #social-action {
        display: flex;
        flex-direction: row;
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        gap: 70px;
        justify-content: center;
        align-items: center;
        height: 35px;
        background: linear-gradient(135deg, #1a2a4a, #0a1a3a);
        border-radius: 15px;
        transition: all 0.4s ease;
    }

    #social-action h2 {
        margin-right: 100px;
        color: gold;
        font-size: 18px;
        padding: 5px 20px;
        background: rgba(0,0,0,0.5);
        border-radius: 25px;
    }

    #social-wrapper #review-section {
        position: relative;
        width: 100%;
        max-height: 260px;
        overflow-y: auto;
        margin: 0;
        box-sizing: border-box;
    }

    .btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 18px;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        font-size: 14px;
        transition: 0.3s ease;
    }

    .like { background: #4267B2; color: white; height :25px; width:100px; justify-content:center;}
    .subscribe { background: #FF0000; color: white; height :25px; width:140px; justify-content:center; }
    .share { background: #25D366; color: white; height :25px; width:120px; justify-content:center; }

    .btn:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

    /* Content List */
    #content-list {
        display: flex;
        flex-direction: column;
        width: 27%;
        height: auto;
        background: #111133;
        border-radius: 12px;
        overflow-x: hidden;
    }

    #Logo-box {
        display: flex;
        width: 100%;
        height: 75px;
        background: #244D3F;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin : 10px 0px;
    }

    .Logo-image {
        width: 80px;
        height: 70px;
        border-radius: 12px;
        margin: 5px;
    }

    .logo-heading {
        color: red;
        font-size: 28px;
        text-shadow: 2px 2px 1px white;
        letter-spacing: 2px;
    }

    .movie-list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        height: 200px;
        background: #1a1a3a;
        align-items: center;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;

    }

    .movie-cards {
        position: relative;
        width: 50%;
        height: 100%;
        background: rgba(15, 15, 60, 0.7);
        border-radius: 1.5rem;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
    }

    .movie-cards:hover {
        transform: translateY(-10px) scale(1.02);
        border-color: #ff4d6d;
        box-shadow: 0 25px 30px -12px rgba(255,77,109,0.3);
    }

    .movie-cards h2 {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.7);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 14px;
        color: gold;
        margin: 0;
    }

    .poster {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .movie-cards:hover .poster {
        transform: scale(1.05);
    }

    #sound-effect {
        display: none;
    }
}

/* ========== TABLET VIEW (768px - 1023px) ========== */

@media screen and (max-width:1023px) and (min-width:768px){

    #main{
        display:flex;
        flex-direction:column;
        gap:20px;
        padding:15px;
        position: relative;
    }

    /* PLAYER SECTION */
    #screenPlayer{
        width:100%;
        height: 480px;
        position:relative;
        border:28px groove black;
        border-bottom: 39px groove black;
        background:#008b8b;
    }

    #video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
        vertical-align: bottom;
    }

    /* CONTROLS */
    #time-display {
        bottom: -36px;
        left: 50%;
        transform: translateX(-50%);
    }

    #speaker-mute{
        position: absolute;
        bottom: -38px;
        left: 2%;
        width: 22px;
        height: 15px;
        cursor: pointer;
        z-index: 10;
    }

    #volumeControl{
        position: absolute;
        bottom: -32px;
        left: 5%;
        width: 60px;
        z-index: 10;
    }

    #play{
        position: absolute;
        bottom: -37px;
        left: 35%;
        width: 55px;
        height: 18px;
        font-size: 12px;
        background: green;
        border-radius: 9px;
        cursor: pointer;
        z-index: 10;
        box-shadow : 2px 2px 2px #000000; 
    }

 #play:hover{
    transform: translateY(1px);
    transition: 1s,easy;
    cursor: pointer;
   }

    #pause{
        position: absolute;
        bottom: -37px;
        right: 35%;
        width: 55px;
        height: 18px;
        background: maroon;
        font-size: 12px;
        border-radius: 9px;
        cursor: pointer;
        z-index: 10;
        box-shadow : 2px 2px 2px #000000; 
    }

    #pause:hover{
    transform: translateY(1px);
    transition: 1s,easy;
    cursor: pointer;
   }

    #Upload {
        position: absolute;
        bottom: -39px;
        right: 15%;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: blue;
        z-index: 10;
        cursor: pointer;
    }

    #fileInput {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        opacity: 0;
        cursor: pointer;
    }

    #resize {
        position: absolute;
        bottom: -38px;
        right: -28px;
        width: 20px;
        height: 18px;
        background: #000000;
        cursor: pointer;
        z-index: 10;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #zoom-image {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    /* SOCIAL BAR - अब absolute नहीं, relative में बदला */
    #social-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 5px;
    }

    #social-action{
        position: relative;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top:2px;
        padding: 5px 15px;
        background: linear-gradient(135deg,#1a2a4a,#0a1a3a);
        border-radius: 12px;
    }

    #social-action h2{
        margin: 0;
        color: gold;
        font-size: 20px;
        padding: 5px 12px;
        background: rgba(0,0,0,0.5);
        border-radius: 25px;
    }

    #social-wrapper #review-section {
        position: relative;
        width: 100%;
        max-height: 260px;
        overflow-y: auto;
        margin: 0;
        box-sizing: border-box;
    }

    .btn{
        padding: 8px 16px;
        border: none;
        border-radius: 25px;
        color: white;
        height : 25px;
        cursor: pointer;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .like { background: #4267B2; }
    .subscribe { background: #FF0000; }
    .share { background: #25D366; }

    /* CONTENT LIST */
    #content-list{
        width:100%;
        display:flex;
        flex-direction:column;
        background:#111133;
        border-radius:12px;
        padding:10px;
    }

    #search{
        width: 80%;
        height: 42px;
        border-radius: 12px;
        border: 2px solid blue;
        font-size: 16px;
        padding-left: 10px;
        margin: 0 auto 15px auto;
        display: block;
    }

    #Logo-box{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 15px;
        border-radius: 12px;
        background: #244D3F;
        margin-bottom: 15px;
        height : 58px; 
    }

    .Logo-image{
        width: 60px;
        height: 55px;
    }

    .logo-heading{
        font-size: 26px;
        color: red;
    }

    /* MOVIE GRID - अब grid बेहतर काम करेगा */
    .movie-list{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .movie-cards{
        position: relative;
        width: 100%;
        aspect-ratio: 5 /3;
        overflow: hidden;
        border-radius: 15px;
        background: #1a1a3a;
        cursor: pointer;
    }

    .movie-cards h2{
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
        color: white;
        background: rgba(0,0,0,0.7);
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 13px;
    }

    .poster{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

     .movie-cards:hover {
        transform: translateY(-10px) scale(1.02);
        border-color: #ff4d6d;
        box-shadow: 0 25px 30px -12px rgba(255,77,109,0.3);
        transition: all 0.4s ease; 
    }

    #sound-effect{
        display: none;
    }
}

/* ========== MOBILE VIEW (max-width:767px) ========== */

@media screen and (max-width:767px){

    html, body {
        width: 100%;
        overflow-x: hidden;
        background: #0a0f1c;
    }

    #main {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 10px;
        position: relative;
    }

    /* ========== PLAYER SECTION ========== */
    #screenPlayer {
        width: 100%;
        position: relative;
        background: #0c9a9a;
        border: 18px groove black;
        border-bottom: 32px groove black;
        line-height: 0;
    }

    #screenPlayer::before {
        content: "";
        display: block;
        padding-top: 56.25%;
    }

    #video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        background: black;
        display: block;
        vertical-align: bottom;
    }

    /* ========== CONTROLS ========== */
    #progress-wrap {
        height: 4px;
    }
    #time-display {
        bottom: -26px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 9px;
    }
    #speaker-mute {
        position: absolute;
        bottom: -30px;
        left: 3%;
        width: 18px;
        height: 14px;
        cursor: pointer;
        z-index: 10;
    }

    #volumeControl {
        position: absolute;
        bottom: -26px;
        left: 8%;
        width: 50px;
        z-index: 10;
    }

    #play {
        position: absolute;
        bottom: -30px;
        left: 30%;
        width: 48px;
        height: 16px;
        font-size: 10px;
        background: green;
        border-radius: 8px;
        cursor: pointer;
        z-index: 10;
        padding: 0;
        text-align: center;
        line-height: 16px;
        color: #ffffff;
        border: none;
        box-shadow : 2px 2px 2px #000000; 
    }

    #play:hover{
    transform: translateY(1px);
    transition: 1s,easy;
    cursor: pointer;
   }

    #pause {
        position: absolute;
        bottom: -30px;
        right: 30%;
        width: 48px;
        height: 16px;
        font-size: 10px;
        background: maroon;
        border-radius: 8px;
        cursor: pointer;
        z-index: 10;
        padding: 0px;
        text-align: center;
        line-height: 20px;
        color: #fff;
        border: none;
        box-shadow : 2px 2px 2px #000000; 

      }

  #pause:hover{
    transform: translateY(1px);
    transition: 1s,easy;
    cursor: pointer;
   }

    #Upload {
        position: absolute;
        bottom: -31px;
        right: 15%;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: blue;
        z-index: 10;
        cursor: pointer;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor : pointer; 
    }

    #fileInput {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        opacity: 0;
        cursor: pointer;
        position: absolute;
        top: 0;
        left: 0;
        cursor : pointer; 
    }

    #resize {
        position: absolute;
        bottom: -32px;
        right: -17px;
        width: 20px;
        height: 20px;
        background: black;
        cursor: pointer;
        z-index: 10;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
    }

    #zoom-image {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    /* ========== SOCIAL ACTION ========== */
    #social-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #social-action {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
        padding: 12px 10px;
        border-radius: 14px;
        background: linear-gradient(135deg, #112244, #081526);
    }

    #social-action h2 {
        width: 100%;
        text-align: center;
        color: gold;
        font-size: 18px;
        margin: 0 0 5px 0;
        padding: 5px 10px;
        background: rgba(0,0,0,0.5);
        border-radius: 25px;
    }

    #social-wrapper #review-section {
        position: relative;
        width: 100%;
        max-height: 260px;
        overflow-y: auto;
        margin: 0;
        box-sizing: border-box;
    }

    .btn {
        padding: 6px 12px;
        border: none;
        border-radius: 25px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: white;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
    }

    .like { background: #4267B2; }
    .subscribe { background: #ff0000; }
    .share { background: #2ecc71; }

    /* ========== CONTENT LIST ========== */
    #content-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        background: #111133;
        border-radius: 12px;
        padding: 10px;
        margin-top: 10px;
    }

    #search {
        width: 100%;
        height: 40px;
        border-radius: 12px;
        border: 2px solid blue;
        padding-left: 12px;
        font-size: 14px;
        margin-bottom: 15px;
        outline: none;
    }

    #Logo-box {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
        background: #244D3F;
        margin-bottom: 15px;
    }

    .Logo-image {
        width: 45px;
        height: 40px;
        object-fit: cover;
    }

    .logo-heading {
        font-size: 20px;
        color: red;
        text-shadow: 1px 1px 1px white;
    }

    /* ========== MOVIE LIST ========== */

    .movie-list {
        display: grid;
        grid-template-columns: 1fr 1fr;  /* यहाँ 1fr से बदलकर 1fr 1fr किया */
        gap: 12px;
        margin-bottom: 12px;
    }

    .movie-cards {
        flex-direction: column;
        align-items: center;
        background: #161b2b;
        border: 1px solid #2a2f45;
        border-radius: 8px;
        cursor: pointer;
        position: relative;
    }

    .movie-cards h2 {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 10;
        color: white;
        background: rgba(0, 0, 0, 0.7);
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 12px;
        margin: 0;
    }

    .poster {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

     .movie-cards:hover {
        transform: translateY(-10px) scale(1.02);
        border-color: #ff4d6d;
        box-shadow: 0 25px 30px -12px rgba(255,77,109,0.3);
        transition: all 0.4s ease; 
    }

    #volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    border: none;
}

#volumeControl::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: red !important;
    cursor: pointer;
    border: none;
}


    #sound-effect {
        display: none;
    }
}

/* Portrait mobile: player full width, edge to edge */
@media screen and (max-width:767px) and (orientation: portrait) {
    #screenPlayer {
        width: 100vw;
        margin-left: -10px;
        border: none;
        border-bottom: 32px groove black;
    }
}

/* Landscape mobile: player fills visible viewport (touch-only) */
@media screen and (max-height:767px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    body {
        overflow: hidden;
    }
    #navbar {
        display: none;
    }
    #social-wrapper {
        display: none;
    }
    #main {
        padding: 0;
    }
    #screenPlayer {
        box-sizing: border-box;
        height: 100vh;
        height: 100dvh;
    }
    #screenPlayer::before {
        padding-top: 0;
    }
}

