.container-inner {
    max-width: 1100px;
    margin: 88px auto 28px;
    padding: 0 16px;
}

.breadcrumbs {
    color: #aab4bf;
    font-size: 13px;
    margin-bottom: 12px;
}

.breadcrumbs a {
    color: #aab4bf;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #fff;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.media-main {
    background: #0b1320;
    border-radius: 8px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-main img,
.media-main video {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.media-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.thumbs button {
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.thumbs button:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbs img {
    width: 84px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.thumbs button[data-type="video"] img {
    filter: brightness(0.75);
}

.thumbs button[data-type="video"]::after {
    content: "\25B6";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    line-height: 26px;
    text-align: center;
    pointer-events: none;
}

.ex-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #07101a;
    border-radius: 8px;
}

.ex-card img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.ex-card--expandable {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.ex-card__header {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ex-card__title {
    font-weight: 600;
    line-height: 1.2;
}

.ex-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 212, 59, 0.12);
    color: #ffd43b;
    border: 1px solid rgba(255, 212, 59, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.ex-instructions {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 10px;
    padding-top: 10px;
}

.ex-summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    color: #ffd43b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.ex-summary::-webkit-details-marker { display: none; }

.ex-summary::after {
    content: "▾";
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 2px;
}

details[open] > .ex-summary::after { transform: rotate(180deg); }

.ex-steps {
    margin: 10px 0 0 18px;
    color: #c9d6e1;
    font-size: 13px;
    display: grid;
    gap: 5px;
    line-height: 1.55;
    padding: 0;
}

.ex-steps li { padding-left: 2px; }

.ex-meta {
    font-size: 12px;
    color: #9fb1c7;
    margin-top: 10px;
    display: grid;
    gap: 5px;
    line-height: 1.5;
}

.ex-meta strong { color: #c9d6e1; font-weight: 600; }

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.meta-list li {
    font-size: 14px;
    color: #c9d6e1;
}

.cta {
    margin-top: 10px;
}

.thumb-placeholder {
    min-height: 0;
}

/* ── Machine page utilities ── */
.text-machine-muted { color: #9fb1c7; font-size: 13px; }
.text-machine-label { color: #c9d6e1; font-size: 13px; }
.text-machine-body { color: #c9d6e1; font-size: 14px; }
.feedback-alert { font-size: 13px; }
.img-viewer { max-height: 70vh; object-fit: contain; }

@media (max-width: 991px) {
    .container-inner {
        margin-top: 70px;
    }
}

@media (max-width: 768px) {
    .media-main {
        height: 280px;
    }

    .thumbs img {
        width: 70px;
        height: 46px;
    }

    .breadcrumbs {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .container-inner {
        margin-top: 64px;
    }

    .media-main {
        height: 220px;
    }

    .ex-card img {
        width: 56px;
        height: 42px;
    }
}
