@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-body: #0f0f13;
    --bg-sidebar: #16161a;
    --bg-card: #1e1e24;
    --primary: #ff3366;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-white); display: flex; min-height: 100vh; overflow-x: hidden; }

/* SIDEBAR */
#sidebar {
    width: var(--sidebar-width); background-color: var(--bg-sidebar); height: 100vh; position: fixed;
    top: 0; left: 0; border-right: 1px solid #2a2a35; z-index: 1000;
    transition: transform 0.3s ease; display: flex; flex-direction: column;
}
.logo-area { height: 70px; display: flex; align-items: center; padding: 0 25px; font-size: 22px; font-weight: 700; color: var(--primary); border-bottom: 1px solid #2a2a35; }
.logo-area span { color: #fff; }
.menu { list-style: none; padding: 20px 0; flex-grow: 1; overflow-y: auto; }
.menu li a { display: flex; align-items: center; padding: 12px 25px; color: var(--text-gray); text-decoration: none; transition: 0.3s; font-size: 14px; border-left: 3px solid transparent; }
.menu li a:hover, .menu li a.active { background: rgba(255, 51, 102, 0.05); color: var(--primary); border-left-color: var(--primary); }
.menu li a i { width: 30px; margin-right: 10px; text-align: center; }

/* MAIN CONTENT */
#main-content { flex: 1; margin-left: var(--sidebar-width); padding: 30px; transition: margin-left 0.3s ease; width: 100%; }
.top-bar { display: none; align-items: center; margin-bottom: 20px; } /* Mobile Only */

/* GRIDS & CARDS */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.card { background: var(--bg-card); border-radius: 12px; overflow: hidden; transition: transform 0.3s; position: relative; cursor: pointer; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.card-thumb { width: 100%; height: 160px; object-fit: cover; background: #000; }
.card-body { padding: 15px; }
.card-tag { font-size: 10px; text-transform: uppercase; background: var(--primary); color: #fff; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.card-title { font-size: 15px; font-weight: 600; margin: 10px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-artist { font-size: 12px; color: var(--text-gray); display: flex; align-items: center; }

/* BUTTONS & FORMS */
.btn-primary { display: inline-block; background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; font-size: 14px; text-align: center; }
.btn-primary:hover { background: #e02e5a; }
.form-box { background: var(--bg-card); padding: 30px; border-radius: 12px; max-width: 600px; margin: 30px auto; border: 1px solid #333; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-gray); }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px; background: #141418; border: 1px solid #333; border-radius: 6px; color: #fff; outline: none; }
.input-group input:focus { border-color: var(--primary); }

/* MODAL POPUP */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: #1e1e24; width: 100%; max-width: 900px; max-height: 90vh; border-radius: 12px; overflow-y: auto; display: flex; flex-direction: column; }
.modal-header { padding: 15px 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.close-modal { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.modal-body { display: flex; flex-direction: column; }
.modal-media { width: 100%; height: 350px; background: #000; position: relative; display: flex; align-items: center; justify-content: center; }
.modal-media img, .modal-media iframe { width: 100%; height: 100%; object-fit: contain; }
.modal-info { padding: 20px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 10px; cursor: pointer; font-size: 20px; z-index: 10; }
.prev-btn { left: 10px; } .next-btn { right: 10px; }

@media(min-width: 768px) {
    .modal-body { flex-direction: row; }
    .modal-media { width: 65%; height: auto; min-height: 400px; }
    .modal-info { width: 35%; border-left: 1px solid #333; }
}
@media (max-width: 992px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.active { transform: translateX(0); }
    #main-content { margin-left: 0; }
    .top-bar { display: flex; }
}