/* pc-layout.blade.php — 版面與懸浮廣告 */

body {
    background-color: #19181f;
}

img.card-img-top {
    aspect-ratio: 3/2;
    object-fit: cover;
}

#negative {
    width: 100%;
}

#negative #dprecommend .qcair-item-title {
    color: rgba(255, 255, 255, 0.55);
}

.page-btn[disabled] {
    border: 1px solid #19181f;
}

.page-btn[disabled] b {
    color: white;
}

@media (max-width: 720px) {
    #ad_fix_150_150 {
        display: block !important;
    }
}

#ad_fix_150_150 {
    display: none;
    width: 50px;
    height: 50px;
    position: fixed;
    right: 0;
    bottom: 100px;
}

#ad_fix_150_150 * {
    max-width: 50px !important;
    max-height: 50px !important;
}

/* PC：右下角懸浮 */
#floatingAd {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: auto;
    top: auto;
    transform: none;
    z-index: 9999;
    width: auto;
    max-width: min(360px, calc(100vw - 24px));
    padding: 0;
    box-sizing: border-box;
    text-align: right;
}

#floatingAd .floating-ad-inner {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* 手機：底部置中、橫向條狀 */
@media (max-width: 720px) {
    #floatingAd {
        left: 50%;
        right: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    #floatingAd .floating-ad-inner {
        width: 100%;
        max-width: 100%;
    }
}

#floatingAd .close-btn {
    position: absolute;
    top: -6px;
    right: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

#floatingAd .close-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

#floatingAd img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
