/* Font Face Declarations */
@font-face {
    font-family: 'Academico';
    src: url('fonts/Academico-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Academico';
    src: url('fonts/Academico-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Academico';
    src: url('fonts/Academico-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Academico';
    src: url('fonts/Academico-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Academico';
    src: url('fonts/Academico-ExtraBoldExpanded.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

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

/* Base typography and background should be on body, not all descendants */
body {
    font-family: 'Academico', sans-serif;
    background: #f9fafb;
    color: #333;
    line-height: 1.6;
}

/* Layout and Player Styles moved from inline HTML */
body {
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.player-container {
    border-radius: 12px;
    align-self: start;
    width: 100%;
    max-width: 600px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Academico', sans-serif;
}

h2 {
    font-weight: normal;
}

audio {
    width: 100%;
    max-width: 600px;
}

.content {
    margin-top: 100px;
    width: 100%;
    padding: 0 1rem;
}

.counted-player {
    span {
        text-align: left;
    }

    audio {
        margin-left: 20px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .content {
        margin-top: 50px;
        padding: 0 0.5rem;
    }

    audio {
        max-width: 100%;
    }

    .counted-player audio {
        margin-left: 10px;
    }
}
