/* Font face - using Google Fonts for better reliability */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fef9e7;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    font-family: 'Pixelify Sans', sans-serif;
}

/* Main content */
.main-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Song container */
.song-container {
    padding: 30px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-info {
    width: 100%;
    max-width: 600px;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.error {
    text-align: center;
    color: #e74c3c;
    font-weight: 500;
    padding: 20px;
    background: #fdf2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* Song header */
.song-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.song-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Pixelify Sans', sans-serif;
}

.song-artist {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 0;
}

/* Song details */
.song-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #34495e;
    min-width: 140px;
    margin-right: 20px;
}

.detail-value {
    color: #2c3e50;
    text-align: right;
    flex: 1;
}

.detail-item.hint {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #e9ecef;
}

.detail-item.hint .detail-label {
    color: #e67e22;
}

.detail-item.hint .detail-value {
    color: #d35400;
    font-style: italic;
}

/* Context section */
.context-section {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.context-text {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.context-text:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.context-text::placeholder {
    color: #999;
}

/* Comments section */
.comments-section {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Pixelify Sans', sans-serif;
}

.comment-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-input:focus {
    border-color: #667eea;
}

.comment-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-btn:hover {
    background: #5a6fd8;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-textarea:focus {
    border-color: #667eea;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.comment-content {
    color: #34495e;
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.new-ponche-btn {
    margin: 30px auto 40px auto;
    display: block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    color: #2c3e50;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.new-ponche-btn:hover {
    background: linear-gradient(135deg, #7BB8D9 0%, #9FD3E6 100%);
    transform: translateY(-2px) scale(1.03);
}

/* Discussion link */
.discussion-link {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.discussion-link p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1rem;
}

.discussion-link p:last-child {
    margin-bottom: 0;
}

.discussion-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.discussion-link a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}



/* Video section */
.video-section {
    margin: 20px 0 30px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.video-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Pixelify Sans', sans-serif;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    width: 100%;
    height: 315px;
    border: none;
    display: block;
}

/* Video thumbnail styles */
.video-thumbnail-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 315px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-button-shape {
    fill: rgba(0, 0, 0, 0.8);
    transition: fill 0.3s ease;
}

.play-button-icon {
    fill: white;
}

.video-thumbnail:hover .play-button-shape {
    fill: #ff0000;
}

.video-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .logo {
        height: 50px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .song-container {
        padding: 20px;
        min-height: 300px;
    }
    
    .song-title {
        font-size: 1.8rem;
    }
    
    .song-artist {
        font-size: 1.1rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .video-container iframe {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }
    
    .logo {
        height: 40px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .song-container {
        padding: 15px;
        min-height: 250px;
    }
    
    .song-title {
        font-size: 1.5rem;
    }
    
    .context-section {
        padding: 15px;
    }
}
