.game-history {
  padding: 16px;
  background-color: #f8f8f8;
  min-height: 100vh;

  &__header {
    padding-bottom: 16px;
  }

  &__title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
  }

  &__tabs {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  &__tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    position: relative;

    &--active {
      color: #4285f4;
      font-weight: 500;
      
      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        background-color: #4285f4;
        border-radius: 2px;
      }
    }
  }

  &__list {
    height: calc(100vh - 110px);
  }

  &__loading {
    padding: 24px;
    text-align: center;
    color: #999;
  }

  &__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    
    &-text {
      margin-top: 16px;
      color: #999;
      font-size: 14px;
    }
  }

  &__item {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  &__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  &__game-info {
    display: flex;
    align-items: center;
  }

  &__game-icon {
    margin-right: 8px;
  }

  &__game-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }

  &__status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    
    &.status-playing {
      background-color: #e6f7ff;
      color: #1890ff;
    }
    
    &.status-completed {
      background-color: #f6ffed;
      color: #52c41a;
    }
    
    &.status-interrupted {
      background-color: #fff1f0;
      color: #f5222d;
    }
    
    &.status-unknown {
      background-color: #f5f5f5;
      color: #999;
    }
  }

  &__item-content {
    background-color: #fafafa;
    border-radius: 6px;
    padding: 12px;
  }

  &__detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    
    &:last-child {
      margin-bottom: 0;
    }
  }

  &__detail-label {
    margin-right: 5px;
  }

  &__detail-text {
    margin-left: 8px;
  }

  &__role-badge {
    background-color: #4285f4;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
  }
} 