/* General Styles */
body {
    padding-bottom: 100px; /* Space for the fixed music player */
    background-color: #f8f9fa;
}

/* Share Modal */
#shareModal .modal-content {
    border-radius: 12px;
}

#shareModal .modal-header {
    background: linear-gradient(135deg, #FF7E5F 0%, #FEB47B 100%);
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#shareModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#shareModal #shareUrlInput {
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

#shareModal .share-btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

#shareModal .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#copyFeedback {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Beta Badge */
.beta-badge {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.content-container {
    min-height: calc(100vh - 170px);
}

/* Music Cards */
.song-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,.125);
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.song-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.song-card .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,.125);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

/* Category Icons */
.category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.category-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

/* Categories mega menu */
.category-mega-menu {
    min-width: min(92vw, 760px);
    max-width: 92vw;
    padding: 0.5rem;
}

.category-mega-search-wrap {
    position: sticky;
    top: 0;
    background: var(--bs-body-bg, #fff);
    z-index: 1;
    padding-bottom: 0.4rem;
    margin-bottom: 0.25rem;
}

.category-mega-search {
    border-radius: 0.45rem;
}

.category-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 0.25rem;
    max-height: 60vh;
    overflow-y: auto;
}

.category-mega-item {
    display: flex;
    align-items: center;
    border-radius: 0.4rem;
    white-space: normal;
    line-height: 1.2;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.category-header-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    object-fit: contain;
}

