/* ── Play Page ── */
.play-wrap {
    max-width: var(--all-width);
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    align-items: start;
}

/* Game frame area */
.play-frame-card {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
    position: relative;
}

.play-frame-card__bar {
    background: #1a1a2e;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.play-frame-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-frame-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.play-action-btn {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.play-action-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

.play-frame-card__game {
    position: relative;
    width: 100%;
    background: #000;
}

.play-frame-card__game::before {
    content: '';
    display: block;
    padding-top: 62.5%;
}

.play-frame-card__game iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Sidebar */
.play-sidebar {}

.play-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.play-sidebar-card__heading {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

/* Game info in sidebar */
.play-game-info__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.3;
}

.play-game-info__stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.play-game-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.play-tag {
    font-size: 11px;
    color: #666;
    background: #f0f4f8;
    padding: 2px 8px;
    border-radius: 10px;
}

.play-tag--cat {
    background: #e8f4ff;
    color: #2563eb;
    font-weight: 600;
}

.play-game-info__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Recommended in sidebar */
.play-rec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.play-rec-item {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 6px;
    border-radius: 8px;
    transition: background .15s;
}

.play-rec-item:hover { background: #f5f7fa; }

.play-rec-item__thumb {
    width: 60px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

.play-rec-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-rec-item__title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 799px) {
    .play-wrap {
        grid-template-columns: 1fr;
    }

    .play-frame-card__game::before {
        padding-top: 75%;
    }

    .play-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .play-sidebar-card { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .play-sidebar { grid-template-columns: 1fr; }
    .play-frame-card__game::before { padding-top: 100%; }
}
