.mrt-coding-player-wrapper {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
}

.mrt-coding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.mrt-coding-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1e293b;
}

.mrt-coding-video-block {
    background: #0f172a;
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-bottom: 30px;
}

.mrt-coding-text-block {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #475569;
}

.mrt-coding-text-block h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 15px;
}

.mrt-coding-quiz-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
}

.mrt-coding-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: 'Fira Code', monospace;
}

/* Back to Portal Link */
.mrt-coding-back-link {
    display: inline-block;
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.mrt-coding-back-link:hover {
    color: #0f766e;
    text-decoration: none;
}

/* Bottom Lesson Navigation */
.mrt-coding-lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.mrt-coding-nav-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 40%;
    text-align: center;
}

.mrt-coding-nav-prev {
    color: #64748b;
    background: #f1f5f9;
}
.mrt-coding-nav-prev:hover {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}

.mrt-coding-nav-portal {
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
}
.mrt-coding-nav-portal:hover {
    background: #ccfbf1;
    color: #0f766e;
    text-decoration: none;
}

.mrt-coding-nav-next {
    color: #fff;
    background: #0d9488;
}
.mrt-coding-nav-next:hover {
    background: #0f766e;
    color: #fff;
    text-decoration: none;
}

/* Lesson Content Template Styles */
.mrt-coding-lesson {
    line-height: 1.7;
    color: #334155;
}
.mrt-coding-lesson h2 {
    color: #0f766e;
    font-size: 1.3rem;
    border-bottom: 2px solid #99f6e4;
    padding-bottom: 8px;
    margin: 24px 0 12px;
}
.mrt-coding-lesson h3 {
    color: #1e293b;
    font-size: 1.05rem;
    margin: 20px 0 8px;
}
.mrt-coding-lesson ul {
    padding-left: 20px;
}
.mrt-coding-lesson li {
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .mrt-coding-lesson-nav {
        flex-direction: column;
    }
    .mrt-coding-nav-btn {
        max-width: 100%;
        width: 100%;
    }
}


/* ═══════════════════════════════════════════
   Pack UX-4 Dual-Pane Player Layout
   ═══════════════════════════════════════════ */
.mrt-coding-player-wrapper {
	max-width: 1400px;
	margin: 0 auto;
}
.mrt-coding-player-grid {
	display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .mrt-coding-player-grid {
        grid-template-columns: 2.2fr 1fr;
    }
}
.mrt-coding-player-main {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	padding: 2rem;
	border: 1px solid #e2e8f0;
}
.mrt-coding-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
}
.mrt-coding-header h2 {
	margin: 1rem 0 0 0;
	font-size: 1.75rem;
	color: #0f172a;
	font-weight: 700;
}
.mrt-coding-back-link {
	display: inline-block;
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}
.mrt-coding-back-link:hover {
	color: #0ea5e9;
}
.mrt-coding-content-area {
	margin-bottom: 2.5rem;
}
.mrt-coding-video-block {
	background: #f1f5f9;
	border-radius: 8px;
	overflow: hidden;
}
.mrt-video-placeholder {
	padding: 4rem 2rem;
	text-align: center;
	color: #94a3b8;
	font-size: 1.1rem;
}

/* Sidebar Playlist */
.mrt-coding-player-sidebar {
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	padding: 1.5rem;
	height: fit-content;
    position: sticky;
    top: 2rem;
}
.mrt-sidebar-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e2e8f0;
}
.mrt-sidebar-header h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 0.25rem 0;
}
.mrt-sidebar-header p {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
}
.mrt-playlist-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.mrt-playlist-items li a {
	display: flex;
	align-items: center;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	color: #334155;
	transition: all 0.2s ease;
	font-size: 0.95rem;
}
.mrt-playlist-items li a:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}
.mrt-playlist-items li.is-active a {
	border-color: #0ea5e9;
	background: #f0f9ff;
	color: #0284c7;
	font-weight: 600;
	box-shadow: inset 4px 0 0 #0ea5e9;
}
.mrt-pl-idx {
	font-weight: 600;
	width: 24px;
	color: #94a3b8;
}
.mrt-playlist-items li.is-active .mrt-pl-idx {
	color: #0284c7;
}
.mrt-pl-title {
	flex: 1;
	line-height: 1.4;
	margin-right: 0.5rem;
}
.mrt-pl-icon {
	font-size: 0.85rem;
	opacity: 0.5;
}
.status-completed .mrt-pl-icon, 
.status-in_progress .mrt-pl-icon {
	opacity: 1;
}

/* Quiz Block Fix in Sidebar Layout */
.mrt-coding-quiz-block {
	background: #f0fdfa;
	border: 1px solid #ccfbf1;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}
.mrt-coding-quiz-block h3 {
	margin: 0 0 0.75rem 0;
	color: #115e59;
}
.mrt-coding-quiz-block p {
	color: #0f766e;
	margin: 0 0 1rem 0;
}
