:root {
    --brand-blue: #165dff;
}

body {
    margin: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f2f5fa;
    color: #1d2129;
}

#root {
    min-height: 100vh;
}

.app-shell {
    padding: 0px;
}

.player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-container video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-container video::-webkit-media-controls-timeline,
.player-container video::-webkit-media-controls-seek-back-button,
.player-container video::-webkit-media-controls-seek-forward-button {
    display: none !important;
}

.player-container video::-webkit-media-controls-play-button {
    opacity: 0.9;
}

.player-container video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.35);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
}

.status-badge.future {
    background: rgba(22, 93, 255, 0.12);
    color: var(--brand-blue);
}

.status-badge.expired {
    background: rgba(0, 0, 0, 0.08);
    color: #4e5969;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.2);
    color: #0f9157;
}

.player-container.landscape {
    aspect-ratio: 16 / 9;
}

.player-container.portrait {
    aspect-ratio: 9 / 16;
}

.player-container video {
    object-fit: contain;
}

.viewer-count-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #d4f8c4;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 5;
}

.viewer-count-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.comment-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.comment-list {
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 8px;
}

.comment-item {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    max-width: 80%;
}

.comment-name {
    font-weight: 600;
    color: #8be7ff;
}

.comment-content {
    color: #fff;
    word-break: break-all;
}

.comment-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-input-row .arco-input-wrapper {
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    flex: 1;
}

.comment-input-row .arco-input {
    color: inherit;
}

.comment-input-row .arco-btn {
    border-radius: 999px;
}

.admin-layout {
    min-height: 100vh;
    background: #ecf0fa;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gift-card {
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.gift-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f7f8fa;
}

.gift-card .gift-name {
    font-weight: 600;
    color: #1d2129;
}

.gift-card .gift-points {
    color: #4e5969;
    font-size: 13px;
}

.mobile-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8faff 0%, #eef3ff 35%, #f5f7fb 100%);
}

.mobile-content {
    flex: 1;
    padding: 0px 0px 180degpx;
}

.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    border-top: 1px solid #e5e6eb;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 10;
}

.mobile-tab-button {
    flex: 1;
    text-align: center;
    background: none;
    border: none;
    font-size: 14px;
    color: #4e5969;
    padding: 6px 0;
    cursor: pointer;
}

.mobile-tab-button.active {
    color: var(--brand-blue);
    font-weight: 600;
    position: relative;
}

.mobile-tab-button span {
    display: block;
    font-size: 12px;
}

.mobile-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-blue);
}

.input-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(22, 93, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-card h3 {
    margin: 0;
    font-size: 16px;
    color: #1d2129;
}

.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-row .arco-input-wrapper {
    flex: 1;
    border-radius: 12px;
}

.video-list-card {
    margin-top: 18px;
    background: linear-gradient(135deg, #eff3ff 0%, #ffffff 70%);
    border-radius: 18px;
    padding: 20px;
    min-height: 350px;
    border: 1px solid rgba(22, 93, 255, 0.08);
}

.video-item {
    background: #fff;
    border-radius: 14px;
    padding: 7px 7px;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-item h4 {
    margin: 0;
    font-size: 15px;
    color: #1d2129;
}

.video-item p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #86909c;
}

.gift-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 0;
}

.gift-gallery-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 28px rgba(22, 93, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gift-gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
    background: #f2f3f5;
}

.gift-gallery-card .gift-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.gift-gallery-card .gift-points {
    color: #4e5969;
    font-size: 13px;
}

