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

body {
    background: #000000;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.title-box {
    display: flex;
    width: 300px;
    height: 100px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.5);
    animation: glow 2s infinite alternate;
}

.title-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.first-half {
    background-color: #ff692e;
    color: black;
}

.second-half {
    background-color: black;
    color: #ff692e;
}

.upload-btn {
    display: block;
    margin: 40px auto;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.4);
}

.upload-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6);
}

.upload-btn:active {
    transform: translateY(1px);
}

.file-input {
    display: none;
}

.upload-progress {
    width: 100%;
    max-width: 400px;
    background-color: #333;
    border-radius: 5px;
    margin: 10px auto;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 10px;
    background-color: orange;
    width: 0%;
    transition: width 0.3s ease;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.media-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
}

.media-preview-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
}

.media-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 165, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-icon::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid white;
    margin-left: 5px;
}

.media-info {
    padding: 15px;
}

.media-name {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-size {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.7);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.9);
}

.loading {
    text-align: center;
    margin: 30px 0;
    font-size: 18px;
    color: #aaa;
}

.empty-state {
    text-align: center;
    margin: 50px 0;
    color: #777;
    font-size: 20px;
}

.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #222;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

.modal-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: orange;
}

.password-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: rgba(255, 165, 0, 0.2);
    color: orange;
}

.confirm-btn:hover {
    background: rgba(255, 165, 0, 0.4);
}

.cancel-btn {
    background: rgba(100, 100, 100, 0.2);
    color: #aaa;
}

.cancel-btn:hover {
    background: rgba(100, 100, 100, 0.4);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(40, 167, 69, 0.9);
}

.notification.error {
    background: rgba(220, 53, 69, 0.9);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px 5px rgba(255, 165, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 30px 15px rgba(255, 165, 0, 0.7);
    }
}
