/* Основные стили */
:root {
    --primary-color: #3a0ca3; /* Глубокий фиолетовый */
    --secondary-color: #4cc9f0; /* Яркий голубой */
    --accent-color: #f72585; /* Яркий розовый */
    --dark-color: #10002b;  /* Очень темный фиолетовый */
    --light-color: #f1f1f1; /* Светло-серый */
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Orbitron', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    margin-bottom: 1rem;
    color: var(--light-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto 0;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

section {
    padding: 6rem 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cta-button, .send-button, .play-track {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center; /* Center icon vertically */
    justify-content: center; /* Center content horizontally */
    gap: 0.5rem; /* Space between icon and text */
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem; /* Adjusted padding */
    font-family: var(--font-title);
    font-size: 1rem; /* Adjusted font size */
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none; /* Ensure buttons styled as links look like buttons */
    text-align: center;
}

.cta-button:hover, .send-button:hover, .play-track:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Шапка сайта */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem; /* Reduced padding */
    height: var(--header-height);
    background: rgba(16, 0, 43, 0.9); /* Dark purple with transparency */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container {
    /* width: 150px; */ /* Removed fixed width for flexibility */
    flex-shrink: 0; /* Prevent logo from shrinking */
    display: flex; /* Added for vertical alignment if needed */
    align-items: center; /* Added for vertical alignment */
}

.logo-container img { /* Style for image logo */
    width: 150px; /* Or your desired width */
    height: auto;
}
.logo-container a { /* Style for FontAwesome logo link */
     font-size: 1.8rem; /* Adjust size of FA icon logo */
     color: var(--light-color);
     text-decoration: none;
     display: flex;
     align-items: center;
     gap: 0.5rem;
}
.logo-container a span { /* Style for text part of FA logo */
     font-family: var(--font-title);
     font-size: 1.2rem; /* Adjust text size */
     vertical-align: middle;
}


.animated-logo {
    width: 100%;
    height: auto;
    /* Add animation later if needed */
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: var(--light-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

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

.mobile-nav-toggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
    padding: 0.5rem; /* Add padding for easier clicking */
}

/* Mobile Navigation Styles */
.mobile-navigation {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(16, 0, 43, 0.98); /* More opaque */
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: calc(100vh - var(--header-height)); /* Limit height */
    overflow-y: auto; /* Add scroll if needed */
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-navigation li {
    margin-bottom: 1.5rem;
}

.mobile-navigation a {
    color: var(--light-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    padding: 0.8rem 1rem; /* Increased padding */
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease; /* Added transition */
}

.mobile-navigation a:hover {
    color: var(--accent-color); /* Changed hover color */
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background on hover */
}


/* Главная секция hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem; /* Adjust top padding for fixed header */
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a0068 100%);
    overflow: hidden;
}

.digital-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent particles from interfering with clicks */
}

.particle { /* Style for JS generated particles */
    position: absolute;
    background-color: rgba(76, 201, 240, 0.4); /* Use secondary color, semi-transparent */
    border-radius: 50%;
    animation: particle-float 10s infinite ease-in-out alternate;
    opacity: 0; /* Start invisible */
    box-shadow: 0 0 5px rgba(76, 201, 240, 0.5); /* Add a subtle glow */
}

.digital-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Responsive font size */
    margin-bottom: 1.5rem;
    position: relative;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch 3s ease-in-out forwards;
    z-index: 1;
    text-shadow: 0 0 15px rgba(247, 37, 133, 0.3); /* Add subtle glow */
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem); /* Responsive font size */
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 1s forwards;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8); /* Slightly less bright than white */
}

#play-album {
    z-index: 1; /* Ensure button is above particles */
}

/* Секция треков */
.tracks-section {
    background: var(--dark-color);
}

.tracks-section h2 { /* Add specific styling for tracks section heading */
    color: var(--light-color);
}
.tracks-section h2:after {
     background: var(--secondary-color); /* Different accent for this section */
}


.track-card {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */ /* Responsive columns */
    grid-template-columns: 1fr; /* Default to stacked */
    gap: 0; /* Remove gap, handle spacing internally */
    margin-bottom: 3rem; /* Reduced margin */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border-left: 4px solid var(--theme-color, var(--primary-color));
    opacity: 0; /* For fade-in animation */
    transform: translateY(20px); /* For fade-in animation */
}

.track-card.visible { /* Class added by JS on scroll */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s; /* Add delay */
}


