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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.4;
}

.container, .player-container {
    max-width: 450px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    position: relative;
}

/* 页面1样式 */
.tips {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    font-size: 14px;
    border-bottom: 1px solid #ffeeba;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
}

.course-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.course-cover {
    aspect-ratio: 16/9;
    background-color: #eee;
}

.course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-title {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.icp {
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.icp a {
    color: #666;
    text-decoration: none;
}

/* 播放页列表样式（仅双列布局，容器高度由JS动态设置） */
.video-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.video-list-item {
    background: #f0f0f0;
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    word-break: break-word;
}

.video-list-item.active {
    background: #007bff;
    color: white;
}

/* 禁止长按复制（已在body添加类，但可在此定义） */
.no-copy {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}