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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
}

.mode-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 18px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-info h2 {
    color: #333;
    font-size: 24px;
    flex: 1;
}

.style-badge {
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.video-counter {
    color: #666;
    font-size: 16px;
}

#video-player {
    width: 100%;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feedback-section {
    margin: 30px 0;
    text-align: center;
}

.feedback-section p {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

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

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #ddd;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.like-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.dislike-btn:hover {
    border-color: #f44336;
    color: #f44336;
}

.feedback-btn.selected {
    transform: scale(1.05);
}

.like-btn.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.dislike-btn.selected {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.feedback-status {
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}

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

.keyboard-hint {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.keyboard-hint span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.admin-toggle {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.admin-btn, .back-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover, .back-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.back-btn {
    position: absolute;
    right: 0;
    top: 0;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.admin-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
}

.admin-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.video-list {
    max-height: 400px;
    overflow-y: auto;
}

.video-config-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.config-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.config-row:last-child {
    margin-bottom: 0;
}

.config-row label {
    min-width: 80px;
    color: #666;
    font-size: 14px;
}

.config-row input, .config-row select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.save-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.feedback-data button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn {
    background: #2196F3;
    color: white;
}

.export-btn {
    background: #FF9800;
    color: white;
}

.clear-btn {
    background: #f44336;
    color: white;
}

.feedback-data button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.feedback-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.feedback-table th {
    background: #667eea;
    color: white;
    padding: 10px;
    text-align: left;
}

.feedback-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.feedback-table .likes {
    color: #4CAF50;
    font-weight: 600;
}

.feedback-table .dislikes {
    color: #f44336;
    font-weight: 600;
}

.total-feedback {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.comment-section {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
}

.comment-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.comment-input-container {
    margin-bottom: 20px;
}

#comment-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#comment-input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-comment-btn {
    margin-top: 10px;
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.no-comments {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

.comment {
    background: white;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.comment:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment.own-comment {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f3ff 100%);
    border-color: #d0d7ff;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.comment-author {
    font-weight: 600;
    color: #667eea;
}

.comment-time {
    color: #999;
}

.comment-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .mode-container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .admin-content {
        grid-template-columns: 1fr;
    }
    
    .feedback-buttons {
        flex-direction: column;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .keyboard-hint {
        order: -1;
        margin-bottom: 10px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}