/* Base Styling */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

:root {
    --primary-color: #ff0000;
    --primary-dark: #990000;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --bg-color: #000000;
    --bg-gradient: linear-gradient(to bottom, rgba(30, 0, 0, 1), rgba(0, 0, 0, 1));
    --transparent-black: rgba(0, 0, 0, 0.7);
    --transparent-red: rgba(255, 0, 0, 0.2);
    --glass-effect: rgba(25, 25, 25, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-speed: 0.3s;
    --playlist-bg: rgba(20, 20, 20, 0.9);
    --playlist-hover: rgba(50, 50, 50, 0.9);
    --playlist-active: rgba(80, 0, 0, 0.6);
    --header-height: 70px; /* Default header height */
    --header-height-mobile: 110px; /* Mobile header height with stacked layout */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

/* Containers and layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Main content - no padding on desktop */
main {
    /* No padding-top on desktop */
}

.section {
    padding: 4rem 0;
    min-height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
    z-index: 1;
    position: relative;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-effect);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: background-color 0.3s ease;
    height: var(--header-height);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 1rem;
    height: 40px;
    width: auto;
}

.logo img {
    height: 100%;
    width: auto;
}

#main-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* Hero Section - Updated with sinnershero.webp */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/sinnershero.webp') no-repeat center center/cover;
    position: relative;
    /* Hero section handles its own spacing on desktop */
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Slightly adjusted overlay to better show the image */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Music Section - Section title removed */
/* Section title styles removed */

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 0; /* Adjusted from 2rem since the title is removed */
}

.music-card {
    background: var(--glass-effect);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.music-card:hover .music-card-image:before {
    opacity: 0.6;
}

.music-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.music-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.music-card:hover .music-card-image img {
    transform: scale(1.05);
}

.music-card-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0), var(--primary-dark));
    opacity: 0.3;
    transition: opacity var(--transition-speed) ease;
    z-index: 1;
}

.music-card-content {
    padding: 1.5rem;
    position: relative;
}

.music-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.music-card-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
}

.music-platforms {
    display: flex;
    gap: 0.75rem;
}

.platform-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition-speed) ease;
}

.platform-link:hover {
    color: var(--primary-color);
}

.platform-link i {
    font-size: 1.1rem;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: 2;
}

.play-button i {
    font-size: 1.5rem;
}

.music-card:hover .play-button {
    opacity: 1;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    background: var(--glass-effect);
    padding: 2rem;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    height: auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.channel-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.channel-link {
    background: var(--glass-effect);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.channel-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.1);
}

.channel-link i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.channel-link h4 {
    margin-bottom: 0.5rem;
}

.channel-link p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--glass-effect);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-color);
    font-family: inherit;
    transition: border-color var(--transition-speed) ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    border-radius: 4px;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

.social-links {
    padding: 2rem;
    background: var(--glass-effect);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.social-links h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.social-icon i {
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Player Modal - REDESIGNED */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.player-modal-content {
    background: var(--glass-effect);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 8px;
    width: 95%;
    max-width: 1200px; /* Increased from 800px to accommodate the wider layout */
    height: 80vh; /* Set fixed height for better control */
    max-height: 700px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    animation: modalFadeIn 0.5s ease forwards;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    color: var(--text-muted);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

.player-container {
    display: flex;
    height: 100%;
    width: 100%;
    gap: 1.5rem;
    flex: 1;
    overflow: hidden;
}

/* Left side - Player */
.player-main {
    flex: 3; /* Takes up more space than the playlist */
    display: flex;
    flex-direction: column;
}

.player-info {
    text-align: left;
    margin-bottom: 1rem;
}

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.player-info p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.player-iframe {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0; /* Important for flexbox to work properly */
}

.player-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Right side - Playlist */
.player-playlist {
    flex: 1;
    background: var(--playlist-bg);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    min-width: 250px;
}

.playlist-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.playlist-items {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom scrollbar for playlist */
.playlist-items::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.5);
    border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 4px;
    background: var(--playlist-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: var(--playlist-hover);
    border-color: var(--glass-border);
}

.playlist-item.active {
    background: var(--playlist-active);
    border-color: var(--primary-dark);
}

.playlist-thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item-info {
    flex: 1;
    min-width: 0; /* Important for text-overflow to work */
}

.playlist-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    color: var(--primary-color);
    font-size: 3rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo {
    margin-bottom: 1rem;
    height: 60px;
    width: auto;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    /* Switch to vertical layout for player on smaller screens */
    .player-container {
        flex-direction: column;
    }
    
    .player-modal-content {
        padding: 1rem;
        height: 85vh;
    }
    
    .player-iframe {
        min-height: 45vh;
    }
    
    .player-playlist {
        max-height: 200px;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #main-header {
        flex-direction: column;
        padding: 1rem;
        height: var(--header-height-mobile);
    }
    
    /* Add padding only on mobile */
    main {
        padding-top: var(--header-height-mobile);
    }
    
    .hero {
        margin-top: calc(-1 * var(--header-height-mobile));
        padding-top: var(--header-height-mobile);
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Mobile player adjustments */
    .modal.active {
        align-items: flex-start;
    }
    
    .player-modal-content {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        padding: 1rem 0.5rem;
        margin: 0;
    }
    
    .player-container {
        gap: 0.75rem;
    }
    
    /* Video with 16:9 aspect ratio */
    .player-main {
        position: relative;
        flex: none;
    }
    
    .player-info {
        padding: 0 0.5rem;
    }
    
    .player-iframe {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        flex: none;
    }
    
    .player-iframe iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Playlist takes all remaining space */
    .player-playlist {
        flex: 1;
        max-height: none;
        min-width: 0;
    }
    
    /* Mobile section spacing */
    .section {
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .player-modal-content {
        padding: 0.5rem 0;
    }
    
    .close-modal {
        top: 0.5rem;
        right: 0.8rem;
        z-index: 100;
    }
    
    .player-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .player-info p {
        font-size: 0.9rem;
    }
    
    .playlist-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.3rem;
    }
    
    .playlist-items {
        gap: 0.5rem;
    }
    
    .playlist-item {
        padding: 0.5rem;
    }
}