* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
    padding: 15px 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #e94560, #533483);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
}

.nav-links a:hover, .nav-links a.active {
    color: #e94560;
}

/* Timer Bar */
.timer-bar {
    background: #1e1e2e;
    padding: 6px 15px;
    text-align: center;
    border-bottom: 1px solid #e94560;
    font-size: 11px;
}

.timer-bar span {
    background: #e94560;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Search */
.search-container {
    padding: 15px;
    text-align: center;
}

.search-input {
    width: 90%;
    max-width: 400px;
    padding: 10px 18px;
    border-radius: 30px;
    border: none;
    background: #1e1e2e;
    color: white;
    font-size: 14px;
    outline: none;
}

/* Section */
.section {
    padding: 15px 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Grid - ADAPTÁVEL */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

/* Cards */
.card {
    background: #1e1e2e;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: linear-gradient(135deg, #e94560, #533483);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 10px;
    text-align: center;
}

.card-title {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 15px;
    font-size: 9px;
    margin-top: 4px;
}

.badge-filme { background: #e94560; }
.badge-serie { background: #533483; }
.badge-canal { background: #22c55e; animation: pulse 1.5s infinite; }

/* Temporadas */
.season-group {
    margin-bottom: 25px;
    border-left: 3px solid #e94560;
    padding-left: 15px;
}

.season-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #e94560;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.episode-card {
    background: #1e1e2e;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.episode-card:hover {
    background: #e94560;
    transform: scale(1.02);
}

.episode-number {
    font-size: 10px;
    color: #aaa;
    margin-bottom: 4px;
}

.episode-name {
    font-size: 11px;
    font-weight: 500;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #e94560;
    font-size: 14px;
}

/* Modal Player */
.modal-player {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-player.active {
    display: flex;
}

.modal-content {
    width: 95%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: #1a1a2e;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header span {
    font-size: 13px;
    font-weight: 500;
}

.close-modal {
    background: #e94560;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.ad-banner {
    text-align: center;
    padding: 8px;
    background: #111;
}

video {
    width: 100%;
    max-height: 60vh;
    background: black;
}

.loader-player {
    text-align: center;
    padding: 25px;
    color: #e94560;
    font-size: 13px;
}

.stats {
    text-align: center;
    padding: 12px;
    color: #aaa;
    font-size: 11px;
    background: #1a1a2e;
    margin-top: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* RESPONSIVIDADE - Smart TV, Tablet, Celular */
@media (min-width: 1920px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
    .card-img { height: 280px; }
    .section-title { font-size: 28px; }
    .card-title { font-size: 15px; }
}

@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .card-img { height: 210px; }
}

@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
    .card-img { height: 170px; font-size: 36px; }
    .section { padding: 12px 15px; }
    .section-title { font-size: 18px; }
}

@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
    .card-img { height: 140px; font-size: 32px; }
    .card-title { font-size: 10px; }
    .episodes-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .episode-name { font-size: 9px; }
}

/* Smart TV (grandes telas) */
@media (min-width: 2560px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
    .card-img { height: 380px; }
    .section-title { font-size: 36px; }
}
