* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2em;
    color: #00d4ff;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login, .btn-logout {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.btn-login {
    background: #00d4ff;
    color: #1a1a2e;
    border-color: #00d4ff;
}

.btn-login:hover {
    background: #00b8e6;
    border-color: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-logout {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.btn-logout:hover {
    background: #e84118;
    border-color: #e84118;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #16213e;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content.large {
    max-width: 700px;
    max-height: 95vh;
}

.modal-content.player-modal {
    max-width: 1200px;
    max-height: 95vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #ff4757;
    font-weight: bold;
    transition: all 0.3s;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.close:hover {
    color: #ff6b7a;
    transform: scale(1.2) rotate(90deg);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

form button[type="submit"] {
    background: #00d4ff !important;
    color: #1a1a2e !important;
    border: 2px solid #00d4ff !important;
    font-weight: bold !important;
}

select {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

select option {
    background: #16213e;
    color: #fff;
    padding: 10px;
}

input, textarea {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.2);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
    padding: 12px 24px;
    background: #00d4ff;
    color: #1a1a2e;
    border: 2px solid #00d4ff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: #00b8e6;
    border-color: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.admin-panel {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #00d4ff;
    color: #1a1a2e;
    border-color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.media-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.media-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.media-banner {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.media-info {
    padding: 15px;
}

.media-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #00d4ff;
}

.media-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.media-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-edit, .btn-delete {
    padding: 8px 15px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-edit {
    background: #ffa502;
    color: white;
    border-color: #ffa502;
}

.btn-delete {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.btn-edit:hover {
    background: #ff7f00;
    border-color: #ff7f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 2, 0.4);
}

.btn-delete:hover {
    background: #e84118;
    border-color: #e84118;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

#playerContainer {
    width: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#playerContainer video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 5px;
}

#playerContainer iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 5px;
}

#playerContainer p {
    text-align: center;
    line-height: 1.6;
}

#playerInfo {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-top: 15px;
}

.source-type {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.source-input small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .media-banner {
        height: 220px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .modal-content.large {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content.player-modal {
        width: 98%;
        padding: 15px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }
    
    form {
        gap: 12px;
    }
    
    input, textarea, select {
        font-size: 16px;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .search-input {
        font-size: 16px;
    }
    
    .continue-watching-grid {
        grid-template-columns: 1fr;
    }
    
    .continue-card {
        flex-direction: column;
    }
    
    .continue-banner, .continue-banner-placeholder {
        width: 100%;
        height: 200px;
    }
    
    .admin-panel {
        padding: 15px;
    }
    
    .admin-panel h2 {
        font-size: 18px;
    }
    
    .btn-primary, .btn-success, .btn-secondary {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .categories-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .episode-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .episode-item input, .episode-item select {
        width: 100%;
    }
    
    .series-player {
        grid-template-columns: 1fr;
    }
    
    .video-player-area {
        min-height: 300px;
    }
    
    .seasons-container {
        max-height: 400px;
    }
    
    #playerContainer video {
        max-height: 50vh;
    }
    
    #playerContainer iframe {
        height: 300px;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .media-actions {
        flex-direction: column;
    }
    
    .media-actions button {
        width: 100%;
    }
}


/* Garantir que todos os botões sejam visíveis */
button {
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

button:not(.btn-primary):not(.btn-login):not(.btn-logout):not(.btn-edit):not(.btn-delete):not(.filter-btn) {
    background: #00d4ff;
    color: #1a1a2e;
    border: 2px solid #00d4ff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

button:not(.btn-primary):not(.btn-login):not(.btn-logout):not(.btn-edit):not(.btn-delete):not(.filter-btn):hover {
    background: #00b8e6;
    border-color: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.5);
}

/* Melhorar visibilidade do texto em fundos escuros */
.modal-content h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.admin-panel h2 {
    color: #00d4ff;
    margin-bottom: 15px;
}

/* Melhorar small text */
small {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}


/* Placeholder para banners sem imagem */
.media-banner-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.media-card:hover .media-banner-placeholder {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}


/* Botão secundário */
.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* Sistema de busca */
.search-container {
    width: 100%;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* Botão de sucesso */
.btn-success {
    padding: 12px 24px;
    background: #2ecc71;
    color: white;
    border: 2px solid #2ecc71;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-success:hover {
    background: #27ae60;
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}


/* Sistema de progresso de visualização */
.watch-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: #00d4ff;
    transition: width 0.3s;
}

.progress-text {
    font-size: 11px;
    color: #00d4ff;
    font-weight: 600;
}

.media-card {
    position: relative;
}


/* Seção Continuar Assistindo */
.continue-watching {
    margin-bottom: 40px;
}

.section-title {
    color: #00d4ff;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.continue-watching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.continue-card {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    padding: 10px;
}

.continue-card:hover {
    transform: translateY(-3px);
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.continue-banner {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.continue-banner-placeholder {
    width: 100px;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.continue-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.continue-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

.continue-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.watch-progress.watched {
    background: rgba(46, 204, 113, 0.8);
}

.watch-progress.watched .progress-text {
    color: white;
}

@media (max-width: 768px) {
    .continue-watching-grid {
        grid-template-columns: 1fr;
    }
}


/* Sistema de Episódios */
.episodes-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.episodes-section h3 {
    color: #00d4ff;
    margin-bottom: 15px;
}

.episode-item {
    display: grid;
    grid-template-columns: 80px 80px 1fr 120px 1fr 40px;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.episode-season, .episode-number, .episode-title, .episode-source-type, .episode-url {
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
}

.btn-delete-small {
    padding: 8px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.btn-delete-small:hover {
    background: #e84118;
}

/* Player de Séries */
.series-player {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.video-player-area {
    background: #000;
    border-radius: 5px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seasons-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.season-section {
    margin-bottom: 20px;
}

.season-title {
    color: #00d4ff;
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.episode-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.episode-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateX(5px);
}

.episode-number {
    background: #00d4ff;
    color: #1a1a2e;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.episode-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.episode-title-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .series-player {
        grid-template-columns: 1fr;
    }
    
    .episode-item {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .episode-item input, .episode-item select {
        grid-column: span 2;
    }
    
    .btn-delete-small {
        grid-column: span 2;
    }
}


/* Sistema de Categorias */
.categories-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.categories-section label {
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.categories-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: all 0.3s;
}

.category-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-filters-title {
    color: #00d4ff;
    font-weight: 600;
    font-size: 14px;
}

.category-filter-btn {
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.category-filter-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.category-filter-btn.active {
    background: #00d4ff;
    color: #1a1a2e;
    border-color: #00d4ff;
}

.media-categories {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.category-tag {
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    font-size: 11px;
    color: #00d4ff;
    font-weight: 600;
}


/* Ajustes adicionais para mobile */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    h1 {
        font-size: 1.3em;
    }
    
    .auth-section {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        padding: 15px;
        border-radius: 8px;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .close {
        font-size: 28px;
        top: 8px;
        right: 12px;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .media-card {
        border-radius: 8px;
    }
    
    .media-banner, .media-banner-placeholder {
        height: 200px;
    }
    
    .media-info {
        padding: 10px;
    }
    
    .media-title {
        font-size: 14px;
    }
    
    .media-meta {
        font-size: 11px;
        gap: 6px;
    }
    
    .media-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .category-filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .continue-banner, .continue-banner-placeholder {
        height: 180px;
    }
    
    .continue-title {
        font-size: 14px;
    }
    
    .continue-time {
        font-size: 12px;
    }
    
    .episode-card {
        padding: 10px;
    }
    
    .episode-number {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 45px;
    }
    
    .episode-title-text {
        font-size: 13px;
    }
    
    .season-title {
        font-size: 16px;
    }
    
    .btn-primary, .btn-success, .btn-secondary, .btn-login, .btn-logout {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    input, textarea, select {
        padding: 10px;
        font-size: 15px;
    }
    
    .source-input small {
        font-size: 11px;
    }
    
    .categories-section {
        padding: 12px;
    }
    
    .category-label {
        padding: 6px;
        font-size: 13px;
    }
    
    .episodes-section {
        padding: 15px;
    }
    
    .episodes-section h3 {
        font-size: 16px;
    }
}

/* Melhorias de toque para mobile */
@media (hover: none) and (pointer: coarse) {
    .media-card, .continue-card, .episode-card, .category-filter-btn, 
    .filter-btn, button, input, select, textarea {
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    }
    
    .media-card:active {
        transform: scale(0.98);
    }
    
    button:active {
        transform: scale(0.95);
    }
}

/* Scroll suave */
.modal-content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.seasons-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Prevenir zoom em inputs no iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="url"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}


/* Upload de Banner */
.banner-upload-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner-upload-section label {
    color: #00d4ff;
    font-weight: 600;
}

.banner-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-upload-btn {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px dashed #00d4ff;
    border-radius: 8px;
    color: #00d4ff;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.file-upload-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00b8e6;
    transform: translateY(-2px);
}

.banner-preview {
    position: relative;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #00d4ff;
    max-width: 300px;
}

.banner-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-preview .btn-delete-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 71, 87, 0.9);
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-preview .btn-delete-small:hover {
    background: #ff4757;
}

@media (max-width: 768px) {
    .banner-preview {
        max-width: 100%;
    }
}