.track-card:hover {
    transform: translateY(-5px) scale(1.01); /* Subtle lift and scale */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.track-info {
    padding: 1.5rem 2rem; /* Adjust padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2; /* Info below image on small screens */
}

.track-info h3 {
    font-size: 1.6rem; /* Slightly smaller */
    margin-bottom: 0.5rem;
    color: var(--theme-color, var(--light-color)); /* Use theme color or default */
}

.track-info .duration {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.track-info .description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem; /* Slightly smaller description */
}

.play-track {
    align-self: flex-start;
    background: var(--theme-color, var(--primary-color));
    padding: 0.6rem 1.5rem; /* Slightly smaller button */
}

.track-visual {
    position: relative;
    overflow: hidden;
    min-height: 250px; /* Ensure visual part has height */
    order: 1; /* Image above info on small screens */
}

.track-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.track-card:hover .track-image {
    transform: scale(1.03); /* Slightly less scale */
    filter: brightness(0.9); /* Slightly less dark */
}

/* About Section Styling */
.about-section {
    background: linear-gradient(to bottom, var(--dark-color), #19024d);
}
.about-section h2:after {
    background: var(--accent-color); /* Consistent accent */
}


.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center; /* Vertically align items */
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Concept Section Styling */
.concept-section {
    background: linear-gradient(to bottom, #19024d, var(--dark-color));
}

.concept-section h2:after {
    background: var(--secondary-color);
}

.concept-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.concept-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0.3;
    border-radius: 3px; /* Rounded line */
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
    padding: 0 40px; /* Space from center line */
}

.timeline-item:nth-child(odd) { left: 50%; }
.timeline-item:nth-child(even) { left: 0; text-align: right; }

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 50%;
    margin-left: -25px;
    background: var(--dark-color); /* Match background */
    border: 3px solid var(--theme-color, var(--secondary-color)); /* Use theme color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--dark-color), 0 5px 15px rgba(0, 0, 0, 0.3); /* Updated shadow */
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-item:hover .timeline-icon {
     transform: scale(1.1);
     border-color: var(--accent-color); /* Highlight border on hover */
}

/* --- Font Awesome icon style in Timeline --- */
.timeline-icon i {
    font-size: 1.6rem; /* Size of the icon */
    color: var(--theme-color, var(--secondary-color)); /* Use theme color */
    line-height: 1;
    transition: color 0.3s ease;
}
.timeline-item:hover .timeline-icon i {
    color: var(--accent-color); /* Highlight icon on hover */
}
/* --- End FA icon style --- */


.timeline-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: background-color 0.3s ease;
}
.timeline-item:hover .timeline-content {
     background: rgba(255, 255, 255, 0.08);
}

/* Arrow pointing to the timeline */
.timeline-item:nth-child(odd) .timeline-content::before {
    content: ''; position: absolute; top: 20px; left: -14px; /* Adjusted for border */
    width: 0; height: 0; border-top: 15px solid transparent;
    border-bottom: 15px solid transparent; border-right: 15px solid rgba(255, 255, 255, 0.05);
    transition: border-right-color 0.3s ease;
}
.timeline-item:hover:nth-child(odd) .timeline-content::before {
    border-right-color: rgba(255, 255, 255, 0.08);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: ''; position: absolute; top: 20px; right: -14px; /* Adjusted for border */
    width: 0; height: 0; border-top: 15px solid transparent;
    border-bottom: 15px solid transparent; border-left: 15px solid rgba(255, 255, 255, 0.05);
    transition: border-left-color 0.3s ease;
}
.timeline-item:hover:nth-child(even) .timeline-content::before {
    border-left-color: rgba(255, 255, 255, 0.08);
}


.timeline-content h3 {
    margin-top: 0;
    color: var(--theme-color, var(--secondary-color)); /* Use theme color */
    font-size: 1.3rem;
    transition: color 0.3s ease;
}
.timeline-item:hover .timeline-content h3 {
    color: var(--accent-color);
}


.timeline-content p {
    margin-bottom: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem; /* Smaller text */
}

/* Contact Section Styling */
.contact-section {
    background: linear-gradient(to bottom, var(--dark-color), #0c0129);
}

.contact-section h2:after {
    background: var(--accent-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links h3, .contact-form h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-align: left; /* Align headings left */
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-link {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--light-color); /* Ensure text color is light */
    text-decoration: none; /* Remove underline */
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px); /* Subtle shift */
    color: var(--accent-color); /* Change text color on hover */
}

/* --- Font Awesome icon style in Social Links --- */
.social-link i {
    font-size: 1.5rem;
    color: inherit; /* Inherit color from parent <a> */
    margin-right: 1rem;
    width: 1.5em; /* Ensure consistent width */
    text-align: center;
    transition: color 0.3s ease;
}
/* Hover handled by parent <a> hover */
/* --- End FA icon style --- */


.social-link span {
    font-size: 1.1rem;
    font-weight: 500;
    color: inherit; /* Inherit color from parent <a> */
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--light-color);
    font-family: var(--font-main);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
}


.form-group textarea {
    min-height: 120px;
}

.send-button {
    width: 100%;
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    display: none; /* Hide initially */
}
#form-status.success {
    color: #1abc9c; /* Teal for success */
    background-color: rgba(26, 188, 156, 0.1);
    border: 1px solid rgba(26, 188, 156, 0.3);
    display: block;
}
#form-status.error {
    color: var(--accent-color);
    background-color: rgba(247, 37, 133, 0.1);
    border: 1px solid rgba(247, 37, 133, 0.3);
    display: block;
}

