* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
html,
body {
    width: 100%;
    height: 100%;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    /* backdrop-filter: blur(2px); */
}

.container {
    position: relative;
    border-radius: 20px;
    width: 90%;
    margin: 0px;
}
.container::before {
    border: 2px solid #fff;
    border-radius: 20px;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 0.26504003552423006) 50%, rgba(252, 176, 69, 1) 100%);
    z-index: 1;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 0.26504003552423006) 50%, rgba(252, 176, 69, 1) 100%);
    z-index: 1;
}

.content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.profile-pic img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
}

h3,
.username h1 {
    margin: 0;
    color: white;
}

.username p {
    margin: 5px 0 20px 0;
    color: white;
}

.download-button {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0px 1px 17px rgba(225, 49, 9, 0.6);
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 0.26504003552423006) 50%, rgba(252, 176, 69, 1) 100%);
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
    text-decoration: none;
}

.download-button:hover {
    box-shadow: inset 0px 0px 17px 14px rgba(56, 6, 235, 0.2);
}
.download-button svg {
    margin-right: 10px;
}

.download-button img {
    vertical-align: middle;
    margin-right: 5px;
}

@media (min-width: 768px) {
    .container {
        width: 400px;
    }
}

@media (min-width: 1024px) {
    .container {
        width: 500px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

.modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.close-modal {
    position: relative;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.9) 0%, rgba(255, 0, 0, 1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 1) 0%, rgba(200, 0, 0, 1) 100%);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.close-modal:active {
    transform: scale(0.95) rotate(90deg);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.4);
}

.modal-content {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.modal video {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: #000;
    object-fit: contain;
}

.modal video::-webkit-media-controls-panel {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(4px);
   /* border-radius: 0 0 12px 12px;*/
}


.modal video::-webkit-media-controls-current-time-display,
.modal video::-webkit-media-controls-time-remaining-display {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 150, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .modal-header {
        height: 55px;
        padding: 0 15px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .close-modal {
        width: 38px;
        height: 38px;
        font-size: 22px;
        border-radius: 8px;
    }
    
    .modal-content {
        top: 55px;
        padding: 15px;
    }
    
    .modal video {
        border-radius: 12px;
        border-width: 2px;
    }
    
    .modal-loading {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        height: 50px;
        padding: 0 12px;
    }
    
    .modal-title {
        font-size: 14px;
    }
    
    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 20px;
        border-radius: 7px;
    }
    
    .modal-content {
        top: 50px;
        padding: 10px;
    }
    
    .modal video {
        border-radius: 10px;
    }
}

@media (orientation: portrait) {
    .modal video {
        width: auto;
        height: 70vh;
        max-width: 100%;
    }
}

@media (orientation: landscape) {
    .modal video {
        width: 90vw;
        height: auto;
        max-height: 80vh;
    }
}

.close-modal:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.modal *,
.modal video {
    transition: all 0.3s ease;
}

.modal::-webkit-scrollbar {
    width: 10px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.modal::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 5px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.modal video::-webkit-media-controls-panel.error {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.8) 0%, rgba(150, 0, 0, 0.9) 100%);
}

.modal video:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
}

@media (max-width: 768px) {
    .close-modal { user-select: none;}
    .button { user-select: none;}
    * { cursor: default !important; }
}
