:root {
    --color-bg: #0f0f0f;
    --color-surface: #1f1f1f;
    --color-surface-hover: #2a2a2a;
    --color-primary: #ff0000;
    --color-text-primary: #ffffff;
    --color-text-secondary: #aaaaaa;
    --color-border: #2a2a2a;
    --header-height: 105px;
    /* Adjusted for 2 rows (60 + 45) */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding-top: var(--header-height);
}

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

img {
    display: block;
    max-width: 100%;
    border: 0;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #181818;
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.header-inner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #2a2a2a;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo span {
    background: var(--color-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.search-bar-container {
    flex: 1;
    max-width: 600px;
    margin: 0 24px;
}

.search-input {
    width: 100%;
    background: #121212;
    border: 1px solid var(--color-border);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
}

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

.header-actions {
    display: flex;
    gap: 16px;
    font-weight: 600;
    font-size: 0.9rem;
}

.header-link {
    color: var(--color-text-secondary);
}

.header-link:hover {
    color: white;
}

/* Category Bar */
.category-bar {
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.category-bar::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome */
}

.cat-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
    text-transform: capitalize;
    transition: color 0.2s;
    flex-shrink: 0;
}

.cat-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Main Content */
.page-content {
    padding-top: 24px;
    min-height: 80vh;
}

/* Category Section on Home */
.category-section {
    margin-bottom: 40px;
    padding: 0 24px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
}

.view-all-link {
    margin-left: auto;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.view-all-link:hover {
    color: var(--color-primary);
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px 16px;
}

.video-card {
    display: block;
    cursor: pointer;
}

.video-card:hover .video-title {
    color: var(--color-primary);
}

.video-card:hover .video-thumbnail img {
    opacity: 0.8;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.hd-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--color-primary);
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid var(--color-primary);
    font-weight: 800;
    z-index: 2;
}

.duration-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Video Page */
.video-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.video-player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-player-wrapper iframe {
    width: 100%;
    height: 100%;
}

.video-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.video-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.video-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tag-pill {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 6px;
    border: 1px solid var(--color-border);
}

.tag-pill:hover {
    border-color: var(--color-primary);
    color: white;
}

/* Sidebar */
.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.sidebar-card .thumb {
    width: 140px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sidebar-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-card .info {
    display: flex;
    flex-direction: column;
}

.sidebar-card .title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-card:hover .title {
    color: var(--color-primary);
}

.hd-badge.sm {
    font-size: 0.6rem;
    padding: 1px 3px;
    top: 4px;
    right: 4px;
}

/* Ads */
.ad-slot {
    background: #111;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
    margin: 0 auto;
}

.ad-300-250 {
    width: 300px;
    height: 250px;
}

/* Mobile */
@media(max-width: 900px) {
    .video-layout {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .video-player-wrapper {
        position: sticky;
        top: var(--header-height);
        z-index: 100;
        margin-bottom: 0;
    }

    .main-column {
        padding: 16px;
    }

    .sidebar {
        padding: 16px;
        border-top: 1px solid var(--color-border);
    }

    .search-bar-container {
        display: none;
    }

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

    .section-title {
        font-size: 1.1rem;
    }

    .header-inner {
        padding: 0 16px;
    }

    .category-bar {
        padding: 0 16px;
    }
}
/* Age Verification Modal */
#age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.98); /* Very dark, almost loose background */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#age-verification-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.age-modal {
    background: #111;
    border: 1px solid #333;
    padding: 40px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
}

.age-modal h1 {
    color: var(--color-primary);
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255,0,0,0.3);
}

.age-modal h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.age-modal p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.age-modal .parent-warning {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    font-size: 0.9rem;
}

.age-modal .parent-warning strong {
    color: #ffd700; /* Gold for warning */
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.age-modal ul {
    text-align: left;
    margin-bottom: 25px;
    padding-left: 20px;
}

.age-modal li {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
    list-style-type: disc;
}

.btn-enter {
    display: inline-block;
    background: #00cc66; /* Green */
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 15px 50px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: none;
    margin-bottom: 15px;
    text-decoration: none;
}

.btn-enter:hover {
    background: #00e673;
    transform: scale(1.05);
}

.terms-link {
    display: block;
    color: #666;
    font-size: 0.8rem;
    text-decoration: underline;
}

/* Blur Effect for Background */
body.modal-open #main-wrapper, body.modal-open .main-header, body.modal-open .category-bar {
    filter: blur(15px);
    pointer-events: none;
    transition: filter 0.3s ease;
}
