/* assets/css/style.css */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #3ea6ff;
    --danger: #ff0000;
    --border-radius: 12px;
    --transition: 0.2s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* Header */
header {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-primary {
    background-color: var(--accent);
    color: white; /* Contrast fix */
    border: none;
}
.btn-primary:hover {
    background-color: #3095ef; /* Slightly darker */
}

/* Forms */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: #121212;
    color: white;
    box-sizing: border-box; /* Fix padding issue */
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.video-card {
    background-color: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.thumbnail-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 0.8rem 0;
    display: flex;
    gap: 1rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333;
}

.details {
    flex: 1;
}

.title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo { width: 100%; justify-content: center; }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Watch Container Stack */
    .watch-container {
        flex-direction: column;
        padding: 0;
    }
    
    .primary-column, .secondary-column {
        flex: 1;
        width: 100%;
    }
    
    #video-container, #player {
        border-radius: 0; /* Full width player on mobile */
    }
    
    /* Hide some controls on small screens if needed */
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); /* 1 col */
        gap: 1rem;
        padding: 1rem;
    }
    
    .video-info {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
     .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}
