:root {
  --bg: #071018;
  --card: #0c1620;
  --line: #1b2a37;
  --text: #f3f7fc;
  --muted: #a0adbb;
  --blue: #2868ed;
  --purple: #7048e8;
  --yellow: #ffc928;
  --max: 1500px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Arial, sans-serif;
}

.wrap {
  width: min(calc(100% - 50px), var(--max));
  margin: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  height: 54px;
  border-bottom: 1px solid var(--line);
  background: #071019;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo b,
.view {
  color: #55a4ff;
}

.links {
  display: flex;
  gap: 30px;
  font-weight: bold;
  font-size: 13px;
}

.search {
  margin-left: auto;
  width: 270px;
  border: 1px solid var(--line);
  height: 34px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: #718092;
  font-size: 12px;
}

.account {
  border: 1px solid #6945a5;
  color: #c6a4ff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.main {
  padding: 20px 0 42px;
}

.section {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 18px;
  margin: 0;
}

.view {
  font-size: 12px;
}

.movies {
  display: grid;
  grid-template-columns: 2.05fr 0.95fr 1.05fr;
  gap: 20px;
}

.gm-feature {
  height: 322px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  background: var(--card);
}

.feature-copy {
  position: absolute;
  left: 19px;
  bottom: 19px;
  z-index: 2;
}

.badge {
  font-size: 10px;
  font-weight: bold;
  background: #275ad6;
  border-radius: 3px;
  padding: 4px 7px;
  display: inline-block;
  margin-bottom: 100px;
}

.gm-feature h1 {
  font-size: 28px;
  margin: 0 0 5px;
}

.meta {
  font-size: 12px;
  color: #bbc5cf;
}

.star,
.rating {
  color: var(--yellow);
}

.buttons {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.button {
  border: 1px solid #33404c;
  border-radius: 5px;
  padding: 8px 17px;
  font-size: 12px;
}

.primary,
.tab.active {
  background: linear-gradient(100deg, #345edf, #6539d1);
  border: 0;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list h3 {
  font-size: 14px;
  margin: 0;
}

.media-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 51px;
}

.thumb {
  height: 51px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid #30404b;
}

.media-row strong {
  font-size: 12px;
}

.upcoming,
.grid6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.upcoming {
  margin-top: 19px;
}

.gm-card-poster,
.gm-card-game,
.gm-card-template {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-weight: bold;
  font-size: 12px;
}

.gm-card-poster {
  height: auto;
  aspect-ratio: 0.85 / 1;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.gm-card-game {
  height: auto;
  aspect-ratio: 0.85 / 1;
  width: 100%;
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  font-size: 12px;
  line-height: 1.45;
}

.grid6 .gm-card-game {
  width: 100%;
  min-width: 0;
}

.gm-card-template {
  height: 160px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 7px;
  background: #101c27;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.product {
  height: 96px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.product-icon {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 38px;
}

.product b {
  font-size: 12px;
}

.product small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.news {
  height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 10px;
  background: var(--card);
  font-size: 11px;
  font-weight: bold;
}

.news-img {
  width: 58px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
  flex: 0 0 58px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: #9ba9b7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 45px;
}

.footer h4 {
  margin: 0 0 8px;
  color: #fff;
}

.footer p {
  font-size: 12px;
  margin: 8px 0;
}

.email {
  height: 34px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding-left: 12px;
  border-radius: 5px;
  font-size: 11px;
}

.subscribe {
  margin-left: auto;
  background: #2b66e6;
  padding: 8px 11px;
  color: #fff;
  border-radius: 5px;
}

.tab-category {
  display: none;
}

.tab-category.active {
  display: contents;
}

/* responsive media queries */

@media (max-width: 900px) {
  .links {
    display: none;
  }

  .movies {
    grid-template-columns: 1fr;
  }

  .upcoming,
  .grid6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
  }

  .upcoming::-webkit-scrollbar,
  .grid6::-webkit-scrollbar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .wrap {
    width: min(calc(100% - 24px), var(--max));
  }

  .search {
    display: none;
  }

  /* grid-ის გადაყვანა flex-ზე სქროლისთვის */
  .upcoming,
  .grid6 {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .upcoming::-webkit-scrollbar,
  .grid6::-webkit-scrollbar {
    display: none;
  }

  /* აქტიური კატეგორია flex სტრუქტურით */
  .tab-category.active {
    display: flex !important;
    gap: 10px !important;
    width: 100%;
  }

  /* ბარათების ზომა: ზუსტად 3 ცალი ეკრანზე */
  .upcoming .gm-card-poster,
  .grid6 .gm-card-game,
  .tab-category .gm-card-game {
    flex: 0 0 calc((100% - 20px) / 3) !important;
    width: calc((100% - 20px) / 3) !important;
    min-width: 0 !important;
    aspect-ratio: 0.75 / 1;
    scroll-snap-align: start;
    font-size: 11px;
    padding: 8px;
  }

  .gm-feature {
    height: 270px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px; /* მანძილი იკონსა და ტექსტს შორის */
}

.section-head h2 svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.section h3 {
  display: flex;
  align-items: center;
  gap: 8px; /* მანძილი იკონსა და ტექსტს შორის */
}
.section h3 svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

