* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #000; color: #fff; }
a { color: #4ac3ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top Links Bar */
.top-links { background: #171717; padding: 10px 0; }
.center-hold { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.member-links ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.member-links a { color: #fff; font-size: 14px; }
.member-links a:hover { color: #4ac3ff; }

/* Header */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header { background: #171717; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo a { text-decoration: none; }
.logo-text { font-family: 'Anton', sans-serif; font-size: 52px; font-weight: 400; color: #4ac3ff; letter-spacing: 4px; text-transform: uppercase; }
.logo-text .logo-tv { font-size: 24px; font-weight: 400; color: #fff; vertical-align: super; margin-left: 3px; letter-spacing: 2px; }

/* Search */
.search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search form { display: flex; gap: 10px; align-items: center; }
.search input { padding: 8px 12px; border: 1px solid #333; background: #222; color: #fff; border-radius: 4px; font-size: 14px; width: 400px; }
.search-button { padding: 8px 16px; background: #4ac3ff; border: none; border-radius: 4px; cursor: pointer; color: #000; font-weight: bold; }
.uploads a { color: #4ac3ff; margin-left: 15px; font-weight: bold; }

/* Navigation */
nav { background: #171717; margin-top: 10px; border-top: 1px solid #333; display: block; }
.navigation { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.navigation ul { list-style: none; display: flex; gap: 30px; padding: 15px 0; margin: 0; flex-wrap: wrap; }
.navigation li { display: inline; }
.navigation a { color: #fff; font-weight: bold; font-size: 14px; padding: 5px 10px; border-radius: 4px; transition: all 0.3s; display: inline-block; }
.navigation a:hover { color: #4ac3ff; background: #222; text-decoration: none; }
.navigation .selected a { color: #4ac3ff; }

/* Hamburger Menu */
.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 24px; 
    cursor: pointer; 
    padding: 5px 10px;
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    nav { 
        display: none; 
        margin-top: 0; 
        border-top: none;
        background: #222;
    }
    nav.active { display: block; }
    .navigation ul { 
        flex-direction: column; 
        gap: 10px; 
        padding: 15px 20px;
    }
    .header { 
        flex-wrap: wrap; 
        gap: 10px;
    }
    .search { 
        order: 3; 
        width: 100%; 
        margin-top: 10px;
    }
    .search input { width: 100%; }
}

/* Content */
.content { padding: 30px 0; }
.headline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.headline h1, .headline h2 { font-size: 24px; margin: 0; }

/* Video Grid */
.list-videos { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding: 10px 0;
}

@media (max-width: 1200px) {
    .list-videos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .list-videos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .list-videos { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .header { flex-direction: column; gap: 15px; }
    .navigation ul { gap: 15px; justify-content: center; }
    .search input { width: 100%; }
}
@media (max-width: 480px) {
    .list-videos { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .member-links ul { flex-direction: column; gap: 10px; }
    .navigation ul { flex-direction: column; gap: 10px; text-align: center; }
}

.item { 
    background: #171717; 
    border-radius: 8px; 
    overflow: hidden;
    transition: transform 0.2s;
}
.item:hover { transform: translateY(-5px); }
.item a { color: #fff; text-decoration: none; display: block; }
.item .img { 
    position: relative; 
    width: 100%; 
    padding-top: 56.25%;
    overflow: hidden;
}
.item .img img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    z-index: 2;
}
.item .img .preview-video { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}
.item.has-video img {
    opacity: 0;
}
.item .title {
    display: block;
    padding: 12px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.item .wrap { padding: 0 12px 12px; font-size: 12px; color: #999; }
.item .is-hd {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4ac3ff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    color: #000;
    font-weight: bold;
    z-index: 2;
}
.item .duration-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 2;
}
.box { margin-bottom: 40px; }

/* Category grid - override video preview opacity */
.category-grid .item .img { padding-top: 0 !important; height: auto !important; }
.category-grid .item .img img { opacity: 1 !important; position: relative !important; }

.category-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-placeholder {
    width: 100%;
    height: 100%;
    background: #4ac3ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-placeholder strong {
    font-size: 20px;
    color: #000;
    text-align: center;
    padding: 10px;
}

footer { background: #111; padding: 30px 0; margin-top: 50px; border-top: 1px solid #222; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-links { display: flex; justify-content: center; margin-bottom: 20px; }
.footer-column h4 { color: #4ac3ff; font-size: 14px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 25px; flex-wrap: wrap; justify-content: center; }
.footer-column a { color: #999; font-size: 13px; transition: color 0.2s; }
.footer-column a:hover { color: #4ac3ff; text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; }
.footer-bottom p { color: #666; font-size: 12px; margin: 0; }

@media (max-width: 480px) {
    .footer-column ul { flex-direction: column; gap: 10px; text-align: center; }
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #999; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; padding: 10px; border: 1px solid #333; background: #222; color: #fff; border-radius: 4px; box-sizing: border-box; 
}

.btn { padding: 10px 20px; background: #4ac3ff; border: none; border-radius: 4px; color: #000; cursor: pointer; font-weight: bold; text-decoration: none; display: inline-block; }
.btn:hover { opacity: 0.9; text-decoration: none; }

/* Ad Popup */
.ad-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: #171717;
    border: 2px solid #4ac3ff;
    border-radius: 8px;
    padding: 15px;
    z-index: 9999;
    display: none;
}
.ad-popup.active { display: block; }
.ad-popup .close-btn { position: absolute; top: 5px; right: 10px; cursor: pointer; color: #fff; font-size: 20px; }
.video-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(74, 195, 255, 0.8);
    color: #000;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 40px 20px;
}
.auth-card {
    background: #171717;
    padding: 40px 35px;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.auth-card h2 {
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    font-size: 24px;
}
.auth-card .form-group {
    margin-bottom: 18px;
}
.auth-card .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #999;
    font-size: 14px;
}
.auth-card .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.auth-card .form-group input:focus {
    outline: none;
    border-color: #4ac3ff;
}
.auth-card .form-group input::placeholder {
    color: #666;
}
.btn-auth {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}
.auth-link a {
    color: #4ac3ff;
    font-weight: bold;
}
.error-msg {
    background: #3a1a1a;
    color: #ff4a4a;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ff4a4a;
    text-align: center;
}
.success-msg {
    background: #1a3a2a;
    color: #4ac3ff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #4ac3ff;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    .auth-card h2 {
        font-size: 20px;
    }
    .btn-auth {
        padding: 12px;
        font-size: 15px;
    }
}
