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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 2.5em;
    letter-spacing: -0.5px;
}

.tagline {
    text-align: center;
    margin-bottom: 30px;
    color: #aaa;
    font-size: 1.1em;
    font-weight: 300;
    letter-spacing: 0.3px;
}

h2 {
    margin-bottom: 15px;
    color: #ffffff;
}

.media-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.file-upload {
    margin-bottom: 20px;
}

.file-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.file-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #3a3a3a;
    border: 2px solid #4a4a4a;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
}

.file-upload input[type="file"]:hover {
    border-color: #5a5a5a;
}

#media-player {
    width: 100%;
    max-height: 500px;
    background: #000;
    border-radius: 4px;
    margin-bottom: 20px;
}

.controls {
    background: #333;
    padding: 15px;
    border-radius: 4px;
}

.speed-control label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

#speed-value {
    color: #4CAF50;
    font-weight: bold;
}

#speed-slider {
    width: 100%;
    margin-bottom: 8px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #4a4a4a;
    border-radius: 3px;
    outline: none;
}

.floating-controls .controls-group:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.floating-controls .controls-group:first-child .control-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: auto;
}

.floating-controls .speed-control {
    width: 100%;
}

.floating-controls .speed-control label {
    font-size: 12px;
    margin-bottom: 6px;
}

.floating-controls .speed-presets {
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
}

.floating-controls .speed-presets button {
    padding: 6px 10px;
    font-size: 11px;
    flex: 0 1 calc(50% - 2px);
}

#speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

#speed-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.speed-presets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.speed-presets button {
    padding: 8px 16px;
    background: #4a4a4a;
    border: none;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.speed-presets button:hover {
    background: #5a5a5a;
}

.speed-presets button:active {
    background: #4CAF50;
}

.transcription-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
}

.transcription-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.transcription-controls button {
    padding: 10px 20px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.transcription-controls button:hover:not(:disabled) {
    background: #45a049;
}

.transcription-controls button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.transcription-controls button#load-srt-btn {
    background: #2196F3;
}

.transcription-controls button#load-srt-btn:hover {
    background: #0b7dda;
}

.transcription-controls button#export-srt-btn {
    background: #FF9800;
}

.transcription-controls button#export-srt-btn:hover:not(:disabled) {
    background: #e68900;
}

.subtitle-display {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 4px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid #3a3a3a;
}

.subtitle-text {
    font-size: 24px;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.subtitle-text.active {
    color: #4CAF50;
}

.transcript-timeline {
    max-height: 400px;
    overflow-y: auto;
    background: #1a1a1a;
    border-radius: 4px;
    padding: 10px;
}

.timeline-entry {
    padding: 12px;
    margin-bottom: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    border-left: 3px solid #4a4a4a;
    cursor: pointer;
    transition: all 0.2s;
}

.timeline-entry:hover {
    background: #3a3a3a;
    border-left-color: #4CAF50;
}

.timeline-entry.active {
    background: #3a3a3a;
    border-left-color: #4CAF50;
}

.timeline-entry .timestamp {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.timeline-entry .text {
    color: #e0e0e0;
}

.status {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 4px;
    text-align: center;
    min-height: 20px;
}

.status.info {
    color: #2196F3;
}

.status.success {
    color: #4CAF50;
}

.status.error {
    color: #f44336;
}

.status.warning {
    color: #FF9800;
}

/* Scrollbar styling */
.transcript-timeline::-webkit-scrollbar {
    width: 8px;
}

.transcript-timeline::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.transcript-timeline::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.transcript-timeline::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Stats Button Styling */
.transcription-controls button#stats-btn {
    background: #FF9800;
}

.transcription-controls button#stats-btn:hover {
    background: #e68900;
}

/* Settings Button Styling */
.transcription-controls button#settings-btn {
    background: #9C27B0;
    margin-left: auto;
}

.transcription-controls button#settings-btn:hover {
    background: #7B1FA2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.2s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #2a2a2a;
    margin: auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 2px solid #4a4a4a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-control::placeholder {
    color: #666;
}

