* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

main {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.player-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.player-header h3 {
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

.player-header h3 span {
    color: #236DAD;
}

/* Contenedor principal de las columnas */
.Container-skin {
    display: flex;
    gap: 18px;
    width: 100%;
    height: auto;
    min-height: 480px;
    align-items: stretch;
}

/* Columna izquierda */
.container-skin-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Vista del skin */
.card-left-skin-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: #53525274 1px solid;
    border-radius: 10px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX4+Pj///9njiF9AAAAFklEQVQoz2P4DwQMIDDKwMoYDQi8DADzAv8BKis8ZwAAAABJRU5ErkJggg==);
}

.card-left-skin-viewer-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: end;
    align-items: end;
    position: absolute;
    top: 12px;
    right: 8px;
    pointer-events: none;
    z-index: 100;
}

.card-left-skin-viewer-controls button {
    display: flex;
    align-items: center;
    background-color: #808080;
    padding: 10px;
    pointer-events: auto;
    border-radius: 8px;
}

#viewer-container {
    width: 100%;
    height: 100%;
}

.card-left-skin-viewer #skin-canvas {
    cursor: move;
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
}

.loading {
    position: absolute;
}

/* Columna derecha */
.container-skin-right {
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Bloque de perfiles */
.card-left-profiles {
    display: flex;
    flex-direction: column;
    border: #53525274 1px solid;
    border-radius: 10px;
}

.card-left-profiles-title {
    padding: 8px;
    width: 100%;
    background-color: #F8F8F8;
    border-bottom: 1px solid rgb(188, 188, 188);
    border-radius: 10px 10px 0px 0px;
}

.card-left-profiles-body {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    width: 100%;
    background-color: #fff;
    border-radius: 0px 0px 10px 10px;
}

/* Comando de cabeza */
.card-right-command {
    display: flex;
    flex-direction: column;
    border: #53525274 1px solid;
    border-radius: 10px;
    overflow-x: hidden;
}

.card-right-video{
    width: auto;
    height: 40vh;
    border-radius: 10px;
    border: #53525274 1px solid;
}

.card-right-command-title {
    padding: 8px;
    width: 100%;
    background-color: #F8F8F8;
    border-bottom: 1px solid rgb(188, 188, 188);
    border-radius: 10px 10px 0px 0px;
}

.card-right-command-body {
    display: flex;
    width: 100%;
    background-color: #fff;
    border-radius: 0px 0px 10px 10px;
    padding: 1rem;
    gap: 10px;
}

/* Select de versión */
#command-version {
    font-size: 14px;
    border: 1px solid #d8d5d5;
    border-radius: 6px;
    background-color: #f8f8f8;
    cursor: pointer;
    padding: 6px;
}

/* Bloque del comando */
.command-block {
    display: flex;
    align-items: center;
    width: 100%;
}

.command-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background-color: #f9f9f9;
    font-family: monospace;
    font-size: 13px;
    color: #333;
}

/* Botón copiar */
#copy-command-btn {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 0 6px 6px 0;
    background-color: #f0f0f0;
    cursor: pointer;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

#copy-command-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Responsividad */
@media (max-width: 1024px) {
    .Container-skin {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .container-skin-left,
    .container-skin-right {
        width: 100%;
    }

    #skin-canvas {
        width: 60%;
        height: auto;
    }
}

@media (max-width: 800px) {
    .player-header h3 {
        font-size: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .card-left-skin-viewer-controls button {
        font-size: small;
        padding: 8px;
    }

    .card-right-command-body {
        padding: 0.5rem;
    }
}
