:root {
    --bg-dark: #121212;
    --bg-card: #1c1c1c;
    --bg-header: #181818;
    --accent-yellow: #ffb703;
    --accent-yellow-hover: #fb8500;
    --accent-color: #ffb703;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #2b2b2b;
    --font-family: Arial, Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 18+ Age Verification Modal Overlay */
.age-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none; /* Default to hidden to prevent flash on page navigation */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-modal-content {
    background: #181818;
    border: 2px solid var(--accent-yellow);
    border-radius: 6px;
    max-width: 520px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 183, 3, 0.2);
}

.age-modal-icon {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.age-modal-content h2 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 800;
}

.age-modal-content p {
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.age-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.age-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: none;
    text-transform: uppercase;
}

.age-btn-agree {
    background: var(--accent-yellow);
    color: #000;
}

.age-btn-agree:hover {
    background: var(--accent-yellow-hover);
}

.age-btn-exit {
    background: #2b2b2b;
    color: #888;
    border: 1px solid #383838;
}

.age-btn-exit:hover {
    background: #383838;
    color: #fff;
}

/* Header */
.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-logo .logo-highlight {
    color: var(--accent-yellow);
}

.search-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    position: relative;
}

.search-suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #181818;
    border: 1px solid var(--accent-yellow);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    max-height: 250px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #282828;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #282828;
    color: var(--accent-yellow);
}

.search-input {
    width: 100%;
    padding: 9px 14px;
    padding-right: 48px;
    background: #080808;
    border: 1px solid #333;
    border-radius: 3px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-yellow);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    background: var(--accent-yellow);
    border: none;
    border-radius: 0 3px 3px 0;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--accent-yellow-hover);
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.header-nav-links a {
    color: #ccc;
    padding: 4px 8px;
    transition: color 0.2s;
}

.header-nav-links a:hover {
    color: var(--accent-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-admin {
    background: #252525;
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.btn-admin:hover {
    background: var(--accent-yellow);
    color: #000;
}

/* Category & Tag Navigation Bar */
.category-nav {
    background-color: #161616;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 15px;
}

.tag-cloud-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    display: inline-block;
    padding: 5px 10px;
    background: #222222;
    border: 1px solid #333333;
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 600;

    transition: all 0.2s;
}

.tag-pill:hover, .tag-pill.active {
    background: var(--accent-yellow);
    color: #000000;
    border-color: var(--accent-yellow);
}

.tag-pill.highlight {
    background: var(--accent-yellow);
    color: #000000;
    border-color: var(--accent-yellow);
}

/* Container */
.main-container {
    max-width: 1400px;
    margin: 15px auto;
    padding: 0 15px;
    flex: 1;
    width: 100%;
}

/* Filter Sort Bar */
.filter-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181818;
    padding: 10px 15px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.filter-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.sort-buttons {
    display: flex;
    gap: 4px;
}

.sort-btn {
    background: #282828;
    border: 1px solid #383838;
    color: #ccc;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
}

.sort-btn.active, .sort-btn:hover {
    background: #3a3a3a;
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Banner Ad Section */
.ad-banner-header, .ad-banner-under-player, .ad-banner-sidebar, .ad-banner-inline {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

/* Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

/* Video Card */
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    border-color: var(--accent-yellow);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

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

.duration-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 2px;
    font-weight: bold;
}

.video-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-title {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Footer */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 30px 15px;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-weight: bold;
    font-size: 13px;
}

.footer-links a {
    color: #cccccc;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-disclaimer, .footer-compliance {
    max-width: 900px;
    line-height: 1.5;
    color: #888888;
    font-size: 11px;
}

.footer-disclaimer p, .footer-compliance p {
    margin-bottom: 6px;
}

.copyright {
    color: var(--accent-yellow);
    font-weight: bold;
    margin-top: 5px;
}

/* Mobile & Responsive Media Queries */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 8px;
    }

    .brand-logo {
        font-size: 20px;
    }

    .header-nav-links {
        font-size: 11px;
        gap: 6px;
    }

    .search-form {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 2px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .filter-sort-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sort-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 18px;
    }

    .header-nav-links a {
        padding: 2px 4px;
    }

    .tag-cloud-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .video-title {
        font-size: 12px;
    }

    .video-meta {
        font-size: 10px;
    }

    .age-modal-content {
        padding: 20px 15px;
    }

    .age-modal-content h2 {
        font-size: 18px;
    }

    .age-modal-content p {
        font-size: 12px;
    }
}
