/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f0f0f;
    color: #fff;
    line-height: 1.5;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.imgp {
    width: 2.3rem;
    height: 2.3rem;
}

.nav-brand a {
    color: #ff0000;
    letter-spacing: -0.5px;
    text-decoration: none;
    font-size: 30px;
    font-weight: bold;

}

.empire {
    color: #ff0000;
}

.cine {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu li a i {
    font-size: 1.1rem;
    color: #aaa;
    transition: color 0.2s;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff0000;
}

.nav-menu li a:hover i {
    color: #e50914;
}

.nav-menu li a .profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e50914;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
}

/* ===== TÍTULOS ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #fff;
    letter-spacing: -0.5px;
}

/* ===== SCROLL CONTAINER (HORIZONTAL) ===== */
.scroll-container {
    position: relative;
    margin: 1rem 0;
    width: 100%;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 0.5rem 0 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    pointer-events: none;
}

.scroll-container:hover .scroll-arrow {
    opacity: 1;
    pointer-events: auto;
}

.scroll-arrow:hover {
    background: rgba(229, 9, 20, 0.9);
    border-color: transparent;
}

.scroll-arrow.left {
    left: -10px;
}

.scroll-arrow.right {
    right: -10px;
}

/* ===== CARDS ===== */
.card {
    flex: 0 0 auto;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 5;
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: opacity 0.25s;
}

.card:hover img {
    opacity: 0.7;
}

.card-title-fixed {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    pointer-events: none;
}

.card-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.card:hover .card-body {
    opacity: 1;
}

.card-body .btn-small {
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin: 0.2rem;
    transition: all 0.2s;
}

.card-body .btn-small:hover {
    background: #f40612;
    transform: scale(1.05);
}

.card-body .favorito-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0.2rem;
    transition: color 0.2s, transform 0.2s;
}

.card-body .favorito-btn:hover {
    transform: scale(1.1);
}

.card-body .favorito-btn.favorito-ativo {
    color: #e50914;
    animation: heartBeat 0.3s;
}

.card-body .extra-info {
    color: #ccc;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

/* ===== GRID DE CATEGORIAS ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    background: #e50914;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #ff3b3f;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: all 0.2s ease-in-out;
}

.btn-outline:hover {
    transform: scale(1.05);
    background: rgba(229, 9, 20, 0.2);
    border-color: #e50914;
}

.btn-outline:active {
    transform: scale(0.98);
}

.btn-small {
    display: inline-block;
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-small:hover {
    background: #f40612;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.btn-small:active {
    transform: scale(0.98);
}

.favorito-btn,
.favorito-btn-large {
    transition: color 0.2s, transform 0.2s, background 0.2s;
}

.favorito-btn:hover,
.favorito-btn-large:hover {
    transform: scale(1.1);
}

.favorito-btn.favorito-ativo {
    color: #e50914;
    animation: heartBeat 0.3s;
}

.favorito-btn-large.favorito-ativo {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== BARRA DE PESQUISA ===== */
.search-container {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    width: 100%;
}

.search-input {
    flex: 1 1 250px;
    min-width: 200px;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 40px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border 0.2s, background 0.2s;
    height: 48px;
    line-height: normal;
}

.search-input:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(40, 40, 40, 0.9);
}

.search-btn {
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 0 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    height: 48px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #ff3b3f;
    transform: scale(1.02);
}

.search-btn:active {
    transform: scale(0.98);
}

/* ===== SIDEBAR ===== */
.page-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 280px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 3px;
}

.sidebar h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.sidebar li {
    margin: 0.2rem 0;
}

.sidebar .categoria-link,
.sidebar .ano-link {
    display: block;
    padding: 0.6rem 0.8rem;
    background: #2a2a2a;
    border-radius: 4px;
    color: #ddd;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .categoria-link:hover,
.sidebar .ano-link:hover {
    background: #e50914;
    color: #fff;
}

.sidebar .categoria-link.active,
.sidebar .ano-link.active {
    background: #e50914;
    color: #fff;
    font-weight: bold;
}

.filter-group {
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
}

.filter-header i {
    transition: transform 0.3s;
}

.filter-header.active i {
    transform: rotate(180deg);
}

.filter-options {
    padding: 0.5rem 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    color: #fff;
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.sidebar-toggle-btn {
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    display: none;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: #f40612;
    transform: scale(1.05);
}

.sidebar-toggle-btn:active {
    transform: scale(0.98);
}

/* ===== BARRA DE PESQUISA NA SIDEBAR ===== */
.sidebar-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.sidebar-search .search-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.sidebar-search .search-btn {
    height: 44px;
    padding: 0 1.2rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ===== PLAYER ===== */
.player-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    aspect-ratio: 16 / 9;
}

#video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    z-index: 15;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 10px 15px 5px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    pointer-events: none;
}

.video-container:hover .custom-controls,
.video-container:focus-within .custom-controls,
.custom-controls.active {
    opacity: 1;
    pointer-events: auto;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background: #e50914;
    border-radius: 2px;
    width: 0%;
    z-index: 2;
}

.progress-buffer {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    width: 0%;
    z-index: 1;
}

.progress-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e50914;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-container:hover .progress-handle {
    opacity: 1;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-controls,
.right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.98);
}

