/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; text-decoration:none; list-style:none; }
html, body { width:100%; overflow-x:hidden; }
body {
    background: #0a0a0a;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:#111; }
::-webkit-scrollbar-thumb { background:#ff2f28; border-radius:6px; }
* { scrollbar-width:thin; scrollbar-color:#ff2f28 #111; }

/* ==================== AGE GATE ==================== */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.age-gate-box {
    background: #111;
    border: 1px solid rgba(255,47,40,0.35);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 44px 40px;
    text-align: center;
    box-shadow: 0 0 80px rgba(255,47,40,0.15);
    animation: ageFadeIn 0.4s ease;
}
@keyframes ageFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.age-gate-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 42px;
    color: #ff2f28;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255,47,40,0.5);
}
.age-gate-warn {
    font-size: 15px;
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 14px;
    line-height: 1.5;
}
.age-gate-sub {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 32px;
}
.age-gate-sub a {
    color: #ff6b65;
    text-decoration: underline;
}
.age-gate-sub a:hover { color: #ff2f28; }
.age-gate-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.age-yes {
    background: #ff2f28;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255,47,40,0.4);
}
.age-yes:hover {
    background: #e02020;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,47,40,0.55);
}
.age-no {
    display: block;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}
.age-no:hover { color: #888; border-color: rgba(255,255,255,0.18); }

/* ==================== TOPBAR ==================== */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 62px;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,47,40,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 9000;
    gap: 16px;
}
.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 30px;
    color: #ff2f28;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

/* Topbar center (search) */
.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

/* Search */
.search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.2s;
    width: 100%;
}
.search-wrap:focus-within { border-color: #ff2f28; }
.search-wrap input {
    background: none;
    border: none;
    outline: none;
    padding: 8px 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    width: 100%;
    min-width: 0;
}
.search-wrap input::placeholder { color: #555; }
.search-wrap button {
    background: none;
    border: none;
    color: #888;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.search-wrap button:hover { color: #ff2f28; }

/* Topbar right (auth buttons) */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.topbar-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}
.topbar-btn i { font-size: 12px; }

/* Upload button */
.upload-btn {
    background: rgba(255,47,40,0.12);
    border-color: rgba(255,47,40,0.3);
    color: #ff6b65;
}
.upload-btn:hover {
    background: rgba(255,47,40,0.25);
    border-color: #ff2f28;
    color: #fff;
}

/* Login button */
.login-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #ccc;
}
.login-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}

/* Sign Up button */
.register-btn {
    background: #ff2f28;
    border-color: #ff2f28;
    color: #fff;
    box-shadow: 0 3px 14px rgba(255,47,40,0.35);
}
.register-btn:hover {
    background: #e02020;
    border-color: #e02020;
    box-shadow: 0 5px 20px rgba(255,47,40,0.55);
    transform: translateY(-1px);
}

/* ==================== MAIN LAYOUT ==================== */
.main-wrap {
    padding-top: 86px;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==================== ALPHABET BAR ==================== */
.alpha-section {
    padding: 22px 0 10px;
    border-bottom: 1px solid rgba(255,47,40,0.15);
    margin-bottom: 24px;
}
.alpha-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.alpha-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #aaa;
    font-family: 'Bebas Neue', cursive;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.alpha-btn:hover {
    background: rgba(255,47,40,0.2);
    border-color: rgba(255,47,40,0.5);
    color: #fff;
}
.alpha-btn.active {
    background: #ff2f28;
    border-color: #ff2f28;
    color: #fff;
    box-shadow: 0 0 12px rgba(255,47,40,0.5);
}
.alpha-btn.all-btn {
    width: auto;
    padding: 0 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== SECTION TITLE ==================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.section-label h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 26px;
    color: #fff;
    letter-spacing: 2px;
}
.count-badge {
    background: rgba(255,47,40,0.2);
    border: 1px solid rgba(255,47,40,0.35);
    color: #ff2f28;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}

/* ==================== VIDEO GRID ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.video-card {
    background: #141414;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,47,40,0.4);
    box-shadow: 0 8px 32px rgba(255,47,40,0.2);
}
.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.video-card:hover .card-thumb img { transform: scale(1.05); }

/* Play overlay */
.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.video-card:hover .card-play-overlay { opacity: 1; }
.card-play-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,47,40,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,47,40,0.6);
}
.card-play-icon svg { margin-left: 3px; }

/* Genre badge */
.card-genre-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,47,40,0.9);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Card body */
.card-body { padding: 10px 12px 12px; }
.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #e8e8e8;
    line-height: 1.3;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #666;
}
.card-year {
    background: rgba(255,255,255,0.08);
    color: #999;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #444;
}
.empty-state i { font-size: 48px; margin-bottom: 16px; color: #2a2a2a; }
.empty-state p { font-size: 16px; }

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 50px;
    flex-wrap: wrap;
}
.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #aaa;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.page-btn:hover:not(:disabled) {
    background: rgba(255,47,40,0.2);
    border-color: rgba(255,47,40,0.5);
    color: #fff;
}
.page-btn.active {
    background: #ff2f28;
    border-color: #ff2f28;
    color: #fff;
    box-shadow: 0 0 12px rgba(255,47,40,0.5);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-btn.wide { width: auto; padding: 0 14px; }

/* ==================== MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    z-index: 50000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.open { display: block; opacity: 1; }
.modal-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}
.modal-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.modal-close {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #ff2f28;
    border: none;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255,47,40,0.5);
}
.modal-close:hover { background: #e02020; transform: scale(1.08); }
.modal-video-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.modal-year-pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.modal-genre-pill {
    background: rgba(255,47,40,0.15);
    border: 1px solid rgba(255,47,40,0.3);
    color: #ff6b65;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Servers */
.modal-servers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.server-btn {
    padding: 9px 22px;
    background: rgba(255,255,255,0.07);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.server-btn:hover { background: rgba(255,47,40,0.2); border-color: #ff2f28; color: #fff; }
.server-btn.active { background: #ff2f28; border-color: #ff2f28; color: #fff; box-shadow: 0 0 14px rgba(255,47,40,0.5); }

/* IFrame */
.modal-iframe-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 16px 60px rgba(0,0,0,0.8);
}
.modal-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Description */
.modal-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 800px;
}

/* Recommended */
.recom-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.recom-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,47,40,0.25);
}
.recom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.recom-card {
    background: #141414;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.2s, border-color 0.2s;
}
.recom-card:hover { transform: translateY(-3px); border-color: rgba(255,47,40,0.4); }
.recom-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.recom-card-body { padding: 7px 9px 9px; }
.recom-card-title {
    font-size: 11px;
    font-weight: 600;
    color: #ddd;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recom-card-year { font-size: 10px; color: #666; margin-top: 2px; }

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid rgba(255,47,40,0.15);
    padding: 36px 24px 24px;
    text-align: center;
    background: rgba(6,6,6,0.95);
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.footer-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 26px;
    color: #ff2f28;
    letter-spacing: 3px;
    opacity: 0.8;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}