.form-help {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.form-help a {
    color: #4CAF50;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.provider-settings {
    margin-top: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #3a3a3a;
}

.provider-settings.hidden {
    display: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}

.btn-primary {
    flex: 1;
    padding: 12px 24px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    flex: 1;
    padding: 12px 24px;
    background: #555;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #666;
}

/* Stats Display Styles */
.stats-display {
    color: #e0e0e0;
}

.stats-summary {
    margin-bottom: 30px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 4px;
    border-left: 4px solid #FF9800;
}

.stats-summary h3 {
    margin-bottom: 12px;
    color: #FF9800;
}

.stats-summary p {
    margin: 8px 0;
    font-size: 14px;
}

.stats-summary strong {
    color: #ffffff;
}

.stats-frequency {
    margin-top: 20px;
}

.stats-frequency h3 {
    margin-bottom: 15px;
    color: #FF9800;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.stats-table thead {
    background: #3a3a3a;
}

.stats-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #FF9800;
    border-bottom: 2px solid #4a4a4a;
}

.stats-table td {
    padding: 12px;
    border-bottom: 1px solid #3a3a3a;
    color: #e0e0e0;
}

.stats-table tbody tr:hover {
    background: #2a2a2a;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* Heatmap Styles */
.stats-heatmap {
    margin: 25px 0;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

.stats-heatmap h3 {
    margin-bottom: 15px;
    color: #4CAF50;
}

.heatmap-container {
    margin-bottom: 15px;
}

.heatmap-bars {
    display: flex;
    gap: 1px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    padding: 2px;
}

.heatmap-bar {
    transition: opacity 0.2s;
    cursor: pointer;
    border-radius: 2px;
}

.heatmap-bar:hover {
    opacity: 0.8;
    filter: brightness(1.2);
}

.heatmap-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.heatmap-label {
    flex: 0 0 auto;
}

.heatmap-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #3a3a3a;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #b0b0b0;
}

.legend-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #4a4a4a;
}

/* Scratchpad Section */
.scratchpad-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.scratchpad-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .scratchpad-container {
        grid-template-columns: 1fr;
    }
}

.scratchpad-current {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #3a3a3a;
}

.scratchpad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a3a;
}

.scratchpad-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em;
}

.scratchpad-segment-info {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

#scratchpad-input {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 2px solid #4a4a4a;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
}

#scratchpad-input:focus {
    outline: none;
    border-color: #4CAF50;
}

#scratchpad-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1a1a1a;
}

.scratchpad-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.scratchpad-actions button {
    flex: 1;
    padding: 10px 20px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.scratchpad-actions button:hover {
    background: #45a049;
}

.scratchpad-actions button#export-notes-btn {
    background: #2196F3;
}

.scratchpad-actions button#export-notes-btn:hover {
    background: #0b7dda;
}

.scratchpad-history {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #3a3a3a;
}

.scratchpad-history h3 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 1.1em;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a3a;
}

.scratchpad-segments {
    max-height: 500px;
    overflow-y: auto;
}

.scratchpad-segments::-webkit-scrollbar {
    width: 8px;
}

.scratchpad-segments::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.scratchpad-segments::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.scratchpad-segments::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

.segment-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-left: 3px solid #2196F3;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.segment-card:hover {
    background: #333;
    border-left-color: #4CAF50;
}

.segment-card.locked {
    border-left-color: #FF9800;
    opacity: 0.9;
}

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

.segment-time {
    font-size: 0.85em;
    color: #4CAF50;
    font-weight: 500;
}

.segment-badge {
    font-size: 0.75em;
    padding: 3px 8px;
    background: #FF9800;
    color: white;
    border-radius: 3px;
    font-weight: 500;
}

.segment-date {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
}

.segment-notes {
    margin-top: 10px;
}

.note-item {
    background: #1a1a1a;
    border-left: 2px solid #4a4a4a;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 3px;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-timestamp {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 5px;
}

.note-text {
    color: #e0e0e0;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.no-notes {
    color: #888;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
}

/* Fullscreen Video Player Mode */
.fullscreen-mode {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #000000;
    z-index: 2000;
    overflow: hidden;
}

/* Notes Panel (Left Side - 33%) */
.notes-panel {
    width: 33%;
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    overflow: hidden;
    padding-top: 0;
}

/* Notes History Container (Scrollable, Reverse Order) */
.notes-history-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column-reverse;
}

