/* ===== RESET & GLOBAL ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    background: #141414;
    color: #fff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #141414; }
::-webkit-scrollbar-thumb { background: #e50914; border-radius: 10px; }

a { text-decoration: none; color: #fff; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #141414 10%, transparent 100%);
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s;
}
.navbar.scrolled { background: #141414; }
.navbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}
.logo {
    font-size: 2rem;
    font-weight: 900;
    color: #e50914;
    letter-spacing: -2px;
}
.logo i { margin-right: 5px; }
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    font-size: 0.9rem;
}
.nav-menu li { cursor: pointer; transition: 0.2s; }
.nav-menu li:hover { color: #b3b3b3; }
.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #b3b3b3;
}
.navbar-right i { font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.navbar-right i:hover { color: #fff; }
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 90vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    padding: 0 60px;
    margin-top: 0;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://via.placeholder.com/1920x1080/1a1a1a/e50914?text=DarkFlix+Original') center/cover no-repeat;
    opacity: 0.6;
    filter: blur(2px);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.hero-content .badge {
    background: #e50914;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.hero-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-hero {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-hero.play { background: #fff; color: #000; }
.btn-hero.play:hover { background: #e6e6e6; }
.btn-hero.info { background: rgba(109, 109, 110, 0.7); color: #fff; }
.btn-hero.info:hover { background: rgba(109, 109, 110, 0.4); }

/* ===== ROWS ===== */
.row-container {
    margin-top: -150px;
    padding: 0 60px 40px;
    position: relative;
    z-index: 3;
}
.row-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}
.row-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}
.row-header a {
    color: #b3b3b3;
    font-size: 0.9rem;
}
.row-header a:hover { color: #fff; text-decoration: underline; }

.row-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}
.row-scroll::-webkit-scrollbar { height: 6px; }
.row-scroll::-webkit-scrollbar-track { background: #1a1a1a; }
.row-scroll::-webkit-scrollbar-thumb { background: #e50914; border-radius: 10px; }

/* ===== CARD ===== */
.card-item {
    flex: 0 0 220px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.card-item img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    border-radius: 6px;
    transition: 0.3s;
}
.card-item:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}
.card-item:hover img {
    border-radius: 6px 6px 0 0;
}
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(20,20,20,0.9), transparent);
    padding: 10px;
    opacity: 0;
    transition: 0.3s;
    border-radius: 0 0 6px 6px;
}
.card-item:hover .card-info {
    opacity: 1;
    bottom: 0;
}
.card-info .title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.card-info .meta {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: #b3b3b3;
}
.card-info .meta i { margin-right: 3px; }
.card-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.card-buttons button {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-buttons button:hover { background: #fff; color: #000; }
.card-buttons .play-btn { background: #fff; color: #000; }
.card-buttons .play-btn:hover { background: #e6e6e6; }

/* ===== MODAL ===== */
.modal-content {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #e50914;
}
.modal-header { border-bottom: 1px solid #e50914; }
.modal-footer { border-top: 1px solid #e50914; }
.modal-video {
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-video video { width: 100%; height: 100%; max-height: 400px; object-fit: cover; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; flex-wrap: wrap; }
    .nav-menu { display: none; }
    .hero { padding: 0 20px; height: 70vh; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 0.9rem; }
    .row-container { padding: 0 20px 30px; margin-top: -100px; }
    .card-item { flex: 0 0 150px; }
    .card-item img { height: 90px; }
}