.vds-player-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- PLAYER AREA --- */
.vds-player-area {
    background: #3c4b57;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vds-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    background: #000;
}

/* --- HINT MODAL --- */
.vds-hint-modal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.vds-hint-modal-content {
    width: 90%;
    height: 90%;
    background: #1a202c;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.vds-hint-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    color: white;
    font-size: 28px;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.vds-hint-close-btn:hover {
    color: #e53e3e;
}

.vds-hint-modal-content h3 {
    margin-top: 0;
    text-align: center;
    color: #edf2f7;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.vds-hint-split {
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 0;
}

.vds-hint-left,
.vds-hint-right {
    flex: 1;
    background: #000;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vds-hint-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vds-hint-img-display {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vds-hint-img-fallback {
    color: #a0aec0;
    font-style: italic;
}

.vds-hint-vid-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#vds-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vds-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.vds-overlay-play:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vds-flag-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(229, 62, 62, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    animation: pulse 1s infinite;
    z-index: 10;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vds-result-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #48bb78;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid #48bb78;
    z-index: 10;
}

.vds-result-overlay.bad {
    color: #f56565;
    border-color: #f56565;
}

.vds-countdown-overlay {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

.vds-timeline {
    width: 100%;
    height: 16px;
    background: #555555;
    position: relative;
    cursor: pointer;
}

.vds-progress {
    height: 100%;
    background: #38a169;
    width: 0%;
    transition: width 0.1s linear;
    z-index: 1;
    position: relative;
}

.vds-score-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: none;
}

.vds-zone {
    height: 100%;
    position: absolute;
    top: 0;
}

.vds-z5 {
    background: #007236;
}

/* Dark Green */
.vds-z4 {
    background: #8dc63f;
}

/* Light Green */
.vds-z3 {
    background: #fff200;
}

/* Yellow */
.vds-z2 {
    background: #f7941d;
}

/* Orange */
.vds-z1 {
    background: #ed1c24;
}

/* Red */

.vds-flag-mark {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.vds-flag-mark::after {
    content: "🚩";
    position: absolute;
    top: -24px;
    left: -10px;
    font-size: 20px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.vds-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #2a353f;
    border-bottom: 2px solid #3c4b57;
}

.vds-controls-left {
    display: flex;
    gap: 10px;
}

.vds-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2196f3;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vds-btn-circle:hover {
    background: #1976d2;
}

.vds-icon-play::before {
    content: "▶";
    margin-left: 2px;
}

.vds-icon-replay::before {
    content: "↻";
    font-weight: bold;
}

.vds-controls-right .vds-hint-btn {
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* NAV BUTTONS */
.vds-nav-buttons {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    background: #e2e8f0;
}

.vds-nav-btn {
    flex: 1;
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.vds-nav-btn:hover {
    background: #1976d2;
}

.vds-space-btn {
    flex: 2;
}

/* INFO BOARD */
.vds-info-board {
    background: #3c4b57;
    padding: 20px;
    color: white;
    border-radius: 0 0 8px 8px;
}

.vds-info-top {
    display: flex;
    justify-content: space-around;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.vds-info-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.vds-board-btn {
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.bg-orange {
    background: #ed8936;
}

.bg-orange:hover {
    background: #dd6b20;
}

.bg-red {
    background: #e53e3e;
}

.bg-red:hover {
    background: #c53030;
}

/* FILTERS */
.vds-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    max-width: 1000px;
}

.vds-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.vds-filter-group select {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    min-width: 200px;
}

/* CHAPTER & GRID */
.vds-chapters-container {
    max-width: 1000px;
    margin: 0 auto;
}

.vds-chapter {
    margin-bottom: 20px;
}

.vds-chapter-title {
    background: #d6bcfa;
    padding: 10px 15px;
    font-weight: bold;
    color: #44337a;
    border-radius: 4px 4px 0 0;
}

.vds-grid-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid #cbd5e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #fff;
    overflow: hidden;
}

.vds-q-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
    transition: all 0.2s;
}

.vds-q-item:hover {
    background: #ebf8ff;
}

.vds-q-item.active {
    background: #bee3f8;
    border-color: #90cdf4;
    font-weight: bold;
}

.vds-q-text {
    font-size: 0.9rem;
    color: #2d3748;
}

.vds-q-score-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.vds-q-score-indicator.empty {
    display: none;
}

.vds-q-score-indicator.good {
    background: #48bb78;
    display: flex;
}

.vds-q-score-indicator.bad {
    background: #e53e3e;
    display: flex;
}

@media (max-width: 768px) {
    .vds-grid-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .vds-nav-buttons {
        flex-direction: column;
    }

    .vds-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .vds-grid-list {
        grid-template-columns: repeat(2, 1fr);
    }
}