.notes-history-container .note-item {
    opacity: 0.6;
    background: #2a2a2a;
    border-left: 2px solid #4a4a4a;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.notes-history-container .note-item:hover {
    opacity: 0.8;
}

.notes-history-container .note-timestamp {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 5px;
}

.notes-history-container .note-text {
    color: #e0e0e0;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Scrollbar for notes history */
.notes-history-container::-webkit-scrollbar {
    width: 8px;
}

.notes-history-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.notes-history-container::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.notes-history-container::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Active Notes Container (Bottom Section) */
.notes-active-container {
    padding: 20px;
    background: #2a2a2a;
    border-top: 1px solid #333;
}

.notes-active-container h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1em;
}

.notes-active-container .subtitle-info {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.notes-active-container textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: #1a1a1a;
    border: 2px solid #4a4a4a;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
}

.notes-active-container textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.notes-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.notes-actions button {
    flex: 1;
    padding: 10px 20px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.notes-actions button:hover {
    background: #45a049;
}

.notes-actions button.secondary {
    background: #555;
}

.notes-actions button.secondary:hover {
    background: #666;
}

/* Video Panel (Right Side - 67%) */
.video-panel {
    width: 67%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #000000;
}

.video-panel video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

/* Subtitle Overlay (Positioned at Bottom Center) */
.subtitle-overlay {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.subtitle-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Single Subtitle Display */
.subtitle-display-single {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.subtitle-display-single .subtitle-text {
    font-size: 32px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    font-weight: 500;
}

/* Subtitle Navigation Controls */
.subtitle-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    pointer-events: auto;
}

.nav-btn {
    padding: 10px 20px;
    background: rgba(74, 74, 74, 0.9);
    border: none;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(76, 175, 80, 0.9);
    transform: scale(1.05);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    background: rgba(74, 74, 74, 0.9);
    transform: scale(1);
}

/* Subtitle Toggle Button */
.subtitle-toggle {
    position: absolute;
    bottom: 280px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(74, 74, 74, 0.9);
    border: none;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    z-index: 11;
}

.subtitle-toggle:hover {
    background: rgba(76, 175, 80, 0.9);
}

/* Floating Controls (Top of Notes Panel) */
.floating-controls {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 15;
    pointer-events: auto;
    background: #2a2a2a;
    padding: 12px 15px;
    border-radius: 4px;
    border-bottom: 1px solid rgba(74, 74, 74, 0.8);
    margin-bottom: 10px;
}

.control-btn {
    padding: 10px 16px;
    background: rgba(76, 175, 80, 0.9);
    border: 1px solid rgba(76, 175, 80, 0.8);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    box-shadow: none;
    min-width: auto;
    text-align: center;
    flex: 1;
}

.control-btn:hover {
    background: rgba(76, 175, 80, 1);
    border-color: rgba(76, 175, 80, 1);
    transform: scale(1.02);
    box-shadow: none;
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.danger {
    background: rgba(244, 67, 54, 0.95);
    border-color: rgba(244, 67, 54, 0.8);
}

.control-btn.danger:hover {
    background: rgba(211, 47, 47, 0.95);
    border-color: rgba(211, 47, 47, 0.8);
}

.control-btn.secondary {
    background: rgba(85, 85, 85, 0.95);
    border-color: rgba(102, 102, 102, 0.8);
}

.control-btn.secondary:hover {
    background: rgba(102, 102, 102, 0.95);
    border-color: rgba(119, 119, 119, 0.8);
}

/* Speed Control Display in Fullscreen */
.fullscreen-speed-display {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 16px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(74, 74, 74, 0.8);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.fullscreen-speed-display .speed-value {
    color: #4CAF50;
    font-weight: bold;
}

/* Empty State for Notes */
.notes-history-container .empty-state {
    opacity: 0.6;
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .notes-panel {
        width: 40%;
    }

    .video-panel {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .fullscreen-mode {
        flex-direction: column;
    }

    .notes-panel {
        width: 100%;
        height: 40vh;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .video-panel {
        width: 100%;
        height: 60vh;
    }

    .subtitle-display-single .subtitle-text {
        font-size: 24px;
    }
}
