/* Shared by both pages. The button geometry, palette and light-ink rules are
   the album player's own, so a guest recognises this as the same object. */

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

/* touch-action is not inherited, so every tappable element below sets it
   again. manipulation removes double-tap zoom and keeps pinch-zoom. */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    touch-action: manipulation;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFF8DC;
    color: var(--ink, #111);
    -webkit-font-smoothing: antialiased;
}

/* Collapsed rather than display:none, which stops <use> resolving in some
   engines. */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Both dimensions are needed: WebKit and Gecko can render an SVG with only a
   width as invisible. */
svg.btn-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    pointer-events: none;
}

.transport-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    border: 3px solid rgba(0, 0, 0, 0.26);
    border-radius: 4px;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: background 0.12s, opacity 0.12s;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.transport-btn .btn-icon {
    color: rgba(0, 0, 0, 0.45);
}

.transport-btn:active {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.35);
}

.transport-btn:disabled {
    cursor: not-allowed;
}

/* Light ink, for track colours the server marks as dark. */
.light-ui {
    --ink: rgba(235, 230, 220, 0.8);
}

.light-ui .transport-btn {
    border-color: rgba(235, 230, 220, 0.5);
}

.light-ui .transport-btn .btn-icon {
    color: rgba(235, 230, 220, 0.7);
}

.light-ui .transport-btn:active {
    background: rgba(235, 230, 220, 0.12);
    border-color: rgba(235, 230, 220, 0.65);
}
