/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0f0f0f;
    color: #ddd;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

a:hover {
    color: #ff9000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    
}

/* Container para página de vídeo em tela cheia */
.container.video-page {
    max-width: 100%;
    
}

/* Header e Navegação */
.main-header {
    background-color: #1b1b1b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-nav {
    background-color: #232323;
    border-top: 1px solid #333;
}

/* Remover margem adicional no container principal */
main.container {
    margin-top: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo h1 span {
    color: #ff9000;
}

.search-box {
    flex: 0 0 40%;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background-color: #2c2c2c;
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    background-color: #ff9000;
    color: #000;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
}

.user-actions {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.login-btn, .register-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.login-btn {
    background-color: transparent;
    border: 1px solid #ff9000;
    color: #ff9000;
}

.register-btn {
    background-color: #ff9000;
    border: 1px solid #ff9000;
    color: #000;
}

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #2c2c2c;
    cursor: pointer;
}

.user-button i {
    color: #ff9000;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2c2c2c;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #3c3c3c;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a i {
    margin-right: 8px;
    color: #ff9000;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #ccc;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-menu li a.active,
.nav-menu li a:hover {
    background-color: #2c2c2c;
    color: #ff9000;
}

.category-dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c2c2c;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 8px 10px !important;
    color: #ddd !important;
    border-radius: 4px;
}

.dropdown-content a:hover {
    background-color: #3c3c3c !important;
}

/* Vídeos Grid */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.filters h2 {
    font-size: 22px;
    color: #fff;
}

.order-options {
    display: flex;
    gap: 15px;
}

.order-options a {
    padding: 6px 12px;
    background-color: #2c2c2c;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.order-options a.active,
.order-options a:hover {
    background-color: #ff9000;
    color: #000;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background-color: #1b1b1b;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 144, 0, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-icon i {
    font-size: 24px;
    color: #000;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.views {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 8px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 12px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags a {
    font-size: 12px;
    color: #ff9000;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background-color: #2c2c2c;
    border-radius: 4px;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #ff9000;
    color: #000;
}

.load-more {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

#load-more-btn,
#load-more-search-btn {
    padding: 12px 30px;
    background-color: #ff9000;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#load-more-btn:hover,
#load-more-search-btn:hover {
    background-color: #ffa52e;
}

/* Página de Vídeo */
.video-page {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.video-container {
    background-color: #1b1b1b;
    border-radius: 4px;
    padding: 20px;
}

.video-container h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

/* Definições básicas do player - podem ser sobrescritas por estilos inline */
.video-player {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.video-player video,
.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    border: none;
}

.video-stats {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

.views, .likes, .date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #aaa;
}

.views i, .date i {
    color: #aaa;
}

.like-form {
    margin: 0;
}

.like-btn {
    background: none;
    border: none;
    color: #ddd;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-btn i {
    color: #ff9000;
}

.video-tags {
    margin-bottom: 20px;
}

.tag-label {
    font-weight: bold;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2c2c2c;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    font-size: 13px;
}

.tag:hover {
    background-color: #ff9000;
    color: #000;
}

.comments-section {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.comments-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    border: none;
    border-radius: 4px;
    color: #fff;
    min-height: 80px;
    margin-bottom: 10px;
    resize: vertical;
}

.comment-form button {
    padding: 8px 20px;
    background-color: #ff9000;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.comments-list {
    max-height: 500px;
    overflow-y: auto;
}

.comment {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.comment-user {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-date {
    font-size: 12px;
    color: #aaa;
}

.related-videos {
    background-color: #1b1b1b;
    border-radius: 4px;
    padding: 20px;
}

.related-videos h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.videos-grid-small {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-card-small {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.thumbnail-small {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
}

.thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card-small:hover .thumbnail-small img {
    transform: scale(1.05);
}

.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 144, 0, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-icon-small i {
    font-size: 18px;
    color: #000;
}

.video-card-small:hover .play-icon-small {
    opacity: 1;
}

.video-info-small h4 {
    font-size: 14px;
    margin-bottom: 3px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.views-small {
    font-size: 12px;
    color: #aaa;
}

/* Footer */
.main-footer {
    background-color: #1b1b1b;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ff9000;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-tags a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2c2c2c;
    border-radius: 20px;
    font-size: 13px;
    color: #aaa;
}

.footer-tags a:hover {
    background-color: #ff9000;
    color: #000;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 12px;
    color: #777;
}

/* Página de Busca */
.search-results-header {
    margin-bottom: 20px;
}

.search-results-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #fff;
}

.search-results-header p {
    font-size: 14px;
    color: #aaa;
}

.no-results {
    background-color: #1b1b1b;
    padding: 30px;
    text-align: center;
    border-radius: 4px;
}

.no-results h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.no-results p {
    color: #aaa;
}

.no-results a {
    color: #ff9000;
}

/* Responsividade */
@media (max-width: 1200px) {
    .video-page {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    


@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .search-box {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .video-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        gap: 5px;
        justify-content: center;
    }
    
    .login-btn, .register-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .nav-menu li a {
        padding: 8px 10px;
        font-size: 13px;
    }
} }