/* --- Global Styles --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    transition: none !important; /* Instant hover, no delays */
}

:root {
    --primary: #800000;
    --dark: #000000;
    --text: #c0c0c0;
	--light: #d60000;
    --font-main: 'Special Elite', system-ui;
}

body::after {
   content: url('header2.png') !important; 
   display: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Set your image here */
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    /* Low opacity makes it look dark because the black body shows through */
    opacity: 0.1; 
    
    /* Ensures the background stays behind your text/panels */
    z-index: -1; 
}

body {
	background-color: #000; /* This is the 'darkness' coming through the image */
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
	cursor: url('cursor.png'), auto;
}

/* Apply to the whole site */
html {
  cursor: url('cursor.png'), auto;
  scroll-behavior: smooth;
}

html, body {
  cursor: url('cursor.png') 0 0, auto;
  
}

/* Change the cursor when hovering over links */
a:hover { 
  cursor: url("cursor.png"), auto;
}

a, button, input[type="submit"], .clickable-element {
  cursor: url('cursor.png') 0 0, pointer !important;
}

.auto {
    cursor: url("cursor.png"), auto;

}

/* Gritty Texture */
.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.3; pointer-events: none; z-index: 50;
}

.main-container {
    max-width: 950px;
    margin: 20px auto;
    position: relative;
    z-index: 100;
    border: 1px solid var(--primary);
    background: rgba(5, 0, 0, 0.95);
}

.side-text {
	color: var(--primary);
}

.side-text:hover {
	color: #fff;
}

.clickable {
	text-decoration: none;
	color: #c0c0c0;
	margin-bottom: 50px;
}

.clickable:hover {
	color: #d60000;
}

.spotify-arune {
	margin-top: 20px;
	margin-bottom: 20px;
}

/* --- Header & Navigation --- */
.header {
    text-align: center;
    padding: 30px;
    border-bottom: 2px solid var(--primary);
}

.logo {
    max-width: 100%;
}

/* Instant Hover Swap */
.header-img-container:hover .logo {
    content: url('header2.png') !important;
}

.hover-text .hidden {
  display: none; /* Hide the second span by default */
}

.hover-text:hover .original {
  display: none; /* Hide the first span on hover */
}

.hover-text:hover .hidden {
  display: inline; /* Show the second span on hover */
  background-color:#800000;
}

.nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.4rem;
	margin-right:30px;
}

.nav a:hover {
    background-color:#800000;
	color:black;
}

/* --- Layout --- */
.layout-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-bottom: 1px solid var(--primary);
}

.sidebar {
    padding: 10px;
}

.panel {
    border: 1px solid var(--primary);
    margin-bottom: 20px;
    background: #000;
}

.panel-title {
    background: var(--primary);
    color: #fff;
    padding: 5px 10px;
    font-size: 1rem;
}

.panel-content { padding: 15px; }

.info-line { margin-bottom: 8px; font-size: 0.9rem; }
.info-line span { color: var(--light); }

.sidebar-links a {
    display: block; 
    margin-top: 5px;
    color: var(--text); 
    text-decoration: underline; 
    font-size: 0.85rem;
}

.sidebar-links a:hover { color: var(--primary); }

/* --- Scrollbar Text Loop --- */
.scrollbar-track {
    position: absolute;
    right: -30px;
    top: 0;
    width: 25px;
    height: 100%;
    background: #000;
    border: 1px solid var(--primary);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.scrollbar-loop {
    display: flex;
    flex-direction: column;
    animation: scroll-v 15s linear infinite;
}

.scrollbar-loop span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--primary);
    font-size: 10px;
    padding: 25px 0;
    white-space: nowrap;
}

@keyframes scroll-v {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

/* --- Content Area --- */
.content {
    border-left: 1px solid var(--primary);
    padding: 30px;
}

.video-frame {
    position: relative;
    border: 1px solid #222;
    overflow: hidden;
}

.highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0); /* Transparent by default */
    z-index: 5;
    transition: none !important;
}

.featured-link:hover .highlight-overlay {
    background: rgba(255, 255, 255, 0.1); /* Slight white "shine" cover */
}

.featured-link:hover .video-gif {
    filter: brightness(1.3); /* Makes the actual gif brighter */
}

.video-gif { width: 100%; display: block; filter: contrast(110%); }

.shadow-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 80px #000;
}

.page-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin: 20px 0;
    text-align: center;
    border-bottom: 1px solid var(--primary);
	margin-bottom:10px;
}

.center-btn { text-align: center; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    background: transparent;
}

.btn:hover {
    background: var(--primary);
}

/* --- Grid Section --- */
section {
    scroll-margin-top: 80px; /* Adjust this number based on your header height */
}

