/* ==========================================
   CHRISTIANITY OASIS MUSIC PLAYER
   Main Stylesheet
   ========================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif,
             "Apple Color Emoji",
             "Segoe UI Emoji",
             "Noto Color Emoji";
    background: #e8edf5;
    color: #18283d;
}

.music-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    background: #e8edf5;
    border: 1px solid #cbd4e1;
    border-radius: 12px;
}

/* HEADER */

.music-header {
    background: #162d49;
    color: white;
    text-align: center;
    padding: 17px 10px 14px;
}

.music-header h1 {
    color: #f5d078;
    font-size: 30px;
    margin: 0 0 5px;
    font-weight: bold;
}

.music-header h2 {
    font-size: 20px;
    margin: 0 0 7px;
}

.music-header p {
    margin: 0;
    font-size: 14px;
    color: #dce5f1;
}

/* MAIN CONTENT */

.music-content {
    padding: 14px;
}

.section-heading {
    font-size: 17px;
    font-weight: bold;
    margin: 4px 0 12px;
    color: #172536;
}

/* GENRE BUTTONS */

.genre-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.genre-btn {
    border: 1px solid #aabbd1;
    background: white;
    color: #263d5d;
    border-radius: 22px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    min-height: 36px;
}

.genre-btn:hover {
    background: #dce6f4;
}

.genre-btn.active {
    background: #345584;
    border-color: #345584;
    color: white;
}

/* PLAYBACK LAYOUT */

.player-layout {
    display: grid;
    grid-template-columns: 1.85fr 1.15fr;
    gap: 9px;
    align-items: stretch;
}

/* VIDEO PLAYER */

.player-panel {
    background: #172536;
    color: white;
    border-radius: 10px;
    padding: 9px;
    min-width: 0;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080b10;
    position: relative;
    overflow: hidden;
}

#youtube-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.now-playing {
    padding: 11px 0 2px;
}

.now-playing h3 {
    margin: 2px 0 11px;
    font-size: 17px;
}

#song-title {
    color: #f5d078;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

#song-artist {
    font-size: 13px;
    color: #dce5f1;
    overflow-wrap: anywhere;
}

/* PLAYBACK CONTROLS */

.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.control-btn {
    background: #345584;
    color: white;
    border: 1px solid #607b9e;
    border-radius: 6px;
    padding: 9px 13px;
    min-height: 39px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.control-btn:hover {
    background: #496e9f;
}

.auto-play {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    margin-top: 12px;
    color: #f1f3f6;
}

.auto-play input {
    width: 18px;
    height: 18px;
}

/* PLAYLIST PANEL */

.playlist-panel {
    background: white;
    border-radius: 10px;
    padding: 10px;
    min-width: 0;
}

.playlist-heading {
    font-size: 16px;
    font-weight: bold;
    margin: 3px 0 9px;
    color: #172536;
}

.playlist-tools {
    margin-bottom: 10px;
}

#song-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #b9c6d7;
    border-radius: 6px;
    font-size: 14px;
}

#song-search:focus {
    outline: 2px solid #7294c2;
}

#playlist-list {
    height: 220px;
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.song-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 5px;
    border-bottom: 1px solid #edf0f4;
    border-radius: 5px;
    min-width: 0;
}

.song-row.current {
    background: #e4ecf8;
}

