:root .darkmode {
    --primary-color: #DC143C;
    --secondary-color: #228B22;
    --accent-color: #FFD700;
    --success-color: #4ecdc4;
    --warning-color: #ffa726;
    --error-color: #ef5350;

    --bg-primary: #0f0a08;
    --bg-secondary: #1a0f0d;
    --bg-tertiary: #2a1410;

    --card-bg: rgba(220, 20, 60, 0.08);
    --card-border: rgba(34, 139, 34, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #e8d4c8;
    --text-muted: #a89080;

    --border-color: rgba(255, 215, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 8px rgba(220, 20, 60, 0.2);
    --shadow-md: 0 4px 16px rgba(220, 20, 60, 0.3);
    --shadow-lg: 0 8px 32px rgba(220, 20, 60, 0.4);

    /* Legacy variable mappings for compatibility */
    --bg-color: var(--bg-secondary);
    --accent: var(--primary-color);
    --accent-rgb: 220, 20, 60;
    --card-radius: var(--border-radius);
    --card-shadow: var(--shadow-md);
}

:root .lightmode {
    --primary-color: #DC143C;
    --secondary-color: #228B22;
    --accent-color: #FFD700;
    --success-color: #4ecdc4;
    --warning-color: #ffa726;
    --error-color: #ef5350;

    --bg-primary: #fef5f0;
    --bg-secondary: #fce8e0;
    --bg-tertiary: #fff0eb;

    --card-bg: rgba(220, 20, 60, 0.06);
    --card-border: rgba(34, 139, 34, 0.12);

    --text-primary: #1a1a1a;
    --text-secondary: #2d1a15;
    --text-muted: #6b4a3f;

    --border-color: rgba(34, 139, 34, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 8px rgba(220, 20, 60, 0.15);
    --shadow-md: 0 4px 16px rgba(220, 20, 60, 0.2);
    --shadow-lg: 0 8px 32px rgba(220, 20, 60, 0.25);

    /* Legacy variable mappings for compatibility */
    --bg-color: var(--bg-secondary);
    --accent: var(--primary-color);
    --accent-rgb: 220, 20, 60;
    --card-radius: var(--border-radius);
    --card-shadow: var(--shadow-md);
}

:root .christmas-mode {
    --primary-color: #DC143C;
    --secondary-color: #228B22;
    --accent-color: #FFD700;
    --success-color: #4ecdc4;
    --warning-color: #ffa726;
    --error-color: #ef5350;

    --bg-primary: #0d0805;
    --bg-secondary: #1a0f0a;
    --bg-tertiary: #2a1610;

    --card-bg: rgba(220, 20, 60, 0.12);
    --card-border: rgba(255, 215, 0, 0.2);

    --text-primary: #ffffff;
    --text-secondary: #f0e6d8;
    --text-muted: #c4a57b;

    --border-color: rgba(255, 215, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 8px rgba(220, 20, 60, 0.25);
    --shadow-md: 0 4px 16px rgba(220, 20, 60, 0.35);
    --shadow-lg: 0 8px 32px rgba(220, 20, 60, 0.45);

    /* Legacy variable mappings for compatibility */
    --bg-color: var(--bg-secondary);
    --accent: var(--primary-color);
    --accent-rgb: 220, 20, 60;
    --card-radius: var(--border-radius);
    --card-shadow: var(--shadow-md);
}


/* IMPORT Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

html {
    scrollbar-width: thin;
    scrollbar-color: #DC143C #1A1A1A;
}

/* main styles */
body {
    margin: 0;
    padding: 0;
    /*background: linear-gradient(45deg, #F3F4F6, #FFFFFF); */
    font-family: -apple-system, BlinkMacSystemFont, 'Poppins', Roboto, sans-serif;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-drag: none;
    line-height: 1.6;
    position: relative;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 2px solid rgba(var(--accent-rgb), 0.9);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

body.dark-mode {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.christmas-mode {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a05 50%, var(--bg-primary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

#snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

body.christmas-mode::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 215, 0, 0.02) 10px, rgba(255, 215, 0, 0.02) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(220, 20, 60, 0.02) 10px, rgba(220, 20, 60, 0.02) 20px);
    pointer-events: none;
    z-index: 0;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes snowfall-slow {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(80px);
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(220, 20, 60, 0.5);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink-light {
    0%, 100% {
        opacity: 0;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px currentColor;
    }
}

@keyframes twinkle-star {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.header-snowflake {
    position: relative;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9), rgba(220, 20, 60, 0.8));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    opacity: 0.8;
    background-size: cover;
    /* Keep header icons static — no fall/shake animations */
}

/* Snow toggle styling */
.header-toggle { display: inline-block; margin-left: 12px; }
.snow-toggle { color: #fff; font-size: 0.9rem; cursor: pointer; }
.snow-toggle input { margin-right: 6px; }

@keyframes fall {
    0% {
        transform: translateY(0vh);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0.5;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(50px);
    }
}

/*body.christmas-mode::before {
    content: '';
    position: fixed;
    top: -10%;
    left: 0;
    width: 100%;
    height: 110%;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(220, 20, 60, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(34, 139, 34, 0.5), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(255, 215, 0, 0.7), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: snowfall-slow 45s linear infinite;
} */

.christmas-lights {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
    z-index: 3;
    gap: 30px;
    padding: 0 40px;
}

.light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: blink-light 1s ease-in-out infinite;
}

.light:nth-child(1) {
    background-color: #FF1744;
    animation-delay: 0s;
}

.light:nth-child(2) {
    background-color: #FFD700;
    animation-delay: 0.125s;
}

.light:nth-child(3) {
    background-color: #228B22;
    animation-delay: 0.25s;
}

.light:nth-child(4) {
    background-color: #FF1744;
    animation-delay: 0.375s;
}

.light:nth-child(5) {
    background-color: #FFD700;
    animation-delay: 0.5s;
}

.light:nth-child(6) {
    background-color: #228B22;
    animation-delay: 0.625s;
}

.light:nth-child(7) {
    background-color: #FF1744;
    animation-delay: 0.75s;
}

.light:nth-child(8) {
    background-color: #FFD700;
    animation-delay: 0.875s;
}

.festive-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    font-size: 2rem;
    animation: twinkle-star 3s ease-in-out infinite;
}

.star:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    top: 40%;
    left: 5%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    bottom: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.spinning-wreath {
    position: absolute;
    font-size: 2.5rem;
    top: 30px;
    animation: spin-slow 8s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 30px rgba(220, 20, 60, 0.3));
}

.left-wreath {
    left: 10px;
}

.right-wreath {
    right: 10px;
}

/* Container styles */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    border-radius: 0px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08), rgba(34, 139, 34, 0.08), rgba(255, 215, 0, 0.03));
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.05),
        0 0 50px rgba(255, 215, 0, 0.1);
    animation: subtle-pulse 4s ease-in-out infinite;
    border: 3px solid linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(220, 20, 60, 0.6), rgba(34, 139, 34, 0.6)) 1;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(220, 20, 60, 0.3),
            inset 0 0 20px rgba(255, 215, 0, 0.05),
            0 0 50px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(220, 20, 60, 0.4),
            inset 0 0 20px rgba(255, 215, 0, 0.1),
            0 0 70px rgba(255, 215, 0, 0.15);
    }
}

