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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f5f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 10px;
}

.screen {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.top-nav {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    white-space: nowrap;
    color: #d4af37;
}

.top-nav nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
}

.top-nav nav::-webkit-scrollbar {
    display: none;
}

.top-nav nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.top-nav nav a.active,
.top-nav nav a:hover {
    background: #d4af37;
    color: #1a1a2e;
}

.live-banner {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.live-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.banner-badge {
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.banner-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-viewers {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 10px;
}

.btn-enter {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
}

.live-tabs {
    display: flex;
    gap: 10px;
}

.live-tabs .tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.live-tabs .tab.active {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
}

.live-content {
    margin-bottom: 10px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.live-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    text-decoration: none;
    display: block;
}

.live-card.preview,
.live-card.ended {
    pointer-events: auto;
}

.live-cover {
    position: relative;
    height: 120px;
}

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

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.live-badge.preview {
    background: #f39c12;
}

.live-badge.ended {
    background: #95a5a6;
}

.live-viewers {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.live-info {
    padding: 10px;
}

.live-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-host {
    display: flex;
    align-items: center;
    gap: 6px;
}

.host-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.host-name {
    font-size: 12px;
    color: #333;
}

.live-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.btn-reserve {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    padding: 8px;
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.more-link {
    text-align: center;
    padding: 15px 0;
}

.more-link a {
    color: #8B4513;
    text-decoration: none;
    font-size: 14px;
}

#float-btn {
    position: fixed;
    right: 15px;
    bottom: 80px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    cursor: pointer;
    z-index: 99;
}
