
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000000;
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 90px;
    overflow-x: hidden;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #010101;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
    border-bottom: 1px solid #121212;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
}

.logo-text span {
    color: #fe2c55;
    margin-left: 4px;
}

.top-btn {
    background: #fe2c55;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0 25px 0;
}

.video-box {
    position: relative;
    width: 90%;
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1c1c1e;
    background-color: #000;
}

.video-box video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.interaction-side-bar {
    position: absolute;
    right: 12px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: transform 0.1s ease;
}

.action-item:active {
    transform: scale(0.9);
}

.action-icon {
    width: 24px;
    height: 24px;
}

.icon-heart { fill: #ff2b54; }
.icon-comment { fill: #ffffff; }
.icon-share { fill: #ffffff; }

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 6;
}

.badge-tag {
    font-size: 11px;
    font-weight: 900;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 6;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.tag-live { background-color: #e50914; }

.descargar-btn {
    width: 90%;
    max-width: 380px;
    height: 54px;
    background: linear-gradient(90deg, #ff3b5c, #fe2c55);
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.3);
}

.preview-section {
    padding: 20px 15px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-top: 1px solid #121212;
}

.preview-title {
    font-size: 15px;
    color: #8a8a8e;
    margin-bottom: 15px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.video-card {
    position: relative;
    background: #1c1c1e;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, #000000 30%);
    padding: 15px 15px 20px 15px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.instalar-btn {
    width: 90%;
    max-width: 380px;
    height: 54px;
    background: linear-gradient(90deg, #ff3b5c, #fe2c55);
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(254, 44, 85, 0.4);
}

.android-icon {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

/* Japan visual layer: keeps the existing DOM, hooks and PHP flow intact. */
:root {
    color-scheme: dark;
    --jp-card: rgba(10, 12, 18, 0.44);
    --jp-line: rgba(255, 255, 255, 0.09);
    --jp-text: #f7f8fb;
    --jp-muted: #a8adba;
    --jp-cyan: #19e4e4;
    --jp-pink: #ff2f86;
}

body {
    position: relative;
    isolation: isolate;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--jp-text);
    background:
        radial-gradient(circle at 16% 12%, rgba(25, 228, 228, 0.18), transparent 31rem),
        radial-gradient(circle at 86% 84%, rgba(255, 47, 134, 0.17), transparent 30rem),
        #080a0e;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.top-bar,
.main-content,
.sticky-bottom-bar {
    position: relative;
    left: auto;
    width: min(100%, 440px);
    z-index: 2;
    border-color: var(--jp-line);
    background: var(--jp-card);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.top-bar {
    top: auto;
    height: auto;
    min-height: 76px;
    flex: 0 0 auto;
    padding: 20px 24px 12px;
    border: 1px solid var(--jp-line);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.28);
}

.logo-area {
    gap: 12px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 47, 134, 0.2);
}

.logo-text {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.logo-text::after {
    content: "Android App";
    display: block;
    margin-top: 2px;
    color: var(--jp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-text span {
    color: var(--jp-pink);
}

.top-btn {
    display: none;
}

.main-content {
    flex: 0 0 auto;
    padding: 4px 24px 18px;
    border-right: 1px solid var(--jp-line);
    border-left: 1px solid var(--jp-line);
}

.video-box {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.video-box > img,
.interaction-side-bar {
    display: none;
}

.status-badge {
    position: static;
    order: 1;
    margin: 2px 0 13px;
}

.badge-tag {
    display: block;
    padding: 6px 11px;
    border: 1px solid rgba(25, 228, 228, 0.28);
    border-radius: 999px;
    color: #c8ffff;
    background: rgba(25, 228, 228, 0.09);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.badge-text-bottom {
    position: static;
    order: 2;
    max-width: 350px;
    color: var(--jp-text);
    font-size: clamp(28px, 8vw, 38px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-align: center;
    text-shadow: none;
}

.video-box::after {
    content: "Download the APK file and install it in a few simple steps.";
    order: 3;
    max-width: 340px;
    margin: 13px auto 0;
    color: var(--jp-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.descargar-btn {
    width: 100%;
    max-width: none;
    min-height: 54px;
    height: auto;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    color: #071012;
    background: linear-gradient(100deg, var(--jp-cyan), #82f7f1 45%, #ff6aa8 110%);
    box-shadow: 0 14px 32px rgba(25, 228, 228, 0.18);
    font-size: 16px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.descargar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(25, 228, 228, 0.25);
}

.preview-section {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

.preview-title,
.video-card {
    display: none;
}

.grid-container {
    display: block;
}

.video-card:nth-child(14) {
    position: fixed;
    inset: -5%;
    display: block;
    width: 110%;
    height: 110%;
    overflow: hidden;
    aspect-ratio: auto;
    border-radius: 0;
    background: #080a0e;
}

.video-card:nth-child(14) video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(14px);
    transform: scale(1.04);
}

.card-badge {
    display: none;
}

.sticky-bottom-bar {
    bottom: auto;
    flex: 0 0 auto;
    display: block;
    padding: 0 24px 20px;
    border: 1px solid var(--jp-line);
    border-top: 0;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.sticky-bottom-bar::before {
    content: "How to Install\A\A 1. Tap the button above to download the APK.\A 2. Open the APK from your device's Downloads folder.\A 3. If prompted, allow installation from this source and tap Install.";
    display: block;
    padding: 17px;
    border: 1px solid var(--jp-line);
    border-radius: 18px;
    color: #dde1e9;
    background: rgba(4, 6, 10, 0.26);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.75;
    white-space: pre-line;
}

.sticky-bottom-bar::after {
    content: "© 2026 TikTok 18+ · 18+ Only";
    display: block;
    margin-top: 14px;
    color: #747b89;
    font-size: 10px;
    text-align: center;
}

.instalar-btn {
    display: none;
}

@media (max-width: 520px) {
    :root {
        --jp-card: rgba(10, 12, 18, 0.34);
    }

    body {
        justify-content: flex-start;
    }

    .top-bar {
        padding: 17px 19px 10px;
        border-radius: 22px 22px 0 0;
    }

    .main-content {
        padding: 4px 19px 15px;
    }

    .sticky-bottom-bar {
        padding: 0 19px 17px;
        border-radius: 0 0 22px 22px;
    }

    .sticky-bottom-bar::before {
        padding: 15px;
        background: rgba(4, 6, 10, 0.18);
    }

    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .badge-text-bottom {
        font-size: clamp(27px, 9vw, 34px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .descargar-btn {
        transition: none;
    }
}
