/* 允良營造工法頁：左側頁籤 + YouTube 播放器 + 可跳段步驟清單。
   版型內嵌在 craft_a/b/c.html 的 <style>，三頁完全相同，這裡收成一份。 */
.player-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            background: #000;
        }

        .player-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .step-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin: 10px 0 30px 0;
        }

        .step-btn {
            background: rgba(255, 255, 255, 0);
            color: #000;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
        }

        .step-btn.active {
            background: rgba(255, 255, 255, 0);
            color: #d25d2f;
        }

        .step-btn:hover:not(.active) {
            color: #d25d2f;
        }

        .tabwidth {
            padding-right: 30px !important;
            overflow: visible !important;
        }

        .nav-item {
            overflow: visible !important;
            margin-bottom: 8px;
        }

        .nav-stacked .nav-link {
            position: relative;
            transition: all 0.3s ease;
            border: none;
            color: #333;
            padding: 12px 20px;
            background-color: transparent;
            display: block;
            width: 100%;
        }

        .nav-stacked .nav-link:hover:not(.active) {
            background-color: rgba(210, 93, 47, 0.2) !important;
            color: #d25d2f !important;
            padding-left: 30px;
            border-radius: 10px !important;
        }

        .nav-stacked .nav-link.active {
            background-color: #d25d2f !important;
            color: #fff !important;
            width: calc(100% - 0px) !important;
            border-radius: 10px 0 0 10px !important;
            font-weight: bold;
            z-index: 5;
        }

        .nav-stacked .nav-link.active::after {
            content: "";
            position: absolute;
            right: -24px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 27px 0 27px 25px;
            border-color: transparent transparent transparent #d25d2f;
            display: block !important;
            visibility: visible !important;
            z-index: 6;
        }
