/*********************************** BASE-STYLE *****************************************/
/*********************************** BASE-STYLE *****************************************/
.class_AbsFlexCenter {
    box-sizing: border-box;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    float: left;
    cursor: pointer;
    overflow: hidden;
    
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;

    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    
    color: LightSteelBlue;
    font-size: 150px;         
}
.class_RelInline {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 50%;                           
}
.class_RelImage {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    background-size: contain;
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}
.class_TheAbs {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;  
    width: 100%;  
}
.class_TheRel {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;  
    width: 100%;  
}
.class_RelFlex {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;                          
}
.class_RelButton {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}

.class_FixedTopLeft {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 15px;
    left: 15px;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}
.class_FixedTopRight {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 15px;
    right: 15px;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}
/*********************************** BASE-STYLE *****************************************/
/*********************************** BASE-STYLE *****************************************/



.class_AbsFlexCenter.ContYT {
    width: 100%;
    height: 100%;          
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background-color: black;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.50) 0%, rgba(0,0,0,0.50) 100%), 
                      radial-gradient(at 50% 0%, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.50) 50%);
    background-blend-mode: soft-light, screen;
}
.class_TheRel.WrapYTModule {
    padding: 10px;
    border-radius: 12px;
}
/* ========== BODY LAYOUT ========== */
.class_RelFlex.YTSecBody {
    width: 100%;
    height: 100%;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1e2937;
}
.class_TheRel.YTSecLeft,
.class_TheRel.YTSecRight {
    height: 100%;
    border-radius: 14px;
    border: 1px solid white;
    background: white;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}
.class_TheRel.YTSecLeft {
    width: 35%;
    min-width: 220px;           /* ← Add this */
    max-width: 75%;
}
.class_TheRel.YTSecRight {
    width: 65%;
}

/* ========== PANEL HEADERS ========== */
/* ========== TOP HEADERS - Improved Version ========== */
.class_RelFlex.YTTopLeft {
    height: 60px;
    background: transparent;
}

.class_TheRel.YTTopRight {
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0.92) 0%, 
        rgba(15, 23, 42, 0.85) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.class_RelFlex.YTTopBadge {
    width: 120px;
    height: 100%;
    background: black;
    border-top-left-radius: 12px;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.class_RelFlex.YTHeaderTop {
    background: transparent;
    width: auto;
    height: 100%;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 700;
    font-size: 16px;
    color: #334155;
    text-align: left;
}

/* ========== CONTENT AREAS ========== */
.class_TheRel.YTWrapLeft {
    height: calc(100% - 60px); 
    padding: 8px;
}
.class_TheRel.YTWrapRight {
    height: calc(100% - 100px); 
    padding: 0;
}
.class_TheRel.YTWrapVideo {
    width: 100%;
    height: 100%;  
}

.class_TheRel.YT-image-area {
    padding: 20px;
    text-align: center;
}

.class_TheRel.YT-image-area img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    
    box-shadow: none;
    border: none;                                       
}

.YT-topic-box {
    background: #fefce8;
    border-left: 6px solid #eab308;
    padding: 18px;
    border-radius: 10px;
    margin: 12px;
    line-height: 1.65;
    text-align: left;
}

.class_RelFlex.WrapperYTArea {
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    padding: 10px;
    padding-bottom: 0;
}

/* ==================== TIMESTAMP POLE ==================== */
.class_TheRel.YT-ThinPole {
    width: 68px;
    height: 100%;
    background: transparent;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.35s ease;
    flex-shrink: 0;
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.03);
    display: none;
}
.class_TheRel.YT-ThinPole.Hidden {
    display: none;
}
.class_TheRel.YT-ThinPole.Display {
    display: inline;
}