.control-btn i {
    pointer-events: none;
}

.next-btn {
    background: rgba(229, 9, 20, 0.8);
    border-radius: 30px;
    padding: 8px 15px;
    gap: 5px;
    font-size: 1rem;
}

.next-btn:hover {
    background: #e50914;
}

.next-text {
    display: inline-block;
}

.time-display {
    font-size: 0.9rem;
    font-family: monospace;
    opacity: 0.9;
}

.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(229, 9, 20, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 20;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

.big-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.double-tap-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 25;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.double-tap-indicator.left {
    left: 20px;
}

.double-tap-indicator.right {
    right: 20px;
}

.double-tap-indicator.show {
    opacity: 1;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(0.9);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.player-info {
    margin-top: 20px;
    padding: 0 10px;
}

.title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.serie-title h1 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.episode-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ccc;
    margin: 0;
}

.favorito-btn-large {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.favorito-btn-large:hover {
    border-color: #e50914;
    background: rgba(229, 9, 20, 0.1);
    transform: scale(1.05);
}

.favorito-btn-large:active {
    transform: scale(0.98);
}

.favorito-btn-large.favorito-ativo {
    background: #e50914;
    border-color: #e50914;
    color: white;
}

/* ===== DETALHE DE SÉRIE ===== */
.serie-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.serie-detail h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.temporadas-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.temporada-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
}

.temporada-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #2a2a2a;
    cursor: pointer;
}

.temporada-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
}

.episodios-list {
    padding: 1.5rem;
}

.episodio-item {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    flex-wrap: wrap;
}

.episodio-poster {
    flex: 0 0 150px;
}

.episodio-poster img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 4px;
}

.episodio-info {
    flex: 1;
    min-width: 250px;
}

.episodio-info h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.episodio-sinopse {
    font-size: 0.95rem;
    color: #bbb;
    margin: 0.5rem 0;
}

.detail-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.detail-container .poster {
    flex: 0 0 300px;
}

.detail-container .poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.detail-container .info {
    flex: 1;
    min-width: 300px;
}

.detail-container .info h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

.sinopse {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin: 1.5rem 0;
}

/* ===== ADMIN ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.stat-card i {
    font-size: 2.5rem;
    color: #e50914;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    align-items: center;
}

.search-wrapper {
    display: flex;
    flex: 1;
    gap: 0.5rem;
    min-width: 250px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
    border-radius: 8px;
}

.tabela-usuarios {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    min-width: 700px;
}

.tabela-usuarios th {
    background: #333;
    padding: 0.8rem;
    text-align: left;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.tabela-usuarios td {
    padding: 0.8rem;
    border-bottom: 1px solid #333;
    vertical-align: middle;
}

.tabela-usuarios tr:last-child td {
    border-bottom: none;
}

.badge-admin,
.badge-user {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.badge-admin {
    background: #e50914;
    color: #fff;
}

.badge-user {
    background: #2a2a2a;
    color: #ddd;
}

.expirado {
    color: #e50914;
    font-weight: bold;
}

.acoes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-acao {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

.btn-acao:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-acao:active {
    transform: scale(0.95);
}

.btn-acao.excluir:hover {
    background: #e50914;
}

.btn-acao.banir:hover {
    background: #ffaa00;
}

.btn-acao.editar:hover {
    background: #007bff;
}

.btn-acao.resetar:hover {
    background: #28a745;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-card {
    max-width: 500px;
    width: 100%;
    margin: 2rem auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== RESULTADOS DA BUSCA ===== */
.resultados-info {
    margin: 1rem 0;
    color: #ccc;
    font-size: 1.1rem;
}

.empty-message {
    color: #888;
    font-size: 1rem;
    padding: 2rem;
    text-align: center;
}

.error {
    color: #e50914;
    font-size: 1rem;
    padding: 2rem;
    text-align: center;
}

.loading {
    color: #aaa;
    font-size: 1rem;
    padding: 2rem;
    text-align: center;
}

