* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #0f0f13; color: #eee; line-height: 1.5; }
a { color: inherit; text-decoration: none; }

.site-header { background: #17171d; padding: 12px 20px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { font-size: 22px; font-weight: 700; color: #ff4757; }
.search-form { flex: 1; display: flex; min-width: 200px; }
.search-form input { flex: 1; padding: 8px 12px; border: none; border-radius: 4px 0 0 4px; }
.search-form button { padding: 8px 16px; background: #ff4757; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; }
.main-nav { display: flex; gap: 16px; align-items: center; }
.dropdown { position: relative; cursor: pointer; }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: #202027; padding: 8px 0; border-radius: 4px; min-width: 150px; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 16px; }
.dropdown-menu a:hover { background: #2b2b34; }

.site-main { max-width: 1200px; margin: 0 auto; padding: 24px 20px; min-height: 70vh; }
.page-title { margin-bottom: 20px; font-size: 24px; }

.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.movie-card { background: #1a1a21; border-radius: 8px; overflow: hidden; transition: transform .15s; }
.movie-card:hover { transform: translateY(-4px); }
.poster-wrap { position: relative; aspect-ratio: 2/3; background: #222; }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-quality { position: absolute; top: 6px; right: 6px; background: #ff4757; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.movie-card-info { padding: 10px; }
.movie-card-info h3 { font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-card-info p { font-size: 12px; color: #999; }

.pagination { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pagination a { padding: 8px 12px; background: #1a1a21; border-radius: 4px; }
.pagination a.active { background: #ff4757; }

.movie-detail { display: flex; gap: 24px; flex-wrap: wrap; }
.movie-poster-large { flex: 0 0 260px; }
.movie-poster-large img { width: 100%; border-radius: 8px; }
.movie-detail-info { flex: 1; min-width: 280px; }
.movie-detail-info h1 { font-size: 28px; margin-bottom: 10px; }
.meta-row { display: flex; gap: 12px; color: #aaa; font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.category-pill { display: inline-block; background: #2b2b34; padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 14px; }
.movie-description { margin: 14px 0; color: #ccc; }
.action-buttons { display: flex; gap: 12px; margin-top: 16px; }
.btn { padding: 10px 22px; border-radius: 6px; font-weight: 600; display: inline-block; }
.btn-primary { background: #ff4757; color: #fff; }
.btn-secondary { background: #2b2b34; color: #eee; }

.watch-page h1 { margin-bottom: 16px; }
.player-wrap { background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.player-wrap video { width: 100%; display: block; max-height: 70vh; }

.site-footer { text-align: center; padding: 20px; color: #666; font-size: 13px; }
