/* Estilos generales y reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a18;
    color: #ffffff;
    overflow-x: hidden;
}

/* Efectos de ne¨Žn */
.neon-text {
    color: #fff;
    text-shadow: 0 0 5px #00aaff, 0 0 10px #00aaff, 0 0 15px #00aaff, 0 0 20px #00aaff;
}

.neon-accent {
    color: #b967ff;
    text-shadow: 0 0 5px #b967ff, 0 0 10px #b967ff, 0 0 15px #b967ff;
}

.neon-border {
    border: 1px solid #00aaff;
    box-shadow: 0 0 5px #00aaff, 0 0 5px #00aaff inset;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
}

/* Login page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #00aaff;
    top: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #b967ff;
    bottom: -150px;
    right: -150px;
    animation: float 18s infinite ease-in-out reverse;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #ff00aa;
    top: 50%;
    left: 70%;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: translate(20px, 30px) rotate(5deg); 
    }
    50% { 
        transform: translate(-10px, 20px) rotate(-5deg); 
    }
    75% { 
        transform: translate(15px, -10px) rotate(3deg); 
    }
}

.login-container {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #b0b0b0;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #fff;
    border: none;
    border-bottom: 1px solid #555;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    left: 0;
    color: #00aaff;
    font-size: 14px;
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00aaff, #b967ff);
    transition: width 0.3s;
}

.input-group input:focus ~ .input-underline {
    width: 100%;
}

.login-btn {
    background: linear-gradient(90deg, #00aaff, #b967ff);
    border: none;
    border-radius: 30px;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

.btn-arrow {
    font-size: 18px;
}

.add-account-link {
    text-align: center;
    margin-top: 20px;
}

.add-account-link a {
    color: #00aaff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.add-account-link a:hover {
    color: #b967ff;
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 12px;
}

/* Dashboard */
.dashboard-body {
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 30px;
    background: rgba(10, 15, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-msg {
    color: #b967ff;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: rgba(0, 170, 255, 0.2);
    border: 1px solid rgba(0, 170, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00aaff;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(0, 170, 255, 0.4);
    color: #fff;
    transform: scale(1.1);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.category-section {
    margin-bottom: 30px;
}

.section-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding: 10px 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: rgba(20, 25, 45, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
    border-color: #00aaff;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.2), transparent);
    transition: left 0.5s;
}

.category-card:hover .card-hover-effect {
    left: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: rgba(15, 20, 40, 0.9);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #00aaff;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.5);
    position: relative;
}

.large-modal {
    max-width: 800px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close-modal:hover {
    color: #00aaff;
}

.account-form {
    margin-top: 20px;
}

.submit-btn {
    background: linear-gradient(90deg, #00aaff, #b967ff);
    border: none;
    border-radius: 30px;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

/* Estilos para contenido y reproductor */
.content-body, .player-body {
    padding: 20px;
    background-color: #0a0a18;
    color: #ffffff;
}

.content-header, .player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 30px;
    background: rgba(10, 15, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.back-btn {
    color: #00aaff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border: 1px solid #00aaff;
    border-radius: 5px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(0, 170, 255, 0.2);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.content-card {
    background: rgba(20, 25, 45, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
    border-color: #00aaff;
}

.content-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #888;
}

.content-info {
    padding: 15px;
}

.content-info h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-rating {
    color: #ffcc00;
    font-size: 0.9rem;
}

/* Reproductor */
.player-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.content-details {
    background: rgba(20, 25, 45, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-poster {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 5px;
}

.detail-info h2 {
    margin: 0 0 15px 0;
    color: #00aaff;
}

.detail-rating, .detail-year, .detail-genre, .detail-director {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.detail-plot {
    margin-bottom: 30px;
}

.detail-plot h3 {
    margin-bottom: 10px;
    color: #b967ff;
}

.detail-plot p {
    line-height: 1.6;
}

.series-seasons {
    margin-top: 20px;
}

.series-seasons h3 {
    margin-bottom: 15px;
    color: #b967ff;
}

.season {
    margin-bottom: 20px;
}

.season h4 {
    margin-bottom: 10px;
    color: #00aaff;
}

.episodes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.episode {
    background: rgba(30, 35, 55, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.episode:hover {
    background: rgba(0, 170, 255, 0.2);
    border-color: #00aaff;
}

.episode-number {
    display: inline-block;
    background: #00aaff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    margin-right: 10px;
    font-size: 0.8rem;
}

.episode-title {
    font-size: 0.9rem;
}

.error-msg {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

.saved-accounts {
    margin-top: 20px;
}

.saved-accounts h3 {
    margin-bottom: 10px;
    color: #b967ff;
    text-align: center;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(20, 25, 45, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.account-item:hover {
    background: rgba(0, 170, 255, 0.2);
    border-color: #00aaff;
}

.account-connect {
    color: #00aaff;
    font-size: 0.9rem;
}

.play-btn {
    display: inline-block;
    background: linear-gradient(90deg, #00aaff, #b967ff);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

.detail-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.preview-actions {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
        width: 95%;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-poster {
        align-self: center;
    }
    
    .episodes-list {
        grid-template-columns: 1fr;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-preview {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
}