.category-admin-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.newest-release-date-badge {
    background-color: rgba(255, 255, 255, 0.94) !important;
    color: #111111 !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Music Player */
.music-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    background: linear-gradient(to right, #FF7E5F, #FEB47B);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.music-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.music-title {
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.music-artist {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.player-controls .progress {
    cursor: pointer;
    height: 8px;
}

.player-controls .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.volume-controls input[type="range"] {
    width: 100px;
}

/* Song Details Page */
.song-image-container img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.song-title {
    margin-top: 0;
}

/* YouTube Embed Responsiveness */
.youtube-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .music-title, .music-artist {
        max-width: 100px;
    }
    
    .player-controls .btn {
        width: 35px;
        height: 35px;
    }
    
    .volume-controls {
        display: none !important;
    }
    
    body {
        padding-bottom: 120px;
    }

    .category-mega-menu {
        min-width: 92vw;
        max-width: 92vw;
    }

    .category-mega-grid {
        grid-template-columns: 1fr;
        max-height: 45vh;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .category-mega-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

/* Animation for Currently Playing */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.currently-playing {
    animation: pulse 2s infinite;
    border: 2px solid #007bff !important;
}

/* AJAX Navigation Loading Indicator */
#ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

#ajax-loader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Video player styles */
.player-media-container {
    position: relative;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
}

.music-thumbnail,
.music-video {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.song-video-container video {
    max-height: 350px;
    object-fit: contain;
    background-color: #000;
}

/* Fullscreen button styles */
.player-media-container,
.song-video-container {
    position: relative;
}

.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 102, 0, 0.7); /* Semi-transparent orange */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.fullscreen-btn:hover {
    opacity: 1;
}

/* In the bottom player, position the button differently */
#playerFullscreenBtn {
    bottom: 5px;
    right: 5px;
    padding: 2px 5px;
    font-size: 12px;
}

/* When video is in fullscreen mode, hide the button */
:fullscreen video {
    width: 100%;
    height: 100%;
}

/* Vendor prefixes for older browsers */
:-webkit-full-screen video {
    width: 100%;
    height: 100%;
}

:-moz-full-screen video {
    width: 100%;
    height: 100%;
}

:-ms-fullscreen video {
    width: 100%;
    height: 100%;
}

.ohm-video-fullscreen-target:fullscreen,
.ohm-video-fullscreen-target:-webkit-full-screen,
.ohm-video-fullscreen-target:-moz-full-screen,
.ohm-video-fullscreen-target:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    background: #000;
    overflow: hidden;
    position: relative;
}

.persistent-video-fullscreen-host {
    position: fixed;
    top: -10000px;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #000;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

.persistent-video-fullscreen-host.is-fullscreen-pending,
.persistent-video-fullscreen-host:fullscreen,
.persistent-video-fullscreen-host:-webkit-full-screen,
.persistent-video-fullscreen-host:-moz-full-screen,
.persistent-video-fullscreen-host:-ms-fullscreen {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    opacity: 1;
    pointer-events: auto;
    z-index: 2147483646;
}

.persistent-video-fullscreen-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 0 !important;
}

.persistent-video-fullscreen-host.is-fullscreen-pending .persistent-video-fullscreen-video,
.persistent-video-fullscreen-host:fullscreen .persistent-video-fullscreen-video,
.persistent-video-fullscreen-host:-webkit-full-screen .persistent-video-fullscreen-video,
.persistent-video-fullscreen-host:-moz-full-screen .persistent-video-fullscreen-video,
.persistent-video-fullscreen-host:-ms-fullscreen .persistent-video-fullscreen-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

.persistent-video-fullscreen-host.is-fullscreen-pending .video-fullscreen-exit-overlay {
    position: fixed;
}

.ohm-video-fullscreen-target:fullscreen video,
.ohm-video-fullscreen-target:-webkit-full-screen video,
.ohm-video-fullscreen-target:-moz-full-screen video,
.ohm-video-fullscreen-target:-ms-fullscreen video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: #000;
}

.ohm-video-fullscreen-target:fullscreen .fullscreen-btn,
.ohm-video-fullscreen-target:-webkit-full-screen .fullscreen-btn,
.ohm-video-fullscreen-target:-moz-full-screen .fullscreen-btn,
.ohm-video-fullscreen-target:-ms-fullscreen .fullscreen-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.ohm-video-fullscreen-target.is-controls-visible:fullscreen .fullscreen-btn,
.ohm-video-fullscreen-target.is-controls-visible:-webkit-full-screen .fullscreen-btn,
.ohm-video-fullscreen-target.is-controls-visible:-moz-full-screen .fullscreen-btn,
.ohm-video-fullscreen-target.is-controls-visible:-ms-fullscreen .fullscreen-btn {
    opacity: 0.82;
    pointer-events: auto;
}

.ohm-video-fullscreen-target.is-controls-visible:fullscreen .fullscreen-btn:hover,
.ohm-video-fullscreen-target.is-controls-visible:-webkit-full-screen .fullscreen-btn:hover,
.ohm-video-fullscreen-target.is-controls-visible:-moz-full-screen .fullscreen-btn:hover,
.ohm-video-fullscreen-target.is-controls-visible:-ms-fullscreen .fullscreen-btn:hover,
.ohm-video-fullscreen-target.is-controls-visible:fullscreen .fullscreen-btn:focus,
.ohm-video-fullscreen-target.is-controls-visible:-webkit-full-screen .fullscreen-btn:focus,
.ohm-video-fullscreen-target.is-controls-visible:-moz-full-screen .fullscreen-btn:focus,
.ohm-video-fullscreen-target.is-controls-visible:-ms-fullscreen .fullscreen-btn:focus {
    opacity: 1;
}

.video-fullscreen-exit-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2147483647;
    transform: translate(-50%, -120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
}

.video-fullscreen-exit-overlay.is-visible {
    transform: translate(-50%, 18px);
    opacity: 1;
    pointer-events: auto;
}

.video-fullscreen-exit-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 10px 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.video-fullscreen-exit-hint {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.video-fullscreen-close-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.video-fullscreen-close-btn:hover,
.video-fullscreen-close-btn:focus {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

/* Repeat button styles */
#repeatBtn.active {
    color: #0d6efd; /* Bootstrap primary color */
    border-color: #0d6efd;
}

#repeatBtn .fa-repeat-1 {
    position: relative;
}

#repeatBtn .fa-repeat-1:after {
    content: "1";
    position: absolute;
    font-size: 0.7em;
    top: 0;
    right: -4px;
}

/* Player styles */
.player-media-container {
    position: relative;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
}

.music-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullscreen-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.fullscreen-btn:hover {
    opacity: 1;
}

.player-media-container .fullscreen-btn,
.song-video-container .fullscreen-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.player-media-container.is-video-controls-visible .fullscreen-btn,
.song-video-container.is-video-controls-visible .fullscreen-btn {
    opacity: 0.82;
    pointer-events: auto;
}

.player-media-container.is-video-controls-visible .fullscreen-btn:hover,
.song-video-container.is-video-controls-visible .fullscreen-btn:hover,
.player-media-container.is-video-controls-visible .fullscreen-btn:focus,
.song-video-container.is-video-controls-visible .fullscreen-btn:focus {
    opacity: 1;
}

.song-media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    isolation: isolate;
    overflow: visible;
}