/* Footer Styling */
.site-footer {
    background: #0c0129;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    /* width: 100px; */ /* Removed fixed width */
}

.footer-logo img { /* Style for image logo */
    width: 100px;
    height: auto;
    opacity: 0.8;
}
.footer-logo a { /* Style for FA icon logo */
     font-size: 1.5rem;
     color: rgba(255,255,255,0.6);
     text-decoration: none;
     transition: color 0.3s ease;
}
.footer-logo a:hover {
    color: var(--secondary-color);
}


.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    flex-grow: 1;
}

.footer-links a {
    margin-left: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* ------ Плеер ------ */

/* Мини-плеер в шапке */
.mini-player {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Slightly more gap */
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    min-width: auto; /* Let it size naturally */
    max-width: 300px; /* Prevent it getting too wide */
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    flex-grow: 1;
}

.mini-player-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.2); /* Placeholder color */
}

.mini-player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-player-info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--light-color);
    margin: 0;
}

.mini-player-controls {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0; /* Prevent controls shrinking */
}

.mini-player-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem; /* Slightly more padding */
    transition: color 0.3s ease, transform 0.2s ease;
    line-height: 1; /* Prevent extra space */
    opacity: 0.8;
}

.mini-player-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
     opacity: 1;
}
.mini-player-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    color: var(--light-color); /* Keep color for disabled */
}


.mini-player-expand {
     flex-shrink: 0;
}


/* Полноэкранный плеер */
#fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 0, 43, 0.95) 0%, rgba(42, 0, 104, 0.95) 100%);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem; /* Reduced padding */
    transition: opacity 0.4s ease, visibility 0.4s ease; /* Faster transition */
    opacity: 1;
    visibility: visible;
}

#fullscreen-player.hidden {
    opacity: 0;
    visibility: hidden;
}

.player-container {
    max-width: 600px;
    width: 100%;
    padding: 2rem 1.5rem; /* Adjusted padding */
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Increased overlay darkness */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); /* Stronger shadow */
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Limit height */
}

.player-btn.close-player {
    position: absolute;
    top: 1rem; /* Closer to edge */
    right: 1rem;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2010; /* Ensure above other content */
    padding: 0.5rem;
}
.player-btn.close-player:hover {
     color: var(--light-color);
     background-color: rgba(255,255,255,0.1); /* Subtle background on hover */
     border-radius: 50%;
}

.current-track-image {
    width: clamp(150px, 40vw, 250px); /* Adjusted responsive size */
    height: clamp(150px, 40vw, 250px);
    margin: 0 auto 1.5rem; /* Reduced bottom margin */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.05); /* Placeholder color */
}

.current-track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-track-info h3 {
    font-size: clamp(1.4rem, 5vw, 1.8rem); /* Slightly smaller */
    margin-bottom: 1rem; /* Reduced margin */
    color: var(--light-color);
    line-height: 1.3; /* Adjusted line height */
    min-height: 1.3em; /* Prevent jump when text changes */
}

.player-progress {
    margin: 1rem 0; /* Reduced margin */
    height: 8px;
    background: rgba(255, 255, 255, 0.15); /* Slightly more visible background */
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 5px;
    width: 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--accent-color); /* Add glow to progress */
}

.player-timestamps {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7); /* More visible */
    margin-top: -0.5rem; /* Position closer */
    margin-bottom: 1rem;
    padding: 0 5px;
}


.player-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem; /* Reduced margin */
    gap: 1.5rem;
}

.player-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    opacity: 0.9; /* Slightly less bright */
}
.player-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    opacity: 1;
}
.player-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    color: var(--light-color); /* Keep color for disabled */
}


#player-play-pause {
    font-size: 2.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
