:root {
    --bg: #fff;
    --surface: #fff;
    --soft: #f8fafd;
    --search: #f1f3f4;
    --text: #202124;
    --muted: #5f6368;
    --line: #e0e3e7;
    --line-soft: #edf0f2;
    --green: #01875f;
    --green-dark: #006c4b;
    --chip: #e6f4ea;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 1px 2px rgba(60, 64, 67, 0.16), 0 1px 3px rgba(60, 64, 67, 0.08);
}

* {
    box-sizing: border-box;
}

* {
    scrollbar-width: auto;
    scrollbar-color: #4a8cff #e7f0ff;
}

::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

::-webkit-scrollbar-track {
    background: #eaf3ff;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    min-height: 54px;
    border: 3px solid #eaf3ff;
    border-radius: 999px;
    background: linear-gradient(180deg, #62a0ff, #1f73e8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b86f6, #0f5fc8);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

input,
select,
textarea,
button {
    font: inherit;
    letter-spacing: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(260px, 560px) auto;
    gap: 20px;
    align-items: center;
    padding: 10px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.play-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--search);
}

.play-search:focus-within {
    border-color: #d7dbdf;
    background: #fff;
    box-shadow: var(--shadow);
}

.play-search input {
    min-width: 0;
    height: 44px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.play-search button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.play-search svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
}

.nav a:not(.button),
.user-chip,
.lang-switch {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
}

.nav a:not(.button):hover,
.lang-switch:hover {
    background: var(--search);
    color: var(--text);
}

.user-chip {
    background: var(--chip);
    color: var(--green);
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 56px;
}

.button,
.play-primary,
.play-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.button:hover,
.play-primary:hover,
.play-install:hover {
    background: var(--green-dark);
}

.button.secondary,
.play-secondary,
.play-edit,
.play-version-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--green);
    font-weight: 800;
}

.button.small {
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
}

.play-tabs {
    position: sticky;
    top: 65px;
    z-index: 20;
    display: flex;
    gap: 8px;
    margin: 0 0 22px;
    padding: 10px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.play-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.play-tab-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--green);
}

.play-tab-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.play-tabs a.is-active {
    border-color: transparent;
    background: var(--chip);
    color: var(--green);
}

.play-hero,
.play-metrics {
    display: none;
}

.play-section {
    margin-top: 26px;
}

.play-section-head {
    margin-bottom: 8px;
}

.play-section-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 850;
}

.play-section-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.play-rail {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, minmax(82px, auto));
    grid-auto-columns: minmax(300px, 350px);
    gap: 4px 22px;
    overflow-x: auto;
    padding: 0 0 16px;
    scroll-snap-type: x proximity;
}

.play-rail::-webkit-scrollbar,
.play-visual-rail::-webkit-scrollbar,
.screenshots::-webkit-scrollbar,
.store-screenshots::-webkit-scrollbar,
.related-apps::-webkit-scrollbar,
.table-panel::-webkit-scrollbar {
    height: 14px;
}

.play-rail::-webkit-scrollbar-track,
.play-visual-rail::-webkit-scrollbar-track,
.screenshots::-webkit-scrollbar-track,
.store-screenshots::-webkit-scrollbar-track,
.related-apps::-webkit-scrollbar-track,
.table-panel::-webkit-scrollbar-track {
    background: #edf5ff;
}

.play-rail::-webkit-scrollbar-thumb,
.play-visual-rail::-webkit-scrollbar-thumb,
.screenshots::-webkit-scrollbar-thumb,
.store-screenshots::-webkit-scrollbar-thumb,
.related-apps::-webkit-scrollbar-thumb,
.table-panel::-webkit-scrollbar-thumb {
    border-color: #edf5ff;
    background: linear-gradient(90deg, #7db3ff, #1a73e8);
}

.play-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1px 12px;
    align-items: center;
    min-height: 78px;
    padding: 7px 4px;
    border-radius: 12px;
    scroll-snap-align: start;
}

.play-card:hover {
    background: var(--soft);
}

.play-card-icon {
    grid-row: 1 / 4;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.play-card-icon.fallback,
.app-icon {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #e6f4ea, #eef3ff);
    color: var(--green);
    font-weight: 900;
}

.play-card-title,
.play-card-summary,
.play-card-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.play-card-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.play-card-summary,
.play-card-meta {
    color: var(--muted);
    font-size: 12px;
}

.play-card-meta b {
    padding: 0 4px;
    color: #9aa0a6;
}

.play-visual-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 310px);
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 16px;
    scroll-snap-type: x proximity;
}

.play-visual-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    scroll-snap-align: start;
}

.play-visual-shot {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
    background: var(--search);
}