/* Stats Dashboard Components */
header {
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.header-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}



.ornament-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.christmas-title {
    animation: pulse-glow 3s ease-in-out infinite;
}

.subtitle {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    z-index: 1001;
    animation: twinkle 2.5s ease-in-out infinite;
}

@supports (--webkit-text-stroke: 1px var(--card-bg)) {
    .outline {
        -webkit-text-stroke: 1px var(--card-bg);
    }
}

.outline {
    -webkit-text-stroke: 1px var(--card-bg);
    text-shadow: -1px -1px 0 var(--card-bg),
                0.5px 0.5px 0 var(--card-bg),
                -1px -1px 0 var(--card-bg),
                0.5px 0.5px 0 var(--card-bg);
    color: var(--text-secondary);
    padding: 0 5px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), var(--card-shadow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 400;
}

/* Original styles.css components */
.profile-picture {
    max-width: 225px;
    height: auto;
    border-radius: 2%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 4px solid;
    border-image: linear-gradient(45deg, rgba(255, 215, 0, 0.6), rgba(220, 20, 60, 0.6)) 1;
}

.profile-picture:hover {
    transform: scale(1.05) rotateZ(2deg);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 0 50px rgba(220, 20, 60, 0.3);
}

.profile-picture.thumbnail {
    max-width: profile-picture;
    height: auto;
    border-radius: 2%;
    border: 4px dotted rgba(255, 215, 0, 0.5) !important;
    animation: twinkle-border 2s ease-in-out infinite;
}

@keyframes twinkle-border {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.5);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.8);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    }
}

body.dark-mode > img.profile-picture.thumbnail {
    border: 2px dotted #FFFFFF !important;
}

