    .balance-balance {
      font-size: 12px;
      color: #64748b;
      margin-top: 4px;
    }
    
    .balance-value {
      color: #2F80ED;
      font-weight: 600;
    }
    
    .balance-item-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 4px;
    }
    
    .video-container {
      position: relative;
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      z-index: 1;
      padding-top: 56.25%;
      background: #000;
    }
    
    .video-container video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    
    .video-overlay-btn {
      position: absolute;
      top: 10px;
      left: 10px;
      background: rgba(86, 87, 89, 0.82);
      color: white;
      border: none;
      width: 120px;
      height: 30px;
      border-radius: 5px;
      font-size: 14px;
      cursor: pointer;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .video-overlay-btn:hover {
      background: rgba(47, 128, 237, 1);
    }

    .video-state-badge {
      position: absolute;
      left: 10px;
      bottom: 10px;
      z-index: 9;
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 116px;
      padding: 5px 8px;
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.62);
      color: #fff;
      font-size: 11px;
      line-height: 1.25;
      letter-spacing: 0;
      pointer-events: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .video-state-badge span {
      white-space: nowrap;
    }
    
    .chat-container {
      background: white;
      border-bottom: 1px solid var(--line);
      position: relative;
      z-index: 2;
      display: block;
      visibility: visible !important;
      opacity: 1 !important;
      flex: 0 0 auto;
    }

    .chat-modal {
      position: fixed;
      inset: 0;
      z-index: 2600;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }

    .chat-modal.hidden {
      display: none;
    }

    .chat-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.5);
    }

    .chat-modal-card {
      position: relative;
      z-index: 1;
      width: min(420px, calc(100vw - 24px));
      height: min(560px, calc(100vh - 100px));
      border: 1px solid var(--line);
      border-radius: 12px;
      box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    
    .chat-container.collapsed .chat-messages,
    .chat-container.collapsed .chat-input-area {
      display: none;
    }

    .chat-container.collapsed {
      display: block !important;
      height: auto;
      min-height: 48px;
      visibility: visible !important;
    }

    .chat-container.collapsed .chat-header {
      display: flex !important;
      min-height: 48px;
      visibility: visible !important;
    }
    
    .chat-container.collapsed .chat-header {
      border-bottom: none;
    }
    
    .chat-header {
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: default;
    }

    .chat-close-btn {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 6px;
      background: #eef2f7;
      color: #475569;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }
    
    .chat-title {
      font-weight: 600;
      font-size: 14px;
    }
    
    .chat-messages {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 10px;
      background: #f8fafc;
    }
    
    .chat-message {
      margin-bottom: 10px;
      display: flex;
      gap: 8px;
    }
    
    .chat-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #fff;
      border: 1px solid #e6ecf4;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }
    
    .chat-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      display: block;
    }
    
    .chat-content {
      flex: 1;
    }
    
    .chat-nickname {
      font-size: 12px;
      color: var(--sub);
      margin-bottom: 2px;
    }
    
    .chat-text {
      font-size: 14px;
      color: var(--text);
      background: white;
      padding: 8px 12px;
      border-radius: 12px;
      display: inline-block;
      max-width: 100%;
      word-break: break-word;
    }
    
    .chat-message.system .chat-text {
      background: #e8f4ff;
      color: var(--blue);
    }
    
    .chat-message.bet .chat-text {
      background: #e8fff4;
      color: var(--green);
    }
    
    .chat-input-area {
      padding: 10px;
      display: flex;
      gap: 10px;
      border-top: 1px solid var(--line);
      align-items: center;
    }
    
    .chat-input {
      flex: 1;
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 10px 16px;
      font-size: 14px;
      outline: none;
    }
    
    .chat-input:focus {
      border-color: var(--blue);
    }
    
    .chat-send-btn {
      background: var(--blue);
      color: white;
      border: none;
      border-radius: 6px !important;
      width: 64px !important;
      min-width: 64px !important;
      max-width: 64px !important;
      flex: 0 0 64px !important;
      height: 38px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      line-height: 1;
      white-space: nowrap;
      word-break: keep-all;
      padding: 0;
    }
    
    .chat-send-btn:hover {
      background: #1a5dc9;
    }

    .chat-open-btn {
      flex: 0 0 76px !important;
      height: 36px !important;
      font-size: 13px;
      font-weight: 700;
      color: #2563eb;
      background: #ffffff;
      border-color: #bfdbfe !important;
    }
    
    .chat-container.collapsed .chat-messages,
    .chat-container.collapsed .chat-input-area {
      display: none;
    }
    
    .chat-container.collapsed {
      bottom: 130px;
    }

    .bottom-bar .chat-container {
      position: fixed !important;
      left: 50%;
      right: auto;
      bottom: calc(112px + env(safe-area-inset-bottom, 0px));
      width: min(480px, 100vw);
      margin: 0;
      transform: translateX(-50%);
      z-index: 22;
      pointer-events: auto;
      visibility: visible !important;
    }

    .bottom-bar .chat-container.collapsed {
      bottom: calc(105px + env(safe-area-inset-bottom, 0px));
      height: auto;
      min-height: 48px;
    }
    
    .period-bet-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
    }
    
    .period-bet-modal.active {
      display: flex;
    }
    
    .period-bet-content {
      background: white;
      width: 90%;
      max-width: 400px;
      max-height: 80vh;
      border-radius: 16px;
      overflow: hidden;
    }
    
    .period-bet-header {
      padding: 16px;
      border-bottom: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .period-bet-title {
      font-weight: 600;
      font-size: 16px;
    }
    
    .period-bet-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--sub);
    }
    
    .period-bet-list {
      max-height: 60vh;
      overflow-y: auto;
      padding: 12px;
    }
    
    .period-bet-item {
      padding: 12px;
      background: #f8fafc;
      border-radius: 12px;
      margin-bottom: 10px;
    }
    
    .period-bet-user {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    
    .period-bet-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--blue);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 12px;
    }
    
    .period-bet-nickname {
      font-weight: 600;
      font-size: 14px;
    }
    
    .period-bet-info {
      font-size: 13px;
      color: var(--sub);
    }
    
    .period-bet-amount {
      color: var(--green);
      font-weight: 600;
    }
