:root {
    --play-primary: #01875f;
    --play-primary-hover: #016849;
    --play-bg: #ffffff;
    --play-surface: #f8f9fa;
    --play-text-primary: #202124;
    --play-text-secondary: #5f6368;
    --play-border: #e0e0e0;
    --radius-pill: 9999px;
    --radius-card: 16px;
    --font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--play-bg);
    color: var(--play-text-primary);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--play-border);
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--play-text-secondary);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    color: var(--play-text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: #f1f3f4;
}

.nav-links a.active {
    color: var(--play-primary);
    background: #e6f4ea;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    width: 320px;
}

.search-icon {
    width: 18px;
    height: 18px;
    fill: var(--play-text-secondary);
    margin-right: 8px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.play-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #dcfce7;
    border-radius: var(--radius-card);
    padding: 32px;
    margin: 24px 0 36px 0;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.badge-tag {
    font-size: 12px;
    color: var(--play-primary);
    font-weight: 500;
}

.hero-title {
    font-size: 26px;
    font-weight: 700;
    margin: 4px 0;
}

.hero-dev {
    color: var(--play-primary);
    font-size: 14px;
    font-weight: 500;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--play-text-secondary);
    margin: 8px 0 16px 0;
}

.dot {
    font-weight: bold;
}

.btn-play-primary {
    display: inline-block;
    background: var(--play-primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-play-primary:hover {
    background: var(--play-primary-hover);
}

.btn-large {
    padding: 12px 36px;
    font-size: 16px;
}


.section {
    margin-bottom: 40px;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-bar h2 {
    font-size: 22px;
    font-weight: 500;
}

.section-title-bar .counter {
    font-size: 14px;
    color: var(--play-text-secondary);
}

.arrow-btn {
    color: var(--play-primary);
    font-size: 14px;
    font-weight: 500;
}


.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.play-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 12px;
    transition: background-color 0.2s, transform 0.2s;
}

.play-card:hover {
    background: var(--play-surface);
    transform: translateY(-2px);
}

.card-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    background: #f1f3f4;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--play-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card-dev {
    font-size: 12px;
    color: var(--play-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.card-rate {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--play-text-secondary);
}

.star-score {
    color: #e37400;
    font-weight: 500;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 60px 0;
    flex-wrap: wrap;
}

.pg-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--play-border);
    font-size: 14px;
    font-weight: 500;
    color: var(--play-text-secondary);
    transition: all 0.2s;
}

.pg-btn:hover {
    background: var(--play-surface);
    color: var(--play-primary);
}

.pg-btn.active {
    background: var(--play-primary);
    color: #fff;
    border-color: var(--play-primary);
}

.pg-dots {
    color: var(--play-text-secondary);
    padding: 0 4px;
}


.detail-wrapper {
    margin-top: 32px;
}

.detail-header {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
}

.detail-icon {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    object-fit: cover;
}

.detail-header-info {
    flex: 1;
}

.app-name {
    font-size: 32px;
    font-weight: 700;
}

.app-developer-name {
    color: var(--play-primary);
    font-weight: 500;
    margin-top: 4px;
}

.detail-specs-bar {
    display: flex;
    gap: 36px;
    margin: 16px 0;
    border-left: 1px solid var(--play-border);
    padding-left: 16px;
}

.spec-col {
    display: flex;
    flex-direction: column;
}

.spec-val {
    font-size: 16px;
    font-weight: 700;
}

.spec-lbl {
    font-size: 12px;
    color: var(--play-text-secondary);
}

.detail-mirrors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px 0;
}

.mirror-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--play-border);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--play-text-primary);
}

.mirror-pill:hover {
    background: var(--play-surface);
}

.down-icon {
    width: 16px;
    height: 16px;
    fill: var(--play-primary);
}

.detail-body-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 32px;
}

.detail-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #3c4043;
    margin-top: 16px;
}

.side-card {
    background: var(--play-surface);
    border-radius: 16px;
    padding: 20px;
}

.meta-list {
    list-style: none;
    margin-top: 12px;
    font-size: 13px;
}

.meta-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ebebeb;
}

.mini-app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.mini-app-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-app-card img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-meta b {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-meta span {
    font-size: 12px;
    color: var(--play-text-secondary);
}


.footer {
    border-top: 1px solid var(--play-border);
    margin-top: 60px;
    padding: 32px 0;
    background: #fff;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 13px;
    color: var(--play-text-secondary);
}

.footer-sections {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.footer-sections a:hover {
    color: var(--play-text-primary);
}


@media (max-width: 768px) {
    .nav-links, .search-box {
        display: none;
    }
    .hero-left {
        flex-direction: column;
        text-align: center;
    }
    .hero-meta {
        justify-content: center;
    }
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    .detail-specs-bar {
        justify-content: center;
        border-left: none;
        padding-left: 0;
    }
    .detail-body-layout {
        grid-template-columns: 1fr;
    }
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}