/* DoramaFlix - Netflix-like Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Netflix+Sans:wght@300;400;700;900&family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --netflix-red: #E50914;
    --netflix-red-hover: #b80710;
    --bg-dark: #111111;
    --card-bg: #181818;
    --text-white: #FFFFFF;
    --text-gray: #8c8c8c;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--netflix-red);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.brand-logo {
    color: var(--netflix-red);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

/* Hero Banner */
.hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 0 4%;
    background-size: cover;
    background-position: center top;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(77deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%),
                linear-gradient(180deg, transparent 50%, #111111 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid de Vídeos Lado a Lado */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

.video-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #262626;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    border-color: var(--netflix-red);
}

.card-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #050505;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-card:hover .card-thumb {
    transform: scale(1.06);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-circle {
    width: 55px;
    height: 55px;
    background-color: var(--netflix-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.video-card:hover .play-circle {
    transform: scale(1.08);
}

.badge-dublado {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border-left: 3px solid var(--netflix-red);
    letter-spacing: 0.5px;
}

.card-details {
    padding: 12px 14px;
    background: #181818;
}

.card-ep-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-series-name {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Botões */
.btn-primary {
    background-color: var(--netflix-red);
    color: white;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--netflix-red-hover);
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Login */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(30,30,30,0.9) 0%, rgba(10,10,10,0.98) 100%);
    padding: 20px;
}

.auth-card {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #333;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--netflix-red);
}

.alert-box {
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: none;
}
.alert-error {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--netflix-red);
    color: #ff858d;
}
