﻿/* ===== Reset ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #e5e7eb;
    color: #0f172a;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== App shell ===== */
.page-shell {
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f8fafc;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

/* ===== Header ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 250, 252, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px;
}

.app-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.app-kicker {
    color: #64748b;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.app-title {
    font-size: 24px;
    font-weight: 800;
    margin-top: 6px;
    line-height: 1.2;
}

.wifi-box {
    background: #e8faf1;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 12px;
    text-align: right;
    min-width: 118px;
}

    .wifi-box strong {
        display: block;
        font-size: 14px;
        margin-top: 4px;
    }

.search-wrap {
    margin-top: 14px;
    background: #eef2f7;
    border-radius: 20px;
    padding: 10px;
}

.search-box {
    background: #fff;
    border-radius: 16px;
    padding: 13px 14px;
    color: #94a3b8;
    font-size: 14px;
    border: 1px solid #dbe2ea;
}

.chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 10px;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .chips::-webkit-scrollbar {
        display: none;
    }

.chip {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe2ea;
    color: #334155;
    font-size: 14px;
    flex: 0 0 auto;
}

    .chip.active {
        background: #0f172a;
        color: #fff;
        border-color: #0f172a;
    }

/* ===== Main ===== */
.app-main {
    padding: 16px;
    padding-bottom: 90px;
}

.section {
    margin-top: 24px;
}

    .section:first-child {
        margin-top: 0;
    }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

    .section-head h2,
    .section-head h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

    .section-head span {
        color: #64748b;
        font-size: 14px;
    }

/* ===== Hero ===== */
.hero-card {
    border-radius: 30px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1c2740 42%, #046c4e 100%);
    box-shadow: 0 14px 24px rgba(15, 23, 42, .20);
}

    .hero-card h2 {
        margin: 10px 0;
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-card p {
        margin: 0;
        color: #dbeafe;
        font-size: 14px;
        line-height: 1.6;
    }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.hero-stat {
    background: rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 14px 8px;
    text-align: center;
}

    .hero-stat strong {
        display: block;
        font-size: 18px;
        margin-bottom: 4px;
    }

    .hero-stat span {
        font-size: 11px;
        color: #dbeafe;
    }

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 18px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #fff;
    color: #0f172a;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
}

/* ===== Generic cards ===== */
.info-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
    margin-bottom: 12px;
}

.info-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.info-card h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.info-card p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.mini-btn {
    border: none;
    border-radius: 16px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mini-btn-dark {
    background: #0f172a;
    color: #fff;
}

.mini-btn-green {
    background: #059669;
    color: #fff;
}

.mini-btn-amber {
    background: #fef3c7;
    color: #92400e;
}

.progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-dark,
.progress-green,
.progress-amber {
    height: 100%;
    border-radius: 999px;
}

.progress-dark {
    background: #0f172a;
}

.progress-green {
    background: #059669;
}

.progress-amber {
    background: #f59e0b;
}

/* ===== Horizontal movie cards ===== */
.h-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .h-scroll::-webkit-scrollbar {
        display: none;
    }

.movie-card {
    min-width: 225px;
    max-width: 225px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    flex: 0 0 auto;
}

.movie-cover {
    position: relative;
}

    .movie-cover img {
        width: 100%;
        height: 155px;
        object-fit: cover;
        display: block;
    }

.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
}

.movie-body {
    padding: 14px;
}

    .movie-body h4 {
        margin: 0;
        font-size: 16px;
        line-height: 1.35;
    }

    .movie-body p {
        margin: 8px 0 0;
        font-size: 13px;
        color: #64748b;
    }

/* ===== List cards ===== */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

.content-thumb {
    width: 84px;
    height: 110px;
    flex: 0 0 84px;
    border-radius: 14px;
    object-fit: cover;
    background: #e2e8f0;
}

.content-body {
    flex: 1;
    min-width: 0;
}

    .content-body h4 {
        margin: 0;
        font-size: 16px;
        line-height: 1.35;
    }

    .content-body p {
        margin: 8px 0 0;
        font-size: 14px;
        color: #64748b;
        line-height: 1.5;
    }

.content-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
}

/* ===== Detail ===== */
.detail-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    background: #e2e8f0;
    box-shadow: 0 8px 18px rgba(15,23,42,.06);
}

.detail-box {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

.detail-meta {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #475569;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.page-subtitle {
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== Empty/error ===== */
.text-danger {
    color: #dc2626;
}

.empty-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    color: #64748b;
}

/* ===== Bottom nav ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 8px 6px 10px;
    backdrop-filter: blur(10px);
    z-index: 30;
    box-shadow: 0 -4px 12px rgba(15,23,42,.05);
}

    .bottom-nav a {
        text-align: center;
        font-size: 11px;
        color: #64748b;
        padding: 6px 2px;
        border-radius: 12px;
    }

        .bottom-nav a.active {
            color: #0f172a;
            font-weight: 700;
            background: #f1f5f9;
        }

    .bottom-nav span {
        display: block;
        font-size: 16px;
        margin-bottom: 4px;
    }

/* ===== Responsive small ===== */
@media (max-width: 380px) {
    .hero-card h2 {
        font-size: 22px;
    }

    .app-title {
        font-size: 22px;
    }

    .wifi-box {
        min-width: 100px;
        padding: 10px 12px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
    video,
    audio {
        border-radius: 16px;
        outline: none;
    }

    audio {
        width: 100%;
    }
}
