body {
    margin:0;
    background:#141414;
    font-family:Arial, sans-serif;
    color:#fff;
}

/* TOP BAR */

.topbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 40px;
    background:linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 100%);
}

.brand {
    font-size:26px;
    font-weight:bold;
    color:#e50914;
}

/* SEARCH */

.searchWrap {
    position:relative;
    width:320px;
}

.searchBox {
    position:relative;
}

.searchBox input {
    width:100%;
    padding:10px 40px 10px 15px;
    background:#222;
    border:none;
    border-radius:4px;
    color:#fff;
    outline:none;
    transition:0.2s;
}

.searchBox input:focus {
    background:#333;
}

.searchIcon {
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    opacity:0.6;
}

/* LIVE RESULTS */

#liveResults {
    position:absolute;
    top:45px;
    width:100%;
    background:#1a1a1a;
    border-radius:4px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,0.6);
    z-index:999;
}

.liveItem {
    display:flex;
    align-items:center;
    padding:10px;
    border-bottom:1px solid #222;
    transition:0.2s;
}

.liveItem:hover {
    background:#2a2a2a;
}

.liveItem img {
    width:40px;
    height:60px;
    object-fit:cover;
    margin-right:10px;
    border-radius:3px;
}

.liveItem a {
    color:#fff;
    text-decoration:none;
    font-size:14px;
}

/* GRID */

.section {
    padding:20px 40px;
}

.h2 {
    font-size:20px;
    margin-bottom:15px;
}

.grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap:20px;
}

.card {
    position:relative;
    display:block;
    transition:0.2s;
}

.card:hover {
    transform:scale(1.05);
    z-index:5;
}

.poster {
    width:100%;
    border-radius:4px;
}

.meta {
    margin-top:8px;
}

.title {
    font-size:14px;
    font-weight:bold;
}

.sub {
    font-size:12px;
    opacity:0.7;
    margin-top:3px;
}

.rating {
    margin-left:8px;
    color:#f5c518;
}

.badge {
    margin-left:6px;
    background:#e50914;
    padding:2px 6px;
    font-size:10px;
    border-radius:3px;
}

/* ===== LIVE SEARCH ONLY ===== */

.searchWrap {
    position: relative;
    width: 320px;
}

#liveSearch {
    width: 100%;
    padding: 8px 12px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}

#liveSearch:focus {
    outline: none;
    border-color: #e50914;
}

#liveResults {
    position: absolute;
    top: 42px;
    width: 100%;
    background: #181818;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    display: none;
    z-index: 999;
}

.liveItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #222;
}

.liveItem:hover {
    background: #242424;
}

.liveItem img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}