:root { --bg: #020617; --accent: #0062ff; --surface: #0f172a; --text: #f8fafc; --header-h: 70px; --sidebar-w: 90px; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; }

.main-header { height: var(--header-h); padding: 0 25px; display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(2, 6, 23, 0.95); border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo { font-size: 1.6rem; font-weight: 900; cursor: pointer; }
.logo span { color: var(--accent); }

/* BUSCA E SUGESTÕES ESTILIZADAS */
.search-box { position: relative; width: 45%; max-width: 500px; }
.search-box input { width: 100%; background: #1e293b; border: 1px solid transparent; padding: 12px 20px; border-radius: 25px; color: #fff; outline: none; }
.search-suggestions { position: absolute; top: 55px; width: 100%; background: #111827; border-radius: 12px; display: none; z-index: 5000; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

.suggestion-item { display: flex; align-items: center; padding: 12px; gap: 15px; cursor: pointer; border-bottom: 1px solid #1f2937; transition: 0.2s; }
.suggestion-item:hover { background: #1f2937; }
.suggestion-item img { width: 45px; height: 65px; border-radius: 4px; object-fit: cover; }
.sug-info { display: flex; flex-direction: column; gap: 4px; }
.sug-title { font-weight: 600; font-size: 14px; color: #fff; }
.sug-meta { font-size: 12px; color: #94a3b8; display: flex; gap: 10px; align-items: center; }
.sug-tag { background: #334155; padding: 2px 6px; border-radius: 4px; font-size: 10px; text-transform: uppercase; }
.sug-rating { color: #fbbf24; font-weight: bold; }

/* LAYOUT */
.sidebar { width: var(--sidebar-w); position: fixed; left: 0; top: var(--header-h); height: 100vh; background: var(--bg); border-right: 1px solid rgba(255,255,255,0.05); }
.nav-menu { display: flex; flex-direction: column; align-items: center; padding-top: 30px; gap: 25px; }
.nav-item { color: #64748b; cursor: pointer; text-align: center; }
.nav-item i { font-size: 1.4rem; display: block; }
.nav-item span { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; }
.nav-item.active { color: var(--accent); }

.main-content { margin-left: var(--sidebar-w); padding: 25px; margin-top: var(--header-h); }
.category-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; }
.pill { background: #1e293b; border: none; color: #94a3b8; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: 700; white-space: nowrap; }
.pill.active { background: var(--accent); color: #fff; }

.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; margin-top: 20px; }
.movie-card { background: var(--surface); border-radius: 10px; overflow: hidden; cursor: pointer; transition: 0.3s; }
.movie-card:hover { transform: translateY(-5px); }
.movie-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.card-title { padding: 10px; font-size: 0.75rem; text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* PLAYER */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.player-card-rect { width: 100%; max-width: 900px; background: #0f172a; border-radius: 12px; overflow: hidden; }
.player-header { padding: 15px; display: flex; align-items: center; justify-content: space-between; background: #1e293b; }
.ads-notice { background: #fbbf24; color: #000; padding: 5px; text-align: center; font-size: 11px; font-weight: 900; }
.video-container-rect { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.video-container-rect iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.back-btn, .fav-btn-modal { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 768px) {
    .sidebar { width: 100%; height: 60px; bottom: 0; top: auto; border-right: none; border-top: 1px solid #1e293b; }
    .nav-menu { flex-direction: row; justify-content: space-around; padding: 0; height: 100%; align-items: center; }
    .main-content { margin-left: 0; margin-bottom: 70px; padding: 15px; }
    .search-box { width: 60%; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
}
