* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #eee;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#main {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#status {
    flex-shrink: 0;
    min-height: 24px;
    max-width: 100%;
    margin: 0;
    padding: 3px 16px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

#buttons {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

button {
    border: 0;
    background: #fb0;
    background: linear-gradient(to bottom, #ff2, #fb0);
    color: #af2e08;
    font-size: 16px;
    font-weight: bold;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    cursor: pointer;
    touch-action: manipulation;
}

button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

button:active {
    background: #ffbd19;
}

noscript {
    padding: 10px;
    text-align: center;
}