.section-title {
    font-size: 1.5rem;
    margin: 40px 0 20px 0;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    margin: 40px 0 10px 0;
    padding-bottom: 5px;
	color:#800000;
}

.section-subtitle:hover {
	color:#fff;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.post-img-cover {
	width:190px;
}

.post-img-cover:hover {
	filter: brightness(20%);
}

.post:hover .post-img {
    background: var(--primary);
    color: #fff;
}

.post label { font-size: 0.75rem; color: #666; }

/* Darkened & Blurred Background */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

/* Bigger Modal Panel */
.modal-panel {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    border: 1px solid #800000;
    padding: 40px; /* More breathing room */
    width: 90%;
    max-width: 850px; /* Widened the box */
}

.modal-flex { 
    display: flex; 
    gap: 40px; 
    align-items: flex-start;
}

/* Bigger Image */
#modal-img { 
    width: 350px; /* Doubled the size */
    height: 350px; 
    border: 1px solid #800000; 
    object-fit: cover;
}

/* Bigger Text Content */
.modal-info { flex: 1; }

#modal-title { 
    color: #800000; 
    margin-bottom: 20px; 
    font-size: 2.5rem; /* Huge title */
    text-transform: uppercase;
}

#modal-desc { 
    font-size: 1.2rem; /* Bigger description */
    color: #ccc; 
    margin-bottom: 30px; 
    line-height: 1.6;
}

/* Link Styling */
.modal-links a {
    display: block;
    color: #800000;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modal-links a:hover { 
    color: #fff; 
    text-decoration: underline;
}

/* The X */
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    color: #800000;
    font-size: 35px;
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    padding: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

.page-title {
    font-size: 1.8rem;
    color: #fff;
    text-align: left;
	margin: 0 auto;
}

.song-title {
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
	margin: 20px 0;
	text-decoration: none;
}

.song-title:hover {
    color:#fff;
}

.small-img {
	width:12px;
	margin-right:10px;
	bottom:10px;
}

.profile {
	display: flex;         /* Turns on Flexbox */
  align-items: center;    /* Centers items vertically */
  gap: 15px;             /* Adds space between the image and text */
  padding: 10px;
  background-color: #0D0D0D;
  margin-bottom:10px;
}

.profile-img {
	width:60px;
	height:60px;
	display: block;
}

.profile-name {
	font-size:20px;
	font-weight: bold;
}

.social-link {
  text-decoration: none;
  display: flex;
  align-items: center; /* Aligns the tiny icons with the link text */
  color: white; /* Or your preferred link color */
  text-decoration: none;
}

.image-cycle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cycle-controls {
    display: flex;
    gap: 15px;
    user-select: none;
}

.arrow {
    cursor: url('cursor.png'), pointer !important;
    font-size: 10px;
    color: var(--primary); /* Uses your dark red */
}

.arrow:hover {
    color: #fff;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Ensure the lightbox is instant and fits your theme */
.overlay {
    transition: none !important; /* No fade in */
}

.modal-panel {
    transition: none !important; /* No sliding/scaling */
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-height: 80vh; /* Prevents image from being taller than the screen */
    object-fit: contain;
}

/* Make the main profile pic look clickable */
.profile-img {
    cursor: url('cursor.png'), pointer !important;
}

/* Special styling for the Grid Modals */
.grid-modal {
    max-height: 80vh;
    overflow-y: auto;
    width: 95% !important;
    max-width: 900px !important;
    display: block !important; /* Overrides the flex used in your detail modal */
}

/* Make sure the grid inside the modal looks good */
.grid-modal .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    padding-bottom: 20px;
}

.warning {
	font-size:15px;
	padding-bottom: 10px;
	text-align: center;
}

/* Custom scrollbar for the modal so it matches your theme */
.grid-modal::-webkit-scrollbar { width: 5px; }
.grid-modal::-webkit-scrollbar-thumb { background: var(--primary); }

/* Browser Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--primary); }

.beats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 beats per row */
    gap: 20px;
    margin-top: 20px;
}

.beat-card {
    display: flex;
    align-items: center; /* Puts name/price next to the middle of the image */
    gap: 12px;
}

.beat-img-container {
    position: relative;
    width: 60px; /* Smaller images for the 4-column layout */
    height: 60px;
    flex-shrink: 0;
    border: 1px solid var(--primary);
}

.beat-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beat-info {
    display: flex;
    flex-direction: column;
}

.beat-name {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
}

.beat-price {
    font-size: 0.75rem;
    color: var(--primary);
    margin: 0;
}

/* Visibility Logic */
.play-btn-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
    color: #fff;
    cursor: pointer;
}

