:root {
  --bg: #0c0f13;
  --card: #141a22;
  --text: #e7edf5;
  --muted: #96a2b4;
  --accent: #2b8eff;
  --btn: #1971ff;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(12, 15, 19, .9);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 10;
}

.flex { display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); font-size: 18px; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.nav a:hover { color: var(--text); }

/* ===== Grid Yapısı ===== */
.grid-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .grid-7 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 820px) { .grid-7 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .grid-7 { grid-template-columns: repeat(2, 1fr); } }

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* ===== Eski card (artık kullanılmıyor) ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
}
.card .thumb { display: block; aspect-ratio: 16/9; background: #0b1016; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card header { padding: 12px 12px 0; }
.card h2 { margin: 0; font-size: 14px; line-height: 1.3; height: 2.6em; overflow: hidden; }
.card h2 a { text-decoration: none; color: var(--text); }
.card footer { padding: 12px; display: flex; gap: 8px; margin-top: auto; }
.btn {
  display: inline-block;
  background: var(--btn);
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { opacity: .92; }

/* ===== Anasayfa Kartları ===== */
.grid-7 .h-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card) center/cover no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  color: #fff;
  text-decoration: none;
  padding: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  transition: transform .12s ease, box-shadow .12s ease;
}
.grid-7 .h-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.grid-7 .h-card .t {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Benzer Oyunlar (Anasayfa ile aynı stil) ===== */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin: 24px 0 40px;
}

.sim-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card) center/cover no-repeat;
  color: #fff;
  text-decoration: none;
  padding: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.sim-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  filter: brightness(1.1);
}
/* 🚫 Overlay tamamen kaldırıldı */
.sim-card::before { content: none !important; }
.sim-card .t {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

/* ===== Game Page Layout ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.player {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  overflow: hidden;
  margin-bottom: 20px;
}
.frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.frame-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.frame-ctrls {
  text-align: center;
  padding: 12px 0;
  background: rgba(10, 15, 20, .6);
  backdrop-filter: blur(8px);
}
.frame-ctrls button {
  background: var(--btn);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: opacity .2s ease;
}
.frame-ctrls button:hover { opacity: .9; }

.article {
  margin: 26px 0;
  color: #d7deea;
  line-height: 1.6;
  font-size: 15px;
}
.article p { margin: 10px 0; }

.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  color: var(--muted);
}
.footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 24px;
}
.footer .container {
  padding: 18px 16px;
  color: var(--muted);
  font-size: 14px;
}
