* {
    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-player {
    padding: 0;
}

.video-container {
    position: relative;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 220px;
}

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

.live-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.video-controls button {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.live-info {
    padding: 15px;
}

.live-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.live-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.host-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.host-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.host-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.host-title {
    font-size: 13px;
    color: #999;
}

.btn-follow {
    padding: 8px 20px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.tab-container {
    padding: 0;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-header {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.tab-header.active {
    color: #8B4513;
    border-bottom: 2px solid #8B4513;
}

.tab-content {
    height: 350px;
    overflow: hidden;
}

.tab-panel {
    display: none;
    height: 100%;
    padding: 12px;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

.chat-item {
    padding: 8px 0;
    font-size: 14px;
}

.chat-item.host {
    background: #f9f5f0;
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0;
}

.chat-user {
    font-weight: 500;
    color: #8B4513;
}

.chat-item.host .chat-user {
    color: #e74c3c;
}

.chat-msg {
    color: #333;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.input-msg {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.btn-send {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.product-list {
    flex: 1;
    overflow-y: auto;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.product-item:last-child {
    border-bottom: none;
}

.product-img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.btn-buy {
    padding: 8px 16px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.intro-content {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
}

.intro-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.intro-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.intro-content li {
    margin: 5px 0;
}

.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    font-size: 12px;
    color: #666;
}

#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;
}
