* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
}

header {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #00ff88;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

.card {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.card h2 {
    margin-bottom: 15px;
    color: #00ff88;
}

.linha-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

input, select {
    flex: 1;
    padding: 10px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: white;
    border-radius: 4px;
}

button {
    background-color: #00ff88;
    color: #121212;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #00cc6a;
}

/* Filtros */
.filtros {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.btn-dia {
    background-color: #2a2a2a;
    color: white;
}

.btn-dia:hover, .btn-dia.active {
    background-color: #00ff88;
    color: black;
}

/* Cards de Treino */
.grid-treinos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.treino-item {
    background-color: #1f1f1f;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #00ff88;
}

.treino-item h3 {
    margin-bottom: 10px;
    color: #00ff88;
}

.treino-item p {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #ccc;
}

/* ===== Vídeo de demonstração (manequim) ===== */
.treino-item {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.treino-info {
    padding: 15px;
}

.demo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #ffffff; /* vídeos de manequim geralmente têm fundo branco */
}

.demo-vazio {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    color: #777;
    font-size: 0.85em;
    aspect-ratio: 16 / 9;
}

.tag-origem {
    background: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.treino-item h3 {
    margin: 10px 0;
}

.btn-youtube {
    display: inline-block;
    margin-top: 10px;
    background: #ff0000;
    color: #fff;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.btn-youtube:hover {
    background: #cc0000;
}

/* ===== Modal do YouTube ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.aberto {
    display: flex;
}

.modal-caixa {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.modal-conteudo-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
}

.modal-fechar {
    position: absolute;
    top: -44px;
    right: 0;
    background: #2a2a2a;
    color: #fff;
    padding: 8px 12px;
}

/* ===== Manequim 2D animado ===== */
.demo-anim {
    display: flex;
    background-color: #181b1e;
    aspect-ratio: auto;
}

.demo-anim figure {
    flex: 1;
    min-width: 0;
    position: relative;
}

.demo-anim figure + figure {
    border-left: 1px solid #2a2e33;
}

.demo-anim figcaption {
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 10px;
    color: #9aa3ab;
    background: rgba(0, 0, 0, 0.45);
    padding: 1px 6px;
    border-radius: 8px;
}

.mq { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.mq line { stroke-linecap: round; }
.mq .c  { stroke: #d5dbe0; fill: #d5dbe0; }   /* corpo */
.mq .l  { stroke: #7f8890; fill: #7f8890; }   /* membros do lado de longe */
.mq .f  { stroke: #00ff88; fill: #00ff88; }   /* músculo trabalhado */
.mq .fl { stroke: #00a85a; fill: #00a85a; }   /* músculo trabalhado (longe) */
.mq .tr { stroke-width: 6; stroke-linejoin: round; }
.mq .j  { fill: #5d666e; }                    /* articulações */
.mq .ap { fill: #3b4147; stroke: #3b4147; }   /* aparelho */
.mq .mt { fill: #a0a8b0; stroke: #a0a8b0; }   /* metal / pesos */
.mq .cb { stroke: #7c858d; fill: none; stroke-width: 1.2; }  /* cabo */
.mq .ch { stroke: #33383d; }                  /* chão */
