* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background-color: #0c0c0c; color: white; line-height: 1.6; }

header { background-color: #000; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 32px; font-weight: 900; color: #a6d5bf; letter-spacing: -1px; }
.logo span { font-weight: 400; font-style: italic; color: #616358; font-size: 28px; }
nav ul { display: flex; list-style: none; }
nav ul li a { color: #ccc; text-decoration: none; margin-left: 25px; font-weight: bold; font-size: 14px; transition: 0.3s; }
nav ul li a:hover { color: #a6d5bf; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero { text-align: center; padding: 60px 0; }
.hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 15px; }
#search-form { display: flex; justify-content: center; max-width: 600px; margin: 0 auto; }
#search-input { width: 100%; padding: 15px 25px; border-radius: 5px 0 0 5px; border: 1px solid #333; background: #1a1a1a; color: white; outline: none; }
#search-form button { padding: 15px 35px; border-radius: 0 5px 5px 0; border: none; background: #616358; color: white; font-weight: bold; cursor: pointer; }

#movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 25px; margin-top: 40px; }
.movie-card { background: #1a1a1a; border-radius: 10px; overflow: hidden; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.movie-card:hover { transform: translateY(-10px); }
.movie-card img { width: 100%; display: block; }
.movie-info { padding: 15px; text-align: center; }
.movie-info h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* DETAILS PAGE */
.backdrop { width: 100%; height: 550px; background-size: cover; background-position: center; position: relative; }
.backdrop-overlay { width: 100%; height: 100%; background: linear-gradient(to top, #0c0c0c, rgba(12,12,12,0.4)); display: flex; align-items: flex-end; padding-bottom: 50px; }
.main-info { display: flex; gap: 40px; align-items: flex-start; }
#details-poster { width: 220px; border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.text-info h2 { font-size: 48px; font-weight: 900; margin-bottom: 15px; }
.text-info p { color: #ccc; font-size: 16px; max-width: 800px; margin-bottom: 25px; }
.meta-data { margin-bottom: 25px; font-weight: bold; color: #a6d5bf; }
.watch-now-btn { padding: 18px 50px; background: #a6d5bf; color: #000; border: none; font-weight: 900; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.watch-now-btn:hover { background: #8bc3aa; }
.back-btn { background: rgba(255,255,255,0.1); border: 1px solid #444; color: white; padding: 8px 20px; margin-bottom: 30px; cursor: pointer; border-radius: 5px; font-weight: bold; }

/* PLAYER & SERVERS */
.watch-section { padding: 50px 0; border-top: 1px solid #222; }
.player-wrapper { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 30px; }
.player-wrapper iframe { width: 100%; height: 100%; }

.server-switcher { margin-bottom: 40px; text-align: center; }
.server-switcher p { font-size: 13px; color: #666; margin-bottom: 15px; }
.server-list { display: flex; gap: 12px; justify-content: center; }
.srv-btn { background: #1a1a1a; color: #ccc; border: 1px solid #333; padding: 12px 25px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.srv-btn.active { background: #a6d5bf; color: #000; border-color: #a6d5bf; }

/* TV CONTROLS */
.season-tabs { display: flex; gap: 10px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 10px; }
.season-tab { padding: 12px 25px; background: #1a1a1a; border-radius: 5px; cursor: pointer; border: 1px solid #333; white-space: nowrap; font-weight: bold; }
.season-tab.active { background: #a6d5bf; color: #000; }
.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.episode-item { background: #1a1a1a; padding: 18px; border-radius: 8px; cursor: pointer; font-size: 14px; border-left: 4px solid transparent; transition: 0.2s; }
.episode-item:hover { background: #222; border-left-color: #a6d5bf; }

footer { text-align: center; padding: 60px; color: #333; font-size: 13px; border-top: 1px solid #111; }