/* CSS Variables */
:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: rgba(56, 200, 104, 1);
    --background-color: #F2F4F7;
    --white: #ffffff;
    --black: rgba(0, 0, 0, 1);
    --gray-50: #fafafa;
    --gray-100: #f8f9fa;
    --gray-200: rgba(248, 245, 245, 1);
    --gray-300: rgba(192, 192, 192, 1);
    --gray-400: #ced4da;
    --gray-500: rgba(147, 147, 147, 1);
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --text-color-button: #939393;
    --border-color: rgba(226, 226, 226, 1);
    --border-gray: 1px solid rgba(208, 207, 207, 1);
    --border-radius: 0.3rem;
    --border-radius-lg: 25px;
    --border-radius-md: 12px;
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 12px 35px rgba(102, 126, 234, 0.4);
    --transition: all 0.3s ease;
    --border-button: 1px solid rgba(208, 207, 207, 1);
    --border-dotted: 1px dotted #93939380;
    --controls-gap: 8px;
    --bg-active: #E7F0FF;
    --border-active: 1px solid #8db7ff;
    --track-height: 3px;
    --handle-size: 20px;
    --playhead-size: 20px;
    --timeline-segment-color:#C0C0C0;
}

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

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    background: var(--background-color);
    display: flex;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    align-items: center;
    flex-direction: column;
    height: 100vh;
}

a,
button {
    text-decoration: none;
    cursor: pointer;
}

/* Main Container */
.container {
    padding:0.6rem;
    /* margin: auto; */
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    transform-origin: top center;
    height: max-content;
    width: 320px;
    min-height: max-content;
    position: relative;
    /* height: 100; */

}
.wrapper{
    display: flex;
    justify-content: center;
    align-items: start;
    width: 100%;
    height: 100%;
}

/* Header */
.header {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.header h1 {
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
    letter-spacing: 8px;
}

.header img {
    width: calc(49px / var(--scale-ratio, 1));
    height: calc(35px / var(--scale-ratio, 1));
    object-fit: contain;
}


.modal-alert-browser-not-supported-content{
    margin: 0 auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    transform: translate(-50%, -50%);
    max-width: 380px;
    width: 100%;
    height: max-content;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    padding: 1rem 1rem;
    color: #939393;
    padding: 0.2rem 0.6rem;
}
.modal-alert-browser-not-supported-content .icon-close{
    text-align: right;
}

.alert-browser-not-supported-buttons{
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem;
}

.alert-browser-not-supported-buttons .item{
    display: flex;
    align-items: center;
    gap: 0.3rem;
}


.banner-left,.banner-right{
    width: 200px;
    height: auto;
}
.banner-left{
    position: absolute;
    top: 15%;
    left: 15%;
}
.banner-right{
    position: absolute;
    top: 15%;
    right: 15%;
}

.banner-left img,
.banner-right img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-video-btn{
    color: var(--white);
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    height: 30px;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    padding: 0 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.complete-video-container video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.complete-video-container{
    display: none;
}


@media (max-width: 992px) {
    .banner-left,
    .banner-right{
      display: none;
    }
}


.modal-watchvideo{
    display: none;
}

.modal-watchvideo.show{
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 1rem ;
    border-radius: var(--border-radius-md);
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 300px;
}


.modal-watchvideo .complete-video-container{
    display: block;
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.modal-watchvideo .complete-video-container video{
    width: 100%;
    height: 100%;
    object-fit: contain; /* Giữ tỷ lệ và fit trong container */
}

.modal-playvideo{
    display: none;
    position: relative;
}
.modal-playvideo.show{
    display: block;
}

.modal-watchvideo.show{
    display: block;
}

#playVideo{
    width: 100%;
}

.uloadvideo{
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}