/* ViewSong Page Styles */

.song-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.song-header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.song-header p {
    opacity: 0.9;
    margin-top: 0.5rem;
}

.song-header i {
    margin-right: 0.5rem;
}

.video-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #000;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #f0f0f0;
    width: 100%;
    max-height: 400px;
}

.video-placeholder img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.ad-container {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.ad-container.visible {
    display: block;
    visibility: visible;
    height: auto;
    overflow: visible;
    margin: 2rem 0;
    padding: 0;
}

.song-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .song-grid {
        grid-template-columns: 1fr 300px;
    }
}

.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.lyrics-text {
    white-space: pre-line;
    line-height: 1.8;
    color: #333;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.lyrics-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.lyrics-section:last-child {
    border-bottom: none;
}

.rating-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.rating-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-star {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
}

.sidebar {
    position: sticky;
    top: 2rem;
}

.related-songs-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.related-songs-card h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: #333;
}

.related-song-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: color 0.2s;
}

.related-song-item:hover {
    color: #667eea;
}

.related-song-item:last-child {
    border-bottom: none;
}

.related-song-link {
    text-decoration: none;
    color: inherit;
}

.metadata-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.metadata-section:last-child {
    border-bottom: none;
}

.metadata-label {
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}

.metadata-value {
    color: #333;
    margin-top: 0.25rem;
}

.metadata-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.metadata-link:hover {
    color: #764ba2;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .song-header h1 {
        font-size: 1.5rem;
    }

    .sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 640px) {
    .song-header {
        padding: 1rem;
    }

    .song-header h1 {
        font-size: 1.25rem;
    }

    .content-card {
        padding: 1rem;
    }
}