#player-play-pause:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* Track list inside player */
.album-tracks {
    margin-top: 2rem; /* More space before list */
    flex-grow: 1; /* Allow list to take remaining space */
    overflow-y: auto; /* Enable scrolling */
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* More visible border */
    padding-top: 1rem;
    /* Custom scrollbar (optional) */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}
/* Webkit scrollbar */
.album-tracks::-webkit-scrollbar { width: 6px; }
.album-tracks::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 3px;}
.album-tracks::-webkit-scrollbar-thumb { background-color: var(--accent-color); border-radius: 3px; }


.album-tracks h4 {
    font-size: 0.9rem; /* Smaller heading */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: sticky; /* Keep heading visible */
    top: 0;
    background: rgba(0, 0, 0, 0.5); /* Background for sticky header */
    z-index: 1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.tracks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease; /* Faster transition */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* More subtle separator */
    color: rgba(255, 255, 255, 0.8); /* Default text color */
}

.track-item:last-child {
    border-bottom: none; /* Remove border from last item */
}


.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.track-item.playing {
    background-color: rgba(76, 201, 240, 0.15); /* Secondary color highlight */
    color: var(--secondary-color); /* Text color for playing */
    font-weight: 500;
}
/* Hover effect for playing item */
.track-item.playing:hover {
     background-color: rgba(76, 201, 240, 0.25);
}

.track-number {
    color: rgba(255, 255, 255, 0.5);
    min-width: 25px;
    text-align: right;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.track-title {
    flex-grow: 1;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem; /* Slightly smaller */
}

.track-duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0; /* Prevent duration shrinking */
}

.track-item.playing .track-duration,
.track-item.playing .track-number {
    color: var(--secondary-color);
    opacity: 0.8;
}

/* Style for playing icon */
.play-status-icon {
    /* Styles defined in the previous FA icon section */
    color: inherit; /* Inherit color from .track-item.playing */
}

/* ------ Адаптивный дизайн ------ */

@media (max-width: 1200px) {
    /* Timeline adjustments for wider tablets */
    .concept-timeline::before {
        left: 30px;
        margin-left: 0;
    }
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
        left: 0 !important;
        text-align: left !important;
        margin-bottom: 3rem;
    }
    .timeline-icon {
        left: 30px;
        margin-left: -25px;
    }
    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -14px;
        right: auto;
        border-left: none;
        border-right: 15px solid rgba(255, 255, 255, 0.05);
    }
     .timeline-item:hover:nth-child(even) .timeline-content::before,
     .timeline-item:hover:nth-child(odd) .timeline-content::before {
        border-right-color: rgba(255, 255, 255, 0.08);
    }

}


@media (max-width: 992px) {
    section { padding: 4rem 1.5rem; }
    h2 { font-size: 2.2rem; margin-bottom: 2.5rem; }
    h2:after { margin-top: 0.8rem; }

    .main-navigation { display: none; }
    .mobile-nav-toggle { display: block; }

    .site-header { padding: 0.8rem 1.5rem; }

     /* Track Card: Ensure grid is used on larger screens before stacking */
     @media (min-width: 769px) { /* Apply side-by-side only above mobile */
          .track-card {
            grid-template-columns: 1fr 1fr; /* Side-by-side */
            gap: 0; /* Usually better without gap if image touches info */
        }
        .track-info { order: 1; padding: 2rem;} /* Info left */
        .track-visual { order: 2; } /* Image right */
     }
     /* On 992px and below, it stacks due to default grid-template-columns: 1fr */


    .about-content,
    .contact-content {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2.5rem; /* Increased gap */
    }
    .about-image { order: 1; }
    .about-text { order: 2; }
    .contact-form { order: 1; } /* Form first */
    .social-links { order: 2; } /* Links second */
    .social-links h3, .contact-form h3 { text-align: center; } /* Center headings */


    .mini-player {
        max-width: none; /* Allow full width if needed */
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }
    .mini-player-title { display: none; }
    .mini-player-image { width: 25px; height: 25px; }
    .mini-player-btn { font-size: 0.9rem; padding: 0.3rem;}

}

