* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #13111c;
    color: #ffffff;
}

/* Üst Menü */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #191624;
    border-bottom: 1px solid #2a263d;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: #8b5cf6;
}

/* CrazyGames Tarzı Arama Çubuğu */
.search-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2c2f3b;
    padding: 10px 20px;
    border-radius: 999px;
    width: 400px;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.search-box:focus-within {
    border: 2px solid #8b5cf6;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    width: 100%;
}

/* Panik Tuşu */
.panic-btn {
    background-color: #272436;
    color: #a1a1aa;
    border: 1px solid #3f3b56;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.panic-btn:hover {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Kategori Butonları */
.categories {
    display: flex;
    gap: 10px;
    padding: 20px 40px 0 40px;
    overflow-x: auto;
}

.cat-btn {
    background-color: #1f1c2e;
    color: #cbd5e1;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.cat-btn:hover, .cat-btn.active {
    background-color: #8b5cf6;
    color: white;
}

/* Ana Alan ve Oyun Vitrini */
.container {
    padding: 25px 40px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f8fafc;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: #1f1c2e;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #2b2740;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
}

.game-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    background-color: #161421;
    padding: 10px;
}

.card-info {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info h3 {
    font-size: 15px;
    font-weight: 600;
}

.badge {
    background-color: #2e2947;
    color: #a78bfa;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Oyun Oynama Sayfası Düzeni */
.play-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 25px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.player-section {
    background-color: #191624;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a263d;
}

.iframe-wrapper {
    width: 100%;
    height: 78vh;
    background-color: #000;
    min-height: 620px;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #1f1c2e;
}

.game-meta h2 {
    font-size: 20px;
    font-weight: 700;
}

.player-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background-color: #2c2f3b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.action-btn:hover {
    background-color: #3b3f4f;
}

.action-btn.primary {
    background-color: #8b5cf6;
}

.action-btn.primary:hover {
    background-color: #7c3aed;
}

/* Sağdaki Play Next Sütunu */
.sidebar-next h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.next-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.next-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    border: 1px solid #2b2740;
    transition: transform 0.2s;
}

.next-card:hover {
    transform: scale(1.05);
    border-color: #8b5cf6;
}

.next-card img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    display: block;
}

.next-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 6px;
    font-size: 12px;
    font-weight: 600;
}