.video-ambient-glow {
    position: absolute;
    inset: -40px;
    border-radius: 24px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    filter: blur(34px) saturate(1.4);
    box-shadow: 0 0 65px rgba(255, 112, 34, 0.55), 0 0 130px rgba(255, 124, 64, 0.38);
    transform: translateZ(0);
    transition: opacity 33ms linear, background 33ms linear, box-shadow 33ms linear, filter 33ms linear;
}

.video-ambient-glow.ambient-active {
    opacity: 0.95 !important;
}

.song-video-container video {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* Ensure song page video always fills the content column width */
#songPageVideo,
#songPageVideo #mainVideo,
#songPageImage img {
    width: 100% !important;
    max-width: 100%;
    height: 100%;
    display: block;
}

#songPageVideo #mainVideo {
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 8px;
}

#songPageVideo,
#songPageImage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

#songPageVideo > #mainVideo {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block;
    border-radius: 8px;
}

#songPageImage img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    border-radius: 8px;
}

#songPageVideo.ohm-video-fullscreen-target:fullscreen > #mainVideo,
#songPageVideo.ohm-video-fullscreen-target:-webkit-full-screen > #mainVideo,
#songPageVideo.ohm-video-fullscreen-target:-moz-full-screen > #mainVideo,
#songPageVideo.ohm-video-fullscreen-target:-ms-fullscreen > #mainVideo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

#songPageVideo.ohm-video-fullscreen-target:fullscreen,
#songPageVideo.ohm-video-fullscreen-target:-webkit-full-screen,
#songPageVideo.ohm-video-fullscreen-target:-moz-full-screen,
#songPageVideo.ohm-video-fullscreen-target:-ms-fullscreen,
#songPageVideo.ohm-video-fullscreen-target:fullscreen > #mainVideo,
#songPageVideo.ohm-video-fullscreen-target:-webkit-full-screen > #mainVideo,
#songPageVideo.ohm-video-fullscreen-target:-moz-full-screen > #mainVideo,
#songPageVideo.ohm-video-fullscreen-target:-ms-fullscreen > #mainVideo,
#songPageVideo.ohm-video-fullscreen-target:fullscreen .video-fullscreen-exit-panel,
#songPageVideo.ohm-video-fullscreen-target:-webkit-full-screen .video-fullscreen-exit-panel,
#songPageVideo.ohm-video-fullscreen-target:-moz-full-screen .video-fullscreen-exit-panel,
#songPageVideo.ohm-video-fullscreen-target:-ms-fullscreen .video-fullscreen-exit-panel {
    border-radius: 0 !important;
}

/* Play page layout tuning */
.song-page-container {
    margin-top: -10px;
}

.song-page-container .song-title {
    margin-top: 0;
    line-height: 1.12;
    font-size: 1.25rem;
}

.song-page-container .song-artist {
    line-height: 1.2;
    font-size: 0.75rem;
}

.song-page-container .rec-thumb {
    width: 100%;
    min-height: 60px;
    height: 100%;
    object-fit: cover;
}

.song-page-container .you-may-like-card .col-5 {
    min-height: 60px;
}

.song-page-container .rec-thumb-wrap {
    position: relative;
    overflow: hidden;
}

.song-page-container .rec-thumb-meta {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
}

.song-page-container .rec-thumb-meta i {
    opacity: 0.9;
}

@media (min-width: 992px) {
    .song-page-container .row.song-page-main {
        display: flex;
        flex-wrap: nowrap;
    }

    .song-page-container .song-side-col {
        flex: 0 0 calc(25% + 80px);
        width: calc(25% + 80px);
        max-width: calc(25% + 80px);
    }

    .song-page-container .song-main-col {
        flex: 1 1 auto;
        max-width: calc(75% - 80px);
    }
}

@media (max-width: 991.98px) {
    .song-page-container {
        margin-top: 0;
    }

    .song-page-container .song-title {
        font-size: 0.825rem;
        line-height: 1.15;
        margin-bottom: 0.25rem !important;
    }

    .song-page-container .song-artist {
        font-size: 0.5rem;
        margin-bottom: 0.75rem !important;
    }

    .song-page-container .song-media-container {
        margin-bottom: 0.75rem !important;
    }

    .song-page-container .btn.btn-lg {
        padding: 0.55rem 0.8rem;
        font-size: 1rem;
    }

    .song-page-container .row.g-3.mt-1.mb-4 {
        margin-top: 0.15rem !important;
        margin-bottom: 1rem !important;
    }

    .song-page-container .song-side-col {
        margin-top: 0.75rem !important;
    }

    .song-page-container .you-may-like-card .card-body {
        padding: 0.45rem !important;
    }
}

