/* ===================================
   YuVideos App Download Page CSS
   =================================== */

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

:root {
    --red: #e8192c;
    --red-dark: #c41424;
    --red-glow: rgba(232, 25, 44, 0.35);
    --bg: #111111;
    --bg-card: #1a1a1a;
    --bg-card2: #222222;
    --border: rgba(255,255,255,0.08);
    --text: #f0f0f0;
    --text-muted: #888;
    --text-dim: #555;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* ===================================
   FLOATING HEADER
   =================================== */
.site-header--float {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    border-bottom: none;
}

.site-header {
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-text { color: #fff; }
.logo-sub {
    font-size: 0.7rem;
    background: var(--red);
    color: white;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.btn-link {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s;
}
.btn-link:hover { color: #fff; }

.btn-signup {
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--red);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}
.btn-signup:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ===================================
   VIDEO HERO (FULL SCREEN)
   =================================== */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* clicks pass through to overlay, video still plays */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.5) 60%,
        rgba(0,0,0,0.85) 100%
    );
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.hero-badge-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.hero-badge--red {
    background: rgba(232, 25, 44, 0.3);
    border-color: rgba(232, 25, 44, 0.5);
    color: #ff8899;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.text-red { color: var(--red); }

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Hero Download Box */
.hero-dl-box {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(232, 25, 44, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero-dl-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), #ff6680);
}

.hero-dl-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-dl-icon {
    width: 44px; height: 44px;
    background: rgba(232, 25, 44, 0.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.hero-dl-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.hero-dl-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.hero-dl-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 11px 22px;
    background: var(--red);
    color: white;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}
.hero-dl-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--red-glow);
}
.hero-dl-btn.loading {
    background: #333;
    pointer-events: none;
    color: var(--text-muted);
}
.hero-dl-btn.done {
    background: #1a5c2a;
    color: #4ade80;
}

.dl-progress-wrap {
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 12px;
}
.dl-progress-wrap.active { display: flex; }

.dl-progress-bar {
    flex: 1;
    height: 5px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.dl-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--red), #ff6680);
    border-radius: 3px;
    width: var(--progress, 0%);
    transition: width 0.1s linear;
}

.dl-progress-txt {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--red);
    min-width: 36px;
    text-align: right;
}

.hero-dl-note {
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--text-dim);
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-div {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.15);
}

/* Mute button */
.hero-mute-btn {
    position: absolute;
    bottom: 80px;
    right: 24px;
    z-index: 10;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.hero-mute-btn:hover {
    background: rgba(232, 25, 44, 0.6);
    border-color: var(--red);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ===================================
   FEATURES
   =================================== */
.features-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.section-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 25, 44, 0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feat-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===================================
   CATEGORIES
   =================================== */
.cats-section {
    padding: 60px 24px;
    border-top: 1px solid var(--border);
}

.cats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}
.cat-pill:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: var(--bg-card2);
}
.cat-pill span {
    font-size: 0.75rem;
    color: var(--text-dim);
    background: rgba(255,255,255,0.06);
    padding: 1px 6px;
    border-radius: 4px;
}

.cat-hot { border-color: rgba(232, 25, 44, 0.3); color: #ff9aa6; }
.cat-hot:hover { border-color: var(--red); }
.cat-more { color: var(--red); border-color: rgba(232, 25, 44, 0.3); }
.cat-more:hover { background: rgba(232, 25, 44, 0.1); }

/* ===================================
   CTA
   =================================== */
.cta-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, transparent, rgba(232, 25, 44, 0.05));
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.cta-inner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.cta-apk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--red);
    color: white;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: all 0.25s;
    box-shadow: 0 8px 32px var(--red-glow);
}
.cta-apk-btn:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px var(--red-glow);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px 30px;
}

.footer-inner { max-width: 1300px; margin: 0 auto; }

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.footer-social { display: flex; gap: 10px; }

.social-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: all 0.2s;
}
.social-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); background: var(--bg-card); }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 24px;
}

.footer-nav a {
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 4px 12px;
    border-right: 1px solid var(--border);
    transition: color 0.2s;
}
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: var(--text-muted); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 4px; }
.age-notice { color: rgba(232, 25, 44, 0.6) !important; }

.cta-btns { display: flex; justify-content: center; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 700px) {
    .hero-content-wrap { margin-bottom: 40px; }
    .hero-title { letter-spacing: -1px; }
    .hero-dl-inner { flex-wrap: wrap; }
    .hero-dl-btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 14px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-nav a { border-color: transparent; }
    .cta-apk-btn { padding: 16px 28px; font-size: 1rem; }
}
