/* Custom Font */
@font-face {
    font-family: 'Outfit Black';
    src: url('/site/outfit_black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --bg-dark: #141414;
    --bg-darker: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --card-hover: #2a2a2a;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding-bottom: 70px;
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(229, 9, 20, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 20px 4%;
    z-index: 100;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: transparent;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Outfit Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 8px 16px;
    border: 2px solid #000000;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-profile {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0;
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-profile:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    padding-top: 0;
    overflow: visible;
}

/* Hero Section - Carrossel */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: visible;
    margin-bottom: 150px;
    padding-top: 300px;
    max-width: 100vw;
}

.hero-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    max-width: 100vw;
}

.hero-card {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300vh;
    background-size: cover;
    background-position: center top;
    filter: blur(20px) brightness(0.3);
    transform: scale(1.1);
    z-index: -1;
    transition: background-image 0.5s ease;
}

.hero-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 15%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.85) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-poster {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.hero-info {
    text-align: center;
    max-width: 600px;
    z-index: 2;
    padding: 0 20px;
}

.hero-info-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-info-genres {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.genre-dot {
    color: #e50914;
    font-size: 1.2rem;
    line-height: 1;
}

.hero-info-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-hero {
    padding: 15px 35px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-hero.primary {
    background: var(--primary-color);
    color: white;
}

.btn-hero.primary:hover {
    background: #c40812;
    transform: scale(1.05);
}

.btn-hero.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
    background: rgba(255,255,255,0.3);
}

.slider-btn {
    display: none;
}

/* Content Sections */
.content-section {
    padding: 80px 4% 30px 4%;
    margin: 0;
    position: relative;
    background: transparent;
    transform: translateZ(0);
    overflow: visible;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4%;
}

.section-title i {
    color: var(--primary-color);
}

.section-title-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all-link {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.view-all-link:hover {
    opacity: 0.7;
}

/* Top 10 Container */
.top10-container {
    display: flex;
    gap: 15px;
    overflow-x: scroll;
    overflow-y: visible;
    padding: 10px 0 40px 0;
    scrollbar-width: none;
    align-items: flex-start;
}

.top10-container::-webkit-scrollbar {
    display: none;
}

.top10-card {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    height: 240px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    overflow: visible;
    border-radius: 12px;
}

.top10-card:hover {
    z-index: 10;
}

.top10-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 120px;
    font-weight: 900;
    font-family: 'Outfit Black', 'Helvetica Neue', Arial, sans-serif;
    color: transparent;
    -webkit-text-stroke: 3px #ffffff;
    text-stroke: 3px #ffffff;
    z-index: 9999;
    line-height: 0.8;
    pointer-events: none;
}

.top10-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Genre Sections */
.genre-section {
    padding: 20px 4%;
    margin: 0;
    position: relative;
    background: transparent;
    z-index: 1;
}

.genre-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.genre-row::-webkit-scrollbar {
    display: none;
}

.genre-card {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.genre-card:hover {
    z-index: 10;
}

.genre-card-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.genre-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.3);
    transform: scale(1.2);
}

.genre-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 8px;
}

.genre-title {
    display: none;
}

/* Bottom Navigation */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.nav-item i {
    font-size: 24px;
}

.nav-item span {
    font-size: 11px;
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover {
    color: var(--text-primary);
}

/* Modal Fullscreen */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
}

.modal.show {
    display: block;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* Background com poster desfocado e degradê preto */
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: blur(80px) brightness(0.6);
    z-index: 0;
}

.modal-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 20%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 80px;
    z-index: 2;
    background: transparent;
}

/* Botão HOME flutuante */
.modal-home-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.9);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-home-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Card com Poster */
.modal-poster-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.modal-poster-card {
    position: relative;
    width: 300px;
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-poster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    border-radius: 12px;
    z-index: 0;
}

.modal-poster {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
}

/* Título centralizado */
.modal-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 15px;
    padding: 0 4%;
}

/* Gêneros com pontinhos vermelhos */
.modal-genres {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0 4%;
}

.modal-genres .genre-dot {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Ano e Nota */
.modal-meta {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 4%;
}

/* Viewers Count */
.viewers-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.viewers-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    vertical-align: middle;
}

.viewers-number {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #E50914;
    letter-spacing: 0.3px;
}

/* Botão de Trailer Flutuante */
.trailer-btn {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E50914, #ff3a3a);
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.6);
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.3s ease;
    animation: pulse-trailer 2s infinite;
}

.trailer-btn i {
    font-size: 20px;
}