@media (max-width: 575.98px) {
    .song-page-container .song-title {
        font-size: 0.725rem;
    }

    .song-page-container .rec-thumb-meta {
        font-size: 0.62rem;
        padding: 2px 5px;
        right: 5px;
        bottom: 5px;
    }
}

/* Ajax navigation styles */
#content-loading {
    height: 3px;
    background: linear-gradient(to right, #ff7700, #ff9800);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: none;
}

/* Enhance the appearance of lyrics */
.lyrics-content {
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* AJAX Navigation - mark the content section for easy extraction */
.ajax-content-section {
    display: block; /* Ensures the section is visible */
}

/* Sticky navbar styling */
.navbar.sticky-top {
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add padding to the top of the content to prevent it from being hidden under the sticky navbar */
body:not(.admin-page) #content-wrapper {
    padding-top: 20px;
}

/* Fix for mobile view */
@media (max-width: 768px) {
    .navbar-collapse {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Adjust the loading indicator to be visible on top of the navbar */
#content-loading {
    z-index: 2000;
}

/* Fix for lyrics display on play page */
.song-lyrics .lyrics-content {
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: pre-wrap;  /* Preserve natural formatting, ONLY wrap at line breaks or when needed for container width */
    line-height: 1.6;       /* Improve readability */
}

/* Print button styling */
#printLyricsBtn {
    transition: all 0.2s ease;
}

#printLyricsBtn:hover {
    background-color: #e9ecef;
}

/* Fix for lyrics display on play page */
.song-lyrics .lyrics-content {
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: pre-wrap;  /* Preserve natural formatting, ONLY wrap at line breaks or when needed for container width */
    line-height: 1.6;       /* Improve readability */
    padding: 1.5rem !important;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    word-break: break-word;
    text-align: left;
    tab-size: 4;
}

.print-lyrics-content {
    white-space: pre-wrap;
    line-height: 1.8;
    text-align: left;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Print lyrics styles */
#printLyricsContainer {
    font-family: 'Nunito', Arial, sans-serif;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.print-lyrics-header {
    text-align: center;
    margin-bottom: 30px;
}

.print-song-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.print-artist-name {
    font-size: 20px;
    margin-bottom: 15px;
    color: #666;
}

.print-divider {
    border-bottom: 1px solid #ccc;
    margin: 15px 0;
}

.print-lyrics-content {
    white-space: pre-wrap;
    line-height: 1.8;
}

.print-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Print media query */
@media print {
    body * {
        visibility: hidden;
    }
    #printLyricsContainer, #printLyricsContainer * {
        visibility: visible;
    }
    #printLyricsContainer {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* Make song thumbnails appear clickable */
.play-song-image {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.play-song-image:hover {
    opacity: 0.8;
}

/* History button styles */
#historyBtn,
#followSongPageBtn {
    color: #aaa;
    transition: color 0.3s ease;
}

#historyBtn:hover,
#followSongPageBtn:hover,
#followSongPageBtn.active {
    color: #fff;
}

#followSongPageBtn.active {
    font-weight: 700;
}

/* History page styles */
.song-history-list {
    margin-top: 20px;
}

.song-history-list .table td {
    vertical-align: middle;
}

.song-history-list img.img-thumbnail {
    height: 50px;
    width: 50px;
    object-fit: cover;
}

/* Animation for the currently playing song */
.table-primary {
    position: relative;
    overflow: hidden;
}

.table-primary::after {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

/* Debug info styles */
#debugInfoBlock {
    font-family: monospace;
    font-size: 0.85rem;
}

#debugInfo {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
}

#debugInfo p {
    margin-bottom: 5px;
}

#debugInfo ul {
    padding-left: 20px;
}

/* ===================================
   Age Verification Modal - Custom Implementation
   =================================== */

/* Custom backdrop */
.age-verify-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 995;
}

/* Custom modal container */
.age-verify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 996;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

#ageVerificationModal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
    position: relative;
    pointer-events: none;
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

#ageVerificationModal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    outline: 0;
}

/* ===================================
   Public Responsive Pass (Mobile/Tablet)
   =================================== */
html,
body {
    overflow-x: hidden;
}

