/* =========================================================================
   Asian69Tube HD - Ultra 4K Asian & Japanese AV Cinema Portal Stylesheet
   Luxury Crimson Passion & Amber Gold Adult Entertainment Theme
   ========================================================================= */

:root {
    --bg-main: #0a0a0c;
    --bg-surface: #121216;
    --bg-card: #15151c;
    --bg-card-hover: #1f1f28;
    --bg-header: rgba(10, 10, 12, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 36, 83, 0.2);
    --primary-color: #ff2453;
    --primary-gradient: linear-gradient(135deg, #ff2453 0%, #ff5b79 100%);
    --accent-red: #ff2453;
    --accent-gold: #ff9900;
    --accent-gold-gradient: linear-gradient(135deg, #ff9900 0%, #e68500 100%);
    --accent-pink: #ff4071;
    --text-main: #f8fafc;
    --text-muted: #9ca3af;
    --font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-glow: 0 8px 30px rgba(255, 36, 83, 0.35);
    --shadow-gold: 0 8px 25px rgba(255, 153, 0, 0.35);
    --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.7);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(255, 36, 83, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(255, 153, 0, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================================
   Header Layout
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.brand-logo .logo-icon {
    background: var(--primary-gradient);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-glow);
}

.brand-logo .logo-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--accent-gold);
    color: #000;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* Header Navigation Links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    color: #fff;
    background: rgba(255, 36, 83, 0.16);
    border: 1px solid rgba(255, 36, 83, 0.4);
}

.nav-item.active i {
    color: var(--primary-color);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    background: #14141a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 11px 48px 11px 18px;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 36, 83, 0.2);
    background: #1a1a22;
}

.search-input-wrapper .search-btn {
    position: absolute;
    right: 5px;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper .search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Header Badges */
.header-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 36, 83, 0.12);
    color: #ff3366;
    border: 1px solid rgba(255, 36, 83, 0.35);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #ff2453;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff2453;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.badge-4k {
    background: var(--accent-gold-gradient);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.badge-18 {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.btn-back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #15151c;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* =========================================================================
   Category Filter Section (Multi-row wrap, un-folded)
   ========================================================================= */
.category-filter-section {
    padding: 24px 0 12px;
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.cat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.cat-header-left i {
    color: var(--primary-color);
}

.category-scroll-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 4px 0 16px 0;
}

.cat-pill {
    background: #14141b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-pill:hover {
    background: #20202a;
    border-color: rgba(255, 36, 83, 0.45);
    color: #fff;
    transform: translateY(-2px);
}

.cat-pill.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

/* =========================================================================
   Billboard Ad Container
   ========================================================================= */
.ad-billboard-container {
    background: rgba(18, 18, 24, 0.65);
    border: 1px solid rgba(255, 36, 83, 0.22);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ad-badge-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* =========================================================================
   Grid Section Header
   ========================================================================= */
.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.grid-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-with-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-pulse {
    width: 9px;
    height: 9px;
    background: #ff2453;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff2453;
}

.grid-title-group h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.grid-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #14141b;
    border: 1px solid var(--border-color);
    padding: 4px 14px;
    border-radius: 10px;
}

.sort-label {
    color: var(--primary-color);
    font-size: 0.88rem;
}

.sort-select {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    padding: 6px 0;
}

.sort-select option {
    background: #14141b;
    color: #fff;
}

/* =========================================================================
   4-Column Widescreen Card Grid
   ========================================================================= */
.large-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
    margin-bottom: 44px;
}

/* Video Card Design */
.velvet-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.velvet-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 36, 83, 0.55);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 8px 25px rgba(255, 36, 83, 0.28);
}

.velvet-card .card-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    background-color: #101014;
}

.velvet-card .card-thumb-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(10, 10, 12, 0.95) 100%);
    transition: opacity 0.3s ease;
}

.velvet-card:hover .card-thumb-box::after {
    opacity: 0.88;
}

.velvet-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.velvet-card:hover .play-overlay {
    opacity: 1;
}

.velvet-card .play-button-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.velvet-card:hover .play-button-icon {
    transform: scale(1);
}

.velvet-card .badge-hd {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(8px);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 153, 0, 0.45);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.4px;
}

.velvet-card .card-info-box {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.velvet-card .card-title-text {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.42;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.velvet-card:hover .card-title-text {
    color: #fff;
}

.velvet-card .card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.velvet-card .card-cat-tag {
    background: rgba(255, 36, 83, 0.12);
    color: #ff6b8b;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.76rem;
    border: 1px solid rgba(255, 36, 83, 0.28);
}

.velvet-card .card-stats-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.velvet-card .stat-like {
    color: var(--accent-gold);
    font-weight: 700;
}

/* =========================================================================
   Pagination
   ========================================================================= */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 60px;
}

.page-btn {
    background: #14141b;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: #20202a;
    border-color: var(--primary-color);
    color: #fff;
}

.page-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-muted);
    font-weight: 700;
    padding: 0 4px;
}

/* =========================================================================
   Player Page Layout
   ========================================================================= */
.player-layout {
    padding: 28px 0 60px;
}

.player-main-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-details-body {
    padding: 26px 28px;
}

.player-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 16px;
}

.player-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-pill.highlight-like {
    color: var(--accent-gold);
    font-weight: 700;
}

.meta-pill.cat-badge {
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.82rem;
}

.player-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn {
    background: #14141b;
    border: 1px solid var(--border-color);
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.tool-btn:hover {
    background: #20202a;
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================================================================
   Multi-Column Compliance Footer
   ========================================================================= */
.site-footer {
    background: #08080a;
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.logo-icon-sm {
    background: var(--primary-gradient);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 18px;
    max-width: 480px;
}

.footer-cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-tag i {
    color: var(--primary-color);
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

.compliance-note {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.compliance-note i {
    color: var(--accent-gold);
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .header-brand-wrap {
        justify-content: space-between;
    }
    .header-badges {
        display: none;
    }
    .large-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .player-title {
        font-size: 1.25rem;
    }
    .player-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