.play-visual-info {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.play-visual-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.play-visual-icon.fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #e6f4ea, #eef3ff);
    color: var(--green);
    font-weight: 900;
}

.play-visual-info strong,
.play-visual-info small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.play-visual-info strong {
    font-size: 14px;
}

.play-visual-info small {
    color: var(--muted);
    font-size: 12px;
}

.play-ad-row,
.ad-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.play-ad-card,
.ad-card,
.detail-ad,
.play-detail-ad {
    position: relative;
    display: block;
    min-height: 130px;
    overflow: hidden;
    border-radius: 22px;
    background: #202124;
}

.play-ad-card img,
.ad-card img,
.detail-ad img,
.play-detail-ad img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    opacity: 0.78;
}

.play-ad-card span,
.ad-card span,
.detail-ad span,
.play-detail-ad span {
    position: absolute;
    inset-inline: 18px;
    bottom: 16px;
    color: #fff;
    font-weight: 900;
}

.play-detail {
    display: grid;
    gap: 18px;
}

.play-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px 0 18px;
    border-bottom: 1px solid var(--line);
}

.play-detail-main {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.play-detail-icon-wrap,
.play-detail-icon,
.play-detail-icon.fallback {
    width: 124px;
    height: 124px;
    border-radius: 28px;
}

.play-detail-icon,
.play-detail-icon.fallback {
    display: grid;
    place-items: center;
    object-fit: cover;
    background: #fff;
    color: var(--green);
    font-size: 48px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.play-detail-icon-wrap {
    position: relative;
}

.platform-mark {
    position: absolute;
    inset-inline-end: -4px;
    bottom: -4px;
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 26px;
    padding: 0 7px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.platform-mark svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.play-detail h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
}

.play-dev-name {
    display: inline-flex;
    margin-top: 4px;
    color: var(--green);
    font-weight: 800;
}

.play-detail-main p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

.play-detail-actions {
    display: grid;
    gap: 10px;
    min-width: 180px;
}

.play-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.play-detail-stats div {
    padding: 14px 10px;
    text-align: center;
    border-inline-start: 1px solid var(--line);
}

.play-detail-stats div:first-child {
    border-inline-start: 0;
}

.play-detail-stats strong,
.play-detail-stats span {
    display: block;
}

.play-detail-stats strong {
    font-size: 15px;
}

.play-detail-stats span {
    color: var(--muted);
    font-size: 12px;
}

.play-info-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--line);
}

.play-info-strip div {
    padding: 14px 0;
}

.play-info-strip span,
.play-detail-side dt {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.play-info-strip strong,
.play-detail-side dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.play-detail-section,
.play-detail-side {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.play-detail-section-head {
    margin-bottom: 14px;
}

.play-detail-section-head h2,
.play-detail-side h2 {
    margin: 0;
    font-size: 20px;
}

.play-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.play-detail-maincol {
    display: grid;
    gap: 0;
}

.play-detail-side {
    position: sticky;
    top: 92px;
}

.play-detail-side dl {
    display: grid;
    margin: 10px 0 0;
}

.play-detail-side dl div {
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
}

.store-screenshots,
.screenshots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 260px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.store-screenshots img,
.screenshots img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--search);
    cursor: zoom-in;
}

.screenshot-slider,
.related-slider {
    position: relative;
}

.screenshot-slide-btn,
.related-slide-btn,
.screenshot-dots,
.related-dots {
    display: none;
}

.play-version-row,
.version-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}

.play-version-row:first-child,
.version-row:first-child {
    border-top: 0;
}

.play-version-row strong,
.play-version-row span,
.version-row strong,
.version-row span {
    display: block;
}

.play-version-row span,
.version-row span,
.version-row p {
    color: var(--muted);
    font-size: 13px;
}

