:root {
    --primary: #8a2be2;
    --secondary: #ff1493;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
}

.bg-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    position: relative;
    overflow-x: hidden;
}

.bg-gradient::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200vw; height: 200vw;
    background: radial-gradient(circle, rgba(138,43,226,0.15) 0%, rgba(0,0,0,0) 60%);
    z-index: 0;
    pointer-events: none;
}

.bg-gradient::after {
    content: '';
    position: fixed;
    bottom: -50%; right: -50%;
    width: 200vw; height: 200vw;
    background: radial-gradient(circle, rgba(255,20,147,0.1) 0%, rgba(0,0,0,0) 60%);
    z-index: 0;
    pointer-events: none;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.8s ease-out;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.subtitle {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.glass-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(138,43,226,0.3);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,20,147,0.4);
}
.btn-danger {
    background: linear-gradient(90deg, #dc2626, #991b1b);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(220,38,38,0.4); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

.w-100 { width: 100%; }

/* Dashboard layout */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

/* Grids / Items */
.grids-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    padding: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.grid-item:hover {
    transform: translateY(-5px);
}
.grid-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.grid-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.grid-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}
.modal-content {
    width: 100%;
    max-width: 500px;
}

/* Video Grid Display */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
@media (max-width: 1200px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
}
.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(138,43,226,0.3);
}
.video-thumb-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
    display: block;
}
.video-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(12px);
    transition: filter 0.5s ease;
    transform: scale(1.1); /* Prevent blurred edges */
}
/* Unblur on hover effect removed per request */
.video-duration {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
.video-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.video-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    flex-grow: 1;
}
.video-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

/* Header Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.public-link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
