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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Nav */

nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a4a;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #e94560;
}

.nav-user {
    margin-left: auto;
    color: #aaa;
}

.nav-link {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Login */

.login-container {
    max-width: 360px;
    margin: 80px auto;
    padding: 40px;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 24px;
    color: #e94560;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    background: #0f0f1a;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #e94560;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    background: #c73652;
}

.error {
    background: #3a1a1a;
    color: #ff6b6b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
}

/* Movies */

.movies-container {
    padding: 24px;
}

.movies-container h1 {
    margin-bottom: 24px;
    color: #e94560;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    transition: transform 0.2s, border-color 0.2s;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: #e94560;
}

.movie-poster svg {
    width: 100%;
    display: block;
}

.movie-title {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.empty-msg {
    color: #888;
    text-align: center;
    margin-top: 60px;
}

/* Player modal */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #e94560;
}

.modal-content h2 {
    margin-bottom: 16px;
    color: #e94560;
}

#player-video {
    width: 100%;
    border-radius: 6px;
    background: #000;
}

.cast-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.cast-btn:hover {
    background: #3367d6;
}

.cast-status {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #aaa;
}