/* Individual timestamp items */
.yt-pole-item {
    padding: 6px 6px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.yt-pole-item:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.yt-pole-item.active {
    background: #bfdbfe;
    color: #1e40af;
    font-weight: 700;
}


.class_TheRel.YT-textarea {
    font-family: var(--fontFamilyArvo);
    width: 100%;
    height: 100%;
    padding: 16px;
    border: 4px solid #e2e8f0;
    border-radius: 12px;
    font-size: 24px;
    resize: none;
    background: #fafafa;
    overflow: auto;
    user-select: text;
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='15' y='4' width='4' height='30' fill='blue'/%3E%3C/svg%3E") 16 16, text;
}

.class_TheRel.YT-textarea:focus {
    outline: none;
    border: 4px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.class_TheRel.YT-textarea.Narrow {
    width: calc(100% - 68px) !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* Word Count */
.YT-word-count {
    width: 100%;
    height: 40px;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    padding: 6px 4px 0;
    font-weight: 600;
}

/* ========== RESIZER - TOP ONLY (clean) ========== */
.class_YTResizeHandle {
    width: 12px;
    height: 100px;                    /* Only top area */
    background: transparent;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;           /* Stay at top */
    margin-top: 0;
}

.class_YTResizeHandle:hover {
    background: rgba(148, 163, 184, 0.2);
}

.class_YTResizeGrip {
    width: 5px;
    height: 50px;
    background: #64748b;
    border-radius: 9999px;
}

.class_AbsFlexCenter.LeftTubeYT {
    left: calc(100% - 170px);
    width: 170px;
    height: 100%;
}

.class_RelImage.YTTask1 {
    margin-bottom: 20px;
    width: 100%;
    height: calc(100% - 50px);  
    min-height: 400px;
    
    background: lemonchiffon;
    background: transparent;
}
/* ========== CONTROL BUTTONS ========== */
.class_RelFlex.YT-control-btn {
    width: 85px;
    height: 32px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.YT-control-btn.Model {
    background: linear-gradient(135deg, #92400e, #d97706, #fbbf24);
}
.YT-control-btn.Clear {
    background: linear-gradient(135deg, #475569, #334155);
}
.YT-control-btn.Score {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.YT-control-btn.Submit {
    background: linear-gradient(135deg, #ff1493, #c71585);
}
.YT-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== TIMER ========== */
.class_AbsFlexCenter.YT-timer {
    top: 15px;
    left: 15px;
    width: 100px;
    height: auto;
    background: #1e2937;
    color: #f1f5f9;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    user-select: none;
}

.YT-timer.warning {
    background: #dc2626;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ========== MODEL ANSWER ========== */
.YT-model-answer {
    background: #f0fdf4;
    border: 2px solid #4ade80;
    border-radius: 10px;
    padding: 16px;
    margin: 12px;
    font-size: 14.5px;
    line-height: 1.65;
    display: none;
}

.YT-model-answer.show {
    display: block;
}

/* ========== FONT SIZE TOGGLE ========== */
.YT-font-btn {
    width: 32px;
    height: 32px;
    background: #e0f2fe;
    color: #0369a1;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.YT-font-btn:hover {
    background: #bae6fd;
}



/* ============================================= */
/* ============== YOUTUBE INTEGRATION ============ */
/* ============================================= */

#id_YTTopRight {
    height: 100px;
    background: rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-sizing: border-box;
}

/* URL Container */
.yt-url-container {
    width: calc(100% - 80px);
    height: 34px;
    background: rgba(255,255,255,0.95);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 3px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#ytUrlInput {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 12px;
    color: #1e2937;
    padding: 0 6px;
    font-family: inherit;
}

/* Button Row */
.yt-button-row {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow: auto;
}

.class_RelFlex .yt-control-btn {
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

    width: 76px;
    height: 32px;
    margin-right: 5px;
    
    cursor: pointer;
    border: none;
    border-radius: 9999px; /* Full pill shape */
    background: linear-gradient(135deg, #1E3A8A, #3B82F6); /* Deep Royal → Bright Blue */
    background: linear-gradient(135deg, #2563eb, #3b82f6); /* DodgerBlue */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.yt-control-btn.wider {width: 100px;}

.yt-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.yt-control-btn.repeat-on {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Volume */
.yt-volume-control {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 12px;
    height: 38px;
    margin-right: 5px;
}

.yt-volume-control span {
    box-sizing: border-box;
    font-size: 21px;
    cursor: pointer;
    color: #64748b;
    user-select: none;
}

/* Timestamp Buttons */
.class_RelFlex .yt-timestamp-btn {
    box-sizing: border-box;
    width: 69px;
    height: 34px;
    margin-right: 5px;
    
    font-size: 11px;
    font-weight: 600;
    background: #f8fafc;
    color: #475569;
    
    border: 2px solid #cbd5e1;
    border-radius: 9999px;
    transition: all 0.2s;
}

.yt-timestamp-btn.filled {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e40af;
    font-weight: 700;
}

/* Video Area */
#id_YTWrapVideo {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    position: relative;
}

#player, #id_YTWrapVideo iframe {
    width: 100% !important;
    height: 100% !important;
}



/* ============================================= */
/* ========== YOUTUBE SCROLL TEXT (Overlay) ==== */
/* ============================================= */

#id_ContScrollTextYT {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#id_SecTopScrollTextYT {
    height: 48px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    flex-shrink: 0;
}

#id_SecBodyScrollTextYT {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 12px;
}

#id_ScrollTextYT {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    white-space: pre-wrap;
    font-family: var(--fontFamilyArvo);
    font-size: 28px;
    line-height: 1.45;
    color: #1e2937;
    padding: 20px;
    box-sizing: border-box;
}

#id_ScrollTextYT:hover {
    animation-play-state: paused;
    opacity: 0.9;
}

/* Keep your existing keyframe */
@keyframes scrollTextUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}
.ScrollTextSpeedYT {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.ScrollTextSpeedYT.Active {
    background: #0369a1;
    color: white;
}

#id_ScrollTextFontSizeYT,
#id_ScrollTextSplitYT,
#id_ScrollTextRefreshYT,
#id_ScrollTextCloseYT {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #475569;
    cursor: pointer;
    border-radius: 6px;
}

#id_ScrollTextFontSizeYT:hover,
#id_ScrollTextSplitYT:hover,
#id_ScrollTextRefreshYT:hover,
#id_ScrollTextCloseYT:hover {
    background: #f1f5f9;
}




