/* play.css - 游戏播放页专用样式 */

/* ============================
   1. 基础布局
   ============================ */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ============================
   2. 浮动控制按钮
   ============================ */
.floating-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.floating-controls button,
.floating-controls a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.floating-controls button:hover,
.floating-controls a:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.floating-controls svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ============================
   3. 游戏容器
   ============================ */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

#game-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ============================
   4. 全屏模式调整
   ============================ */
:fullscreen .floating-controls {
    display: none;
}

:-webkit-full-screen .floating-controls {
    display: none;
}

:-moz-full-screen .floating-controls {
    display: none;
}

:-ms-fullscreen .floating-controls {
    display: none;
}

/* ============================
   5. 响应式调整
   ============================ */
@media (max-width: 768px) {
    .floating-controls {
        top: 10px;
        right: 10px;
    }
    
    .floating-controls button,
    .floating-controls a {
        width: 36px;
        height: 36px;
    }
    
    .floating-controls svg {
        width: 20px;
        height: 20px;
    }
}