/* PlayGameVilla Games — dark arcade styling (sits on top of GeneratePress).
   All components carry their own dark background so they look like an
   arcade on any theme background. No frameworks, no webfonts. */

.pgv-single,
.pgv-archive {
    --pgv-bg: #0f172a;
    --pgv-panel: #1e293b;
    --pgv-panel2: #0b1120;
    --pgv-border: #334155;
    --pgv-text: #e2e8f0;
    --pgv-muted: #94a3b8;
    --pgv-accent: #2dd4bf;
    --pgv-accent2: #fbbf24;
    max-width: 1024px;
    margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.pgv-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin: 6px 0 10px;
}
.pgv-breadcrumb a { color: #0d7377; text-decoration: none; }
.pgv-breadcrumb a:hover { text-decoration: underline; }
.pgv-crumb-sep { margin: 0 6px; color: #94a3b8; }
.pgv-crumb-current { color: #475569; }

.pgv-title {
    margin: 0 0 14px;
    line-height: 1.2;
}

/* ---------- Player ---------- */
.pgv-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #05080f;
    border: 2px solid #334155;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(2, 6, 23, .35);
}
.pgv-player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.pgv-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.pgv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #2dd4bf;
    background: rgba(13, 115, 119, .92);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: transform .12s, background .12s;
}
.pgv-play-btn span { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.pgv-play-btn:hover { transform: translate(-50%, -50%) scale(1.07); background: #0d7377; }
.pgv-player-actions { margin: 10px 0 4px; text-align: right; }
.pgv-fullscreen-btn {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.pgv-fullscreen-btn:hover { border-color: #2dd4bf; color: #2dd4bf; }

/* ---------- Info boxes on the game page ---------- */
.pgv-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #e2e8f0;
    padding: 16px 18px;
    margin: 16px 0;
}
.pgv-box h2 { color: #2dd4bf; margin-top: 0; font-size: 20px; }
.pgv-box p { color: #cbd5e1; }
.pgv-box p:last-child { margin-bottom: 0; }
.pgv-related { margin-top: 22px; }

/* ---------- Game grid + cards ---------- */
.pgv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin: 12px 0;
}
.pgv-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pgv-card:hover {
    transform: translateY(-3px);
    border-color: #2dd4bf;
    box-shadow: 0 10px 26px rgba(2, 6, 23, .5);
    color: #e2e8f0;
}
.pgv-card-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    background: #0b1120;
    overflow: hidden;
}
.pgv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pgv-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pgv-card-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.pgv-card-cat {
    font-size: 11px;
    color: #2dd4bf;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 700;
}

/* ---------- Category tiles ---------- */
.pgv-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 12px 0;
}
.pgv-cat-tile {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: border-color .15s, transform .15s;
}
.pgv-cat-tile:hover { border-color: #fbbf24; transform: translateY(-2px); }
.pgv-cat-name { color: #fbbf24; font-weight: 800; font-size: 17px; }
.pgv-cat-count { color: #94a3b8; font-size: 13px; }

/* ---------- Search ---------- */
.pgv-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 12px auto;
}
.pgv-search input[type="search"] {
    flex: 1;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 10px;
    color: #e2e8f0;
    padding: 11px 14px;
    font-size: 16px;
}
.pgv-search input[type="search"]:focus { border-color: #2dd4bf; outline: none; }
.pgv-search button {
    background: #0d7377;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.pgv-search button:hover { background: #0a5c5f; }

/* ---------- Misc ---------- */
.pgv-empty { color: #64748b; font-style: italic; }
.pgv-pagination { margin: 18px 0; text-align: center; }
.pgv-archive-intro { color: #475569; max-width: 720px; }

@media (max-width: 600px) {
    .pgv-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
    .pgv-card-title { font-size: 13px; }
    .pgv-play-btn { width: 76px; height: 76px; font-size: 24px; }
}
