/**
 * Landing Page Styles
 *
 * Built from the Figma frame at 360px width. On larger screens the page
 * stays at mobile width, centered.
 *
 * @package DramaTv
 */

/* =Base
-------------------------------------------------------------- */

html,
body.landing-body {
    margin: 0;
    padding: 0;
    background: #000000;
}

body.landing-body {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

.landing-body *,
.landing-body *::before,
.landing-body *::after {
    box-sizing: border-box;
}

.landing-body h1,
.landing-body h2,
.landing-body p {
    margin: 0;
}

.landing-body a {
    color: inherit;
    text-decoration: none;
}

/* =Container
-------------------------------------------------------------- */

.landing-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background:
        radial-gradient(320px 300px at 100% 210px, rgba(120, 48, 0, 0.7), rgba(120, 48, 0, 0) 100%),
        radial-gradient(400px 240px at 0% 700px, rgba(95, 30, 0, 0.5), rgba(95, 30, 0, 0) 100%),
        #030100;
}

/* =Header
-------------------------------------------------------------- */

.landing-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 39px;
    margin: 16px 16px 0;
}

/* Same play icon as the home page header (.play-icon in style.css) */
.landing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #333333;
}

.landing-app-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 39px;
    color: #FFFFFF;
}

/* =Hero
-------------------------------------------------------------- */

.landing-hero {
    position: relative;
}

.landing-hero-bg {
    position: absolute;
    top: -75px;
    left: -4px;
    width: 540px;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.landing-hero-text {
    position: relative;
    z-index: 1;
    padding: 75px 20px 0;
}

.landing-hero-explore {
    font-size: 24px;
    font-weight: 300;
    line-height: 28px;
}

.landing-hero-count {
    margin-top: 4px;
    font-size: 36.5px;
    font-weight: 800;
    line-height: 40px;
    width: fit-content; /* Gradient spans the text only, like the button */
    background: linear-gradient(90deg, #FD8700 0%, #D44100 100%); /* Same as .landing-watch-btn */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(234, 100, 0, 0.7)); /* Same glow color as .landing-watch-btn */
}

.landing-hero-title {
    margin-top: -3.5px;
    font-size: 26px;
    font-weight: 700;
    line-height: 32px;
}

.landing-hero-desc {
    max-width: 268px;
    margin-top: 3px;
    font-size: 12.4px;
    font-weight: 300;
    line-height: 17px;
    color: rgba(255, 255, 255, 0.9);
}

/* =Marquee
-------------------------------------------------------------- */

.landing-marquee {
    position: relative;
    z-index: 1;
    margin-top: 73.5px;
    overflow: hidden;
    white-space: nowrap;
}

.landing-marquee-track {
    display: inline-flex;
    margin-left: -20.5px;
    animation: landing-marquee 24s linear infinite;
}

.landing-marquee-item {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.landing-marquee-dot {
    width: 3.5px;
    height: 3.5px;
    margin: 0 11.5px 0 13px;
    border-radius: 50%;
    background: currentColor;
}

@keyframes landing-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .landing-marquee-track {
        animation: none;
    }
}

/* =Watch Now Button
-------------------------------------------------------------- */

.landing-cta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 18.5px;
}

.landing-watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 262px;
    padding-left: 3.5px;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(90deg, #FD8700 0%, #D44100 100%);
    box-shadow: 0 0 24px rgba(234, 100, 0, 0.7);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #FFFFFF;
}

.landing-watch-btn span {
    position: relative;
    top: 1.25px;
}

.landing-watch-btn:active {
    transform: scale(0.98);
}

.landing-watch-icon {
    flex-shrink: 0;
}

/* =Sections
-------------------------------------------------------------- */

.landing-section {
    position: relative;
    z-index: 1;
    margin-top: 14px;
}

/* Every section after the first (Figma spacing below a card row) */
.landing-section ~ .landing-section {
    margin-top: 14.5px;
}

.landing-section-icon--star {
    position: relative;
    top: -1.5px;
}

.landing-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    padding: 0 19.5px 0 16px;
}

.landing-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #FFFFFF;
}

.landing-section-icon {
    flex-shrink: 0;
}

.landing-section ~ .landing-section .landing-section-header {
    padding-right: 15.5px;
}

.landing-section .landing-section-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6px;
    height: 20px;
    color: rgba(255, 255, 255, 0.45);
}

.landing-section-more svg {
    position: relative;
    top: 1px;
}

.landing-section ~ .landing-section .landing-section-more svg {
    top: 1.5px;
}

/* =Cards
-------------------------------------------------------------- */

.landing-cards {
    display: flex;
    gap: 9px;
    margin-top: 9px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.landing-cards::-webkit-scrollbar {
    display: none;
}

.landing-card {
    position: relative;
    flex: 0 0 119px;
    height: 159px;
    border-radius: 6px;
    overflow: hidden;
    background: #1A1A1A;
}

.landing-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =In-content Display Ads (between category sections)
-------------------------------------------------------------- */

/* Reserves the 300x250 space so the page doesn't jump when the ad loads */
.landing-ad {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    margin: 18px 0 4px;
}

/* No ad returned: remove the reserved space */
.landing-ad.landing-ad--empty {
    display: none;
}
