
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #ffffff;
    color: #202124;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #dadce0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.play-icon { width: 36px; height: 36px; }
.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: #5f6368;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background-color 0.15s, color 0.15s;
}
.nav-links a:hover {
    color: #01875f;
    background-color: #f1f3f4;
}
.nav-links a.active {
    color: #01875f;
    border-bottom: 3px solid #01875f;
    border-radius: 4px 4px 0 0;
    padding-bottom: 19px;
}
.nav-right {
    display: flex;
    align-items: center;
}
.search-box {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 0 16px;
    width: 320px;
    height: 40px;
}
.search-icon { width: 20px; height: 20px; fill: #5f6368; margin-right: 12px; }
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #202124;
    width: 100%;
}

/* Play Hero on Index */
.play-hero {
    background: linear-gradient(180deg, #f8fafd 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0 32px 0;
    border: 1px solid #dadce0;
}
.hero-left {
    display: flex;
    align-items: center;
    gap: 28px;
}
.hero-icon {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.badge-tag {
    display: inline-block;
    background: #e6f4ea;
    color: #137333;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.hero-title {
    font-size: 26px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}
.hero-dev {
    font-size: 14px;
    color: #01875f;
    font-weight: 500;
    margin-bottom: 10px;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 16px;
}
.hero-meta .dot { font-size: 10px; }

/* Section Header */
.section { margin-bottom: 40px; }
.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-title-bar h2 {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
}
.counter { font-size: 15px; color: #5f6368; font-weight: normal; }
.arrow-btn {
    color: #01875f;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* App Grid & Play Card */
.app-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 16px;
}
.play-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    padding: 10px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.play-card:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}
.card-thumb-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f3f4;
    margin-bottom: 10px;
    border: 1px solid #dadce0;
}
.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-meta { display: flex; flex-direction: column; gap: 3px; }
.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #5f6368;
}
.star-score { color: #202124; font-weight: 500; }

/* Detail Page Header */
.detail-wrapper { padding-top: 32px; margin-bottom: 60px; }
.detail-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.detail-icon {
    width: 160px;
    height: 160px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    flex-shrink: 0;
    border: 1px solid #dadce0;
}
.detail-header-info { flex: 1; }
.app-name {
    font-size: 28px;
    font-weight: 500;
    color: #202124;
    line-height: 1.25;
    margin-bottom: 4px;
}
.app-developer-name {
    font-size: 15px;
    color: #01875f;
    font-weight: 500;
    margin-bottom: 18px;
}
.detail-specs-bar {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 24px;
}
.spec-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    border-right: 1px solid #dadce0;
    padding-right: 36px;
}
.spec-col:last-child { border-right: none; padding-right: 0; }
.spec-val { font-size: 14px; font-weight: 600; color: #202124; }
.spec-lbl { font-size: 12px; color: #5f6368; margin-top: 4px; }
.install-row { display: flex; align-items: center; gap: 14px; }
.btn-play-primary {
    background: #01875f;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn-play-primary:hover { background: #016e4d; }
.detail-mirrors {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.mirror-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    color: #3c4043;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dadce0;
    transition: all 0.15s ease;
}
.mirror-pill:hover {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #d2e3fc;
}

/* Screenshots Layout */
.screenshots-section { margin: 32px 0 40px 0; }
.screenshots-title { font-size: 18px; font-weight: 500; margin-bottom: 14px; color: #202124; }
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.screenshot-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
}
.screenshot-item .thumb-box {
    aspect-ratio: 9/16;
    overflow: hidden;
    background: #e8eaed;
}
.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screenshot-item .screen-label {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #3c4043;
    background: #ffffff;
    border-top: 1px solid #dadce0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two Columns Detail Layout */
.detail-body-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    margin-top: 32px;
}
.detail-main-info h3 { font-size: 18px; font-weight: 500; margin-bottom: 14px; color: #202124; }
.detail-desc {
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.6;
    color: #3c4043;
    font-size: 14px;
}
.detail-desc p { margin-bottom: 14px; }

/* Reviews */
.reviews-section { margin-top: 40px; border-top: 1px solid #e0e0e0; padding-top: 25px; }
.reviews-header { margin-bottom: 20px; }
.rating-overview {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}
.rating-score-box { text-align: center; min-width: 100px; }
.rating-big-num { font-size: 44px; font-weight: 700; color: #202124; line-height: 1; }
.rating-stars-gold { color: #e37400; font-size: 16px; margin: 6px 0; }
.rating-total-count { font-size: 12px; color: #5f6368; }
.rating-histogram { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.histo-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #5f6368; }
.histo-star-lbl { width: 12px; text-align: right; }
.histo-bar-bg { flex: 1; height: 8px; background: #dadce0; border-radius: 4px; overflow: hidden; }
.histo-bar-fill { height: 100%; background: #01875f; border-radius: 4px; }
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-card { display: flex; gap: 14px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: #f1f3f4; flex-shrink: 0; }
.review-body { flex: 1; }
.review-user-name { font-weight: 500; font-size: 14px; color: #202124; }
.review-rating-bar { display: flex; align-items: center; gap: 8px; margin: 3px 0 8px 0; }
.review-stars { color: #01875f; font-size: 12px; letter-spacing: 2px; }
.review-date { font-size: 12px; color: #5f6368; }
.review-comment { font-size: 14px; color: #3c4043; line-height: 1.5; word-break: break-word; }

/* FAQ Accordion */
.faq-section { margin-top: 40px; border-top: 1px solid #e0e0e0; padding-top: 25px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.faq-item { border: 1px solid #dadce0; border-radius: 8px; overflow: hidden; background: #fff; }
.faq-question {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    cursor: pointer;
    background: #f8f9fa;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "＋"; font-size: 16px; font-weight: bold; color: #5f6368; }
details[open] .faq-question::after { content: "－"; }
.faq-answer { padding: 14px 18px; font-size: 14px; color: #444746; line-height: 1.6; border-top: 1px solid #f1f3f4; }

/* Legal Block */
.legal-block {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #dadce0;
    margin-top: 30px;
}
.legal-block h2 { font-size: 18px; margin-top: 18px; margin-bottom: 8px; color: #202124; }
.legal-block h2:first-child { margin-top: 0; }
.legal-block p { margin-bottom: 12px; line-height: 1.7; color: #3c4043; }
.legal-block ul { padding-left: 20px; margin-bottom: 14px; color: #3c4043; line-height: 1.7; }

/* Detail Sidebar */
.side-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 20px;
}
.side-card h4 { font-size: 16px; font-weight: 500; margin-bottom: 14px; color: #202124; }
.meta-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #5f6368; }
.meta-list li { display: flex; justify-content: space-between; }
.meta-list b { color: #202124; }

.mini-app-list { display: flex; flex-direction: column; gap: 12px; }
.mini-app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.mini-app-card:hover { background: #f8f9fa; }
.mini-app-card img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #dadce0;
}
.mini-meta { display: flex; flex-direction: column; gap: 2px; }
.mini-meta b { font-size: 13.5px; color: #202124; }
.mini-meta span { font-size: 12px; color: #5f6368; }

/* Pagination */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.pg-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
}
.pg-btn:hover { background: #f1f3f4; }
.pg-btn.active {
    background: #01875f;
    color: #fff;
    border-color: #01875f;
}
.pg-dots { color: #5f6368; }

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #dadce0;
    padding: 32px 0 24px 0;
    margin-top: 60px;
}
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-sections {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.footer-sections a {
    color: #5f6368;
    font-size: 13px;
}
.footer-sections a:hover { color: #202124; }
.copyright {
    font-size: 12px;
    color: #70757a;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-grid { grid-template-columns: repeat(4, 1fr); }
    .detail-body-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .search-box { width: 180px; }
    .hero-left { flex-direction: column; align-items: flex-start; }
    .app-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-header { flex-direction: column; align-items: flex-start; }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rating-overview { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .app-grid { grid-template-columns: repeat(2, 1fr); }
}