/* ===== HERO (PÁGINA INICIAL) ===== */
.hero-section {
    margin-bottom: 3rem;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 600px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.hero-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: white;
    text-decoration: none;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badge {
    display: inline-block;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-btn {
    display: inline-block;
    background: #e50914;
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    background: #f40612;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.hero-btn:active {
    transform: scale(0.98);
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.hero-indicator.active {
    background: #e50914;
    transform: scale(1.3);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(229, 9, 20, 0.9);
}

.hero-arrow.left {
    left: 20px;
}

.hero-arrow.right {
    right: 20px;
}

/* ===== PÁGINAS DE AUTENTICAÇÃO ===== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow: hidden;

}


.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 0.1rem;
    display: block;
    position: absolute;
}

.auth-card {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
}

.auth-card h1 {
    text-align: center;
    color: #e50914;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.3rem;
    color: #ccc;
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    border: 1px solid transparent;
    transition: border 0.2s;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #e50914;
}

.auth-form .checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form .checkbox input {
    width: auto;
}

.auth-form .checkbox label {
    margin-bottom: 0;
}

.auth-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: #ccc;
}

.auth-link a {
    color: #fff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.alert.error {
    background-color: #e50914;
    color: #fff;
}

/* ===== RESPONSIVIDADE GERAL ===== */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 0.6rem 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 1rem 2rem;
        border-radius: 0;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    /* Main content */
    main {
        padding: 5rem 1rem 1rem;
    }

    /* Títulos */
    .section-title {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.8rem;
    }

    /* Cards */
    .card {
        width: 140px;
    }

    .card img {
        height: 200px;
    }

    /* Grid de categorias */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    /* Scroll container */
    .scroll-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        opacity: 0.7;
    }

    .scroll-arrow.left {
        left: 5px;
    }

    .scroll-arrow.right {
        right: 5px;
    }

    /* Barra de pesquisa geral */
    .search-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .search-input,
    .search-btn {
        width: 100%;
        height: 50px;
    }

    .search-btn {
        padding: 0 1rem;
    }

    /* ===== SIDEBAR MOBILE ===== */
    .page-with-sidebar {
        flex-direction: column;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        max-height: none !important;
        z-index: 1100 !important;
        background: #1a1a1a !important;
        overflow-y: auto !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-radius: 0 8px 8px 0;
        padding: 2rem 1rem;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .sidebar.closed {
        transform: translateX(-100%) !important;
    }

    .sidebar-close {
        display: block !important;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .sidebar-toggle-btn {
        display: block !important;
        margin-bottom: 1rem;
    }

    /* Ajustes para o conteúdo da sidebar */
    .sidebar h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .sidebar ul {
        margin-bottom: 1rem;
    }

    .sidebar .categoria-link,
    .sidebar .ano-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }

    /* Barra de pesquisa na sidebar não interfere */
    .sidebar-search {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .sidebar-search .search-input,
    .sidebar-search .search-btn {
        width: 100%;
        height: 44px;
    }

    /* Player */
    .control-btn {
        font-size: 1rem;
        min-width: 35px;
    }

    .next-btn {
        padding: 6px 10px;
    }

    .next-text {
        display: none;
    }

    .time-display {
        font-size: 0.8rem;
    }

    .serie-title h1,
    .title-section h1 {
        font-size: 1.4rem;
    }

    .episode-subtitle {
        font-size: 1rem;
    }

    .double-tap-indicator {
        padding: 10px 15px;
        font-size: 1.2rem;
    }

    /* Detalhe de série/filme */
    .detail-container {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-container .poster {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .episodio-item {
        flex-direction: column;
    }

    .episodio-poster {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
    }

    /* Admin */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        width: 100%;
    }

    .table-responsive {
        margin: 0 -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }

    .tabela-usuarios th,
    .tabela-usuarios td {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .acoes {
        gap: 0.3rem;
    }

    .btn-acao {
        font-size: 1rem;
        padding: 0.2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .card {
        width: 130px;
    }

    .card img {
        height: 180px;
    }

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

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h1 {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .page-with-sidebar {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
    }

    .sidebar {
        flex: 0 0 280px;
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .horizontal-scroll {
        width: 100%;
        overflow-x: auto;
        display: flex;
        gap: 0.8rem;
        padding: 0.5rem 0 1rem;
    }

    .card {
        width: 180px;
        flex: 0 0 auto;
    }
}

.main-content {
    min-width: 0;
    width: 100%;
}

.horizontal-scroll {
    width: 100%;
    max-width: 100%;
}

/* ===== TABELA DE USUÁRIOS - VERSÃO MOBILE ===== */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
    }

    .tabela-usuarios {
        min-width: 100%;
        border-collapse: collapse;
    }

    .tabela-usuarios thead {
        display: none;
    }

    .tabela-usuarios tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: #1a1a1a;
        border-radius: 8px;
        padding: 1rem;
        border: 1px solid #333;
    }

    .tabela-usuarios tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #333;
        text-align: right;
    }

    .tabela-usuarios tbody td:last-child {
        border-bottom: none;
    }

    .tabela-usuarios tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ccc;
        text-align: left;
        flex: 1;
    }

    .acoes {
        justify-content: flex-end;
    }
}

/* ===== PÁGINA DE PERFIL ===== */
.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
}

.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-avatar-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e50914;
}

.avatar-upload-form {
    position: absolute;
    bottom: 0;
    right: 0;
}

.avatar-upload-form .btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 30px;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-expira {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
    margin-bottom: 0.5rem;
}

.profile-expira.expirado {
    color: #e50914;
    font-weight: bold;
}

.badge-expirado {
    background: #e50914;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.profile-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
}

.profile-favorites {
    margin-top: 2rem;
}

.profile-favorites .section-title {
    margin-top: 2rem;
}

.empty-message {
    color: #888;
    font-size: 1rem;
    padding: 2rem;
    text-align: center;
    background: #1a1a1a;
    border-radius: 8px;
}