* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #0d0d0d; color: #fff; font-family: Arial, sans-serif; text-align: center; }

header { background: #141414; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e50914; flex-wrap: wrap; gap: 10px; }
.logo { color: #e50914; font-size: 24px; font-weight: bold; text-decoration: none; }
.logo span { color: #fff; }

#search { padding: 8px 15px; border-radius: 20px; border: none; outline: none; width: 250px; background: #222; color: #fff; }

.categories { margin: 20px 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cat-btn { padding: 8px 16px; background: #222; color: #fff; border: 1px solid #444; border-radius: 20px; cursor: pointer; font-weight: bold; }
.cat-btn.active, .cat-btn:hover { background: #e50914; border-color: #e50914; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; padding: 0 20px; max-width: 1200px; margin: auto; }
.movie-card { background: #1c1c1c; border-radius: 8px; overflow: hidden; transition: transform 0.2s; }
.movie-card:hover { transform: scale(1.05); }
.movie-card a { text-decoration: none; color: #fff; }
.movie-card img { width: 100%; height: 225px; object-fit: cover; }
.movie-title { padding: 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.load-more-container { margin: 30px 0; }
#load-more-btn { padding: 12px 25px; background: #e50914; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; }

/* Player Page Styles */
.player-container { width: 95%; max-width: 900px; margin: 20px auto; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid #333; }
iframe { width: 100%; height: 100%; border: none; }
.server-btn { padding: 8px 15px; margin: 5px; background: #222; color: #fff; border: 1px solid #e50914; border-radius: 5px; cursor: pointer; }
.server-btn:hover { background: #e50914; }
#m-title { margin: 20px 0; color: #e50914; }
.back-link { color: #aaa; text-decoration: none; display: inline-block; margin-bottom: 20px; }