h1 {
    color: #333333;
    font-size: 24px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

body.dark-mode h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

h1.name {
    color: #333333;
    font-size: 24px;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: underline;
    border-bottom: 1px dotted #333333;
}

.vietnam-name {
    font-family: "Be Vietnam Pro", serif;
    font-weight: 100;
    font-style: normal;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Link styles */
a, a:visited, a:active, a:link {
    color: var(--text-secondary);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    transition: color 0.3s ease;
}

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

a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 1px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(var(--accent-rgb), 0.5);
}

a:hover:after {
    width: 100%;
}

.link-button {
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.link-button:hover {
    transform: translateY(-2px);
}

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

.stat-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.stat-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.festive-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 3px solid;
    border-color: rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.12), rgba(34, 139, 34, 0.12)) !important;
    position: relative;
    overflow: hidden;
}

.festive-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1), transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.link-emoji {
    font-size: 1.4rem;
    animation: twinkle 1.5s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.4));
}

.link-emoji:first-child {
    animation-delay: 0s;
}

.link-emoji:last-child {
    animation-delay: 0.75s;
}

.festive-link:hover {
    border-color: rgba(255, 215, 0, 0.8);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(34, 139, 34, 0.3)) !important;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(220, 20, 60, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.15);
    transform: translateY(-3px);
}

.festive-link:hover::before {
    animation: shimmer 2s infinite;
}

.festive-link:hover .link-emoji {
    animation: bounce-emoji 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

@keyframes bounce-emoji {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.3) translateY(-8px);
    }
}

/* Footer */
footer {
    text-align: center;
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    padding: 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    animation: twinkle 3s ease-in-out infinite;
}

footer p::before {
    content: '❄ ❄ ❄ ';
    margin-right: 10px;
}

footer p::after {
    content: ' ❄ ❄ ❄';
    margin-left: 10px;
}

/* Media queries */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-width: 100%;
        margin: 0 0 20px;
    }

    .container {
        width: 90%;
        padding: 10px;
    }

    .link-button {
        width: 100%;
        margin: 8px 0;
        font-size: 16px;
    }

    .profile-picture {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 20px;
    }

    /* Adjust toggle switch position */
    .switch {
        top: 10px;
        right: 10px;
        transform: scale(0.8);
    }
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

/* Playlist and Audio Player spacing */
.playlist-wrapper {
    flex: 1;
    padding: 15px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.12), rgba(34, 139, 34, 0.12));
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(34, 139, 34, 0.3)) 1;
    box-shadow:
        0 0 20px rgba(34, 139, 34, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.03);
    max-width: 50%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.playlist-wrapper:hover {
    border-image: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(34, 139, 34, 0.6)) 1;
    box-shadow:
        0 0 30px rgba(34, 139, 34, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.08);
}

.playlist-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 200px;
    border-radius: var(--border-radius);
    background-color: var(--bg-tertiary);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-tertiary);
}

.playlist-container::-webkit-scrollbar {
    width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 2px solid var(--bg-tertiary);
}

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

.audio-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 30px 0;
}

.audio-player {
    flex: 1;
    padding: 20px;
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.12), rgba(34, 139, 34, 0.12));
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow:
        0 0 20px rgba(220, 20, 60, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    max-width: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.audio-player:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 0 30px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Lyrics container styling */
.lyrics-container {
    margin-top: 20px;
    text-align: left;
    /*
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
    width: 100%;
    */
}

.lyrics-container h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 400;
}

.lyrics-display {
    height: 200px;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    transition: var(--transition);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-tertiary);
}

.lyrics-display::-webkit-scrollbar {
    width: 6px;
}

.lyrics-display::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.lyrics-display::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 2px solid var(--bg-tertiary);
}

.lyrics-line {
    margin-bottom: 5px;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    line-height: 1;
}

.lyrics-line.active-line {
    opacity: 1;
    font-weight: 500;
    color: var(--primary-color);
    transform: scale(1.02);
}

.lyrics-word {
    display: inline-block;
    padding: 2px 3px;
    border-radius: 3px;
    transition: all 0.2s ease;
    position: relative;
}

.lyrics-word.active {
    color: var(--primary-color);
    font-weight: bold;
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
    background-color: rgba(227, 252, 2, 0.1);
    z-index: 2; /* Ensure active word is above others */
}

@keyframes wordPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

.lyrics-word.active {
    animation: wordPulse 1s infinite;
}

/* Now Playing display */
.audio-player h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 400;
    text-align: center;
}

