* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.header-logo {
    flex-shrink: 0;
    margin-right: auto;
}

.header-logo h1 {
    font-size: 2.2em;
    margin-bottom: 0;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.header-logo h1 a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
}

.header-logo h1 a:hover {
    color: #FFC700;
}

.header-logo h1 a .domain {
    color: #ffffff;
    font-weight: 900;
    font-size: 0.7em;
}

/* Search Bar */
.header-search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 40%;
}

.header-search form {
    display: flex;
    gap: 0;
}

.search-input {
    flex-grow: 1;
    padding: 6px 12px;
    background: #000000;
    border: 1px solid #444;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #e0e0e0;
    font-size: 0.85em;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #666;
}

.search-input::placeholder {
    color: #666;
}

.search-button {
    padding: 6px 15px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 0 4px 4px 0;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #2a2a2a;
    border-color: #666;
}

.search-button svg {
    display: block;
}

/* Language Selector */
.header-language {
    flex-shrink: 0;
    margin-left: auto;
}

.language-select {
    padding: 6px 12px;
    background: #000000;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.8em;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
    min-width: 120px;
}

.language-select:hover,
.language-select:focus {
    border-color: #666;
}

.language-select option {
    background: #1a1a1a;
    color: #e0e0e0;
}

.tagline {
    display: none;
}

/* Navigation */
nav.categories {
    padding: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

nav.categories .container {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

nav.categories a {
    color: #ffffff;
    text-decoration: none;
    padding: 3px 10px;
    background: #2a2a2a;
    transition: all 0.3s;
    font-size: 0.8em;
    display: inline-block;
    white-space: nowrap;
}

nav.categories a:hover {
    background: #3a3a3a;
    color: #fff;
}

nav.categories a.active {
    background: #ff6b6b;
    color: #fff;
}

/* Main Content */
main {
    padding: 40px 20px;
}

main h1,
main h2 {
    margin-bottom: 10px;
     color: var(--color-dimmed);
    font-size: 1.2em;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.video-card {
    background: #1a1a1a;
    border-radius: .25rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.2);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 0;
}

.thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #0a0a0a;
    overflow: hidden;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .thumbnail img {
    transform: scale(1.05);
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

.badge {
    display: none;
}

.video-title {
    padding: 7px;
    font-size: 0.75em;
    line-height: 1.3;
    color: #e0e0e0;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.video-title a {
    color: #e0e0e0 !important;
    text-decoration: none !important;
    transition: color 0.3s;
    display: block;
}

.video-title a:visited {
    color: #e0e0e0 !important;
}

.video-card:hover .video-title a,
.video-card:hover .video-title a:visited {
    color: #ff6b6b !important;
}

/* Pagination */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 0;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination a.prev,
.pagination a.next {
    background: #ff6b6b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95em;
    border: 2px solid #ff6b6b;
}

.pagination a.prev:hover,
.pagination a.next:hover {
    background: #ff5252;
    border-color: #ff5252;
    transform: translateY(-2px);
}

.pagination-numbers a {
    background: #2a2a2a;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9em;
    min-width: 36px;
    text-align: center;
    border: 1px solid #444;
}

.pagination-numbers a:hover {
    background: #3a3a3a;
    border-color: #666;
    color: #fff;
}

.pagination-numbers .current-page {
    background: #ff6b6b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    min-width: 36px;
    text-align: center;
    border: 1px solid #ff6b6b;
}

.pagination-dots {
    color: #888;
    padding: 0 5px;
    font-size: 0.9em;
}

.page-info {
    color: #888;
    font-size: 0.85em;
}

/* Footer */
footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 40px 0 30px;
    margin-top: 60px;
}

.footer-top {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 25px;
}

.footer-top .disclaimer {
    color: #999;
    font-size: 0.95em;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.3s;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo a {
    color: #FFD700;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 900;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.footer-logo a:hover {
    color: #FFC700;
}

.footer-logo a .domain {
    color: #ffffff;
    font-weight: 900;
    font-size: 0.7em;
}

.footer-copyright {
    color: #666;
    font-size: 0.8em;
    margin: 0;
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-page h1 {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

.legal-page h2 {
    color: #ff6b6b;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2a2a2a;
}

.legal-page h3 {
    color: #e0e0e0;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-page section {
    margin-bottom: 35px;
}

.legal-page p {
    color: #b0b0b0;
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-page ul {
    color: #b0b0b0;
    margin-left: 30px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-page ul li {
    margin-bottom: 10px;
}

.legal-page a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-page a:hover {
    color: #FFC700;
    text-decoration: underline;
}

.contact-box {
    background: #1a1a1a;
    border-left: 4px solid #FFD700;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.contact-box p {
    margin-bottom: 10px;
    color: #e0e0e0;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

.last-updated {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 30px 15px;
    }
    
    .legal-page h1 {
        font-size: 2em;
    }
    
    .legal-page h2 {
        font-size: 1.5em;
    }
    
    .legal-page h3 {
        font-size: 1.2em;
    }
    
    .legal-page ul {
        margin-left: 20px;
    }
}

/* Responsive Design */
@media (max-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: space-between;
    }
    
    .header-logo {
        flex-shrink: 0;
        margin-right: 0;
    }
    
    .header-logo h1 {
        font-size: 1.4em;
    }
    
    .header-search {
        position: static;
        transform: none;
        flex: 1;
        max-width: none;
        width: auto;
        min-width: 0;
    }
    
    .header-search form {
        display: flex;
    }
    
    .search-input {
        min-width: 0;
    }
    
    .header-language {
        flex-shrink: 0;
        margin-left: 0;
    }
    
    .language-select {
        width: auto;
        min-width: 100px;
        font-size: 0.75em;
        padding: 5px 8px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    main h1,
    main h2 {
        font-size: 1em;
    }
    
    nav.categories {
        white-space: normal;
        overflow-x: visible;
    }
    
    nav.categories .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav.categories a {
        font-size: 0.75em;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 7px;
    }
    
    .header-logo h1 {
        font-size: 1.3em;
    }
    
    .search-input {
        font-size: 0.8em;
        padding: 5px 10px;
    }
    
    .search-button {
        padding: 5px 12px;
    }
    
    .language-select {
        font-size: 0.75em;
        padding: 5px 10px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .video-title {
        font-size: 0.7em;
        padding: 8px;
        min-height: auto;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .pagination {
        padding: 20px 0;
    }
    
    .pagination-buttons {
        gap: 5px;
        flex-wrap: nowrap;
    }
    
    .pagination a.prev,
    .pagination a.next {
        padding: 8px 14px;
        font-size: 0.85em;
        white-space: nowrap;
    }
    
    .pagination-numbers {
        gap: 4px;
    }
    
    .pagination-numbers a,
    .pagination-numbers .current-page {
        padding: 8px 10px;
        font-size: 0.85em;
        min-width: 32px;
    }
    
    .pagination-dots {
        padding: 0 3px;
        font-size: 0.85em;
    }
    
    .page-info {
        display: none;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
