/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
    background: #f9fafb;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.15s;
}

a:hover {
    color: #1e40af;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, .btn {
    font-family: 'Inter', sans-serif;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    width: 100%;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.site-nav a {
    color: #6b7280;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}

.site-nav a:hover {
    color: #111827;
}

/* Content Layout - FLEX based */
.content-wrapper {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.sidebar-widget ul {
    list-style: none;
    padding-left: 0
}

.sidebar-widget li {
    margin-bottom: 12px;
}

.sidebar-widget a {
    color: #6b7280;
    font-size: 15px;
}

.sidebar-widget a:hover {
    color: #2563eb;
}

.sidebar-widget p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Sidebar Music */
.sidebar-music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.sidebar-music-item:hover {
    background: #f3f4f6;
}

.sidebar-music-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-music-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-music-thumb .thumb-placeholder {
    font-size: 20px;
    color: #9ca3af;
}

.sidebar-music-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-music-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-music-title a {
    color: #111827;
}

.sidebar-music-title a:hover {
    color: #2563eb;
}

.sidebar-music-meta {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-music-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.sidebar-music-play:hover {
    background: #1e40af;
}

.sidebar-music-play svg {
    margin-left: 2px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

/* Song Article */
.song-article {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    width: 100%;
}

/* Song Hero Section - FLEX */
.song-hero {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
    width: 100%;
}

.song-cover-wrapper {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border: 2px solid #f6f6f6;
}

.song-cover-placeholder i {
    font-size: 64px;
    color: #9ca3af;
}

.song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.song-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

.song-meta i {
    font-size: 12px;
    color: #9ca3af;
}

.song-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin: 0;
    word-break: break-word;
}

/* Inline Player */
.song-player-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-play,
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-play {
    background: #2563eb;
    color: white;
}

.btn-play:hover {
    background: #1e40af;
}

.btn-download {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-download:hover {
    background: #f3f4f6;
    border-color: #2563eb;
    color: #2563eb;
}

/* Track Specs */
.track-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

.spec-item i {
    font-size: 12px;
    color: #6b7280;
}

/* Song Lyrics */
.song-lyrics {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.song-lyrics h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-lyrics h2 i {
    font-size: 18px;
    color: #6b7280;
}

.lyrics-text {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    word-break: break-word;
}

/* Song Related */
.song-related {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.song-related h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-related h2 i {
    font-size: 18px;
    color: #6b7280;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Related Items - FLEX */
.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    transition: background 0.2s ease;
    width: 100%;
}

.related-item:hover {
    background: #f3f4f6;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.related-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    font-size: 18px;
    color: #9ca3af;
}

.related-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-meta {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: #2563eb;
}

.related-play:hover {
    background: #2563eb;
    color: white;
}

/* Song Comments */
.song-comments {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.song-comments h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-comments h2 i {
    font-size: 18px;
    color: #6b7280;
}

/* Music Cards - FLEX */
.music-card {
    display: flex;
    gap: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
    width: 100%;
}

.music-card:hover {
    border-color: #d1d5db;
}

.music-cover {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-cover i {
    font-size: 28px;
    color: #9ca3af;
}

.music-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.music-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.music-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.music-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-title a {
    color: inherit;
}

.music-title a:hover {
    color: #2563eb;
}

/* Comments */
.comm-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.comm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comm-letter {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.comm-right {
    flex: 1;
    min-width: 0;
}

.comm-author {
    font-weight: 600;
    color: #111827;
    margin-right: 8px;
}

.comm-one {
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}

.comm-two {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

/* Add Comments Form */
.add-comms {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.add-comms h5 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.add-comms input,
.add-comms textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.add-comms input:focus,
.add-comms textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.add-comms textarea {
    min-height: 100px;
    resize: vertical;
}

.add-comms button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.add-comms button:hover {
    background: #1e40af;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row > * {
    flex: 1;
    min-width: 0;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 13px;
}

.question-text {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13px;
}

.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-row input {
    max-width: 180px;
}

/* Comment Extras */
.comm-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #2563eb;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.comm-date {
    color: #9ca3af;
}

.comment-source {
    background: #eff6ff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* Pagination - FLEX */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-flex;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    white-space: nowrap;
}

.pagination a:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.pagination .active,
.pagination .active a {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination .disabled,
.pagination .disabled a {
    color: #9ca3af;
    pointer-events: none;
    opacity: 0.5;
}

/* Footer */
.site-footer {
    width: 100%;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-info strong {
    font-size: 16px;
    color: #111827;
}

.footer-info p {
    color: #6b7280;
    font-size: 13px;
    margin: 4px 0 0 0;
}

.footer-copy {
    color: #9ca3af;
    font-size: 13px;
    white-space: nowrap;
}

/* ==================== AUDIO PLAYER ==================== */

.audio-player {
    display: none;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease;
}

.audio-player.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Play/Pause Button */
.player-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.player-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.player-play-btn svg {
    margin-left: 2px;
}

/* Progress Section */
.player-progress-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-track-info {
    display: flex;
    align-items: center;
}

.player-track-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.player-time:last-child {
    text-align: right;
}

.player-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.player-progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-progress:hover .player-progress-handle {
    opacity: 1;
}

/* Volume Control */
.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.player-volume-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.player-volume-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 80%;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .site-header {
        padding: 16px 0;
        margin-bottom: 20px;
    }
    
    .site-logo {
        font-size: 20px;
    }
    
    .site-nav {
        display: none;
    }
    
    .song-article {
        padding: 16px;
    }
    
    /* Song Hero Mobile */
    .song-hero {
        flex-direction: column;
        gap: 16px;
    }
    
    .song-cover-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .song-title {
        font-size: 20px;
    }
    
    .song-meta {
        gap: 8px;
    }
    
    .song-meta span {
        font-size: 12px;
    }
    
    .player-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-play,
    .btn-download {
        width: 100%;
    }
    
    /* Audio Player Mobile */
    .audio-player {
        padding: 16px;
    }
    
    .player-main {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .player-play-btn {
        width: 48px;
        height: 48px;
    }
    
    .player-progress-section {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }
    
    .player-track-name {
        font-size: 13px;
    }
    
    .player-volume {
        order: 2;
    }
    
    .player-volume-slider {
        display: none;
    }
    
    .track-specs {
        gap: 10px;
    }
    
    .spec-item {
        font-size: 12px;
    }
    
    /* Music Cards Mobile */
    .music-card {
        padding: 12px;
        gap: 12px;
    }
    
    .music-cover {
        width: 60px;
        height: 60px;
    }
    
    .music-cover i {
        font-size: 24px;
    }
    
    .music-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .music-title {
        font-size: 15px;
    }
    
    /* Related Mobile */
    .related-item {
        padding: 10px;
        gap: 10px;
    }
    
    .related-thumb {
        width: 44px;
        height: 44px;
    }
    
    .related-title {
        font-size: 13px;
    }
    
    .related-meta {
        font-size: 11px;
    }
    
    .related-play {
        width: 28px;
        height: 28px;
    }
    
    /* Sidebar Music Mobile */
    .sidebar-music-item {
        padding: 10px;
        gap: 10px;
    }
    
    .sidebar-music-thumb {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-music-title {
        font-size: 13px;
    }
    
    .sidebar-music-play {
        width: 28px;
        height: 28px;
    }
    
    /* Section Headers */
    .song-lyrics h2,
    .song-related h2,
    .song-comments h2 {
        font-size: 18px;
    }
    
    .lyrics-text {
        font-size: 14px;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    /* Form Mobile */
    .form-row {
        flex-direction: column;
    }
    
    /* Comments Mobile */
    .comm-item {
        padding: 12px;
        gap: 10px;
    }
    
    .comm-avatar,
    .comm-letter {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .comm-one {
        font-size: 12px;
    }
    
    .comm-two {
        font-size: 13px;
    }
    
    .add-comms {
        padding: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .song-article {
        padding: 14px;
    }
    
    .song-cover-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .song-title {
        font-size: 18px;
    }
    
    .track-specs {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .music-card {
        padding: 10px;
    }
    
    .music-cover {
        width: 50px;
        height: 50px;
    }
    
    .music-title {
        font-size: 14px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    /* Audio Player Small Mobile */
    .audio-player {
        padding: 14px;
    }
    
    .player-play-btn {
        width: 44px;
        height: 44px;
    }
    
    .player-play-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .player-time {
        font-size: 11px;
        min-width: 36px;
    }
}
