@font-face {
    font-family: 'Rademos'; /* This is the name you will use in your CSS */
    src: url('../fonts/Rademos.ttf') format('truetype'); /* Path to the font file */
    /* You can add more properties like font-weight and font-style if needed */
    font-weight: normal;
    font-style: normal;
}
:root {
    /* --- Color Palette --- */
   --gunmetal: #170a18;
    --primary: #c81e4d;
    --secondary: #8f274a;
    --tertiary: #d6b0b5;
    --cream: #f9f5ef;
    
    --font-pixel: 'VT323', monospace;
    --font-sans: 'Rademos', sans-serif;
}


h2, .gallery-page-title { font-family: var(--font-sans); font-weight: 100; font-size: 32px; margin: 1.5rem 0 1rem 0; color: var(--gunmetal); }
.gallery-page-title { font-size: 20px; text-align: center; margin: 0; }
.gallery-page-subtitle { text-align: center; margin: 0.5rem 0 1.5rem 0; color: #555; }

.header-container { margin-bottom: 25px; }
.main-header { display: flex; justify-content: center; align-items: center; padding-left: 25px; padding-top: 25px; padding-right: 25px;}
.logo { font-family: var(--font-sans); font-weight: 200; font-size: 54px; letter-spacing: 1px; color: var(--gunmetal); }

.marquee-container { background: var(--gunmetal);  overflow: hidden; height: 38px; display: flex; align-items: center; padding: 0 15px; margin-top: 15px; margin-bottom: 15px;}
.marquee-content { display: inline-block; white-space: nowrap; animation: marquee 25s linear infinite; padding-left: 100%; font-size: 14px; color: var(--cream); opacity: 0.7; }
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }

.music-tab-container { display: flex; gap: 30px; align-items: flex-start; padding-left: 25px; padding-right: 25px; padding-bottom: 25px;}
.player-section { flex: 2 1 60%; min-width: 300px; }
.details-section { flex: 1 1 40%; }

.main-player-card { width: 100%; aspect-ratio: 1 / 1; position: relative;  overflow: hidden; background-color: var(--gunmetal); background-size: cover; background-position: center; color: var(--cream); border-color: var(--gunmetal); border-width: 4px; border-style: outset;}
.player-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top, rgba(10, 19, 23, 0.9) 0%, transparent 60%); }

.lyrics-batch-display { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; cursor: pointer;z-index: 5; transition: opacity 0.3s ease; margin-top: 64px; }
.full-lyrics-panel.visible ~ .player-overlay .lyrics-batch-display { opacity: 0; pointer-events: none; }
.lyric-line-batch { background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 0.3em 0.6em; display: inline; margin: 0.2em 0; line-height: 1.5; font-size: 1.4rem; font-weight: 200; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); color: rgba(254, 238, 223, 0.9); white-space: normal; max-width: 90%; }
.lyric-line-batch.current { font-weight: 500; color: #fff; }
.lyric-line-batch:not(.current) { opacity: 0.7; transform: scale(0.75); }

.player-controls-wrapper { padding-left: 20px; padding-right: 25px; padding-bottom: 20px; z-index: 10; }
.player-track-info h3 { margin: 0 0 5px 0; font-size: 1.5rem; font-weight: 700; color: var(--tertiary);}
.player-track-info p { margin: 0 0 15px 0; font-size: 1rem; opacity: 0.8; }
audio { width: 100%; accent-color: var(--tertiary);}
audio::-webkit-media-controls-panel { background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border-radius: 8px; }
audio::-webkit-media-controls-play-button, audio::-webkit-media-controls-mute-button { background-color: var(--primary); border-radius: 50%; }
audio::-webkit-media-controls-current-time-display, audio::-webkit-media-controls-time-remaining-display, audio::-webkit-media-controls-timeline { color: var(--secondary); text-shadow: 1px 1px 2px black; }
.full-lyrics-panel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 19, 23, 0.7); backdrop-filter: blur(8px); z-index: 20; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.full-lyrics-panel.visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.close-lyrics-button { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #ccc; font-size: 2.5em; cursor: pointer; z-index: 21; line-height: 1; }
.full-lyrics-content { flex-grow: 1; overflow-y: auto; padding: 60px 30px; text-align: center; scroll-behavior: smooth; }
.lyric-line { opacity: 0.6; padding: 0.6em 0; color: var(--cream); cursor: pointer; transition: all 0.2s ease; font-size: 1.4rem; line-height: 1.6; }
.lyric-line.current { color: var(--tertiary); font-weight: 700; opacity: 1.0; transform: scale(1.05); }

.category-tags { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.category-tag { padding: 8px 18px; border: 1px solid var(--gunmetal); color: var(--gunmetal); font-size: 14px; cursor: pointer; transition: all 0.2s; background-color: transparent; }
.category-tag.active, .category-tag:hover { background-color: var(--cream); color: var(--gunmetal); border-color: var(--cream); }
.gallery-filters { justify-content: center; }

.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px; margin-bottom: 30px; }
.music-grid-item { background-color: var(--gunmetal); overflow: hidden; cursor: pointer; transition: transform 0.2s ease; }
.grid-item-cover { width: 100%; height: 130px; background-color: var(--cream); background-size: cover; background-position: center; }
.grid-item-info { padding: 10px; }
.grid-item-title { font-size: 0.9rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tertiary); }
.grid-item-artist { font-size: 0.8rem; color: var(--cream); margin: 3px 0 0 0; }
.grid-item-year { font-size: 0.7rem; color: #666; margin: 3px 0 0 0; }

.playlist-section .playlist-item { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-radius: 8px; }
.playlist-section .playlist-item:hover { background-color: #e9d9c7; }
.playlist-info p { margin: 0; }
.playlist-name { font-weight: 600; color: var(--cream); }
.playlist-count { font-size: 0.85rem; color: var(--tertiary-purple); }
.playlist-play-btn { width: 30px; height: 30px; border: 1px solid var(--cream); color: var(--cream); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 0.8rem; }

/* --- NEW: Masonry Gallery Styles --- */
.masonry-grid-container {
    padding: 25px;
    -webkit-column-count: 3; /* Number of columns */
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-gap: 15px; /* Gap between columns */
    -moz-column-gap: 15px;
    column-gap: 15px;
}
.masonry-grid-item {
    
    display: inline-block; /* Prevents item from breaking across columns */
    margin-bottom: 15px; /* Vertical gap between items */
    width: 100%;
    position: relative; /* For the overlay */
    overflow: hidden;
    
}
.masonry-grid-item img, .masonry-grid-item video {
    width: 100%;
    height: auto;
    display: block; /* Removes bottom space under image */
}
.masonry-item-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.masonry-grid-item:hover .masonry-item-overlay {
    opacity: 1;
}
.masonry-item-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Masonry Grid */
@media (max-width: 950px) {
    .masonry-grid-container { column-count: 2; }
    .music-tab-container { flex-direction: column; }
    .player-section, .details-section { width: 100%; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .masonry-grid-container { column-count: 1; }
    .lyric-line-batch { font-size: 1.0rem; line-height: 1.4; }
    .full-lyrics-content .lyric-line { font-size: 1.0rem; line-height: 1.5; }
}