.footer-legal a {
    color: #555;
    font-size: 11.5px;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-legal a:hover { color: #ff2f28; }
.footer-copy {
    color: #333;
    font-size: 11px;
    line-height: 1.8;
    max-width: 640px;
}
.footer-copy a { color: #ff6b65; }
.footer-copy a:hover { color: #ff2f28; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .topbar-center { max-width: 320px; }
    .topbar-btn span { display: none; }
}

@media (max-width: 768px) {
    .topbar { padding: 0 12px; gap: 10px; }
    .logo { font-size: 24px; letter-spacing: 2px; }
    .topbar-center { max-width: 200px; }
    .search-wrap input { font-size: 12px; padding: 7px 10px; }

    /* Hide button labels on mobile, show only icons */
    .topbar-btn { padding: 7px 10px; gap: 0; font-size: 0; }
    .topbar-btn i { font-size: 15px; }

    .main-wrap { padding-left: 12px; padding-right: 12px; }
    .alpha-btn { width: 28px; height: 28px; font-size: 13px; }
    .alpha-btn.all-btn { padding: 0 10px; font-size: 11px; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .modal-box { padding: 16px 14px 50px; }
    .modal-video-title { font-size: 26px; }
    .recom-grid { grid-template-columns: repeat(2, 1fr); }

    /* Age gate */
    .age-gate-box { padding: 30px 22px; }
    .age-gate-logo { font-size: 34px; }

    /* Footer */
    .footer-legal { gap: 6px 14px; }
    .footer-legal a { font-size: 10.5px; }
}

@media (max-width: 480px) {
    .topbar-center { display: none; }
    .topbar { justify-content: space-between; }
}