/* Controls styling */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
}

.play-pause {
    background: var(--accent);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 15px;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.play-pause:hover {
    transform: scale(1.1);
    color: var(--accent);
}

#seekSlider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--value), var(--bg-tertiary) var(--value), var(--bg-tertiary) 100%);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

#seekSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(227, 252, 2, 0.6);
    transition: all 0.2s ease;
}

#seekSlider::-webkit-slider-thumb:hover {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 12px rgba(227, 252, 2, 0.8);
}

#seekSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(227, 252, 2, 0.6);
    transition: all 0.2s ease;
}

#seekSlider::-moz-range-thumb:hover {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 12px rgba(227, 252, 2, 0.8);
}

#seekSlider::-moz-range-track {
    background: transparent;
    border: none;
}

#volumeSlider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 0%, #333 0%, #333 100%);
    outline: none;
    transition: background 0.1s;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.5);
}

/* For Firefox */
#volumeSlider::-moz-range-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.5);
}

/* For IE/Edge */
#volumeSlider::-ms-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.5);
}

.timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.timeline input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    min-width: 0; /* Allows slider to shrink below its content size--why? */
}

/* New styling for currentTime and duration
#currentTime, #duration {
    white-space: nowrap;
}
*/

.timeline input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.5);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    width: 100%;
    margin-top: 10px;
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    outline: none;
    flex: 1;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.5);
}

#volumePercentage {
    min-width: 20px;
    text-align: right;
    font-size: 0.8rem;
}

/* Control buttons */
.controls button {
    font-size: 1rem;
    background: transparent !important;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
    flex-shrink: 0; /* Prevents buttons from shrinking */
}

.controls button:hover {
    color: var(--accent);
}

#shuffleBtn {
    font-size: 1rem;
    background: transparent !important;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
    flex-shrink: 0; /* Prevents buttons from shrinking */
}

#shuffleBtn:hover {
    color: var(--accent);
}

/* Active Shuffle Button State */
#shuffleBtn.active {
    color: var(--accent);
}

#shuffleBtn.active i {
    animation: shuffle-pulse 2s infinite;
}

@keyframes shuffle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Track item styling
.track-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: var(--card-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(40, 40, 40, 0.6);
}

.track-item:hover {
    background-color: rgba(60, 60, 60, 0.8);
    transform: translateX(1.3px);
}

.track-item:active {
    transform: scale(0.98);
}
*/

