/* BASE STYLES (Style 1: Standard Modern) */
.dq-player-wrap,
.dq-player-wrap * {
    box-sizing: border-box;
}

.dq-player-wrap {
    all: initial;
    /* Reset inherited styles */
    display: block;
    max-width: 736px;
    /* 800px * 0.92 */
    margin: 36px auto;
    /* 40px * 0.92 */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    font-size: 14.7px;
    /* 16px * 0.92 */
    background: transparent;
}

/* Font Size Options */
.dq-q-text.dq-f-small {
    font-size: 18px !important;
}

.dq-q-text.dq-f-medium {
    font-size: 22px !important;
}

.dq-q-text.dq-f-large {
    font-size: 28px !important;
}

.dq-progress-bar {
    background: #f1f5f9;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 40px;
}

.dq-progress-inner {
    background: #0f172a;
    height: 100%;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.dq-question-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    animation: dqFadeIn 0.5s ease-out;
    overflow: hidden;
}

.dq-media-container {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.dq-q-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 100%;
    /* Allow images to fill their container proportionally */
}

.dq-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.dq-video-wrap iframe,
.dq-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

@keyframes dqFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dq-q-index {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    display: block;
    margin-bottom: 5px;
}

.dq-q-text {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 30px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.dq-answer-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
    background: #fff;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.dq-ans-img-wrap {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.dq-answer-item:hover .dq-ans-img-wrap {
    transform: scale(1.1);
}

.dq-answer-item:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateX(5px);
}

.dq-answer-item.correct {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}

.dq-answer-item.wrong {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.dq-q-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.dq-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 16px 20px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    /* Allow buttons to share width */
    text-align: center;
}

.dq-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.dq-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dq-btn:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* STYLE 2: SOFT CARDS (Grey BG, No Border) */
.dq-style-2 .dq-answer-item {
    border: none;
    background: #f1f5f9;
    color: #475569;
}

.dq-style-2 .dq-answer-item:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

/* STYLE 3: HIGH CONTRAST (Dark Mode) */
.dq-style-3 .dq-question-card {
    background: #0f172a;
    color: #fff;
    padding: 40px;
    border-radius: 24px;
}

.dq-style-3 .dq-q-text {
    color: #fff;
}

.dq-style-3 .dq-answer-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dq-style-3 .dq-answer-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* STYLE 4: BOLD OUTLINE (Brutalist) */
.dq-style-4 .dq-question-card {
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
    border-radius: 0;
}

.dq-style-4 .dq-answer-item {
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 4px 4px 0 #cbd5e1;
}

.dq-style-4 .dq-answer-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.dq-style-4 .dq-btn {
    border-radius: 0;
    border: 3px solid #000;
    background: #fff;
    color: #000;
    box-shadow: 4px 4px 0 #000;
}

.dq-style-4 .dq-btn:hover {
    background: #000;
    color: #fff;
}

/* STYLE 5: NEON ACCENT (Future Tech) */
.dq-style-5 .dq-question-card {
    background: #111;
    border: 1px solid #333;
}

.dq-style-5 .dq-q-text {
    color: #fff;
    font-family: 'Courier New', monospace;
}

.dq-style-5 .dq-answer-item {
    border: 1px solid #333;
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
}

.dq-style-5 .dq-answer-item:hover {
    border-color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.dq-style-5 .dq-btn {
    background: #0f0;
    color: #000;
    font-family: 'Courier New', monospace;
}

/* STYLE 6: GLASSMORPHISM / GRADIENT */
.dq-style-6 .dq-player-wrap {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    padding: 30px;
    border-radius: 30px;
}

.dq-style-6 .dq-question-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dq-style-6 .dq-answer-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dq-style-6 .dq-answer-item:hover {
    background: #fff;
}

.dq-nav-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dq-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dq-nav-card {
    width: 25px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.dq-nav-card:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
}

.dq-nav-card.current {
    border-color: #0f172a;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 0 0 2px #0f172a10;
}

.dq-nav-card.correct {
    background: #22c55e !important;
    color: #fff !important;
    border-color: #22c55e !important;
}

.dq-nav-card.wrong {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

.dq-nav-card.skipped {
    background: #cbd5e1 !important;
    color: #475569 !important;
    border-color: #94a3b8 !important;
}