/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* 헤더 스타일 */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* 메인 컨텐츠 */
.main-content {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

/* 타이머 섹션 */
.timer-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.timer-display {
    margin-bottom: 30px;
}

.time-left {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-label {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 버튼 스타일 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-tertiary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    font-size: 1.2rem;
    padding: 15px 30px;
}

.btn-audio {
    background: #ffc107;
    color: #333;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-audio.muted {
    background: #dc3545;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 루비 캐릭터 섹션 */
.character-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.ruby-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 루비 캐릭터 디자인 */
.ruby-character {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 루비 정적 이미지 */
.ruby-static {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ruby-static:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 루비 비디오 */
.ruby-video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 말풍선 */
.speech-bubble {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

#speechText {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

/* 가이드 섹션 */
.guide-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
}

.guide-section.active {
    display: block;
}

.guide-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 2rem;
}

.exercise-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
}

/* 통계 섹션 */
.stats-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.stats-section h3 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 푸터 */
.footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

.credits {
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.modal-header h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 모달 루비 캐릭터 */
.ruby-character-modal {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ruby-video-modal {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: bounce 0.8s ease-in-out infinite;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes stretch {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.2);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes wag {
    0% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}

/* 루비 애니메이션 상태 */
.ruby-character.excited .ruby-video {
    animation: bounce 1s ease-in-out infinite;
}

.ruby-character.happy .ruby-video {
    animation: bounce 0.5s ease-in-out 3;
}

.ruby-character.stretching .ruby-video {
    animation: stretch 2s ease-in-out;
}

.ruby-excited .ruby-character {
    animation: bounce 0.8s ease-in-out infinite;
}

/* 비디오 재생시 애니메이션 */
.ruby-video.playing {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .time-left {
        font-size: 3rem;
    }
    
    .timer-controls {
        justify-content: center;
    }
    
    .exercise-steps {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .time-left {
        font-size: 2.5rem;
    }
    
    .ruby-character {
        width: 150px;
        height: 150px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 자동 음소거 알림 애니메이션 */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.auto-mute-notification {
    animation: fadeInOut 3s ease-in-out;
}

/* 온라인 사용자 현황판 스타일 */
.online-users-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e8ed;
}

.online-users-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-badge {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

.users-container {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 15px;
    background: #f8f9ff;
}

.users-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.loading-users {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.user-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.user-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #4ecdc4;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3em;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-bottom: 4px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.user-nickname {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
    word-break: break-all;
    line-height: 1.2;
}

.user-status {
    font-size: 0.75em;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 2px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ecdc4;
    animation: blink 1.5s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.user-ip {
    font-size: 0.7em;
    color: #999;
    font-family: monospace;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 8px;
}

/* 내 카드 스타일 */
.user-item.my-card {
    border: 3px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    order: -1; /* 항상 맨 위에 표시 */
    position: relative;
}

.user-item.my-card::before {
    content: "👤 나";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #667eea;
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-item.my-card .user-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 3px solid white;
}

/* 닉네임 수정 관련 스타일 */
.nickname-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.edit-nickname-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.6;
    font-size: 0.8em;
}

.edit-nickname-btn:hover {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.nickname-edit-form {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.nickname-edit-form.active {
    display: flex;
}

.nickname-input {
    width: 100%;
    max-width: 150px;
    padding: 6px 8px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 0.8em;
    text-align: center;
    outline: none;
    font-family: inherit;
}

.nickname-input:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.nickname-buttons {
    display: flex;
    gap: 4px;
}

.nickname-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    font-size: 0.7em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.nickname-btn.save {
    background: #4ecdc4;
    color: white;
}

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

.nickname-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.nickname-btn.cancel:hover {
    background: #e0e0e0;
}

.user-item.new-user {
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 반응형 디자인 - 작은 화면용 */
@media (max-width: 768px) {
    .users-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 8px;
    }
    
    .user-item {
        min-height: 100px;
        padding: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }
    
    .user-nickname {
        font-size: 0.8em;
    }
    
    .user-status {
        font-size: 0.7em;
    }
    
    .user-ip {
        font-size: 0.65em;
    }
}

@media (max-width: 480px) {
    .users-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 6px;
    }
    
    .user-item {
        min-height: 90px;
        padding: 10px;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

/* 실시간 채팅 섹션 스타일 */
.chat-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e8ed;
}

.chat-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 400px; /* 고정 높이 */
}

.connection-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    font-size: 0.9em;
}

.connection-status.connected {
    background: #f0fff4;
    border-color: #90ee90;
    color: #006400;
}

.connection-status.disconnected {
    background: #fff0f0;
    border-color: #ffb6c1;
    color: #dc143c;
}

.online-count {
    font-weight: 600;
    color: #667eea;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 15px;
    background: #f8f9ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-message {
    background: white;
    border-radius: 12px;
    padding: 12px;
    animation: slideInUp 0.3s ease-out;
    word-wrap: break-word;
    max-width: 85%;
}

.chat-message.system-message {
    border-left: 3px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    align-self: center;
    max-width: 90%;
}

.chat-message.user-message {
    border-left: 3px solid #4ecdc4;
    background: linear-gradient(135deg, #f0fffe 0%, #e8fffe 100%);
    align-self: flex-start;
}

.chat-input-area {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 10px;
    background: white;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.95em;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.chat-input-container input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    outline: none;
    position: relative;
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.chat-send-btn:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.chat-author {
    font-weight: 600;
    color: #333;
    font-size: 0.85em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-content {
    color: #555;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.chat-time {
    font-size: 0.75em;
    color: #999;
    text-align: right;
}

.chat-nickname {
    display: inline-block;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-bottom: 2px;
}

.comment-input-area {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 15px;
    background: white;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.comment-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.comment-form button {
    align-self: flex-end;
    padding: 8px 16px;
    font-size: 0.9em;
    min-width: 100px;
}

/* 댓글 애니메이션 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 스크롤바 스타일 (댓글 리스트용) */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .comments-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .comments-list {
        max-height: 250px;
        padding: 10px;
    }
    
    .comment-form {
        gap: 8px;
    }
    
    .comment-form button {
        align-self: stretch;
    }
}
