@charset "UTF-8";

/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
    overflow: hidden; /* Prevent scrolling for H5 */
    background-color: #f7f4ed;
}

/* Serif font for elegant text */
.font-serif {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}

/* Page Container */
.page-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Right Music Icon */
.music-icon {
    position: absolute;
    top: 4vh;
    right: 5vw;
    width: 8vw;
    height: 8vw;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #cbb8a0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.music-icon::after {
    content: '♫';
    color: #4A3525;
    font-size: 4vw;
}
.music-icon.playing {
    animation: rotate 4s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header Section */
.header {
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.seal {
    width: 6vw;
    height: 10vw;
    background-color: #8C2218;
    color: #fff;
    font-size: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin-bottom: 2vh;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.title {
    font-size: 10vw;
    color: #3A2A20;
    font-weight: bold;
    letter-spacing: 1vw;
    margin-bottom: 2vh;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.subtitle {
    display: flex;
    align-items: center;
    color: #5A4A40;
    font-size: 3.5vw;
    letter-spacing: 1px;
    font-weight: bold;
}

.subtitle .line {
    width: 6vw;
    height: 1px;
    background-color: #8B7A6C;
    margin: 0 2vw;
}

/* Main Spacer to push bottom content */
.main-spacer {
    flex: 1;
}

/* Players Section */
.players {
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: 3vh;
    margin-bottom: 4vh;
}

.player {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5vh;
}

.note-icon {
    width: 4vw;
    height: 4vw;
    background-color: #a4917f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2vw;
}
.note-icon::after {
    content: '♪';
    color: #fff;
    font-size: 2.5vw;
}

.player-title {
    color: #3A2A20;
    font-size: 4vw;
    font-weight: 500;
}

.player-controls {
    display: flex;
    align-items: center;
    width: 100%;
}

.btn-play {
    width: 10vw;
    height: 10vw;
    background-color: #4A3525;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 4vw;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.btn-play::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 2vw solid transparent;
    border-bottom: 2vw solid transparent;
    border-left: 3vw solid #fff;
    margin-left: 1vw;
}
.btn-play.playing::after {
    border: none;
    width: 3vw;
    height: 3vw;
    background-color: #fff;
    margin-left: 0;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background-color: #D4C5B5;
    position: relative;
}

.progress {
    height: 100%;
    background-color: #5C4533;
    position: absolute;
    left: 0;
    top: 0;
}

.progress-dot {
    width: 3vw;
    height: 3vw;
    background-color: #fff;
    border: 1px solid #5C4533;
    border-radius: 50%;
    position: absolute;
    right: -1.5vw;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.time {
    align-self: flex-end;
    font-size: 3vw;
    color: #5A4A40;
    margin-top: 1vh;
}

/* Footer Section */
.footer {
    text-align: center;
    color: #4A3525;
    font-size: 3vw;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1vh;
    letter-spacing: 1px;
}
