/* CSS específico para páginas de canais */

.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Channel Header */
.channel-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 60px 0;
    border-bottom: 2px solid #00ff41;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.channel-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
    border: 3px solid #00ff41;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.channel-details {
    flex: 1;
}

.channel-title {
    font-size: 3rem;
    color: #00ff41;
    margin-bottom: 15px;
    font-weight: 900;
}

.channel-description {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.channel-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Video Section */
.video-section {
    background: #000;
    padding: 40px 0;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #00ff41;
}

.video-header {
    background: rgba(0, 255, 65, 0.1);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff41;
}

.video-header h2 {
    color: #00ff41;
    font-size: 1.5rem;
    margin: 0;
}

.close-video {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.close-video:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.5);
    color: #ccc;
}

.status-live {
    color: #ff4444;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.video-warning {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ffaa00;
}

/* Channel Features */
.channel-features {
    padding: 80px 0;
    background: #111;
}

/* Related Channels */
.related-channels {
    padding: 80px 0;
    background: #0a0a0a;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.channel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.channel-card-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.channel-card-title {
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .channel-info {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .channel-title {
        font-size: 2rem;
    }
    
    .channel-actions {
        justify-content: center;
    }
    
    .video-header {
        padding: 15px 20px;
    }
    
    .video-header h2 {
        font-size: 1.2rem;
    }
    
    .video-info {
        padding: 15px 20px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .channel-header {
        padding: 40px 0;
    }
    
    .channel-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .channel-title {
        font-size: 1.8rem;
    }
    
    .channel-description {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Página de Listagem de Canais */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 2px solid #00ff41;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3.5rem;
    color: #00ff41;
    margin-bottom: 20px;
    font-weight: 900;
}

.page-description {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ff41;
    margin-bottom: 5px;
}

.stat-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Section */
.search-section {
    background: #111;
    padding: 40px 0;
    border-bottom: 1px solid #333;
}

.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #00ff41;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #00cc33;
    transform: translateY(-50%) scale(1.1);
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-select {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #00ff41;
}

.filter-select option {
    background: #111;
    color: #fff;
}

.filter-btn {
    padding: 12px 20px;
    background: transparent;
    border: 2px solid #666;
    border-radius: 25px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #00ff41;
    color: #00ff41;
}

/* Channels Section */
.channels-section {
    padding: 60px 0;
    background: #0a0a0a;
    min-height: 60vh;
}

.channels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 25px;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: #00ff41;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 65, 0.3);
    border-top: 4px solid #00ff41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 65, 0.2);
    position: relative;
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.channel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.channel-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.channel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.channel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-card:hover .channel-overlay {
    opacity: 1;
}

.play-icon {
    color: #00ff41;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.channel-info {
    padding: 20px;
    text-align: center;
}

.channel-name {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.channel-category {
    color: #00ff41;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Channels List */
.channels-list {
    display: block;
}

.channel-list-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.channel-list-item:hover {
    border-color: #00ff41;
    background: rgba(255, 255, 255, 0.08);
}

.channel-list-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    gap: 20px;
}

.channel-list-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.channel-list-info {
    flex: 1;
}

.channel-list-name {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.channel-list-category {
    color: #00ff41;
    font-size: 0.9rem;
}

.channel-list-arrow {
    color: #666;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.channel-list-item:hover .channel-list-arrow {
    color: #00ff41;
    transform: translateX(5px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: #111;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 65, 0.2);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.category-title {
    color: #00ff41;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.category-description {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-count {
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 15px;
    margin: 40px 0;
}

.error-message h3 {
    color: #ff4444;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.error-message p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Active nav link */
.nav-link.active {
    color: #00ff41;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .page-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: center;
    }
    
    .channels-header {
        flex-direction: column;
        text-align: center;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .channel-list-link {
        padding: 15px;
        gap: 15px;
    }
    
    .channel-list-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .search-section {
        padding: 30px 0;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .channel-info {
        padding: 15px;
    }
    
    .channel-name {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 25px;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}