.player-page .page-container {
    padding-top: 14px;
    padding-bottom: 72px;
}

.player-page .player-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto 10px;
    padding: 0 4px;
}

.player-page .player-intro p {
    margin: 0;
    color: #5a6270;
    font-size: 0.96rem;
    line-height: 1.55;
}

.player-page .player-workbench {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 18px 18px;
    border-radius: 30px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 48px rgba(18, 25, 38, 0.08);
    backdrop-filter: blur(10px);
}

.player-page .player-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.player-page .player-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 251, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.player-page .player-toolbar-tag,
.player-page .player-field-label {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-page .player-input-text,
.player-page .player-input-item,
.player-page .player-number-input {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: rgba(255, 255, 255, 0.98);
    color: #17181b;
    font-size: 0.98rem;
    box-sizing: border-box;
    outline: none;
}

.player-page .player-input-text:focus,
.player-page .player-input-item:focus,
.player-page .player-number-input:focus {
    border-color: rgba(229, 57, 53, 0.26);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.08);
}

.player-page .player-input-text-url {
    flex: 1 1 320px;
    min-width: 280px;
}

.player-page .player-number-input {
    width: 110px;
}

.player-page .player-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-page .player-field-color .color-picker {
    width: 52px;
    min-width: 52px;
}

.player-page .player-chip,
.player-page .player-check-chip,
.player-page .player-input-button,
.player-page .playpause_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    color: #17181b;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.player-page .player-chip:hover,
.player-page .player-check-chip:hover,
.player-page .player-input-button:hover,
.player-page .playpause_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(18, 25, 38, 0.09);
}

.player-page .player-chip input,
.player-page .player-check-chip input {
    margin-right: 8px;
}

.player-page .player-chip {
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.11), rgba(37, 99, 235, 0.05)), rgba(255, 255, 255, 0.98);
}

.player-page .player-check-chip {
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.1), rgba(34, 197, 94, 0.05)), rgba(255, 255, 255, 0.98);
}

.player-page .player-input-button-primary {
    background: linear-gradient(135deg, #e53935, #ff7b67);
    color: #ffffff;
    border-color: rgba(229, 57, 53, 0.22);
}

.player-page .player-input-button-danger {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
}

.player-page .player-volume-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 360px;
    min-width: 320px;
}

.player-page .player-volume-wrap .player-input-item {
    flex: 1 1 180px;
    width: auto;
}

.player-page .player-utility-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 999 1 auto;
}

.player-page input[type="range"].player-input-item {
    padding: 0;
    border: 0;
    background: rgba(59, 130, 246, 0.18);
    border-radius: 999px;
    height: 10px;
}

.player-page input[type="range"].player-input-item::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #2563eb;
    border-radius: 999px;
    cursor: pointer;
}

.player-page input[type="range"].player-input-item::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #2563eb;
    border-radius: 999px;
    cursor: pointer;
    border: 0;
}

.player-page .color-picker {
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    padding: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-sizing: border-box;
    cursor: pointer;
}

.player-page .color-picker::-webkit-color-swatch,
.player-page .color-picker::-moz-color-swatch {
    border: 0;
    border-radius: 10px;
}

.player-page .player-canvas-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #06080e 0%, #0e131c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 42px rgba(17, 24, 39, 0.16);
}

.player-page .player-sdk {
    position: relative;
    width: 100%;
    min-height: 540px;
}

.player-page .player-hover-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(4, 7, 12, 0.74), rgba(8, 11, 17, 0.84));
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.96rem;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
}

.player-page .player-hover-spinner {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.16);
    border-top-color: #ffffff;
    animation: player-hover-spin 0.85s linear infinite;
}

.player-page .player-hover-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%) scale(0.96);
    min-width: 112px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(9, 13, 20, 0.68);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.player-page .player-canvas-shell:hover .player-hover-toggle,
.player-page .player-canvas-shell:focus-within .player-hover-toggle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.player-page .player-hover-toggle:hover {
    background: rgba(220, 44, 44, 0.92);
}

.player-page .player-hover-progress-wrap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-page .player-hover-progress {
    position: relative;
    width: 100%;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.player-page .player-hover-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6d67, #e53935);
}

.player-page .player-hover-time {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.player-page .feature-card {
    margin-top: 22px;
}

@keyframes player-hover-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
    .player-page .player-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .player-page .player-workbench {
        padding: 14px;
    }
}

@media (max-width: 760px) {
    .player-page .page-container {
        padding-top: 10px;
    }

    .player-page .player-intro p {
        font-size: 0.92rem;
    }

    .player-page .player-toolbar-row {
        padding: 12px;
    }

    .player-page .player-input-text-url,
    .player-page .player-volume-wrap,
    .player-page .player-utility-wrap {
        min-width: 100%;
        flex-basis: 100%;
    }

    .player-page .player-sdk {
        min-height: 320px;
    }

    .player-page .player-hover-toggle {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
