/* Shared in-page ad layout used across SkyKings pages.
   Neutral class names (no "ad"/"banner"/"sponsor") so adblock cosmetic
   filters can't hide the containers and break the page grid. */

.skx-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px; /* 160px rail + padding */
    gap: 10px;
    align-items: start;
    width: 100%;
    margin: 0 auto;
    padding: 0 6px;
    box-sizing: border-box;
}

/* Bigger sidebar variant (300x600 half-page ads) */
.skx-grid--big {
    grid-template-columns: 320px minmax(0, 1fr) 320px;
}

/* Explicit placement keeps content centered even if a rail gets hidden */
.skx-main {
    grid-column: 2;
    min-width: 0;
    width: 100%;
}

.skx-side {
    grid-column: 1;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    background-color: #1d1d1d;
    border-radius: 10px;
    overflow: hidden;
}

.skx-side-left {
    grid-column: 1;
}

.skx-side-right {
    grid-column: 3;
}

/* Sticky rails follow the page as you scroll, then stay on screen */
.skx-side--sticky {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Horizontal strip ad placed within the content column */
.skx-band {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background-color: #1d1d1d;
    border-radius: 10px;
    overflow: hidden;
}

.skx-band .adsbygoogle {
    width: 100%;
}

/* Collapse frames entirely when Google has no ad to fill them */
.skx-band:has(> .adsbygoogle[data-ad-status="unfilled"]),
.skx-side:has(> .adsbygoogle[data-ad-status="unfilled"]) {
    display: none;
}

/* Drop the side rails on smaller screens; content goes full width */
@media (max-width: 1200px) {
    .skx-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .skx-side {
        display: none;
    }

    /* On mobile the bottom horizontal ad sticks to the bottom of the screen,
       centered full-width. On desktop it stays in normal page flow. */
    .skx-band--bottom {
        position: fixed;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 4px 0;
        border-radius: 0;
        z-index: 9999;
    }
}

/* Floating side ads pinned to the viewport gutters. They stay visible and
   move with you as you scroll on full-width pages (e.g. games) where the
   content can't give up grid space. */
.skx-edge {
    position: fixed;
    top: 250px;
    z-index: 50;
    width: 300px;
    height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.skx-edge-left {
    left: 10px;
}

.skx-edge-right {
    right: 10px;
}

/* Only show the big side ads when the gutters are wide enough to avoid
   overlapping the (up to ~1100px wide) game content. */
@media (max-width: 1600px) {
    .skx-edge {
        display: none;
    }
}

.skx-edge:has(> .adsbygoogle[data-ad-status="unfilled"]) {
    display: none;
}

