* {
    box-sizing: border-box;
}

:root {
    --bg: #0d0b0a;
    --panel: #171211;
    --panel2: #1c1715;
    --border: #2b2422;
    --orange: #e44a2b;
    --orange-hover: #d43e1e;
    --text: #e9e5e4;
    --muted: #8a8380;
    --dim: #5c5552;
    --green: #22a55a;
    --radius: 14px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(1100px 550px at 85% 0%, rgba(228, 74, 43, 0.1), transparent 60%), var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.tutorials-content {
    flex: 1;
    min-width: 0;
}

.tutorials-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 24px 80px;
    font-size: 14px;
}

.kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

.big-title {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.intro {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    max-width: 820px;
    margin-bottom: 48px;
}

.tut-section {
    margin-bottom: 48px;
}

.tut-heading {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.tut-num {
    color: var(--orange);
    margin-right: 2px;
}

.tut-body {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.warn-box {
    display: flex;
    gap: 14px;
    background: rgba(120, 40, 30, 0.12);
    border: 1px solid rgba(228, 74, 43, 0.25);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.warn-icon i { color: #d9705a; font-size: 16px; }

.warn-box b { font-size: 14px; color: #fff; display: block; margin-bottom: 4px; }
.warn-box p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.warn-box p b { display: inline; color: var(--text); }

.info-box {
    display: flex;
    gap: 14px;
    background: var(--panel);
    border: 1px solid #2e2521;
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.info-icon i { color: #7ab0f5; font-size: 16px; }

.info-box b { font-size: 14px; color: #fff; display: block; margin-bottom: 4px; }
.info-box p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.info-box a { color: var(--orange); text-decoration: none; }

.info-box.blue { background: rgba(25, 35, 55, 0.2); border-color: rgba(90, 140, 220, 0.2); }

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-thumb {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1a1512;
    border: 1px solid var(--border);
    transition: border-color 0.15s, transform 0.15s;
}

.video-thumb:hover {
    border-color: #3a322e;
    transform: translateY(-2px);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 9px;
    border-radius: 20px;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.15s, transform 0.15s;
}

.video-play i { margin-left: 3px; }

.video-thumb:hover .video-play {
    background: rgba(228, 74, 43, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
}

.video-caption {
    color: var(--muted);
    font-size: 13px;
}

.info-box.support { margin-top: 24px; }

@media (max-width: 760px) {
    .video-grid { grid-template-columns: 1fr; }
    .big-title { font-size: 34px; }
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
    --bg: #f2efec;
    --panel: #ffffff;
    --panel2: #f2ece8;
    --border: #e3dcd7;
    --text: #221d1a;
    --muted: #6f6761;
    --dim: #9b938c;
}

html[data-theme="light"] body {
    background: radial-gradient(1100px 550px at 85% 0%, rgba(228, 74, 43, 0.05), transparent 60%), var(--bg);
}

html[data-theme="light"] .big-title { color: #1c1714; }
html[data-theme="light"] .tut-heading { color: #221d1a; }

html[data-theme="light"] .warn-box {
    background: rgba(228, 74, 43, 0.06);
    border: 1px solid rgba(228, 74, 43, 0.28);
}
html[data-theme="light"] .warn-box b { color: #221d1a; }

html[data-theme="light"] .info-box { border-color: #e3dcd7; }
html[data-theme="light"] .info-box b { color: #221d1a; }
html[data-theme="light"] .info-box.blue {
    background: rgba(90, 140, 220, 0.08);
    border-color: rgba(90, 140, 220, 0.25);
}

html[data-theme="light"] .video-thumb { background: #ece6e1; }
html[data-theme="light"] .video-thumb:hover { border-color: #d8cfc9; }
