    :root {
      --bg: #020617;
      --bg-elevated: #020617;
      --bg-card: #020617;
      --border-subtle: #1f2937;
      --accent: #22c55e;
      --accent-soft: rgba(34, 197, 94, 0.14);
      --accent-hover: #16a34a;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --danger: #f97373;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #0f172a, #020617);
      color: var(--text);
      height: 100vh;
      display: flex;
      flex-direction: column;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    header {
      padding: 10px 16px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      backdrop-filter: blur(16px);
      background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(3, 7, 18, 0.85));
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .brand-logo {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at top, #22c55e, #16a34a);
      box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
      font-size: 18px;
    }

    .brand-text strong {
      font-size: 16px;
      letter-spacing: 0.03em;
    }

    .brand-text small {
      display: block;
      font-size: 11px;
      color: var(--muted);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .btn {
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.3);
      padding: 6px 12px;
      font-size: 12px;
      background: rgba(15, 23, 42, 0.85);
      color: var(--text);
      cursor: pointer;
      display: inline-flex;
      gap: 6px;
      align-items: center;
      transition: background 0.15s, border-color 0.15s, transform 0.05s;
    }

    .btn:hover {
      background: rgb(255 255 255);
      border-color: rgb(0 0 0 / 80%);
    }

    .btn:active {
      transform: translateY(1px) scale(0.99);
    }

    .btn-accent {
      border-color: rgba(34, 197, 94, 0.9);
      background: linear-gradient(to right, #22c55e, #16a34a);
      color: #022c22;
      font-weight: 600;
      box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
    }

    .btn-ghost {
      background: transparent;
      border-color: rgba(148, 163, 184, 0.35);
    }

    .btn-sm {
      padding: 4px 10px;
      font-size: 11px;
    }

    .pill {
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(148, 163, 184, 0.3);
      color: var(--muted);
    }

    /* LAYOUT */
    .app {
      flex: 1;
      display: flex;
      min-height: 0;
    }

    /* SIDEBAR */
    .sidebar {
      width: 280px;
      max-width: 100%;
      border-right: 1px solid rgba(148, 163, 184, 0.15);
      backdrop-filter: blur(18px);
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
      display: flex;
      flex-direction: column;
      padding: 10px;
      gap: 10px;
      overflow-y: auto;
      height: 100%;
    }

    .sidebar-header {
      display: flex;
      gap: 8px;
    }

    .search-input {
      flex: 1;
      position: relative;
    }

    .search-input input {
      width: 100%;
      border-radius: 999px;
      border: 1px solid rgba(55, 65, 81, 0.8);
      background: rgba(15, 23, 42, 0.9);
      padding: 6px 10px 6px 26px;
      font-size: 12px;
      color: var(--text);
      outline: none;
    }

    .search-input input::placeholder {
      color: var(--muted);
    }

    .search-input span {
      position: absolute;
      left: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12px;
      color: var(--muted);
    }

    .sidebar-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      font-size: 11px;
    }

    .filter-chip {
      border-radius: 999px;
      padding: 4px 9px;
      border: 1px solid rgba(55, 65, 81, 0.8);
      background: rgba(15, 23, 42, 0.95);
      color: var(--muted);
      cursor: pointer;
      transition: background 0.12s, border-color 0.12s, color 0.12s;
    }

    .filter-chip.active {
      border-color: rgba(34, 197, 94, 0.9);
      background: var(--accent-soft);
      color: #bbf7d0;
    }

    .games-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 4px;
    }

    .game-item {
      border-radius: 10px;
      padding: 6px 8px;
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(31, 41, 55, 0.9);
      background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
      cursor: pointer;
      transition: background 0.12s, transform 0.05s, border-color 0.12s, box-shadow 0.12s;
    }

    .game-item:hover {
      border-color: rgba(129, 140, 248, 0.7);
      background: radial-gradient(circle at left, rgba(30, 64, 175, 0.5), rgba(15, 23, 42, 0.95));
      box-shadow: 0 0 18px rgba(30, 64, 175, 0.45);
      transform: translateY(-1px);
    }

    .game-item.active {
      border-color: rgba(34, 197, 94, 0.9);
      background: radial-gradient(circle at left, rgba(34, 197, 94, 0.4), rgba(15, 23, 42, 0.95));
      box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
    }

    .game-thumb {
      width: 40px;
      height: 40px;
      border-radius: 9px;
      background: radial-gradient(circle at top left, #22c55e, #1d4ed8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
      overflow: hidden;
    }

    .game-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .game-meta {
      flex: 1;
      min-width: 0;
    }

    .game-title {
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .game-sub {
      font-size: 11px;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      gap: 4px;
    }

    .tag {
      border-radius: 999px;
      padding: 0 6px;
      border: 1px solid rgba(55, 65, 81, 0.9);
      font-size: 10px;
      white-space: nowrap;
    }

    .badge-popular {
      color: #facc15;
    }

    .sidebar-footer {
      margin-top: 6px;
      font-size: 11px;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }

    /* MAIN */
    .main {
      flex: 1;
      padding: 12px;
      display: flex;
      flex-direction: column;
      min-width: 0;
      min-height: 0;
    }

    #gameArea {
      flex: 1;
      border-radius: 18px;
      border: 1px solid rgba(31, 41, 55, 0.95);
      background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
      padding: 12px;
      box-shadow:
        0 22px 40px rgba(15, 23, 42, 0.95),
        0 0 16px rgba(15, 118, 110, 0.45);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .placeholder {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      color: var(--muted);
    }

    /* GAME AREA STYLES (game.php kullanacak) */

    .game-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
      height: 100%;
    }

    .game-header-line {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .game-header-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .game-header-main h2 {
      font-size: 16px;
    }

    .game-header-main span {
      font-size: 11px;
      color: var(--muted);
    }

    .game-header-right {
      font-size: 11px;
      color: var(--muted);
    }

    .top-ad-box {
      border-radius: 14px;
      border: 1px dashed rgba(75, 85, 99, 0.9);
      background: radial-gradient(circle at top, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.95));
      padding: 8px;
      font-size: 11px;
      color: var(--muted);
      text-align: center;
    }

    .top-ad-box strong {
      color: var(--text);
    }

    .play-row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .play-thumb {
      width: 80px;
      height: 80px;
      border-radius: 14px;
      overflow: hidden;
      flex-shrink: 0;
      border: 1px solid rgba(31,41,55,0.9);
    }

    .play-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .play-text {
      flex: 1;
      min-width: 0;
      font-size: 12px;
      color: var(--muted);
    }

    .play-btn {
      border-radius: 999px;
      border: none;
      padding: 10px 26px;
      font-size: 14px;
      font-weight: 700;
      background: linear-gradient(to right, #22c55e, #16a34a);
      color: #022c22;
      cursor: pointer;
      box-shadow: 0 0 18px rgba(34, 197, 94, 0.6);
    }
 

    .random-right-wrap {
      margin-top: 4px;
    }

    .random-right-wrap h3 {
      font-size: 13px;
      margin-bottom: 4px;
    }

    .random-grid-right {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 8px;
    }

    .rnd-item {
      border-radius: 10px;
      border: 1px solid rgba(31, 41, 55, 0.9);
      background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
      padding: 6px;
      cursor: pointer;
      font-size: 11px;
      text-align: center;
      transition: 0.12s;
    }

    .rnd-item:hover {
      border-color: rgba(129, 140, 248, 0.7);
      box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
    }

    .rnd-thumb {
      width: 100%;
      height: 70px;
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 4px;
    }

    .rnd-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .loading {
      flex: 1;
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:12px;
      color:var(--muted);
    }

    /* RESPONSIVE */
    @media (max-width: 900px) {
      .app {
        flex-direction: column;
      }

      .sidebar {
        position: fixed;
        left: 0;
        top: 52px;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.18s ease-out;
        z-index: 30;
        max-width: 80%;
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .main {
        padding: 8px;
      }

      .mobile-toggle-sidebar {
        display: inline-flex;
      }
    }

    .mobile-toggle-sidebar {
      display: none;
    }

    @media (max-width: 600px) {
      header {
        padding: 8px 10px;
      }

      .game-header-main h2 {
        font-size: 14px;
      }
    }
	
	
	.cover-wrap {
  position: relative;
  flex: 1;
  min-height: 680px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(31,41,55,0.95);
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) blur(3px);
}

.play-btn {
  position: absolute;
  padding: 18px 42px;
  font-size: 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(34,197,94,0.7);
  transition: 0.18s ease;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(34,197,94,0.9);
}

.play-btn:active {
  transform: scale(0.92);
}

.iframe-wrap {
  flex: 1;
  min-height: 680px;
  display: none; /* kapalı başlayacak */
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.95);
  overflow: hidden;
  background: #000;
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}


.sidebar {
  scrollbar-width: thin;            /* Firefox */
  scrollbar-color: #3f4b61 #0f172a; /* Firefox thumb & track */
}

/* Chrome & Edge */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #334155, #1e293b);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); /* green neon glow */
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #475569, #334155);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.sidebar::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #64748b, #475569);
  box-shadow: 0 0 12px rgba(34, 197, 94, 1);
}


.fade-img {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.fade-img.loaded {
  opacity: 1;
}


.class_r {
    margin: 0 auto;
    display: grid;
    justify-content: center;
    margin-bottom: 15px;
    width: 970px;
    height: 250px;
    margin-top: 15px;
    align-items: center;
    background: #262a411c;
}