* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6f8;
    color: #333;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.header {
    padding: 12px 16px;
    background-color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.video-wrapper {
    width: 100%;
    background-color: #000;
    flex-shrink: 0;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.subtitle-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scroll-behavior: smooth;
    padding-bottom: 60vh; 
}

.subtitle-container::-webkit-scrollbar {
    display: none;
}

.subtitle-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.time {
    font-size: 12px;
    color: #d4a373;
    font-family: monospace;
    margin-bottom: 8px;
    font-weight: bold;
}

.en {
    font-size: 20px;
    color: #222;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.zh {
    font-size: 15px;
    color: #888;
    line-height: 1.5;
}

.star-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #ccc;
    font-size: 18px;
}

.highlight-word {
    background-color: #e6f7e9;
    border-bottom: 2px solid #52c41a;
    padding: 0 4px;
    border-radius: 4px;
}

.subtitle-item.active {
    background-color: #fff9e6;
    border: 1px solid #ffe58f;
    box-shadow: 0 4px 12px rgba(255, 200, 0, 0.15);
}

.subtitle-item.active .time {
    color: #b8860b;
}

.subtitle-item.active .en {
    color: #000;
    font-weight: 600;
}