:root {
  --primary-bg: #0e0e0e;
  --secondary-bg: #1a1a1a;
  --card-bg: #1f1f1f;
  --accent: #e84393;
  --accent-hover: #c2357a;
  --text: #ffffff;
  --text-muted: #9e9e9e;
  --border: rgba(255,255,255,.08);
  --sidebar-width: 220px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--primary-bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* SIDEBAR */
#sidebar-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 900; }
#sidebar-bg.active { display: block; }
#sidebar { position: fixed; top: 0; left: -240px; width: var(--sidebar-width); height: 100vh; background: var(--secondary-bg); border-right: 1px solid var(--border); z-index: 950; transition: left .3s ease; overflow-y: auto; padding-bottom: 2rem; }
#sidebar.active { left: 0; }
#sidebar-close { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.2rem; font-size: .85rem; color: var(--text-muted); cursor: pointer; border-bottom: 1px solid var(--border); transition: color .2s; }
#sidebar-close:hover { color: var(--accent); }
.sidebar-nav { padding: .5rem 0; }
.sidebar-nav-item a { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.2rem; font-size: .9rem; color: var(--text-muted); transition: color .2s, background .2s; }
.sidebar-nav-item a:hover, .sidebar-nav-item a.active { color: var(--accent); background: rgba(232,67,147,.07); }
.sidebar-nav-item a i { width: 18px; text-align: center; }
.sidebar-section-title { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 1rem 1.2rem .3rem; }

/* HEADER */
#header { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: rgba(14,14,14,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); z-index: 800; display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem; }
#menu-toggle { background: none; border: none; color: var(--text); font-size: 1.2rem; cursor: pointer; padding: .3rem; transition: color .2s; flex-shrink: 0; }
#menu-toggle:hover { color: var(--accent); }
#logo { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
#logo img { width: 32px; height: 32px; }
#search-bar { display: flex; align-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 6px; padding: .35rem .8rem; flex: 1; max-width: 480px; margin: 0 auto; transition: border-color .2s; }
#search-bar:focus-within { border-color: var(--accent); }
#search-bar input { background: none; border: none; outline: none; color: var(--text); font-family: Poppins, sans-serif; font-size: .9rem; width: 100%; }
#search-bar input::placeholder { color: var(--text-muted); }
#search-bar button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .9rem; transition: color .2s; flex-shrink: 0; }
#search-bar button:hover { color: var(--accent); }

/* MAIN */
#main { padding-top: 60px; min-height: 100vh; }

/* SECTION HEADINGS */
.block-area { padding: 1.5rem 1.5rem 0; }
.block-area + .block-area { padding-top: 2rem; }
.cat-heading { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.cat-heading::before { content: ''; width: 4px; height: 1.1rem; background: var(--accent); border-radius: 2px; flex-shrink: 0; }

/* FILM CARDS */
.film-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.flw-item { position: relative; cursor: pointer; }
.flw-item:hover .film-poster-img { transform: scale(1.04); }
.flw-item:hover .film-poster-ahref { opacity: 1; }
.film-poster { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 2/3; background: var(--card-bg); }
.film-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.film-poster-ahref { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.film-poster-ahref i { background: var(--accent); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; }
.fdi-type, .fdi-quality { position: absolute; top: 6px; font-size: .65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.fdi-type { left: 6px; background: var(--accent); color: #fff; }
.fdi-quality { right: 6px; background: #f5c518; color: #000; }
.film-detail { padding: .4rem 0; }
.film-name { font-size: .85rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; transition: color .2s; }
.flw-item:hover .film-name { color: var(--accent); }
.fd-infor { font-size: .75rem; color: var(--text-muted); display: flex; gap: .4rem; align-items: center; margin-top: .15rem; }
.fd-infor .dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }

/* FEATURED */
.featured-section { position: relative; height: 480px; overflow: hidden; }
.featured-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; }
.featured-slide.active { opacity: 1; }
.featured-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.9) 30%, rgba(0,0,0,.2) 100%); }
.featured-info { position: absolute; bottom: 0; left: 0; right: 55%; padding: 2rem 1.5rem; z-index: 1; }
.featured-info h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: .5rem; }
.featured-info p { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-watch { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.4rem; background: var(--accent); color: #fff; border-radius: 6px; font-size: .9rem; font-weight: 600; transition: background .2s; }
.btn-watch:hover { background: var(--accent-hover); }
.featured-dots { position: absolute; bottom: 1rem; right: 1.5rem; display: flex; gap: .4rem; z-index: 1; }
.featured-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s; border: none; }
.featured-dot.active { background: var(--accent); }

/* FOOTER */
footer { background: var(--secondary-bg); border-top: 1px solid var(--border); padding: 1.5rem; margin-top: 3rem; font-size: .8rem; color: var(--text-muted); text-align: center; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: .75rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .film-list { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; }
  .featured-section { height: 320px; }
  .featured-info { right: 0; }
  .featured-info h2 { font-size: 1.3rem; }
  #search-bar { max-width: none; }
  .block-area { padding: 1rem 1rem 0; }
}
