/* Base */
body {
    font-family: "Century Gothic", sans-serif;
    margin: 0; padding: 0;
    background: linear-gradient(135deg,#0d0d0d,#1a1a1a);
    color: #fff;
    overflow-x: hidden;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    transition: background-position 0.1s ease;
}

/* Splash Screen */
.splash-screen {
    position: fixed; top:0; left:0;
    width:100%; height:100%;
    display:flex; flex-direction:column;
    justify-content:center; align-items:center;
    text-align:center;
    background: linear-gradient(135deg,#0d0d0d,#1a1a1a);
}
.splash-logo {
    width:250px; max-width:50%; margin-bottom:20px; transform: scale(0.8);
    animation: zoomIn 1s forwards;
}
.splash-message {
    font-size:1.3em; font-weight:500; margin-bottom:25px;
    opacity:0; animation: fadeIn 1s 0.5s forwards;
    color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Spinner */
.spinner {
    border:5px solid rgba(255,255,255,0.2);
    border-top:5px solid #fff;
    border-radius:50%;
    width:50px; height:50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}
@keyframes fadeIn{to{opacity:1;}}
@keyframes zoomIn{to{transform:scale(1);}}

/* Loading screens */
.loading-screen {
    position:fixed; top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    display:flex; justify-content:center; align-items:center;
    flex-direction:column;
    z-index:1000;
}

/* Login */
.login-container {
    max-width:400px; margin:100px auto; padding:40px;
    background: rgba(20,20,20,0.95); border-radius:12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7); text-align:center; opacity:0;
}
.login-container .logo { width:150px; max-width:40%; margin-bottom:20px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.7)); }
.login-container h2 { margin-bottom:25px; text-shadow:0 2px 6px rgba(0,0,0,0.7);}
.login-container input[type="password"], .login-container button {
    width:100%; padding:12px; margin-bottom:15px; border-radius:8px;
    border:none; font-size:1em; box-sizing:border-box;
}
.login-container input[type="password"] {
    border:1px solid #444; background:#111; color:#fff;
}
.login-container button {
    background:#ff3c3c; color:#fff; font-weight:bold; cursor:pointer;
    transition: all 0.3s ease;
}
.login-container button:hover {
    background:#ff1a1a; transform: scale(1.05) rotate(-1deg);
}

/* Videos */
.logo-container { margin:30px 0; text-align:center; }
.channel-logo { width:200px; max-width:50%; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8)); }

/* Search bar */
.search-container { width:100%; text-align:center; margin:15px 0; }
#search-input {
    width:90%; max-width:400px;
    padding:10px 15px;
    border-radius:8px; border:none;
    font-size:1em; background:#111; color:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
#search-input:focus { outline:none; box-shadow:0 0 20px #ff3c3c; }

/* Video grid 3-columns */
#video-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:20px;
    padding:20px;
}

/* Video container cinematic */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    perspective: 1200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
.video-container:hover {
    box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

/* Thumbnail */
.thumbnail {
    width:100%; height:180px;
    object-fit: cover;
    border-radius: 12px;
    display:block;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Overlay cinematic */
.overlay {
    position:absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
    color:#fff;
    display:flex; flex-direction:column;
    justify-content:flex-end; padding:12px;
    border-radius:12px;
    pointer-events:none;
    box-sizing:border-box;
    opacity:0; transition: opacity 0.3s ease;
}
.video-container:hover .overlay { opacity:1; }

.overlay .title { font-weight:bold; font-size:1.05em; margin-bottom:3px; text-shadow:0 2px 8px rgba(0,0,0,0.8); }
.overlay .date { font-size:0.8em; text-shadow:0 1px 4px rgba(0,0,0,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modal cinematic */
.modal {
    display:none; position:fixed; z-index:999; left:0; top:0;
    width:100%; height:100%;
    background:rgba(0,0,0,0.95);
    padding:60px 10px; box-sizing:border-box;
    backdrop-filter: blur(8px);
}
.modal .modal-backdrop {
    position:absolute; top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,0.6);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease;
    z-index:-1;
}
#modal iframe {
    width:90%; max-width:900px; aspect-ratio:16/9;
    margin:0 auto; border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,0.7); display:block;
}
#close {
    position:absolute; top:20px; right:35px;
    color:#fff; font-size:40px; font-weight:bold;
    cursor:pointer; transition: color 0.3s;
}
#close:hover { color:#ff5555; }

<<<<<<< HEAD
/* ===== Overlay fix (date never cut) ===== */
.overlay .date {
    font-size:0.85em;
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
    opacity:0.85;
}

/* ===== Mobile polish ===== */
@media (max-width: 600px) {
    .thumbnail {
        height: 220px;
    }

    .overlay .title {
        font-size: 1.15em;
    }

    .overlay .date {
        font-size: 0.9em;
    }
}

/* ===== Modal smoothness ===== */
.modal {
    transition: opacity 0.4s ease;
}

/* ===== Cinematic depth ===== */
.video-container {
    will-change: transform;
}

/*===== Admin =====*/
.admin .user::after {
    content: " 👑 ADMIN";
    color: gold;
}

=======
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff512f, #dd2476);
    color: #fff;
    font-size: 0.7em;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 5;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@media (max-width: 768px) {
    #video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
        padding: 15px;
    }

    .thumbnail {
        height: 180px;
    }

    .overlay .title {
        font-size: 1.1em;
    }

    .overlay .date {
        font-size: 0.85em;
    }
}
.username-modal {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.username-box {
    background:#111;
    padding:30px 40px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.7);
}

.username-box input {
    width:100%;
    padding:10px;
    margin-top:15px;
    border-radius:8px;
    border:none;
    font-size:1em;
}

.username-box button {
    margin-top:15px;
    padding:10px 20px;
    background:#ff3c3c;
    color:#fff;
    border:none;
    border-radius:8px;
    cursor:pointer;
}
.username-box button:hover { background:#ff1a1a; }

>>>>>>> 32abfb92cd316d437f0194287341b59a59dd11e9