body:not(.admin-page) .table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 132px;
    }

    body:not(.admin-page) #content-wrapper {
        padding-top: 14px !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .navbar .container {
        align-items: flex-start;
    }

    #navbarNav {
        width: 100%;
        padding-top: 0.45rem;
    }

    #navbarNav .navbar-nav .nav-link {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .nav-search-form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .nav-search-group {
        width: 100%;
    }

    .theme-toggle {
        margin-left: 0 !important;
        align-self: flex-start;
    }

    #navbarNav .navbar-nav.ms-auto {
        margin-top: 0.35rem;
    }

    .category-mega-menu {
        min-width: 100%;
        max-width: 100%;
    }

    #persistent-player {
        padding-top: 8px !important;
        padding-bottom: 10px !important;
    }

    #persistent-player .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #persistent-player .player-row {
        row-gap: 0.45rem;
    }

    #persistent-player .player-col-left {
        flex: 0 0 42%;
        max-width: 42%;
    }

    #persistent-player .player-col-center {
        flex: 0 0 58%;
        max-width: 58%;
    }

    #persistent-player .player-col-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #persistent-player .player-controls {
        text-align: right !important;
    }

    #persistent-player .player-controls .btn {
        width: 34px;
        height: 34px;
    }

    #persistent-player #playPauseBtn {
        width: 40px;
        height: 40px;
    }

    #persistent-player .player-controls .progress {
        margin-top: 0.35rem !important;
    }

    #persistent-player .player-controls .d-flex {
        margin-top: 0.2rem !important;
    }

    #persistent-player .music-title,
    #persistent-player .music-artist {
        max-width: 190px;
    }

    #persistent-player .player-media-container,
    #persistent-player .music-thumbnail,
    #persistent-player .music-video {
        width: 56px;
        height: 56px;
    }

    #persistent-player .volume-controls {
        justify-content: flex-start !important;
    }

    #persistent-player .volume-controls input[type="range"] {
        width: min(250px, 100%);
    }

    .song-card .card-footer .d-flex {
        gap: 0.45rem;
    }

    .song-page-container .song-title {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.35rem !important;
    }

    .song-page-container .song-artist {
        font-size: 0.95rem;
        margin-bottom: 0.7rem !important;
    }

    .song-page-container .btn.btn-lg {
        min-height: 46px;
        font-size: 1.02rem;
        padding-top: 0.62rem;
        padding-bottom: 0.62rem;
    }

    .song-page-container .song-details {
        font-size: 0.95rem;
    }

    .song-page-container .list-group-item {
        font-size: 0.95rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .song-page-container .song-lyrics h3 {
        font-size: 1.35rem;
    }

    .song-page-container .song-lyrics .lyrics-content {
        font-size: 0.98rem;
        line-height: 1.68;
        padding: 1.1rem !important;
    }

    .song-page-container .lyrics-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .song-page-container .lyrics-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 148px;
    }

    .jumbotron {
        padding: 1.1rem !important;
    }

    .jumbotron .display-4 {
        font-size: 1.95rem;
        line-height: 1.12;
    }

    .jumbotron .lead {
        font-size: 1rem;
    }

    .hero-search-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-search-form .form-control {
        margin-right: 0 !important;
    }

    .hero-search-form .btn {
        width: 100%;
    }

    #persistent-player .player-col-left,
    #persistent-player .player-col-center {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #persistent-player .player-col-right {
        display: none !important;
    }

    #persistent-player .player-controls {
        text-align: center !important;
    }

    #persistent-player .music-title,
    #persistent-player .music-artist {
        max-width: calc(100vw - 94px);
    }

    #persistent-player .player-media-container,
    #persistent-player .music-thumbnail,
    #persistent-player .music-video {
        width: 48px;
        height: 48px;
    }

    .song-card .card-footer .d-flex {
        flex-direction: column;
    }

    .song-card .card-footer .btn {
        width: 100%;
    }

    .song-page-container .song-title {
        font-size: 1.1rem;
    }

    .song-page-container .song-artist {
        font-size: 0.92rem;
    }

    .song-page-container .song-details {
        padding: 0.85rem !important;
    }

    .song-page-container .song-lyrics h3 {
        font-size: 1.2rem;
    }

    .song-page-container .lyrics-actions {
        margin-top: 0.25rem;
    }

    .song-page-container .lyrics-actions .btn {
        min-height: 40px;
        font-size: 0.9rem;
    }

    .song-page-container .you-may-like-card .row {
        align-items: stretch;
    }

    .song-page-container .you-may-like-card .col-5 {
        min-height: 72px;
    }
}

