/* Mobile download detail. A clear action follows compact, aligned app metadata. */

#BreadcrumbNavigation {
  padding: .65rem .8rem;
  color: var(--muted);
  font-size: .55rem;
}

.app-details {
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
}

.app-details>a {
  flex-shrink: 0;
}

.app-details>a::after {
  content: "/";
  margin-left: .35rem;
  color: #c6cfd8;
}

.app-details>span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-panel,.screenshot-panel,.app-description,.app-details-panel,.package-info,.app-recommendations,.related-apps,.related-collections {
  margin: 0; padding: .85rem .75rem; border: 0; border-bottom: .25rem solid #eee; border-radius: 0; background: #fff;
}

.app-overview {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
}

.app-icon {
  flex-shrink: 0;
}

.app-icon img {
  width: 4rem; height: 4rem; border-radius: .75rem;
}

.app-content {
  min-width: 0; width: 100%;
}

.game-title h1 {
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.game-version { margin: .2rem 0 .65rem; color: #999; font-size: .6rem; }
.game-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: .7rem; }
.game-facts>div { display: flex; flex-direction: column-reverse; gap: .35rem; padding: .2rem .3rem; border-right: 1px solid #eee; min-width: 0; }
.game-facts>div:last-child { border: 0; }
.game-facts dt { color: #999; font-size: .6rem; }
.game-facts dd { color: #333; font-size: .65rem; font-weight: 600; overflow-wrap: anywhere; }
.developer-info { margin-top: .55rem; font-size: .55rem; color: #999; text-align: center; overflow-wrap: anywhere; }
.detail-sections { display: flex; gap: 1rem; padding: 0 .75rem; border-bottom: 1px solid #eee; background: #fff; }
.detail-sections a { padding: .6rem .5rem; font-size: .75rem; }
.detail-sections .is-active { color: var(--brand); border-bottom: 2px solid var(--brand); }
#detail-content,.app-recommendations { scroll-margin-top: 1rem; }

.download-actions {
  margin-top: .9rem;
}

.download-actions .button {
  display: flex; min-height: 2rem; color: #fff; background: #ff841a; border: 1px solid #ff841a; font-size: .85rem; border-radius: .2rem;
}

.is-disabled {
  opacity: .5;
  cursor: default;
}

.mobile-screens {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-screens.carousel-track {
  display: flex;
  gap: .55rem;
  scroll-snap-type: x proximity;
}

.mobile-screens .carousel-slide {
  width: auto;
  flex: 0 0 auto;
  position: relative;
  scroll-snap-align: start;
}

.mobile-screens img {
  height: 12rem;
  width: auto;
  border-radius: .4rem;
}

.screenshot-hint {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  padding: .05rem .3rem;
  color: #fff;
  background: #172a4080;
  border-radius: .2rem;
  font-size: .5rem;
}

.app-description {
  font-size: .75rem;
  line-height: 1.95;
  color: #333;
  overflow-wrap: anywhere;
}

.app-description p {
  margin: .65rem 0;
}

.app-description h2,.app-description h3 {
  margin: 1rem 0 .55rem;
  color: var(--ink);
  font-size: .9rem;
}

.app-description img,.app-description video,.app-description iframe {
  height: auto !important;
  max-width: 100% !important;
  border-radius: .35rem;
  margin: .7rem auto;
}

.app-description table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.app-description ul,.app-description ol {
  padding-left: 1rem;
  list-style: revert;
}

.app-details-list {
  display: grid;
  grid-template-columns: 3.5rem minmax(0,1fr);
  gap: .55rem .5rem;
  font-size: .65rem;
}

.app-details-list dt {
  color: var(--muted);
}

.app-details-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.tag-box a,.tag-box i {
  padding: .05rem .35rem;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: .2rem;
}

.app-platform:empty::before {
  content: "Android";
}

.package-info h2 {
  font-size: .85rem;
  margin-bottom: .7rem;
}

.package-info-list {
  font-size: .6rem;
  color: var(--muted);
}

.package-info-list li+li {
  margin-top: .4rem;
}

.package-info-list span {
  color: #65758a;
  overflow-wrap: anywhere;
}

.recommendation-strip {
  display: flex;
  gap: .8rem;
  overflow: auto;
  scrollbar-width: none;
}

.recommendation-strip>a {
  flex: 0 0 3.5rem;
  text-align: center;
}

.recommendation-strip img {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: .65rem;
  margin: auto;
}

.recommendation-strip .app-name {
  margin-top: .4rem;
  font-size: .55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-apps h4 {
  font-size: .85rem;
  margin-bottom: .5rem;
}

.related-app-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.related-app-cover {
  min-width: 0;
}

.related-app-title a {
  display: block;
  font-size: .7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-app-info {
  display: block;
  color: var(--muted);
  font-size: .55rem;
  margin-top: .3rem;
}

.related-app-download,.topic-app-download {
  flex-shrink: 0;
  color: var(--brand);
  font-size: .6rem;
  padding: .2rem .5rem;
  border: 1px solid #c3e6f8;
  border-radius: .3rem;
}

.collection-tabs {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: .8rem;
  padding-bottom: .6rem;
  margin-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  font-size: .7rem;
  color: var(--muted);
}

.collection-tabs button {
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.collection-tabs .is-active {
  color: var(--brand);
  font-weight: 600;
}

.collection-summary {
  display: flex;
  gap: .7rem;
  align-items: center;
}

.collection-summary>img {
  width: 5rem;
  aspect-ratio: 1.7;
  border-radius: .3rem;
}

.collection-info {
  min-width: 0;
}

.collection-info h5 {
  font-size: .75rem;
}

.collection-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: .55rem;
  margin-top: .2rem;
}

.collection-apps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .6rem;
  margin-top: .8rem;
  text-align: center;
}

.collection-apps img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .55rem;
  margin: auto;
}

.collection-apps h5 {
  font-weight: 400;
  font-size: .55rem;
  margin-top: .3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