.song-select {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #263b5a;
    text-align: left;
    cursor: pointer;
    padding: 2px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.song-select strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.song-select small {
    display: block;
    color: #65758b;
    font-size: 12px;
}

.song-action {
    flex-shrink: 0;
    border: 1px solid #bdc9d8;
    background: #f3f6fa;
    color: #294568;
    border-radius: 5px;
    min-width: 31px;
    min-height: 32px;
    font-size: 16px;
    cursor: pointer;
}

.song-action:hover {
    background: #dce7f5;
}

.empty-message {
    color: #66758a;
    font-size: 13px;
    padding: 15px 5px;
    text-align: center;
}

/* PLAYLIST ACTIONS */

.playlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.small-btn {
    border: 1px solid #aebed1;
    background: #eef3f9;
    color: #263e5e;
    border-radius: 5px;
    padding: 8px 10px;
    min-height: 36px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.small-btn:hover {
    background: #dce7f5;
}

/* STATUS */

#player-status {
    color: #dce5f1;
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
}

.music-footer {
    background: #162d49;
    color: #f5d078;
    text-align: center;
    padding: 11px;
    font-size: 12px;
}

/* TABLETS */

@media (max-width: 760px) {

    .player-layout {
        grid-template-columns: 1.35fr 1fr;
    }

    .music-header h1 {
        font-size: 25px;
    }

	#playlist-list {
		height: 220px;
		max-height: 220px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

}

/* MOBILE PHONES */

@media (max-width: 540px) {

    .music-container {
        border-radius: 7px;
    }

    .music-content {
        padding: 10px;
    }

    .music-header {
        padding: 15px 8px;
    }

    .music-header h1 {
        font-size: 23px;
    }

    .music-header h2 {
        font-size: 17px;
    }

    .player-layout {
        grid-template-columns: 1fr;
    }

    .genre-buttons {
        gap: 6px;
    }

    .genre-btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .player-controls {
        gap: 6px;
    }

    .control-btn {
        flex: 1 1 auto;
        padding: 10px 8px;
    }

	#playlist-list {
		height: 220px;
		max-height: 220px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

    .playlist-panel {
        padding: 10px;
    }

    .song-row {
        padding: 10px 5px;
    }

}

/* ==========================================
   COMPACT LAPTOP LAYOUT
   ========================================== */

.music-header {
    padding: 9px 10px 8px;
}

.music-header h1 {
    font-size: 25px;
    margin-bottom: 3px;
}

.music-header h2 {
    font-size: 17px;
    margin-bottom: 3px;
}

.music-content {
    padding: 8px;
}

.section-heading {
    margin: 2px 0 7px;
}

.genre-buttons {
    gap: 5px;
    margin-bottom: 7px;
}

.genre-btn {
    padding: 6px 10px;
    min-height: 31px;
}

.playlist-actions {
    gap: 5px;
    margin-bottom: 7px;
}

.small-btn {
    padding: 6px 8px;
    min-height: 31px;
}

.player-layout {
    gap: 7px;
}

.player-panel {
    padding: 7px;
}

.now-playing {
    padding: 6px 0 0;
}

.now-playing h3 {
    margin: 2px 0 5px;
}

.player-controls {
    margin-top: 7px;
    gap: 5px;
}

.control-btn {
    padding: 6px 9px;
    min-height: 34px;
}

.auto-play {
    margin-top: 7px;
}

#playlist-list {
    height: 180px;
    max-height: 180px;
    overflow-y: auto;
}

.playlist-panel {
    padding: 8px;
}

.playlist-heading {
    margin: 2px 0 6px;
}

.playlist-tools {
    margin-bottom: 6px;
}

.music-footer {
    padding: 7px;
}

/* ==========================================
   FINAL SPACE ADJUSTMENTS
   ========================================== */

/* Section headings */
.section-heading {
    font-size: 14px;
    margin: 1px 0 5px;
}

.playlist-heading {
    font-size: 13px;
    margin: 1px 0 4px;
}

/* Bottom navy footer stripe */
.music-footer {
    padding: 3px 8px;
    font-size: 11px;
}

/* TIGHTER BUTTON SPACING */

.genre-btn {
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 27px;
}

.control-btn {
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 30px;
}

.small-btn {
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 27px;
}

/* CLEAN UP BOTTOM BACKGROUND */

html,
body {
    margin: 0;
    padding: 0;
    background: #162d49;
}

.music-container {
    margin-bottom: 0;
    border-bottom: none;
    overflow: hidden;
}

.music-footer {
    margin-bottom: 0;
}
/* REMOVE FOOTER */

.music-footer {
    display: none;
}
/* BOTTOM SPACING */

.music-content {
    padding-bottom: 12px;
}

.music-container {
    border-radius: 12px;
    overflow: hidden;
}

/* FINAL BACKGROUND AND BOTTOM SPACING */

html,
body {
    background: #e8edf5;
    margin: 0;
    padding: 0;
}

.music-container {
    background: #e8edf5;
    border: 1px solid #cbd4e1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.music-content {
    padding-bottom: 7px;
}

.music-footer {
    display: none;
}
/* EMOJI SUPPORT */

.genre-btn {
    font-family: "Segoe UI Emoji", "Segoe UI Symbol",
                 Arial, sans-serif;
}