@media (max-width: 575.98px) {
    body:not(.admin-page) #content-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .category-mega-grid {
        max-height: 38vh;
    }

    .category-mega-item {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .song-page-container .song-title {
        font-size: 1.02rem;
    }

    .song-page-container .song-artist {
        font-size: 0.88rem;
    }

    .song-page-container .btn.btn-lg {
        min-height: 44px;
        font-size: 0.97rem;
    }

    .song-page-container .song-lyrics .lyrics-content {
        font-size: 0.94rem;
        padding: 0.9rem !important;
    }
}

@media (max-width: 420px) {
    body {
        padding-bottom: 156px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .beta-badge {
        font-size: 7px;
        padding: 1px 4px;
        margin-left: 4px;
    }

    #navbarNav .navbar-nav .nav-link {
        font-size: 0.95rem;
    }

    .song-card .card-img-top {
        height: 162px;
    }

    .song-page-container .song-title {
        font-size: 1.05rem;
        line-height: 1.22;
        margin-bottom: 0.3rem !important;
    }

    .song-page-container .song-artist {
        font-size: 0.9rem;
        margin-bottom: 0.65rem !important;
    }

    .song-page-container .btn.btn-lg {
        min-height: 46px;
        font-size: 1rem;
        padding-top: 0.62rem;
        padding-bottom: 0.62rem;
    }

    .song-page-container .row.g-3.mt-1.mb-4 {
        row-gap: 0.65rem !important;
        margin-bottom: 0.85rem !important;
    }

    .song-page-container .song-details {
        padding: 0.78rem !important;
        font-size: 0.92rem;
    }

    .song-page-container .list-group-item {
        font-size: 0.92rem;
        padding-top: 0.58rem;
        padding-bottom: 0.58rem;
    }

    .song-page-container .song-lyrics h3 {
        font-size: 1.1rem;
    }

    .song-page-container .lyrics-actions .btn {
        min-height: 38px;
        font-size: 0.86rem;
    }

    .song-page-container .song-lyrics .lyrics-content {
        font-size: 0.92rem;
        line-height: 1.62;
        padding: 0.82rem !important;
    }

    #persistent-player {
        padding-top: 7px !important;
        padding-bottom: 8px !important;
    }

    #persistent-player .player-controls .btn {
        width: 32px;
        height: 32px;
    }

    #persistent-player #playPauseBtn {
        width: 38px;
        height: 38px;
    }

    #persistent-player .player-controls .progress {
        height: 6px;
    }

    #persistent-player .music-title {
        font-size: 0.84rem;
    }

    #persistent-player .music-artist {
        font-size: 0.74rem;
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    body {
        padding-bottom: 136px;
    }

    #content-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jumbotron {
        padding: 1.6rem !important;
    }

    #persistent-player .player-col-left {
        flex: 0 0 40%;
        max-width: 40%;
    }

    #persistent-player .player-col-center {
        flex: 0 0 60%;
        max-width: 60%;
    }

    #persistent-player .player-col-right {
        flex: 0 0 100%;
        max-width: 100%;
        display: block !important;
    }

    #persistent-player .volume-controls {
        margin-top: 0.2rem;
    }
}

#ageVerificationModal .age-verify-header {
    background: linear-gradient(to right, #FF7E5F, #FEB47B);
    color: white;
    border-radius: 16px 16px 0 0;
    border: none;
    padding: 1.25rem 1.5rem;
}

#ageVerificationModal .age-verify-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

#ageVerificationModal .age-verify-header .fa-exclamation-triangle {
    color: #fff3cd;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#ageVerificationModal .modal-body {
    padding: 2rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

#ageVerificationModal .modal-body p {
    color: #333;
}

#ageVerificationModal .modal-body .text-muted {
    font-size: 0.875rem;
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #ff9800;
}

#ageVerificationModal .modal-body .fa-info-circle {
    color: #ff9800;
}

#ageVerificationModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

#ageVerificationModal #ageDeclineBtn {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#ageVerificationModal #ageDeclineBtn:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#ageVerificationModal #ageAgreeBtn {
    background: linear-gradient(to right, #ff6600, #ff8533);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#ageVerificationModal #ageAgreeBtn:hover {
    background: linear-gradient(to right, #cc5200, #ff6600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}
