:root {
    --primary: #2E8B57;
    --primary-light: rgba(46, 139, 87, 0.1);
    --secondary: #FF6B35;
    --dark: #1C1E2A;
    --darker: #171822;
    --light-text: #f8f9fa;
    --accent: #FFD700;
    --bengali-green: #006A4E;
    --bengali-red: #F42A41;
    --speaking-blue: #4A90E2;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light-text);
    line-height: 1.6;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
}

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

.sidebar {
    width: 80px;
    background: linear-gradient(180deg, var(--darker), rgba(28, 30, 42, 0.95));
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    height: 100vh;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--speaking-blue), var(--primary));
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.nav-item {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(46, 139, 87, 0.1));
    color: white;
    transform: translateY(-2px);
    border-color: rgba(74, 144, 226, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--speaking-blue), var(--primary));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--speaking-blue);
    border-radius: 0 4px 4px 0;
}

.nav-item i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-item:hover::after {
    opacity: 1;
    visibility: visible;
    margin-left: 15px;
}

.main-content-wrapper {
    flex: 1;
    margin-left: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    width: 100%;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand span {
    background: linear-gradient(135deg, var(--speaking-blue), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.points-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.points-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.points-badge.overall {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.points-details {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.point-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.point-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.point-item i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Responsive points section */
@media (max-width: 768px) {
    .points-section {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    /* Hide the detailed points breakdown in mobile view */
    .points-details {
        display: none !important;
    }
    
    .point-item {
        display: none !important;
        font-size: 0.75rem;
    }
}

.rating-badge {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.05));
    border: 1px solid var(--speaking-blue);
    color: var(--speaking-blue);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 0;
    overflow: hidden;
    padding: 0 20px;
}

.video-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
}

.topic-display {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.15), rgba(46, 139, 87, 0.05));
    border: 2px solid var(--primary);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.topic-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.topic-title-bangla {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.topic-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.conversation-starters {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
}

.conversation-starters h4 {
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.starter-list {
    list-style: none;
    padding: 0;
}

.starter-list li {
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.starter-list li::before {
    content: "💡";
    margin-right: 8px;
}

.status-bar {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    flex-shrink: 0;
}

.status-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.recording-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--danger);
    font-size: 0.9rem;
}

.recording-indicator.active {
    display: flex;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.videos-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    min-height: 0;
    overflow: hidden;
}

.video-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.video-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    font-weight: 500;
    text-align: center;
    position: relative;
}

.speaking-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    display: none;
    animation: pulse 1s infinite;
}

.speaking-indicator.active {
    display: block;
}

video {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.control-btn {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    color: white;
    position: relative;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover::before {
    opacity: 1;
}

.record-btn {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.record-btn:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.record-btn.recording {
    background: linear-gradient(135deg, var(--success), #059669);
    animation: pulse 2s infinite;
}

.end-btn {
    background: linear-gradient(135deg, var(--warning), #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.end-btn:hover {
    background: linear-gradient(135deg, #d97706, var(--warning));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.video-toggle-btn {
    background: linear-gradient(135deg, var(--speaking-blue), #3a7bd5);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.video-toggle-btn:hover {
    background: linear-gradient(135deg, #3a7bd5, var(--speaking-blue));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.video-toggle-btn.off {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.video-toggle-btn.off:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger));
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.conversation-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: none; /* Hidden on desktop - info shown in modal instead */
    flex-direction: column;
    overflow: hidden;
}

.conversation-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.conversation-info {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 400px);
}

.conversation-info::-webkit-scrollbar {
    width: 8px;
}

.conversation-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.conversation-info::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.info-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.info-section h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.contest-timer {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 2px solid var(--danger);
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

.timer-display {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 0;
    font-family: 'Inter', monospace;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.timer-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.timer-display.warning {
    animation: pulse-warning 1s infinite;
}

@keyframes pulse-warning {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.video-overlay.show {
    display: block;
}

.info-modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.info-modal.hidden {
    display: none;
}

.info-modal-content {
    background: var(--dark);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.info-modal-header {
    text-align: center;
    margin-bottom: 15px;
}

.info-modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.info-modal-body {
    margin-bottom: 25px;
    margin-top: 10px;
}

.info-modal-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.info-modal-section h4 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.info-modal-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-modal-accept {
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--dark);
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(46, 139, 87, 0.3);
}

.accept-btn {
    background: linear-gradient(135deg, var(--primary), #228B22);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.5),
                0 4px 10px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-width: 250px;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.accept-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.accept-btn:hover::before {
    left: 100%;
}

.accept-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(46, 139, 87, 0.6),
                0 0 0 5px rgba(46, 139, 87, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #228B22, var(--primary));
    border-color: rgba(255, 255, 255, 0.5);
}

.accept-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4),
                0 0 0 2px rgba(46, 139, 87, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.accept-btn i {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.analysis-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.analysis-content {
    background: var(--dark);
    margin: 2% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-header {
    text-align: center;
    margin-bottom: 25px;
}

.analysis-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.winner-announcement {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--success);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.winner-announcement.loser {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

.analysis-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.transcript-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.transcript-section h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.transcript-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #5b8ce8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.user-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: #252836;
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Enhanced Mobile Layout - Optimized for No Scrolling */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    .main-content-wrapper {
        margin-left: 0;
        padding: 8px;
        height: 100vh;
        overflow: hidden;
    }
    
    .sidebar { display: none; }
    .nav-item::after { display: none; }

    .container {
        height: 100vh;
        min-height: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Compact header - everything in one line */
    .header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 10px;
        padding: 6px 8px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    .brand { 
        justify-content: flex-start;
        flex-shrink: 0;
    }
    .brand span { 
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .user-menu { 
        flex-direction: row;
        align-items: center;
        gap: 4px;
        flex: 1;
        justify-content: flex-end;
    }
    .points-section { 
        flex-direction: row;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;
    }
    .points-badge { 
        padding: 3px 6px;
        font-size: 0.65rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .points-details { 
        display: flex;
        gap: 2px;
        padding: 2px 4px;
        font-size: 0.65rem;
        background: rgba(255, 255, 255, 0.03);
    }
    .point-item {
        padding: 1px 3px;
        font-size: 0.6rem;
        white-space: nowrap;
    }
    .point-item i {
        font-size: 0.55rem;
        display: none; /* Hide icons to save space */
    }
    .user-btn { 
        padding: 4px 8px;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .dropdown-content {
        right: 0;
        left: auto;
        min-width: 180px;
    }

    /* Main content fills remaining space */
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: auto;
        overflow: hidden;
    }

    /* Video section takes most space */
    .video-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: hidden;
    }

    /* Topic display - more compact for mobile */
    .topic-display { 
        padding: 6px 8px; 
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(46, 139, 87, 0.2), rgba(46, 139, 87, 0.1));
        flex-shrink: 0;
    }
    .topic-title { 
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    .topic-title-bangla { 
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    .topic-description { 
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    .conversation-starters {
        padding: 4px 6px;
        margin-top: 2px;
    }
    .conversation-starters h4 {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    .starter-list li {
        font-size: 0.65rem;
        padding: 1px 0;
    }

    /* Timer - VERY compact */
    .contest-timer { 
        padding: 8px 12px; 
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }
    .timer-display { 
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    .timer-label { 
        font-size: 0.75rem;
        margin-left: 10px;
    }

    .status-bar { 
        padding: 8px 12px; 
        border-radius: 10px;
        flex-shrink: 0;
    }
    .status-text { font-size: 0.9rem; }

    /* Videos - prioritize opponent video */
    .videos-container { 
        flex: 1;
        display: block;
        position: relative;
        min-height: 0;
    }

    /* Opponent video - takes full space */
    .video-wrapper:last-child {
        width: 100%;
        height: 100%;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }

    /* Own video - picture-in-picture overlay */
    .video-wrapper:first-child {
        position: absolute;
        bottom: 85px;
        right: 10px;
        width: 120px;
        height: 160px; /* Taller for better visibility */
        border-radius: 10px;
        overflow: hidden;
        z-index: 20; /* Above controls */
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        background: rgba(0, 0, 0, 0.8);
    }

    .video-wrapper { 
        min-height: auto;
    }
    .video-header { 
        padding: 4px 8px;
        font-size: 0.75rem;
        background: rgba(0, 0, 0, 0.7);
    }

    /* Controls - compact and fixed at bottom */
    .controls {
        gap: 12px;
        padding: 10px;
        position: fixed;
        bottom: 8px;
        left: 8px;
        right: 8px;
        z-index: 15; /* Higher than own video */
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        flex-shrink: 0;
    }
    .control-btn { width: 56px; height: 56px; font-size: 1.2rem; }

    /* Hide conversation panel on mobile */
    .conversation-panel { display: none; }

    /* Info modal - mobile optimized */
    .info-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .info-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .info-modal-accept {
        padding: 20px 0;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(34, 139, 34, 0.05));
        border-radius: 15px;
        border: 2px solid rgba(46, 139, 87, 0.2);
    }
    
    .accept-btn {
        padding: 20px 40px;
        font-size: 1.3rem;
        font-weight: 800;
        width: calc(100% - 40px);
        max-width: 100%;
        min-width: unset;
        border-radius: 50px;
        border: 4px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 30px rgba(46, 139, 87, 0.6),
                    0 4px 12px rgba(0, 0, 0, 0.3),
                    inset 0 3px 6px rgba(255, 255, 255, 0.4),
                    0 0 20px rgba(46, 139, 87, 0.4);
        background: linear-gradient(135deg, var(--primary), #228B22);
        margin: 0 auto;
        display: block;
        text-align: center;
        letter-spacing: 1px;
    }
    
    .accept-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 35px rgba(46, 139, 87, 0.7),
                    0 5px 15px rgba(0, 0, 0, 0.4),
                    inset 0 3px 6px rgba(255, 255, 255, 0.5),
                    0 0 25px rgba(46, 139, 87, 0.5);
    }
    
    .accept-btn:active {
        transform: translateY(0) scale(0.98);
    }
    
    .accept-btn i {
        font-size: 1.5rem;
        margin-right: 8px;
    }

    /* Modal polish - Enhanced for mobile */
    .analysis-content { 
        width: 96%; 
        padding: 15px; 
        border-radius: 16px; 
        max-height: 90vh;
        margin: 5% auto;
    }
    .analysis-header h2 { 
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    .analysis-header p {
        font-size: 0.85rem;
    }
    
    /* Winner announcement - mobile optimized */
    .winner-announcement {
        padding: 15px;
        margin-bottom: 15px;
    }
    .winner-announcement h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    .winner-announcement p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    /* Analysis details - mobile friendly */
    .analysis-details {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Transcript sections - mobile optimized */
    .transcript-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    .transcript-section h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .transcript-text {
        font-size: 0.8rem;
        padding: 8px;
        max-height: 150px;
        overflow-y: auto;
    }
    
    /* Action buttons - stack vertically on mobile */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Close button - easier to tap on mobile */
    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        right: 10px;
        top: 10px;
    }
}

/* Very small screens - even more compact */
@media (max-width: 480px) {
    .brand span { font-size: 0.7rem; }
    .user-btn { font-size: 0.65rem; padding: 3px 6px; }
    
    .points-badge { 
        padding: 2px 5px;
        font-size: 0.6rem;
    }
    .points-details { 
        font-size: 0.6rem;
        gap: 2px;
        padding: 2px 3px;
    }
    .point-item {
        font-size: 0.55rem;
        padding: 1px 2px;
    }
    .point-item i {
        display: none; /* Hide icons on small screens */
    }
    
    .topic-display {
        padding: 4px 6px;
    }
    
    .topic-title { 
        font-size: 0.8rem;
        margin-bottom: 1px;
    }
    .topic-title-bangla { 
        font-size: 0.7rem;
        margin-bottom: 1px;
    }
    .topic-description { 
        font-size: 0.65rem;
        line-height: 1.1;
        margin-bottom: 3px;
    }
    
    .conversation-starters {
        padding: 3px 4px;
        margin-top: 2px;
    }
    .conversation-starters h4 {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }
    .starter-list li {
        font-size: 0.6rem;
        padding: 0;
    }
    
    .timer-display { font-size: 1.2rem; }
    .timer-label { font-size: 0.7rem; }
    
    /* Own video - smaller on small phones, moved up */
    .video-wrapper:first-child { 
        width: 100px;
        height: 135px; /* Taller for better visibility */
        bottom: 90px;
        right: 8px;
    }
    
    .controls { gap: 10px; padding: 8px; }
    .control-btn { width: 52px; height: 52px; font-size: 1.1rem; }
    
    /* Analysis modal - extra compact for small phones */
    .analysis-content {
        width: 98%;
        padding: 12px;
        max-height: 92vh;
    }
    .analysis-header h2 {
        font-size: 1.05rem;
    }
    .analysis-header p {
        font-size: 0.8rem;
    }
    .winner-announcement {
        padding: 12px;
    }
    .winner-announcement h3 {
        font-size: 1rem;
    }
    .winner-announcement p {
        font-size: 0.85rem;
    }
    .analysis-details {
        padding: 12px;
    }
    .transcript-section {
        padding: 10px;
    }
    .transcript-section h4 {
        font-size: 0.9rem;
    }
    .transcript-text {
        font-size: 0.75rem;
        max-height: 120px;
    }
    .action-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    /* Info modal - extra small screens */
    .info-modal-content {
        width: 98%;
        padding: 15px;
    }
    
    .info-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .info-modal-accept {
        padding: 18px 0;
        margin-bottom: 18px;
        background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(34, 139, 34, 0.05));
        border-radius: 15px;
        border: 2px solid rgba(46, 139, 87, 0.2);
    }
    
    .accept-btn {
        padding: 18px 35px;
        font-size: 1.2rem;
        font-weight: 800;
        width: calc(100% - 30px);
        max-width: 100%;
        min-width: unset;
        border-radius: 50px;
        border: 4px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 30px rgba(46, 139, 87, 0.6),
                    0 4px 12px rgba(0, 0, 0, 0.3),
                    inset 0 3px 6px rgba(255, 255, 255, 0.4),
                    0 0 20px rgba(46, 139, 87, 0.4);
        background: linear-gradient(135deg, var(--primary), #228B22);
        margin: 0 auto;
        display: block;
        text-align: center;
        letter-spacing: 1px;
    }
    
    .accept-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 35px rgba(46, 139, 87, 0.7),
                    0 5px 15px rgba(0, 0, 0, 0.4),
                    inset 0 3px 6px rgba(255, 255, 255, 0.5),
                    0 0 25px rgba(46, 139, 87, 0.5);
    }
    
    .accept-btn:active {
        transform: translateY(0) scale(0.98);
    }
    
    .accept-btn i {
        font-size: 1.4rem;
        margin-right: 8px;
    }
}