.related-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.related-app-card {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.related-app-card .app-icon,
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.related-app-card strong {
    font-size: 14px;
}

.related-app-card span,
.muted {
    color: var(--muted);
    font-size: 12px;
}

.play-dev-card,
.developer-card {
    display: grid;
    gap: 4px;
}

.play-dev-card strong,
.developer-card strong {
    font-size: 18px;
}

.play-dev-card span,
.developer-card span {
    color: var(--muted);
}

.panel,
.details,
.empty-state,
.app-card,
.store-section,
.store-info-card,
.store-meta-strip div {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.narrow {
    max-width: 600px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.form.two-columns,
.identity-fields,
.localized-panels,
.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form label {
    display: grid;
    gap: 7px;
    color: #3c4043;
    font-size: 14px;
    font-weight: 800;
}

.form input,
.form select,
.form textarea,
.filters input,
.filters select {
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.filters input:focus,
.filters select:focus {
    outline: 0;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 135, 95, 0.12);
}

.span-all {
    grid-column: 1 / -1;
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.auth-switch a,
.text-link,
.rich-description a {
    color: var(--green);
    font-weight: 900;
}

.identity-editor {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--soft);
}

.icon-uploader {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.icon-uploader .app-icon.large {
    width: 108px;
    height: 108px;
    border-radius: 24px;
}

.simple-editor {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--soft);
}

.editor-toolbar button {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

.editor-surface {
    min-height: 164px;
    padding: 12px;
    outline: 0;
}

.editor-counter {
    display: block;
    padding: 0 10px 8px;
    color: var(--muted);
    text-align: left;
}

.analysis-box,
.facts div,
.ad-admin-row {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
}

.ad-admin-list {
    display: grid;
    gap: 12px;
}

.ad-admin-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.ad-admin-row img {
    width: 140px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    background:
        radial-gradient(circle at 12% 16%, rgba(26, 115, 232, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f5faff 100%);
}

.dashboard-hero.admin {
    background:
        radial-gradient(circle at 86% 20%, rgba(1, 135, 95, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f3fbf8 100%);
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.dashboard-metrics article {
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-metrics span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-metrics strong {
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.section-title.compact {
    margin-bottom: 12px;
}

.section-title.compact h2 {
    font-size: 20px;
}

.dashboard-list {
    display: grid;
    gap: 8px;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #fff;
}

.dashboard-row.ad {
    grid-template-columns: 78px minmax(0, 1fr) auto;
}

.dashboard-row img,
.dashboard-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.dashboard-row.ad img {
    width: 78px;
    height: 48px;
    object-fit: cover;
}

.dashboard-fallback {
    display: grid;
    place-items: center;
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 900;
}

.dashboard-row h3,
.dashboard-row p {
    margin: 0;
}

.dashboard-row h3 {
    font-size: 14px;
}

.dashboard-row p {
    overflow: hidden;
    color: var(--muted);
    direction: ltr;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-pill {
    min-width: 64px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.status-pill.published,
.status-pill.active {
    background: var(--chip);
    color: var(--green);
}

.status-pill.draft,
.status-pill.paused {
    background: #fff7df;
    color: #946200;
}

.status-pill.rejected {
    background: #fff0f0;
    color: var(--danger);
}

.table-panel {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.apps-table {
    width: 100%;
    border-collapse: collapse;
}

.apps-table th,
.apps-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: right;
}

.table-app-cell {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #cfe0ff;
    border-radius: 12px;
    background: #eef4ff;
    color: #284b7d;
}

.alert.error {
    border-color: #ffd1d1;
    background: #fff0f0;
    color: var(--danger);
}

.alert.success {
    border-color: #bcebd5;
    background: #ecfff6;
    color: var(--success);
}

.modal-open {
    overflow: hidden;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(15, 23, 42, 0.78);
}

.image-modal[hidden] {
    display: none;
}

.image-modal img {
    max-width: min(96vw, 980px);
    max-height: 90vh;
    border-radius: 16px;
    object-fit: contain;
    background: #0f172a;
}

.image-modal-close {
    position: fixed;
    top: 18px;
    inset-inline-end: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    font-size: 28px;
}

.footer {
    padding: 18px 16px 14px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(280px, 1.7fr) minmax(190px, 0.8fr);
    gap: 14px 22px;
    align-items: center;
    width: min(1160px, 100%);
    margin: 0 auto;
}

.footer-brand,
.footer-download {
    display: grid;
    gap: 8px;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand p,
.footer-links a,
.footer-contact a,
.footer-copy {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.footer-brand p {
    margin: 0;
    line-height: 1.8;
}

.footer-contact,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-contact a,
.social-links a,
.turbo-badge {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.footer-contact a {
    min-height: 28px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 14px;
}

.turbo-badge {
    display: inline-grid;
    gap: 2px;
    justify-self: start;
    min-width: 150px;
    padding: 9px 12px;
}

.turbo-badge span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.turbo-badge strong {
    color: var(--green);
    font-size: 15px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #334155;
}

.social-links svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.footer-copy {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    text-align: center;
}

@media (max-width: 760px) {
    .topbar {
        position: static;
        direction: ltr;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "nav brand"
            "search search";
        gap: 10px 12px;
        padding: 12px 16px;
    }

    .brand {
        grid-area: brand;
        justify-content: end;
        direction: rtl;
        overflow: hidden;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .play-search {
        grid-area: search;
        direction: rtl;
        min-height: 42px;
    }

    .play-search input {
        height: 40px;
        font-size: 13px;
    }

    .play-search button {
        width: 40px;
        height: 40px;
    }

    .nav {
        grid-area: nav;
        justify-content: start;
        flex-wrap: nowrap;
        gap: 6px;
        direction: rtl;
    }

    .nav-home,
    .nav-ads,
    .user-chip {
        display: none !important;
    }

    .nav a:not(.button),
    .lang-switch {
        min-height: 34px;
        padding: 0 10px;
        border: 1px solid var(--line);
        background: #fff;
        font-size: 12px;
    }

    .nav-auth,
    .nav-upload {
        min-height: 34px;
        padding-inline: 12px;
        white-space: nowrap;
    }

    .container {
        width: min(100% - 24px, 1160px);
        padding-top: 12px;
        overflow-x: clip;
    }

    .play-section,
    .play-detail-section {
        overflow: hidden;
    }

    .play-section-head {
        padding-inline: 2px;
    }

    .play-tabs {
        position: static;
        margin: 0 -12px 16px;
        padding-inline: 12px;
    }

    .play-tabs a {
        padding: 5px 14px;
    }

    .play-visual-rail {
        grid-auto-columns: minmax(250px, 78vw);
        gap: 12px;
    }

    .play-visual-shot {
        height: 148px;
    }

    .play-rail {
        grid-auto-columns: calc(100vw - 44px);
        gap: 2px 16px;
    }

    .play-card {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 74px;
    }

    .play-card-icon {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .play-ad-row,
    .ad-strip,
    .play-detail-hero,
    .play-info-strip,
    .play-detail-grid,
    .form.two-columns,
    .identity-editor,
    .identity-fields,
    .localized-panels,
    .facts,
    .ad-admin-row {
        grid-template-columns: 1fr;
    }

    .play-detail-main {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
    }

    .play-detail-icon-wrap,
    .play-detail-icon,
    .play-detail-icon.fallback {
        width: 82px;
        height: 82px;
        border-radius: 20px;
        font-size: 32px;
    }

    .play-detail h1 {
        font-size: 24px;
    }

    .play-detail-actions {
        min-width: 0;
    }

    .play-install,
    .play-edit {
        width: 100%;
    }

    .play-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        justify-content: stretch;
    }

    .dashboard-actions .button {
        flex: 1 1 140px;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-metrics article {
        min-height: 76px;
        padding: 12px;
    }

    .dashboard-metrics strong {
        font-size: 20px;
    }

    .dashboard-row,
    .dashboard-row.ad {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .dashboard-row .text-link {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .play-detail-stats div:nth-child(odd) {
        border-inline-start: 0;
    }

    .play-detail-side {
        position: static;
    }

    .store-screenshots {
        display: flex;
        overflow: hidden;
        gap: 0;
    }

    .store-screenshots img {
        display: none;
        flex: 0 0 100%;
        max-width: min(100%, 320px);
        height: min(54vh, 390px);
        margin: 0 auto;
    }

    .store-screenshots img.is-active {
        display: block;
    }

    .screenshot-slider,
    .related-slider {
        padding: 0 42px 34px;
    }

    .screenshot-slide-btn,
    .related-slide-btn {
        position: absolute;
        top: 50%;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        color: var(--green);
        cursor: pointer;
        font-size: 24px;
        font-weight: 900;
        box-shadow: var(--shadow);
        transform: translateY(-50%);
    }

    .screenshot-slide-btn.prev,
    .related-slide-btn.prev {
        inset-inline-start: 0;
    }

    .screenshot-slide-btn.next,
    .related-slide-btn.next {
        inset-inline-end: 0;
    }

    .screenshot-dots,
    .related-dots {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .screenshot-dots button,
    .related-dots button {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #cfd8dc;
    }

    .screenshot-dots button.is-active,
    .related-dots button.is-active {
        width: 18px;
        background: var(--green);
    }

    .related-apps {
        display: block;
        overflow: hidden;
    }

    .related-app-card {
        display: none;
        justify-items: center;
        min-height: 142px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        text-align: center;
    }

    .related-app-card.is-active {
        display: grid;
    }

    .play-version-row,
    .version-row {
        grid-template-columns: 1fr;
    }

    .play-version-download {
        width: 100%;
    }

    .panel,
    .details,
    .empty-state {
        padding: 18px;
        border-radius: 18px;
    }

    .footer {
        padding: 14px 12px 12px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-brand {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        text-align: start;
    }

    .footer-brand img {
        width: 48px;
        height: 48px;
    }

    .footer-brand p {
        font-size: 10px;
    }

    .footer-contact {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 10px;
    }

    .footer-links a,
    .footer-contact a,
    .footer-copy {
        font-size: 10px;
    }

    .footer-download {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .turbo-badge {
        min-width: 132px;
        padding: 8px 10px;
    }
}