.trailer-btn span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trailer-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(229, 9, 20, 0.8);
}

@keyframes pulse-trailer {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(229, 9, 20, 0.6);
    }
    50% {
        box-shadow: 0 8px 32px rgba(229, 9, 20, 0.9);
    }
}

/* Seções expansíveis */
.expandable-section {
    margin: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 4% 15px;
}

.expandable-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0;
    user-select: none;
}

.expandable-header i {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.expandable-header.active i {
    transform: rotate(90deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-content.show {
    max-height: 2000px;
}

.expandable-content p {
    padding: 10px 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Atores - Scroll Horizontal */
.actors-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.actors-container::-webkit-scrollbar {
    height: 8px;
}

.actors-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.actors-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.actor-card {
    flex: 0 0 180px !important;
    display: flex;
    flex-direction: row;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    max-width: 180px !important;
    min-width: 180px !important;
}

.actor-card:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.1);
}

.actor-photo {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.actor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.actor-name {
    font-weight: bold;
    font-size: 11px !important;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.actor-character {
    font-size: 9px !important;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Temporadas */
.seasons-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.season-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.season-tab.active {
    color: white;
    border-bottom-color: var(--primary-color);
}

.season-tab:hover {
    color: white;
}

/* Episódios */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.episode-card {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.episode-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.episode-thumbnail {
    width: 200px;
    height: 113px;
    object-fit: cover;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.episode-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.episode-synopsis {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-duration {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.episode-duration .episode-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.episode-viewers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.episode-viewers-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.episode-viewers-number {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #E50914;
}

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

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

.player-modal-content {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
}

.player-modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.player-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-option {
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.player-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

/* Video Player Fullscreen */
.video-player {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 4000;
}

.video-player.show {
    display: block;
}

.player-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 4001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.player-close-btn.active {
    opacity: 1;
    pointer-events: all;
}

.player-close-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Botões de navegação entre episódios */
.player-nav-btns {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 15px;
    z-index: 4001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.player-nav-btns.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.player-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.player-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.player-nav-btn i {
    font-size: 18px;
}

.player-next-btn {
    background: linear-gradient(135deg, #E50914, #ff3a3a);
    border-color: #E50914;
}

.player-next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff3a3a, #ff5555);
    transform: translateY(-2px) scale(1.05);
}

#videoElement,
#youtubePlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    padding: 15px 20px;
    border-radius: 8px;
    max-width: 600px;
    z-index: 4001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

.player-info.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.player-episode-title {
    margin: 0;
    font-size: 18px;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-poster-card {
        width: 200px;
        height: 300px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .episode-thumbnail {
        width: 120px;
        height: 67px;
    }
    
    .season-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .player-nav-btns {
        bottom: 60px;
        gap: 10px;
    }
    
    .player-nav-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .player-nav-btn span {
        display: none;
    }
    
    .player-nav-btn i {
        font-size: 20px;
    }
    
    .hero-backdrop {
        height: 150vh;
    }
    
    .hero-section {
        height: auto;
        min-height: 70vh;
        padding-top: 80px;
        margin-bottom: 0;
    }
    
    .hero-card {
        gap: 10px;
    }
    
    .hero-info {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-synopsis {
        font-size: 14px;
    }
    
    .hero-poster {
        width: 180px;
        height: 270px;
    }
    
    .hero-info-title {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .hero-info-genres {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .hero-info-meta {
        font-size: 0.85rem;
    }
    
    .top10-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 30px;
        padding: 10px 0 40px 0;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .top10-card {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        height: 195px;
        margin-bottom: 50px;
        border-radius: 10px;
    }
    
    .top10-number {
        font-size: 110px;
        bottom: -20px;
    }
    
    .top10-poster {
        border-radius: 8px;
    }
    
    #top10 {
        margin-bottom: 20px;
    }
    
    .genre-card {
        min-width: 120px;
    }
    
    .section-title {
        font-size: 20px;
        padding: 0 3%;
    }
    
    .content-section {
        padding: 10px 3% 20px 3%;
    }
    
    .genre-section {
        padding-top: 20px;
        z-index: 1;
        margin-top: 0;
    }
    
    #genreSections {
        margin-top: 30px;
    }
    
    .genre-row, .top10-container {
        padding: 0;
    }
    
    .main-content {
        overflow-x: hidden;
    }
    
    .top10-poster {
        overflow: visible;
    }
}

/* ================================================
   WATCH HISTORY / CONTINUE WATCHING
   ================================================ */

.mylist-page {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg-dark);
}

.continue-watching-section {
    padding: 30px 4%;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-clear-history {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-history:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.filter-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-tab i {
    font-size: 16px;
}

.watch-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.history-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.history-card-backdrop {
    width: 200px;
    height: 113px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

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

.history-card-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-card:hover .history-card-play-overlay {
    opacity: 1;
}

.history-card-play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 20px;
    padding-left: 3px;
}

.history-card-info {
    flex: 1;
    padding: 15px 15px 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.history-card-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    margin: 0;
}

.history-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.history-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-card-divider {
    color: rgba(255, 255, 255, 0.3);
}

.history-card-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.history-card:hover .history-card-remove {
    opacity: 1;
}

.history-card-remove:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .history-card {
        flex-direction: row;
        gap: 12px;
    }

    .history-card-backdrop {
        width: 150px !important;
        height: 85px !important;
        max-width: 150px !important;
        max-height: 85px !important;
        min-width: 150px !important;
        min-height: 85px !important;
        flex-shrink: 0;
    }

    .history-card-info {
        padding: 8px 8px 8px 0;
        flex: 1;
    }

    .history-card-title {
        font-size: 14px;
    }

    .history-card-meta {
        font-size: 11px;
    }

    .btn-clear-history {
        padding: 8px 15px;
        font-size: 13px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ============================================
   MODAL DE DETALHES DO ATOR
   ============================================ */

.actor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
}

.actor-modal.active {
    display: block;
}

.actor-modal-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 40px;
    color: white;
}

.actor-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.actor-close-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Seção de Detalhes do Ator */
.actor-details-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.actor-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.actor-character-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.actor-name {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.actor-biography {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.actor-biography::-webkit-scrollbar {
    width: 6px;
}

.actor-biography::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.actor-birth-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.actor-birth-date i {
    margin-right: 8px;
}

.actor-photo-right {
    flex-shrink: 0;
}

/* Foto do ator no modal de detalhes (maior) */
.actor-modal .actor-photo {
    width: 300px !important;
    height: 420px !important;
    max-width: 300px !important;
    max-height: 420px !important;
    min-width: 300px !important;
    min-height: 420px !important;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.actor-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(229, 9, 20, 0.5), 
        transparent
    );
    margin: 40px 0;
}

/* Seção de Filmografia */
.actor-filmography-section {
    margin-top: 40px;
}

.filmography-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.filmography-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filmography-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filmography-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.filmography-backdrop {
    width: 200px;
    height: 113px;
    flex-shrink: 0;
    object-fit: cover;
}

.filmography-info {
    flex: 1;
    padding: 15px 20px 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.filmography-title-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.filmography-genres {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.filmography-genres .genre-dot {
    color: var(--primary-color);
    margin: 0 5px;
}

.filmography-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .actor-modal-content {
        padding: 60px 20px 20px;
    }

    .actor-details-section {
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
    }

    .actor-info-left {
        flex: 1;
        order: 1;
    }

    .actor-photo-right {
        order: 2;
        flex-shrink: 0;
    }

    .actor-modal .actor-photo {
        width: 120px !important;
        height: 170px !important;
        max-width: 120px !important;
        max-height: 170px !important;
        min-width: 120px !important;
        min-height: 170px !important;
    }

    .actor-character-name {
        font-size: 22px;
    }

    .actor-name {
        font-size: 18px;
    }

    .actor-biography {
        font-size: 14px;
        max-height: 150px;
    }

    .filmography-title {
        font-size: 20px;
    }

    .filmography-card {
        flex-direction: row;
        gap: 12px;
    }

    .filmography-backdrop {
        width: 150px !important;
        height: 85px !important;
        max-width: 150px !important;
        max-height: 85px !important;
        min-width: 150px !important;
        min-height: 85px !important;
        flex-shrink: 0;
    }

    .filmography-info {
        padding: 8px 8px 8px 0;
        flex: 1;
    }

    .filmography-title-text {
        font-size: 14px;
    }

    .filmography-genres,
    .filmography-meta {
        font-size: 11px;
    }
}

/* =========================================
   MODAL DE AUTENTICAÇÃO/PERFIL
   ========================================= */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

/* Fullscreen para estado logado */
.auth-modal-content.fullscreen {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    animation: none;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botão Fechar */
.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Botão Voltar */
.auth-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

/* Estados (screens) */
.auth-state {
    animation: fadeIn 0.3s ease;
}

/* Títulos */
.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.auth-info-text {
    background: rgba(229, 9, 20, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 12px 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-info-text i {
    margin-right: 8px;
    color: var(--primary-color);
}

.auth-info-text strong {
    color: white;
}

/* Input Groups */
.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.auth-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Input de Código (destaque) */
.auth-code-input {
    text-align: center;
    font-size: 24px !important;
    letter-spacing: 8px;
    font-weight: 600;
}

/* Botões */
.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.auth-btn.primary {
    background: var(--primary-color);
    color: white;
}

.auth-btn.primary:hover {
    background: #c40812;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.auth-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mensagens de Erro */
.auth-error {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
}

/* Footer Text */
.auth-footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 25px;
}

.auth-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.auth-footer-text a:hover {
    opacity: 0.8;
}

/* =========================================
   PERFIL LOGADO (Estado Especial)
   ========================================= */

/* Menu de Perfil Fullscreen */
.profile-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.profile-menu-header {
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.profile-menu-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 4px 15px rgba(230, 30, 30, 0.3);
}

.profile-menu-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.profile-menu-email {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.profile-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-menu-btn i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.profile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-menu-btn.subscribe-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff3a3a);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 30, 30, 0.4);
    font-weight: 600;
    font-size: 16px;
}

.profile-menu-btn.subscribe-btn:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(230, 30, 30, 0.5);
}

.profile-menu-btn.logout-btn {
    margin-top: 10px;
    background: rgba(255, 50, 50, 0.1);
    border-color: rgba(255, 50, 50, 0.3);
    color: #ff6b6b;
}

.profile-menu-btn.logout-btn:hover {
    background: rgba(255, 50, 50, 0.2);
    border-color: rgba(255, 50, 50, 0.5);
}

/* Editar Perfil */
.edit-profile-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    overflow-y: auto;
    padding: 60px 20px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.edit-profile-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.edit-profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.edit-profile-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 4px 15px rgba(230, 30, 30, 0.3);
    overflow: hidden;
    position: relative;
}

.edit-profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.edit-profile-photo-preview i {
    position: relative;
    z-index: 1;
}

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

.btn-change-photo:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

#editProfileForm {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

/* Manter estilos antigos para compatibilidade */
.auth-profile-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.auth-profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.auth-profile-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.auth-profile-email {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.auth-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.auth-menu-item i {
    font-size: 18px;
    color: var(--primary-color);
    width: 25px;
}

/* =========================================
   RESPONSIVE - AUTH MODAL
   ========================================= */

@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        padding: 35px 25px;
        margin: 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 13px;
    }
    
    .auth-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .auth-code-input {
        font-size: 20px !important;
        letter-spacing: 6px;
    }
    
    /* Botão X mais baixo no mobile */
    .auth-close-btn {
        top: 50px;
    }
}

/* ============================================
   MODAL DE LOGOUT FORÇADO (BLOQUEANTE)
   ============================================ */

.force-logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.force-logout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.force-logout-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(229, 9, 20, 0.4);
    animation: slideDown 0.4s ease;
}

.force-logout-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.force-logout-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.force-logout-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.force-logout-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5);
}

.force-logout-btn:hover {
    background: #c40812;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile responsivo */
@media (max-width: 768px) {
    .force-logout-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .force-logout-icon {
        font-size: 48px;
    }
    
    .force-logout-title {
        font-size: 22px;
    }
    
    .force-logout-message {
        font-size: 14px;
    }
    
    .force-logout-btn {
        padding: 12px 40px;
        font-size: 14px;
    }
}

/* ========== DLNA MODAL ========== */
.dlna-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dlna-modal-content {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.dlna-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlna-close-btn:hover {
    background: var(--primary-color);
}

.dlna-modal-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.dlna-devices-list {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.dlna-scanning {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.dlna-scanning i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.dlna-scanning p {
    font-size: 16px;
}

.dlna-no-devices {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.dlna-no-devices i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ffaa00;
}

.dlna-no-devices p {
    font-size: 16px;
    margin-bottom: 10px;
}

.dlna-no-devices small {
    font-size: 13px;
    opacity: 0.7;
}

.dlna-device-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dlna-device-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.dlna-device-item > i:first-child {
    font-size: 32px;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.dlna-device-info {
    flex: 1;
}

.dlna-device-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.dlna-device-type {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.dlna-device-item > i:last-child {
    font-size: 18px;
    color: var(--text-secondary);
}

.btn-scan-dlna {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-scan-dlna:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

.btn-scan-dlna i {
    margin-right: 8px;
}

/* ========== STARPLAY MODAL ========== */
.starplay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.starplay-modal-content {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
}

.starplay-modal-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.starplay-modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 15px;
}