/* Show icon on hover OR when playing */
.beat-img-container:hover .play-btn-overlay,
.beat-img-container.is-playing .play-btn-overlay {
    opacity: 1;
}

/* Styling for buttons when they live inside the grid */
.grid-fill-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 60px; /* Matches your .beat-img-container height */
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 0.75rem !important; /* Keeps text small enough to fit the column */
    text-align: center;
    white-space: normal; /* Allows text to wrap if the column is narrow */
}

/* Remove the old beat-actions styling if you aren't using it anymore */
.beat-actions {
    display: none;
}

.now-playing {
    position: fixed;
    bottom: -60px; /* Hidden by default */
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: bottom 0.3s ease; /* Smooth slide up */
    font-family: var(--font-main);
}

/* When active, this class slides it up */
.now-playing.active {
    bottom: 0;
}

.now-playing-content {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.status-label {
    color: var(--primary);
    margin-right: 10px;
}

/* Red Pulsing Dot */
.pulse-dot {
    height: 8px;
    width: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    margin-right: 15px;
    box-shadow: 0 0 0 rgba(128, 0, 0, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(128, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(128, 0, 0, 0); }
}

.back-to-top {
    position: fixed;
    top: 10px; /* Sits just above your Now Playing bar */
	left: 45%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 12px;
    font-size: 0.7rem;
    font-family: var(--font-main); /* Your typewriter font */
    cursor: url('cursor.png'), pointer !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    letter-spacing: 2px;
}

/* Show class added via JS */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary);
}

.side-img {
	width:190px;
	margin-left:33px;
	margin-top:20px;
}

.side-warning {
	font-size: 13px;
	text-align: center;
	color: #262626;
	margin-top:15px;
}

.watermark {
	font-size: 15px;
	text-align: center;
	color: #0c0d0c;
	margin-top:70px;
}

.watermark:hover {
	background-color: #0D0C0C;
	color: #000000;
}

/* --- COMPLETE MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    /* 1. Reset Container: Full width, no side gaps */
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border: none !important;
    }

    /* 2. Remove "Junk": Side text loop, extra images, and watermarks */
    .scrollbar-track, 
    .side-img, 
    .side-warning, 
    .watermark,
    body::before { /* Also hides the watermark fade on mobile for speed */
        display: none !important;
    }

    /* 3. Stack Layout: Sidebar (top) -> Content (bottom) */
    .layout-body {
        display: flex;
        flex-direction: column;
    }

    /* 4. Sidebar: Tighten up to bridge the gap to "Latest" */
    .sidebar {
        width: 100%;
        padding: 15px 15px 0 15px;
        border-right: none !important;
    }

    .panel-content {
        text-align: center;
    }

    .sidebar-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 5. Content Centering & VERTICAL Stacking (Releases/Covers) */
    .content {
        width: 100%;
        padding: 10px 20px;
        border-left: none;
        text-align: center;
    }

    .post-grid {
        grid-template-columns: 1fr !important;
        justify-items: center;
        gap: 30px;
    }

    /* FORCES LABELS BELOW IMAGES */
    .post {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
    }

    .post-img-cover {
        width: 250px;
        height: auto;
    }

    .post label {
        margin-top: 10px;
        display: block;
        width: 100%;
    }

    /* 6. Beats Section: 2 per row, text below image */
    .beats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 10px;
    }

    .beat-card {
        display: flex !important;
        flex-direction: column !important; /* Forces text under beat thumb */
        align-items: center !important;
        text-align: center;
    }

    .beat-img-container {
        width: 100px;
        height: 100px;
        margin-bottom: 8px;
    }

    .beat-name {
        margin-top: 5px;
        display: block;
    }

    /* 7. PROFILE LIGHTBOX FIX: Smaller popup for shynin9s etc */
    .modal-panel {
        width: 85% !important; 
        padding: 20px !important;
        max-height: 90vh;
    }

    #lightbox-img {
        max-width: 100% !important;
        max-height: 60vh !important; 
        object-fit: contain;
    }

    #lightbox-caption {
        font-size: 0.8rem !important;
        margin-top: 10px;
    }

    /* 8. Feature Modal Fix (The music info popup) */
    .modal-flex {
        flex-direction: column !important;
        align-items: center !important;
    }

    #modal-img {
        width: 220px !important; 
        height: 220px !important;
        margin-bottom: 15px;
    }

    /* 9. Navigation & Header Fixes */
    .nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .nav a {
        margin: 0;
        font-size: 1.2rem;
    }

    .featured {
        margin-top: 0;
        text-align: center;
    }

    .page-title {
        margin-top: 5px;
        text-align: center;
    }

    /* Back to top button - centered */
    .back-to-top {
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        text-align: center;
    }
	
}

