/* =====================================================
   RESET & BASIS
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #eaeaea;

    /* GLOBALE ACHTERGROND */
    background-image: url("images/back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* =====================================================
   MENU
   ===================================================== */
.menu {
    width: 240px;
    background: rgba(21, 24, 32, 0.9);
    backdrop-filter: blur(8px);
    padding: 30px 20px;
    border-right: 1px solid #1f2330;
}

.main-menu ul {
    list-style: none;
}

.main-menu li {
    margin-bottom: 8px;
}

.main-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #bfc6d4;
    text-decoration: none;
    font-size: 16px;
    transition: background .2s, color .2s;
}

.main-menu a i {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.main-menu a:hover,
.main-menu a:focus {
    background: #1f2433;
    color: #fff;
    outline: none;
}

.main-menu a.active {
    background: #2a7cff;
    color: #fff;
}

/* =====================================================
   CONTENT
   ===================================================== */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(6px);
}

.content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.content p {
    font-size: 18px;
    line-height: 1.6;
    color: #cfd5e3;
}

/* =====================================================
   GRID / CARDS
   ===================================================== */
.grid,
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.album-card,
.card,
.radio-card {
    background: rgba(24, 28, 39, 0.95);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.album-card:hover,
.card:hover,
.radio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.album-card img,
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* =====================================================
   ALBUM VIEW
   ===================================================== */
.album-view {
    max-width: 900px;
}

.album-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.album-header img {
    width: 220px;
    border-radius: 12px;
}

.tracklist {
    list-style: none;
}

.track {
    display: flex;
    gap: 20px;
    padding: 14px 16px;
    border-bottom: 1px solid #1f2330;
    cursor: pointer;
}

.track:hover {
    background: #1a1f2d;
}

.track-number {
    width: 40px;
    color: #6f7aa6;
}

.playing .track-number {
    color: #2a7cff;
    font-weight: bold;
}

/* =====================================================
   PLAYER
   ===================================================== */
#player {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    background: rgba(21,24,32,.95);
    border-top: 1px solid #1f2330;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#player button {
    background: none;
    border: none;
    color: #cfd5e3;
    font-size: 18px;
    cursor: pointer;
}

#player button.active {
    color: #2a7cff;
}

#progress {
    flex: 1;
}

#time {
    font-size: 14px;
    color: #9aa3bf;
    min-width: 90px;
    text-align: center;
}

#volume {
    width: 80px;
}

/* =====================================================
   RADIO
   ===================================================== */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.radio-icon {
    font-size: 42px;
    margin-bottom: 14px;
    color: #2a7cff;
}

.radio-card.playing {
    outline: 2px solid #2a7cff;
    box-shadow: 0 0 0 4px rgba(42,124,255,.15);
}

.radio-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.icon-btn {
    background: #1f2433;
    border: none;
    color: #bfc6d4;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.icon-btn:hover {
    background: #2a7cff;
    color: #fff;
}

.icon-btn.delete:hover {
    background: #d9534f;
}

/* =====================================================
   CLIPS / VIDEO
   ===================================================== */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.clip-thumb {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.clip-thumb img,
.clip-thumb video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.clip-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    background: rgba(0,0,0,.4);
    opacity: 0;
    transition: opacity .2s;
}

.clip-thumb:hover .clip-overlay {
    opacity: 1;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #121622;
    padding: 24px;
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: none;
    background: #1f2433;
    color: #fff;
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #fff;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #2a7cff;
    border-radius: 4px;
}

.modal-content {
    background: #121622;          /* SOLID */
    padding: 24px;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    color: #fff;

    backdrop-filter: none !important;
    box-shadow: 0 25px 60px rgba(0,0,0,.85);
}

/* =========================
   MENU LOGO
   ========================= */
.menu-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #1f2330;
}

.menu-logo img {
    max-width: 150px;
    height: auto;
    display: block;
}


.home-title {
    font-size: 32px;
    margin-bottom: 24px;
}

.home-title span {
    color: #4da3ff;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.card {
    background: rgba(20, 24, 34, 0.85);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card h2 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

/* Now playing */
.now-playing-content {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cover img {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
}

.track-info span {
    display: block;
    color: #9aa4b2;
    margin-top: 4px;
}

/* Quick links */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-grid button {
    background: #1f2533;
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
}

.quick-grid button i {
    font-size: 20px;
    color: #4da3ff;
}

.quick-grid button:hover {
    background: #2a3142;
    transform: translateY(-2px);
}

/* ===== HOME / NOW PLAYING ===== */

.home-title {
    font-size: 28px;
    margin-bottom: 24px;
}

.now-playing-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(20, 24, 34, 0.85);
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    max-width: 900px;
}

.now-playing-cover img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    background: #111;
}

.now-playing-info {
    flex: 1;
}

.np-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.np-artist {
    font-size: 16px;
    color: #9aa3bf;
}

.np-meta {
    margin-top: 12px;
    font-size: 14px;
    color: #6f7aa6;
}

/* ===== VISUALIZER ===== */

.now-playing-visualizer {
    display: flex;
    gap: 4px;
    height: 40px;
    align-items: flex-end;
}

.now-playing-visualizer span {
    width: 6px;
    background: #2a7cff;
    border-radius: 4px;
    animation: equalizer 1.2s infinite ease-in-out;
}

.now-playing-visualizer span:nth-child(1) { animation-delay: 0s; }
.now-playing-visualizer span:nth-child(2) { animation-delay: .1s; }
.now-playing-visualizer span:nth-child(3) { animation-delay: .2s; }
.now-playing-visualizer span:nth-child(4) { animation-delay: .3s; }
.now-playing-visualizer span:nth-child(5) { animation-delay: .4s; }

@keyframes equalizer {
    0% { height: 6px; opacity: .4; }
    50% { height: 40px; opacity: 1; }
    100% { height: 6px; opacity: .4; }
}

/* Stop animatie als niets speelt */
.not-playing .now-playing-visualizer span {
    animation: none;
    height: 6px;
    opacity: .3;
}

/* ===== SIMPLE HOME ===== */

.home-simple {
    max-width: 1100px;
}

.home-title {
    font-size: 36px;
    margin-bottom: 6px;
}

.home-subtitle {
    color: #9aa3bf;
    margin-bottom: 40px;
    font-size: 16px;
}

.home-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.home-card {
    background: rgba(20, 24, 34, 0.85);
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.home-card i {
    font-size: 36px;
    margin-bottom: 14px;
    color: #2a7cff;
}

.home-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.home-card p {
    font-size: 14px;
    color: #9aa3bf;
}

.home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.clip-overlay {
    pointer-events: none;
}
/* ===== VIDEO MODAL FULLSCREEN (LOGO CLOSE) ===== */

.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 99999;
}

.video-modal.show {
    display: flex;
}

/* video fullscreen */
.video-modal video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

/* LOGO ALS SLUITKNOP */
.video-logo-close {
    position: fixed;
    top: 18px;
    right: 22px;

    width: 56px;
    height: auto;

    cursor: pointer;
    z-index: 100000;

    opacity: 0.9;
    transition: opacity .2s ease, transform .2s ease;
}

.video-logo-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* titel blijft weg */
.video-title {
    display: none;
}

/* ===== CURSOR AUTO HIDE IN VIDEO MODAL ===== */

.video-modal.hide-cursor {
    cursor: none;
}

/* logo ook verbergen als cursor weg is (optioneel maar strak) */
.video-modal.hide-cursor .video-logo-close {
    opacity: 0;
    pointer-events: none;
}