* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

body {
background: #111318;
color: #f1f1f1;
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;

gap: 18px;

padding: 40px 20px;
font-family: Arial, sans-serif;

}

/* عنوان */
h1 {
font-size: 36px;
text-align: center;
margin-bottom: 15px;
color: #ffffff;
}

/* توضیحات درس */
.content {
width: 850px;
max-width: 95%;
background: #1b1e24;
padding: 18px 22px;

border-radius: 12px;

line-height: 2;
font-size: 18px;

border: 1px solid #2a2e36;


}

/* کدها */
.codebox {
position: relative;


background: #0d0f12;

width: 700px;
max-width: 95%;

padding: 18px;

margin: 10px 0;

border-radius: 14px;

border: 1px solid #292d35;

box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);


}

/* خود کد */
.codebox code {
display: block;


white-space: pre;

font-family: Consolas, "Courier New", monospace;
font-size: 15px;

color: #e8e8e8;

line-height: 1.7;

overflow-x: auto;


}

/* دکمه تست */
.show {
display: inline-block;


background: #181b20;
color: #ffffff;

border: 1px solid #30343c;

padding: 8px 14px;

border-radius: 9px;

cursor: pointer;

margin-bottom: 12px;

font-size: 14px;

transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;


}

/* آیکون دکمه */
.show::before {
content: "▶";
margin-left: 7px;
font-size: 11px;
}

/* هاور */
.show:hover {
background: #22262d;
color: chartreuse;


border-color: chartreuse;

transform: translateY(-2px);


}

/* کلیک */
.show:active {
transform: translateY(0);
}

/* کدهای inline داخل متن */
.content code {
background: #111318;


color: #7dff5a;

padding: 2px 6px;

border-radius: 5px;

font-family: Consolas, "Courier New", monospace;


}

/* موبایل */
@media (max-width: 700px) {


body {
    padding: 25px 12px;
}

h1 {
    font-size: 28px;
}

.content {
    max-width: 100%;
    font-size: 16px;
    padding: 15px;
}

.codebox {
    max-width: 100%;
    padding: 14px;
}

.codebox code {
    font-size: 13px;
}
}
.video{
    width: 100%;
    height: 300px;
}
.video-container {
    width: 850px;
    max-width: 95%;
    background: #0d0f12;
    border: 1px solid #292d35;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    background: #000;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #181b20;
}

.video-controls button {
    background: #22262d;
    color: white;
    border: 1px solid #30343c;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
}

.video-controls button:hover {
    border-color: chartreuse;
    color: chartreuse;
}

#progress {
    flex: 1;
    cursor: pointer;
}

#time {
    font-family: Consolas, monospace;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .video-controls {
        gap: 5px;
        padding: 8px;
    }

    .video-controls button {
        padding: 6px 8px;
        font-size: 12px;
    }

    #time {
        font-size: 11px;
    }
}