@media (max-width: 768px) {
    :root { --header-height: 60px; } /* Adjust header height */
    .site-header { height: var(--header-height); padding: 0.5rem 1rem; }
    .mobile-navigation { top: var(--header-height); }
    .hero-section { padding-top: calc(var(--header-height) + 1.5rem); } /* Adjust hero padding */


    .digital-title { font-size: clamp(2rem, 10vw, 2.8rem); }
    .subtitle { font-size: clamp(1rem, 4vw, 1.2rem); }

    /* Timeline adjustments for smaller screens */
     .concept-timeline::before { left: 20px; }
     .timeline-item { padding-left: 60px; padding-right: 10px; margin-bottom: 2.5rem;}
     .timeline-icon { width: 40px; height: 40px; left: 20px; margin-left: -20px; border-width: 2px; }
     .timeline-icon i { font-size: 1.2rem; }
     .timeline-content { padding: 1rem; }
     .timeline-content h3 { font-size: 1.1rem; }
     .timeline-content p { font-size: 0.85rem; }
     .timeline-item:nth-child(even) .timeline-content::before,
     .timeline-item:nth-child(odd) .timeline-content::before {
         top: 15px; left: -9px; border-top-width: 10px; border-bottom-width: 10px; border-right-width: 10px;
     }


    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-text { margin: 1rem 0; order: 2; }
    .footer-logo { order: 1; }
    .footer-links { order: 3; margin-top: 0.5rem; }
    .footer-links a { margin: 0 0.75rem; }

    .player-container { padding: 1.5rem 1rem; max-height: 85vh; }
    .player-btn.close-player { top: 0.8rem; right: 0.8rem; }
}

@media (max-width: 576px) {
    section { padding: 3rem 1rem; }
    h2 { font-size: 1.8rem; margin-bottom: 2rem; }
    h2:after { width: 40px; height: 2px; margin-top: 0.8rem; }


    .cta-button, .send-button, .play-track {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .track-info { padding: 1.5rem; }
    .track-info h3 { font-size: 1.4rem; }
    .track-visual { min-height: 200px; }


    .about-text p { font-size: 1rem; }


    .contact-content { gap: 1.5rem; }
    .contact-form { padding: 1.5rem; }
    .social-link { margin-bottom: 1rem; padding: 0.6rem 0.8rem;}
    .social-link i { font-size: 1.3rem; }
    .social-link span { font-size: 1rem; }


    .current-track-info h3 { font-size: clamp(1.2rem, 5vw, 1.5rem); }

    .player-buttons { margin-top: 1.5rem; gap: 1rem; }
    .player-btn { font-size: 1.3rem; }
    #player-play-pause { width: 50px; height: 50px; font-size: 1.8rem; }

    .album-tracks { margin-top: 1.5rem; max-height: 150px; }
    .track-item { padding: 0.6rem 0.8rem; }
    .track-title { font-size: 0.9rem; }
}

/* Media query for landscape orientation on phones */
@media (max-height: 500px) and (orientation: landscape) {
    #fullscreen-player {
        overflow-y: auto; /* Allow scrolling in landscape */
        justify-content: flex-start; /* Align top */
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .player-container {
         flex-direction: row; /* Side-by-side layout */
         max-width: 95vw;
         max-height: none; /* Remove height limit */
         padding: 1rem;
         gap: 1.5rem;
         align-items: center;
    }
    .player-info-controls { /* Wrapper for image, title, progress, buttons */
         display: flex;
         flex-direction: column;
         align-items: center;
         flex-basis: 50%; /* Take half width */
         min-width: 250px;
    }
    .current-track-image {
         width: clamp(100px, 25vw, 150px);
         height: clamp(100px, 25vw, 150px);
         margin-bottom: 1rem;
    }
    .current-track-info h3 {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 0.8rem;
    }
    .player-progress { width: 100%; margin: 0.8rem 0; }
     .player-timestamps { margin-top: -0.2rem; margin-bottom: 0.8rem; }
    .player-buttons { margin-top: 1rem; }
    .album-tracks {
         flex-basis: 50%; /* Take other half width */
         margin-top: 0;
         border-top: none;
         border-left: 1px solid rgba(255, 255, 255, 0.15);
         padding-top: 0;
         padding-left: 1.5rem;
         max-height: calc(80vh - 2rem); /* Adjust height */
    }
     .album-tracks h4 {
         padding-top: 0.5rem; /* Adjust padding */
         padding-left: 0;
         margin-bottom: 0.5rem;
     }
      .player-btn.close-player { top: 0.5rem; right: 0.5rem; }

}

/* Style for tracks section grid layout on larger screens */
@media (min-width: 769px) {
     .tracks-section > h2 {
        grid-column: 1 / -1; /* Make heading span all columns */
        margin-bottom: 2rem; /* Add space below heading */
     }
     .tracks-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr)); /* Responsive grid */
        gap: 2rem;
     }
     .track-card {
        grid-template-columns: 1fr; /* Ensure stacking within the grid cell */
        margin-bottom: 0; /* Remove margin as gap handles spacing */
        display: flex; /* Use flex for better control within card */
        flex-direction: column;
     }
      .track-visual { min-height: 280px; } /* Consistent image height */
      .track-info { flex-grow: 1; } /* Allow info to take remaining space */
}