:root {
  --blue: #003a92;
  --red: #dc2626;
  --bg: #f3f4f6;
  --text: #0f172a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.arb-site {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

.fixedHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--blue);
  color: #fff;
}

.container {
  width: min(100% - 12px, 480px);
  margin-left: auto;
  margin-right: auto;
}

.topbar .row {
  display: flex;
  align-items: center;
  padding: 8px 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: 0 0 auto;
}

.brand strong {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.subbar {
  background: #fff;
}

.subbar .tabs {
  display: flex;
  overflow-x: auto;
}

.subbar a {
  flex: 1 0 auto;
  min-width: 72px;
  text-align: center;
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
  border-right: 1px solid #374151;
}

.subbar a:last-child {
  border-right: 0;
}

.subbar a.active {
  color: #7f1d1d;
  box-shadow: inset 0 -2px 0 #7f1d1d;
}

.main {
  padding-top: 108px;
  padding-bottom: 24px;
}

.home-title,
h1.home-title,
.page-title {
  width: min(100% - 20px, 640px);
  margin: 8px auto 6px;
  text-align: center;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.home-lead,
p.home-lead {
  width: min(100% - 24px, 640px);
  margin: 0 auto 12px;
  text-align: center;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.heroWrap.slider {
  position: relative;
  width: min(100% - 16px, 480px);
  margin: 0 auto 12px;
  aspect-ratio: 430 / 230;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.heroWrap.slider > img,
.heroWrap.slider > a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: block;
}

.heroWrap.slider > img {
  object-fit: cover;
  max-width: none;
}

.heroWrap.slider > img.active,
.heroWrap.slider > a.active {
  opacity: 1;
  z-index: 2;
}

.heroWrap.slider > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.searchBox {
  width: min(100% - 16px, 480px);
  margin: 8px auto 4px;
}

.searchBox input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 2px solid #ddd;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.searchBox input:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15);
}

.search-results-box {
  display: none;
  margin: 10px 0 12px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.search-result-card {
  display: grid;
  grid-template-columns: 24px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 6px;
  border-bottom: 1px solid #edf0f5;
}

.search-result-card:last-child {
  border-bottom: 0;
}

.search-result-rank {
  font-size: 13px;
  font-weight: 800;
  color: #9ca3af;
  text-align: center;
}

.search-result-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub,
.search-result-min {
  font-size: 11px;
  font-weight: 700;
}

.search-result-min {
  color: #059669;
}

.search-result-sub {
  color: #64748b;
}

.search-result-btn,
.dlBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.18);
}

.search-no-result,
.empty-note {
  padding: 14px;
  text-align: center;
  font-weight: 700;
  color: #4b5563;
}

.AdBox {
  width: min(100% - 16px, 480px);
  margin: 8px auto 4px;
}

.search-ad-image {
  margin: 0 0 8px;
}

.search-ad-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.sectionTitle {
  width: min(100% - 16px, 480px);
  margin: 12px auto 6px;
  background: #b91c1c;
  color: #fff;
  border: 2px solid #fff;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
}

.sectionTitle h2 {
  margin: 0;
  padding: 7px 8px;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.sectionTitle.subtle {
  background: #7f1d1d;
  font-weight: 700;
}

.list {
  width: min(100% - 12px, 480px);
  margin: 0 auto;
}

.list .row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
}

.rank {
  width: 22px;
  flex: 0 0 auto;
  text-align: center;
  color: #9ca3af;
  font-weight: 800;
}

.icon {
  width: 56px;
  height: 56px;
  max-width: none;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
  flex: 0 0 auto;
}

.meta {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.meta .name {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta .name a {
  color: inherit;
  text-decoration: none;
}

.meta .sub,
.meta .min {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
}

.meta .sub {
  color: #4b5563;
}

.meta .min {
  color: #15803d;
  font-weight: 800;
}

.hr {
  height: 1px;
  background: rgba(229, 231, 235, 0.95);
}

.sheet {
  width: min(100% - 16px, 480px);
  margin: 0 auto 16px;
}

.entry {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.entry p,
.modalBody p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.modalBody a,
.entry a {
  color: var(--blue);
}

.app-hero {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #2563eb, #0f172a 72%);
}

.app-hero a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.app-hero .app-hero-icon {
  width: 120px;
  height: 120px;
  max-width: none;
  border-radius: 28px;
  object-fit: cover;
}

.app-hero.is-banner a,
.app-hero.is-banner img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.heroBadges {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.badge {
  flex: 1;
  background: linear-gradient(#1e293b, #0f172a);
  color: #fff;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.badge strong {
  display: block;
  font-size: 13px;
}

.badge small {
  font-weight: 700;
}

.claim {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.claim-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 460px);
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff4c4c, #ff9c3c);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.claim-btn-small {
  width: auto;
  font-size: 15px;
}

.download-pending {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.app-faq {
  width: min(100% - 16px, 480px);
  margin: 8px auto 16px;
}

.app-faq h2 {
  text-align: center;
  font-size: 20px;
}

.faq-item {
  border: 2px solid #111;
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  display: inline;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.55;
}

.custom-download-title {
  width: min(100% - 16px, 480px);
  margin: 18px auto 6px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #d84b4b, #ef6a6a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.custom-download-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: min(100% - 16px, 480px);
  margin: 6px auto 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.custom-download-item {
  flex: 0 0 72px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.custom-download-icon {
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 4px;
}

.custom-download-btn {
  background: #00b050;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  padding: 3px 4px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.96);
  padding: 10px 12px;
}

.sticky-inner {
  width: min(100%, 960px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sticky-left img {
  width: 44px;
  height: 44px;
  max-width: none;
  border-radius: 10px;
  object-fit: cover;
}

.sticky-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.sticky-text span {
  color: #cbd5e1;
  font-size: 12px;
}

.sticky-btn {
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  white-space: nowrap;
}

body.single-arb_app .main {
  padding-bottom: 88px;
}

.footer {
  background: var(--blue);
  color: #fff;
  padding: 16px 0 20px;
}

.footer-inner {
  width: min(100% - 16px, 480px);
  margin: 0 auto;
}

.footer .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer .btns a {
  background: #0b4aa0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
}

.friend-links {
  margin-top: 14px;
}

.friend-links h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 14px;
}

.friend-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.friend-links a {
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
}

.friend-links-empty {
  color: #fff;
}

.play-responsibly {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  opacity: 0.9;
}

.play-responsibly p {
  margin: 0;
}

.footer small {
  display: block;
  margin-top: 10px;
  text-align: center;
  opacity: 0.85;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.55);
}

.modal[hidden] {
  display: none !important;
}

.modalBox {
  width: min(440px, 100%);
  background: #fff;
  color: #111827;
  border-radius: 14px;
  overflow: hidden;
}

.modalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f172a;
  color: #fff;
  padding: 12px;
  font-weight: 800;
}

.modalBody {
  padding: 12px;
  max-height: 70vh;
  overflow: auto;
}

.modalClose {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

.contact-form p {
  margin: 0 0 10px;
}

.form-note {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  padding: 10px 12px;
}

.arb-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.nav-links,
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

:focus-visible {
  outline: 2px solid #003a92;
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .icon {
    width: 48px;
    height: 48px;
  }

  .dlBtn,
  .search-result-btn {
    padding: 8px;
    font-size: 12px;
  }

  .brand strong {
    font-size: 11px;
  }
}

@media (min-width: 700px) {
  .AdBox {
    display: flex;
    gap: 12px;
    align-items: stretch;
  }

  .AdBox .search-ad-image {
    flex: 1;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .main {
    padding-top: 96px;
  }

  .container,
  .list,
  .searchBox,
  .AdBox,
  .heroWrap.slider,
  .sheet,
  .app-faq,
  .custom-download-title,
  .custom-download-row,
  .sectionTitle,
  .footer-inner,
  .home-title,
  h1.home-title,
  .home-lead,
  p.home-lead,
  .page-title {
    width: min(100% - 48px, 960px);
  }

  .brand strong,
  .subbar a {
    font-size: 15px;
  }

  .heroWrap.slider {
    aspect-ratio: 16 / 7;
  }

  .searchBox input {
    height: 58px;
    font-size: 18px;
  }

  .sectionTitle {
    font-size: 16px;
  }

  .list .row {
    gap: 14px;
    padding: 14px 8px;
  }

  .icon {
    width: 72px;
    height: 72px;
  }

  .meta .name {
    font-size: 18px;
  }

  .meta .sub,
  .meta .min {
    font-size: 14px;
  }

  .dlBtn,
  .search-result-btn {
    padding: 12px 18px;
    font-size: 15px;
  }

  .custom-download-item {
    flex-basis: 96px;
  }

  .custom-download-icon {
    width: 88px;
    height: 88px;
  }

  .modalBox {
    width: min(560px, 100%);
  }
}

@media (min-width: 1200px) {
  .container,
  .list,
  .searchBox,
  .AdBox,
  .heroWrap.slider,
  .sheet,
  .app-faq,
  .custom-download-title,
  .custom-download-row,
  .sectionTitle,
  .footer-inner,
  .page-title {
    width: min(100% - 64px, 1080px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroWrap.slider > img,
  .heroWrap.slider > a {
    transition: none;
  }
}