.track-item {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.track-item:last-child {
    border-bottom: none;
}

.playlist-container {
    min-height: 120px;
}

/* Album art styling */
.track-art {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.track-item:hover .track-art {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Track info container */
.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Track title styling */
.track-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.track-item:hover .track-title {
    color: var(--accent);
}

/* Track artist styling */
.track-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.track-item:hover .track-artist {
    opacity: 1;
}

/* Currently playing track indicator */
.track-item.playing {
    background-color: rgba(60, 60, 60, 0.2);
    border-left: 3px solid var(--accent);
    padding-left: 7px;
}

.track-item.playing .track-title {
    color: var(--accent);
}

/* Add a subtle play icon to indicate the current track */
.track-item.playing::after {
    content: '▶';
    color: var(--accent);
    font-size: 0.8rem;
    margin-left: 8px;
    opacity: 0.8;
}

.now-playing-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(40, 40, 40, 0.6);
    border-radius: var(--card-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.now-playing-info:hover {
    background-color: rgba(60, 60, 60, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.now-playing-info:active {
    transform: translateY(0);
}

.now-playing-info:hover .album-art {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.audio-player .album-art {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    margin-right: 15px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.audio-player .track-info {
    flex: 1;
}

.audio-player .track-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.audio-player .track-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Pulse animation for currently playing track */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.is-playing .album-art {
    animation: pulse 3s infinite;
}

@keyframes trackChange {
    0% { transform: translateX(-10px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.track-changed .track-title,
.track-changed .track-artist {
    animation: trackChange 0.5s ease forwards;
}

/* Add a subtle equalizer effect for currently playing track(s) */
.is-playing::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 75%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><rect x="4" y="10" width="2" height="4" rx="1"><animate attributeName="height" from="4" to="12" dur="1s" repeatCount="indefinite" values="4;12;8;4" keyTimes="0;0.33;0.66;1"></animate></rect><rect x="9" y="8" width="2" height="8" rx="1"><animate attributeName="height" from="8" to="16" dur="1.2s" repeatCount="indefinite" values="8;16;4;8" keyTimes="0;0.33;0.66;1"></animate></rect><rect x="14" y="6" width="2" height="12" rx="1"><animate attributeName="height" from="12" to="6" dur="1.5s" repeatCount="indefinite" values="12;6;16;12" keyTimes="0;0.33;0.66;1"></animate></rect><rect x="19" y="8" width="2" height="8" rx="1"><animate attributeName="height" from="8" to="14" dur="0.8s" repeatCount="indefinite" values="8;14;10;8" keyTimes="0;0.33;0.66;1"></animate></rect></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .audio-section {
        flex-direction: column;
    }

    .audio-player,
    .playlist-wrapper {
        max-width: 100%;
    }

    .playlist-container {
        max-height: 300px;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-right {
        text-align: center;
    }

    .profile-left {
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .audio-controls-container {
        flex-direction: column;
    }

    .lyrics-display {
        height: 100px;
    }
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    color: var(--text-primary);
    font-size: 16px;
    opacity: 0.8;
    z-index: 9999;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    user-select: none;
}

@keyframes fadeOut {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

.cursor-trail.fadeOut {
    animation: fadeOut 0.5s ease forwards;
}

.profile-container {
    display: flex;
    margin: 20px 0 20px;
    gap: 25px;
    align-items: center;
    background: rgba(30, 30, 30, 0.6);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.profile-left {
    flex: 0 0 auto;
}

.profile-right {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s ease;
    filter: contrast(1.1);
    flex-direction: column;
}

.profile-picture:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.5);
    filter: contrast(1.2) brightness(1.05);
}

.about-me-container {
    margin-top: 0px;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(34, 139, 34, 0.1));
    border-radius: var(--card-radius);
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(220, 20, 60, 0.4)) 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-me-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

@keyframes slide-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.about-me-container h3 {
    color: var(--accent);
    margin-bottom: 10px;
    margin-top: 0px;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    animation: pulse-glow 2.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.about-me-container:hover::before {
    animation: slide-shine 3s infinite;
}

.about-me-container p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Clock Styles */
.ampm {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: top;
    color: var(--text-secondary);
}

.timezone {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: top;
}

.separator {
    color: var(--text-secondary);
    margin: 0 4px;
}

.date {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
}

.today {
    color: var(--text-secondary);
    display: inline-block;
    text-align: left;
    font-size: 1.2rem;
}

.weekday {
    color: var(--accent);
    display: inline-block;
    text-align: left;
    font-size: 1.2rem;
    margin-left: 5px;
}

.month {
    color: var(--text-secondary);
    display: inline-block;
    text-align: left;
    font-size: 1.2rem;
    margin-left: 5px;
}

.day {
    color: var(--accent);
    display: inline-block;
    text-align: left;
    font-size: 1.2rem;
    margin-left: 5px;
}

.year {
    color: var(--text-secondary);
    display: inline-block;
    text-align: left;
    font-size: 1.2rem;
    margin-left: 5px;
}

.clock-container {
    margin: 10px 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-family: monospace;
    background: rgba(30, 30, 30, 0.6);
    border-radius: var(--card-radius);
    padding: 5px 15px;
    display: flex;
    align-self: center;
    width: 100%;
    box-shadow: var(--card-shadow);
}

.clock {
    display: inline-flex;
    align-items: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hour {
    color: var(--accent);
    display: inline-block;
}

.minute {
    color: var(--text-secondary);
    display: inline-block;
}

.second {
    color: var(--accent);
    display: inline-block;
}

.colon {
    margin: 0 1px;
}

/* Animation in Seconds */
.second.animate {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #FFFFFF; }
    100% { transform: scale(1); }
}

.timezone {
    display: inline-block;
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: top;
    color: var(--text-secondary);
    opacity: 0.8;
}

.profile-right > p { /* Targets the "Content Creator..." paragraph */
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 20px; /* Add margin to the bottom of the paragraph */
}

.profile-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 0px;
}

.profile-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(34, 139, 34, 0.15));
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    margin-top: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-weight: 500;
}

.profile-stats .stat:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.25), rgba(34, 139, 34, 0.25));
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.profile-stats .stat i {
    color: var(--accent);
    font-size: 1.1rem;
    animation: twinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.4));
}

.profile-stats .stat:last-child {
    margin-bottom: 0;
}

/* Enhanced mobile responsiveness for screens under 729px */
@media (max-width: 729px) {
    /* Improve overall container spacing */
    .container {
        padding: 15px 10px;
    }

    /* Adjust profile container for better mobile layout */
    .profile-container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .profile-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .profile-right {
        width: 100%;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
        margin-top: 15px;
    }

    .profile-stats .stat {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-top: 10px;
    }

    /* Improve clock and date display */
    .clock-container {
        flex-direction: row;
        align-items: center;
        padding: 10px;
        margin: 15px 0;
    }

    .clock {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }

    .hour, .minute, .second, .colon {
        margin-left: 0px;
        white-space: nowrap;
    }

    .date {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }

    .today { display: none; }

    /* Adjust audio player for mobile */
    .audio-section {
        flex-direction: column;
    }

    .audio-player,
    .playlist-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .controls {
        gap: 5px;
    }

    .controls button {
        padding: 3px;
    }

    .timeline {
        gap: 4px;
    }

    /* Adjust link buttons for mobile */
    .link-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    /* Improve typography for mobile */
    h1.name {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .about-me h3 {
        font-size: 1.4rem;
    }

    .about-me p {
        font-size: 0.9rem;
    }

    /* Adjust cursor trail for mobile */
    .cursor-trail {
        font-size: 14px;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    /* Further refinements for very small screens */
    .profile-picture {
        width: 100px;
        height: 100px;
    }

    .clock-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        margin: 15px 0;
    }

    .clock {
        font-size: 1rem;
    }

    /* Simplify date display on very small screens */
    .separator, .today {
        display: none; /* Hide separators on very small screens */
    }

    /* Stack date parts vertically for better readability */
    .date {
        display: flex;
        flex-direction: row;
        text-align: center;
        gap: 0px;
        font-size: 1rem;
    }

    /* Adjust audio player controls */
    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .play-pause {
        order: -1;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
    }

    .timeline {
        width: 100%;
        order: 1;
        margin-bottom: 10px;
    }

    /* Make buttons easier to tap on mobile */
    .controls button {
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust volume control */
    .volume-control {
        width: 100%;
    }
}

/*SECTION - ADMIN AREA*/
input:focus,
button:focus,
textarea:focus,
select:focus,
a:focus {
    outline: none;
    box-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #555555;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #1A1A1A;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #CCCCCC;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #333333;
    border-radius: 5px;
    background-color: #2A2A2A;
    color: #FFFFFF;
}

button.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #4A4A4A;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.login-btn:hover {
    background-color: #666666;
}

.error-message {
    color: #FF6B6B;
    margin-bottom: 15px;
}

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1A1A1A;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
}

.admin-title {
    margin: 0;
    color: #CCCCCC;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.log-table th, .log-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.log-table th {
    background-color: #2A2A2A;
    color: #CCCCCC;
}

.log-table tr:hover {
    background-color: #2A2A2A;
}

.log-entry {
    font-family: monospace;
    color: #CCCCCC;
    word-break: break-all;
}

.admin-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.admin-actions form {
    margin: 0;
}

.admin-btn,
.admin-btn:active,
.admin-btn:focus,
.admin-btn:visited,
.admin-btn:link {
    padding: 8px 15px;
    background-color: #4A4A4A;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.admin-btn:hover {
    padding: 8px 15px;
    background-color: #666666;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.action-btn {
    min-width: 140px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.admin-btn.danger,
.admin-btn.danger:active,
.admin-btn.danger:focus,
.admin-btn.danger:visited,
.admin-btn.danger:link {
    padding: 8px 15px;
    background-color: #8B3A3A;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.admin-btn.danger:hover {
    padding: 8px 15px;
    background-color: #A84747;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    align-items: center;
    box-sizing: border-box;
    padding: 0 15px;
    overflow-x: none;
}

.page-link.ellipsis {
    background-color: transparent;
    cursor: default;
    pointer-events: none;
}

.pagination > a.page-link {
    padding: 5px 10px;
    background-color: #2A2A2A;
    color: #CCCCCC;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.pagination > span.page-link.active, span.page-link.active:hover {
    padding: 5px 10px;
    background-color: #4A4A4A;
    color: #CCCCCC;
    text-decoration: none;
    border-radius: 3px;
    pointer-events: none;
    outline: none;
    transition: none;
}

.pagination > a.page-link:hover {
    background-color: #3A3A3A;
}

.no-logs {
    text-align: center;
    padding: 20px;
    color: #CCCCCC;
}

.logout-btn {
    color: #CCCCCC;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    color: #FFFFFF;
}

.search-box {
    padding: 8px 15px;
    border: 1px solid #333333;
    border-radius: 5px;
    background-color: #2A2A2A;
    color: #FFFFFF;
    width: 300px;
}